

:root {
    --navbar-size: 56px;
}

body {
    margin: 0;
}

.body-content {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
}

.hd-col {
    display: flex;
    flex: 1 0 0;
}

.hd-container {
    display: flex;
    height: calc(100vh - 56px);
}

.hd-nav-col {
    display: flex;
    flex-direction: row;
    flex: 0 1 auto;
    max-width: 40%;
}

.hd-nav-expandable {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
   padding: 6px;
}

.resizable-border-hover:active {
    cursor: col-resize;
    border-color: #5897FE !important;
}

.resizable-border-hover:hover {
    cursor: col-resize;
    border-color: #5897FE !important;
}

.hd-nav-main {
    display:flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin: 6px;
}

.hd-nav-ticket-container {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    overflow-y:auto;
}

.hd-nav-ticket-item {
    display:flex;
    flex-direction:column;
    flex: 0 1 auto
}

.hd-main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hd-nav-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    font-size: 1.5em;
    justify-content:left
}

.hd-nav-icon:hover {
    background-color:blue;
}

.hd-main-subject {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.hd-subject-header {
    display: flex;
    flex-direction: row;
    align-items:baseline;
    margin-right:6px;
    margin-left:6px;
}

.hd-subject-subHeader {
    display: flex;
    flex-direction: row;
    margin-right:6px;
    margin-left:6px;
}

.hd-subject-nav {
    display: flex;
    flex-direction: row;
    justify-content:space-around;
    align-items:center;
    height: 3em;
}

.hd-subject-nav-item {
    display:flex;
    flex: 1 0 auto;
    justify-content:space-around;
    align-items:center;
    font-size:1.1em;
}

.hd-main-body {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    padding-left: 16px;
    height: 60%;
    overflow: auto;
    background-color: #f7eded;
}

.hd-email-card {
    display: flex;
    flex: 0 0 0;
    flex-direction: column;
    margin-bottom: 1em;
    padding: 0.5em;
    background-color:white;
}

.hd-email-card:last-child {
    margin-top: 16px;
}


.hd-email-header {
    display: flex;
    flex-direction: row;
    flex: 0 0 0;
}

.hd-email-body {
}

.hd-email-footer {
    display: flex;
    flex: 0 0 0;
    flex-direction: row;
    align-items: center;
}

.hd-main-compose {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    max-height: 15em;
}

.hd-compose-body {
    display: flex;
    flex: 1 0 auto;
    flex-direction: row;
    padding: 1em
}

.hd-compose-right {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    padding: 6px;
}

.hd-compose-textarea {
    flex: 0 1 auto;
    resize: none;
    border: none;
}

.hd-compose-resizable {
    flex: 0 0 auto;
    border-top: 8px solid #161c2d;
    border-width: 3px;
    line-height: 0px;
}

.hd-compose-resizable:hover {
    cursor: n-resize;
    border-color: #5897FE !important;
}

    .hd-compose-resizable:active {
        cursor: n-resize;
        border-color: #5897FE !important;
    }

.hd-label {
    border: 1px solid transparent;
    border-radius: 0.25rem;
    padding: 0.10rem;
}

.prevent-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.rotate-90 {
    transform: rotate(90deg);
    transform-origin: center;
}

.rotate-180 {
    writing-mode: vertical-lr;
    -webkit-transform: rotate(-180deg);
    -moz-transform: rotate(-180deg);
}

.pinnable {
    cursor: pointer;
}

.pinnable-left {
    width: .35em;
    background-color: #DEE2E6;
}

.pinnable:hover > .pinnable-left {
    background-color: #0FB0FF !important;
}

.pinnable:hover > .js-taskCounter > .js-taskCount {
    background-color: #0FB0FF !important;
}

.pinnable-pinned {
    cursor: pointer;
}

.pinnable-pinned-left {
    height: .35em;
    background-color: #DEE2E6;
}

.pinnable-pinned:hover > .pinnable-pinned-left {
    background-color: #0FB0FF;
}

.pinnable-pinned-container .pinnable-pinned:not(:first-child) {
    margin-left: 0.5rem;
}

.disable-scrollbars::-webkit-scrollbar {
    background: transparent; /* Chrome/Safari/Webkit */
    width: 0px;
}

.disable-scrollbars {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.hd-label-container {
    padding-right:.5em;
}
/*
.trumbowyg-box,
.trumbowyg-editor {
    min-height: 100px !important;
}
*/
.profile-img {
    border-radius:50%;
    max-width:32px;
    max-height:32px;
}
}
.right-panel{
    border-left:solid 3px #DDD;
}

.panel-segment {
    margin-bottom: 10px;
    margin-left:5px;
}

.relationship-item-name{
    font-weight: bold;
    display:block;
}
.relationship-item-description{
    display:block;
    font-size:0.8rem;
}

.sibling-header {
    border-bottom: solid 3px rgb(25,135,84);
}

.guardian-header {
    border-bottom: solid 3px rgb(13,110,253);
}

/* Relationship navigation breadcrumb styling */
.js-breadcrumb-container {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.js-breadcrumb-container .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.js-breadcrumb-container .breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.js-breadcrumb-container .breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Clickable relationship items */
.js-relationship-navigate {
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.js-relationship-navigate:hover {
    background-color: #e9ecef !important;
}

.js-relationship-navigate .fa-chevron-right {
    opacity: 0.5;
    transition: opacity 0.15s ease-in-out;
}

.js-relationship-navigate:hover .fa-chevron-right {
    opacity: 1;
}

.user-badge-text {
    font-family: Menlo, Consolas, Courier
}

/*Sub-menu*/
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px 6px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #cccccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover > a:after {
    border-left-color: #ffffff;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left > .dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

.inline-error {
    position: relative;
    border: 1px solid red;
    box-shadow: 0px 0px 2px 1px #FF0000;
    outline: none;
}

.ui-autocomplete {
    max-height: 400px;
    overflow-y: auto; /* prevent horizontal scrollbar */
    overflow-x: hidden; /* add padding to account for vertical scrollbar */
    z-index: 1000 !important;
}

/* ====== Contextual Styling ====== */
/* User */
.card-header.user-header {
    border-color: #6EA7FE;
    background-color: #6EA7FE;
    color: #FFF;
    margin: -1px;
}

/* Asset */
.card-header.asset-header {
    border-color: #19A179;
    background-color: #19A179;
    color: #FFF;
    margin: -1px;
}

/* Ticket */
.card-header.ticket-header {
    border-color: #FFB272;
    background-color: #FFB272;
    color: #FFF;
    margin: -1px;
}

.editing-labels .non-label-edit {
    display: none;
}

.ticketLabels:not(.editing-labels) > :not(.non-label-edit) {
    display: none;
}

.ticketBuildings:not(.editing-labels) > :not(.non-label-edit) {
    display: none;
}

.editLabelForm {
    display: @(Model.WrapEditForm ? "inline" : "inline-flex");
}

.labelList {
    display: inline-flex;
    flex-wrap: wrap;
}

    .labelList .badge {
        float: left;
    }


.buildingList {
    display: inline-flex;
    flex-wrap: wrap;
}

    .buildingList .badge {
        float: left;
    }


.departmentList {
    display: inline-flex;
    flex-wrap: wrap;
}

    .departmentList .badge {
        float: left;
    }

.fakeLabelButton {
    line-height: 0;
}

/*LOW CONTRAST FORM-SELECT*/
.form-select-dark {
    background-image: url("../img/chevron-down-white.svg")!important;
}

/* ====== Activity Log Timeline ====== */
.activity-timeline {
    position: relative;
    padding-left: 2rem;
    margin-left: 1rem;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.activity-entry {
    position: relative;
    margin-bottom: 1rem;
}

.activity-entry-icon {
    position: absolute;
    left: -2rem;
    top: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #fff;
    z-index: 1;
    transform: translateX(-50%);
    left: -1.25rem;
}

.activity-entry-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: box-shadow 0.15s ease-in-out;
}

.activity-entry-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.activity-event-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    color: #fff;
    white-space: nowrap;
}

.activity-timestamp {
    font-size: 0.8rem;
    color: #6c757d;
}

.activity-body {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.activity-actor {
    display: inline-block;
    cursor: pointer;
}

.activity-entity-link {
    font-weight: 600;
    text-decoration: none;
}

.activity-entity-link:hover {
    text-decoration: underline;
}

.activity-details-toggle {
    cursor: pointer;
    font-size: 0.8rem;
    color: #6c757d;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.activity-details-toggle:hover {
    color: #495057;
}

.activity-change {
    font-size: 0.85rem;
    padding: 0.25rem 0;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.activity-change-label {
    font-weight: 600;
    color: #495057;
    min-width: 6rem;
}

.activity-token-text {
    font-size: 0.8rem;
    color: #868e96;
    margin-top: 0.25rem;
}

/* Category icon colors */
.activity-cat-ticket { background-color: #6EA7FE; }
.activity-cat-message { background-color: #0FB0FF; }
.activity-cat-building { background-color: #58C09A; }
.activity-cat-department { background-color: #A76EFE; }
.activity-cat-label { background-color: #FFB272; }
.activity-cat-group { background-color: #3CBFA4; }
.activity-cat-task { background-color: #6D757D; }
.activity-cat-person { background-color: #6EA7FE; }
.activity-cat-setting { background-color: #6D757D; }
.activity-cat-status { background-color: #F95C67; }
.activity-cat-mailbox { background-color: #0FB0FF; }
.activity-cat-feedback { background-color: #FF6B9D; }
.activity-cat-default { background-color: #adb5bd; }

/* Badge colors matching icon colors */
.activity-badge-ticket { background-color: #6EA7FE; }
.activity-badge-message { background-color: #0FB0FF; }
.activity-badge-building { background-color: #58C09A; }
.activity-badge-department { background-color: #A76EFE; }
.activity-badge-label { background-color: #FFB272; }
.activity-badge-group { background-color: #3CBFA4; }
.activity-badge-task { background-color: #6D757D; }
.activity-badge-person { background-color: #6EA7FE; }
.activity-badge-setting { background-color: #6D757D; }
.activity-badge-status { background-color: #F95C67; }
.activity-badge-mailbox { background-color: #0FB0FF; }
.activity-badge-feedback { background-color: #FF6B9D; }
.activity-badge-default { background-color: #adb5bd; }

/* Filter card styling */
.activity-filter-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

/* User group card */
.activity-user-group {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.activity-user-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.15s ease-in-out;
}

.activity-user-header:hover {
    background: #e9ecef;
}

.activity-user-chevron {
    transition: transform 0.2s ease-in-out;
    color: #6c757d;
}

.activity-user-group > .collapse.show + .activity-user-header .activity-user-chevron,
.activity-user-header[aria-expanded="false"] .activity-user-chevron {
    /* chevron rotation handled by JS toggleClass */
}

.activity-user-group > .collapse {
    padding: 0.5rem 0.75rem;
}

/* Shared avatar badges */
.activity-user-avatar-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: rgba(108, 117, 125, 0.3);
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.activity-user-avatar-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(108, 117, 125, 0.3);
    color: rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* User detail header */
.activity-user-detail-header {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
}

@media (max-width: 768px) {
    .activity-timeline {
        padding-left: 1.5rem;
        margin-left: 0.5rem;
    }
    .activity-entry-card {
        padding: 0.5rem 0.75rem;
    }
    .activity-user-header {
        padding: 0.5rem 0.75rem;
    }
    .activity-user-detail-header .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
}