/* ==========================================================================
   Modern global header (navbar + breadcrumbs) for authenticated screens.
   Brand palette: coral #ff675c · light blue #98ddf7 · yellow #ffd600 · black.
   Keeps the original 96px navbar height and 232px brand width so the
   sidebar and content offsets stay untouched.
   ========================================================================== */
body.login .hm-chip,
body.login .hm-user-info,
body.login .hm-user-info small,
body.login .hm-avatar,
body.login .hm-right .user-menu > li > a,
body.login .breadcrumb li,
body.login .breadcrumb li span {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- Bar ---------------------------------------------------------------- */
body.login #navbar {
    background: linear-gradient(90deg, #98ddf7 0%, #aee5f9 60%, #bfeafb 100%);
    height: 96px;
    border-bottom: 1px solid #7fcdef;
    box-shadow: 0 2px 6px rgba(31, 45, 61, 0.10);
    position: relative;
    z-index: 1030;
}
body.login .navbar-container {
    display: flex;
    align-items: center;
    height: 96px;
    padding: 0 20px 0 0;
}

/* --- Brand (coral block, as in the original identity) ------------------ */
body.login .navbar-container .pull-left.hm-brand {
    float: none !important;
    flex: 0 0 232px;
    width: 232px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #ff7468 0%, #ff675c 100%);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.06);
}
body.login .hm-brand .navbar-brand {
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    line-height: 0;
}
body.login .hm-brand .navbar-brand img {
    height: 70px;
    width: auto;
    max-width: 214px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

/* --- Center chips ------------------------------------------------------- */
body.login .hm-center {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    min-width: 0;
}
body.login .hm-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 2px rgba(31, 45, 61, 0.08);
    color: #1f2d3d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.15s, transform 0.15s;
}
body.login .hm-chip:hover {
    background: #ffffff;
    transform: translateY(-1px);
}
body.login .hm-chip i.fa {
    color: #ff675c;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* --- Right: user + icon buttons ---------------------------------------- */
body.login .navbar-container .pull-right.hm-right {
    float: none !important;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 96px;
}
body.login .hm-right .ace-nav {
    height: auto;
    margin: 0;
    background: transparent;
}
body.login .hm-right .ace-nav > li {
    height: auto;
    line-height: normal;
    border: 0;
}
body.login .hm-right .ace-nav > li.light-blue > a,
body.login .hm-right .ace-nav > li.light-blue > a:hover,
body.login .hm-right .ace-nav > li.light-blue > a:focus,
body.login .hm-right .ace-nav > li.open > a {
    background: transparent !important;
    color: #1f2d3d;
    padding: 0 !important;
    min-width: 0;
    height: auto;
}
body.login .hm-user {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px !important;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 2px rgba(31, 45, 61, 0.08);
    transition: background 0.15s;
}
body.login .hm-user:hover,
body.login .ace-nav > li.open > a.hm-user {
    background: #ffd600 !important;
}
body.login .hm-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff675c, #ff8a7a);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 103, 92, 0.35);
}
body.login .hm-user-info.user-info {
    display: block !important;
    max-width: none;
    text-align: left;
    line-height: 1.25;
    margin: 0;
    font-size: 13px;
    color: #1f2d3d;
    vertical-align: middle;
}
body.login .hm-user-info small {
    display: block;
    font-size: 11px;
    color: #5d6d7e;
    font-weight: 500;
    letter-spacing: 0.2px;
}
body.login .hm-user-info small.hm-user-name {
    font-size: 14px;
    color: #1f2d3d;
    font-weight: 700;
}
body.login .hm-caret {
    color: #ff675c;
    font-size: 16px;
    margin-left: 2px;
}
body.login .hm-right .user-menu {
    margin-top: 8px;
    border-radius: 10px;
    border: 1px solid #7fcdef;
    box-shadow: 0 10px 28px rgba(31, 45, 61, 0.18);
    padding: 6px 0;
    min-width: 180px;
}
body.login .hm-right .user-menu > li > a {
    padding: 9px 16px;
    color: #1f2d3d;
    font-size: 13px;
}
body.login .hm-right .user-menu > li > a i.fa {
    color: #ff675c;
    width: 18px;
    margin-right: 6px;
    text-align: center;
}
body.login .hm-right .user-menu > li > a:hover {
    background: #ffd600;
    color: #1f2d3d;
}
body.login .hm-right .user-menu > li.divider {
    background: #eef0f2;
    margin: 4px 0;
}

body.login .hm-right .sidebar-shortcuts {
    padding: 0;
    margin: 0;
    height: auto;
    line-height: normal;
    display: flex;
    align-items: center;
    background: transparent;
}
body.login .hm-right .sidebar-shortcuts-large {
    width: auto;
    background: transparent;
    padding: 0;
    display: flex;
    gap: 8px;
    line-height: normal;
}
body.login .hm-right .sidebar-shortcuts-mini {
    display: none !important;
}
body.login .hm-icon-btn,
body.login .hm-icon-btn:focus {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: #ff675c !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    line-height: 1;
    font-size: 16px;
    box-shadow: 0 1px 2px rgba(31, 45, 61, 0.08);
    transition: all 0.15s;
}
body.login .hm-icon-btn i.fa {
    margin: 0;
    font-size: 16px;
    line-height: 1;
}
body.login .hm-icon-btn:hover {
    background: #ffd600 !important;
    border-color: #ffd600 !important;
    color: #1f2d3d !important;
    transform: translateY(-1px);
}
body.login .hm-icon-btn-exit:hover {
    background: #ff675c !important;
    border-color: #ff675c !important;
    color: #ffffff !important;
}

/* --- Breadcrumbs (black strip, as in the original identity) ------------ */
body.login .main-content .breadcrumbs {
    background: #111111 !important;
    border-bottom: 3px solid #ff675c;
    min-height: 44px;
    line-height: 44px;
    padding: 0 12px 0 20px;
}
body.login .main-content .breadcrumbs .breadcrumb {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 44px;
    background: transparent;
}
body.login .breadcrumb li,
body.login .breadcrumb li span {
    padding: 0 !important;
    font-size: 13px;
    color: #cfd8dc;
    font-weight: 500;
    letter-spacing: 0.2px;
}
body.login .breadcrumb li.active span {
    color: #ffffff;
    font-weight: 700;
}
body.login .breadcrumb > li + li:before {
    content: "\f054";
    font-family: FontAwesome;
    font-size: 9px;
    color: #ff675c;
    padding: 0 10px;
    top: -1px;
}
body.login .breadcrumb .home-icon {
    color: #ffd600;
    margin-right: 6px;
    font-size: 14px;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 991px) {
    body.login .hm-center .hm-chip[title="País"],
    body.login .hm-center .hm-chip[title="Hora"] {
        display: none;
    }
}
@media (max-width: 767px) {
    body.login #navbar { height: auto; }
    body.login .navbar-container { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 6px; }
    body.login .navbar-container .pull-left.hm-brand { flex: 1 1 auto; width: auto; height: 60px; border-radius: 8px; justify-content: flex-start; padding-left: 10px; }
    body.login .hm-brand .navbar-brand img { height: 48px; }
    body.login .navbar-container .pull-right.hm-right { height: auto; width: auto; }
    body.login .hm-user-info { display: none !important; }
    body.login .hm-user { padding: 4px !important; }
    body.login .hm-center { order: 3; flex: 1 1 100%; justify-content: flex-start; padding: 0; }
    body.login .hm-chip { font-size: 12px; padding: 5px 10px; }
}
