/*
Theme Name: HBSONLINE
Theme URI: https://example.com/hbsonline
Author: HBSONLINE
Author URI: https://example.com
Description: Theme HBS Corp với login bắt buộc, phân quyền theo vai trò và dashboard riêng.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hbsonline
Tags: custom-login, responsive, dashboard
*/

:root {
    --navy: #1f2f57;
    --accent: #ff8d52;
    --bg: #f4f6fb;
    --card: #ffffff;
    --border: #dce0eb;
    --text: #232a3d;
    --muted: #6c728d;
    --green: #25a676;
    --blue: #3b7be1;
    --amber: #ffb157;
    --red: #d63f5a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Be Vietnam Pro', sans-serif;
    background: var(--bg);
    color: var(--text);
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.hbs-auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(160deg, #0d1a4a 0%, #132a6b 55%, #1b3a8a 100%);
}

.hbs-auth-box {
    width: min(440px, 100%);
    padding: 38px 42px 34px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.hbs-auth-brand {
    margin-bottom: 24px;
}

.hbs-auth-logo {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    margin: 0 auto 2px;
}

.hbs-auth-logo .custom-logo-link,
.hbs-auth-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hbs-auth-logo > span {
    color: #27487d;
    font-size: 24px;
    font-weight: 800;
}

.hbs-auth-brand h1 {
    margin: 0;
    color: #27487d;
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
}

.hbs-auth-brand p {
    margin: 6px 0 2px;
    color: #27487d;
    font-size: 17px;
    font-weight: 800;
}

.hbs-auth-brand small {
    display: block;
    color: #8b90ab;
    font-size: 11px;
}

.hbs-auth-form {
    text-align: left;
}

#hbs-login-form {
    display: block;
}

.hbs-auth-error {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid #f1b8c3;
    border-radius: 10px;
    background: #fff1f3;
    color: #a5213b;
    font-size: 12.5px;
    line-height: 1.5;
}

#hbs-login-form label {
    display: block;
    color: var(--text);
    font-size: 12.6px;
    font-weight: 600;
    margin-bottom: 6px;
}

#hbs-login-form .login-username,
#hbs-login-form .login-password {
    margin: 0 0 16px;
}

.hbs-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 18px;
    color: var(--muted);
    font-size: 12px;
}

.hbs-auth-remember {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin: 0 !important;
    color: var(--muted) !important;
    cursor: pointer;
}

.hbs-auth-remember input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #27487d;
}

.hbs-auth-options a {
    color: #27487d;
    font-weight: 600;
}

.hbs-auth-options a:hover {
    text-decoration: underline;
}

#hbs-login-form input[type="text"],
#hbs-login-form input[type="password"] {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #eaecf5;
    border-radius: 10px;
    background: #f6f7fb;
    font-size: 13.5px;
}

#hbs-login-form input[type="submit"] {
    width: 100%;
    border: none;
    border-radius: 11px;
    background: #27487d;
    color: #fff;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

#hbs-login-form input[type="submit"]:hover {
    background: #1b3560;
}

.hbs-auth-address {
    margin: 18px 0 0;
    color: #8b90ab;
    font-size: 11.8px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 760px) {
    .hbs-auth-screen {
        padding: 20px;
    }

    .hbs-auth-box {
        padding: 32px 28px 28px;
    }
}

.hbs-panel__sub {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.hbs-order-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.hbs-order-toolbar__left {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.hbs-order-search,
.hbs-order-filter {
    min-width: 220px;
    flex: 1;
}

.hbs-order-search input,
.hbs-order-filter select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

.hbs-order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hbs-btn {
    border: none;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.hbs-btn:hover {
    transform: translateY(-1px);
}

.hbs-btn--primary {
    background: var(--navy);
    color: #fff;
}

.hbs-btn--accent {
    background: var(--accent);
    color: #fff;
}

.hbs-btn--ghost {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
}

.hbs-btn--sm {
    padding: 7px 11px;
    font-size: 12px;
}

.hbs-order-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.hbs-order-stat {
    background: linear-gradient(135deg, #eef4ff, #f8fbff);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}

.hbs-order-stat--blue {
    background: linear-gradient(135deg, #e8f3ff, #f8fbff);
}

.hbs-order-stat--amber {
    background: linear-gradient(135deg, #fff4e7, #fffdf9);
}

.hbs-order-stat--green {
    background: linear-gradient(135deg, #e8f8ee, #f8fffb);
}

.hbs-order-stat__label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.hbs-order-stat__value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.hbs-order-feedback {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7f8fc;
    color: var(--muted);
    font-size: 12.8px;
}

.hbs-order-table {
    width: 100%;
}

.hbs-order-actions-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hbs-order-empty {
    text-align: center;
    color: var(--muted);
    padding: 24px 12px;
}

.hbs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.hbs-badge--green {
    background: #e7f8ee;
    color: #1f8a5e;
}

.hbs-badge--blue {
    background: #eaf2ff;
    color: #2f6fd4;
}

.hbs-badge--amber {
    background: #fff4e5;
    color: #c87800;
}

.hbs-badge--red {
    background: #fde8eb;
    color: #c63a52;
}

@media (max-width: 900px) {
    .hbs-order-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hbs-order-toolbar {
        align-items: stretch;
    }

    .hbs-order-toolbar__left,
    .hbs-order-actions {
        width: 100%;
    }

    .hbs-order-stats {
        grid-template-columns: 1fr;
    }
}

.site-content {
    max-width: 980px;
    margin: 48px auto;
    padding: 0 24px;
}

.page-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 20px 56px rgba(36, 46, 88, 0.08);
}

.page-card__header {
    margin-bottom: 28px;
}

.page-title {
    margin: 0 0 12px;
    font-size: 32px;
    color: var(--text);
}

.page-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
}

.page-card__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-card__note {
    margin-top: 28px;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}


.hbs-shell {
    display: flex;
    min-height: 100vh;
    gap: 34px;
    padding: 24px 30px 32px;
    background: #f2f4fb;
}

.hbs-dashboard-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
}

.hbs-left-panel,
.hbs-right-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hbs-summary-card {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(17, 45, 91, 0.08);
    padding: 30px;
    overflow: visible;
    padding-bottom: 34px;
    position: relative;
}

.hbs-summary-card__head {
    margin-bottom: 28px;
}

.hbs-summary-card__head h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.hbs-summary-card__head small {
    color: var(--muted);
    display: inline-block;
}

.hbs-summary-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.hbs-summary-card__stats div {
    background: #f7f8fc;
    border-radius: 18px;
    padding: 18px 20px;
}

.hbs-summary-card__stats span {
    display: block;
    font-size: 32px;
    color: var(--text);
    font-weight: 800;
}

.hbs-summary-card__stats strong {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.hbs-summary-card__filters {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
    overflow: visible;
}

.hbs-summary-card__filters > div {
    display: grid;
    gap: 8px;
    overflow: visible;
}

.hbs-summary-card__filters label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hbs-summary-card__filters > div {
    display: grid;
    gap: 8px;
}

.hbs-summary-card__filters select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff;
    color: var(--text);
}

.hbs-summary-card__footer {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    background: #f7f8fc;
}

.hbs-summary-card__footer span {
    font-weight: 700;
    color: var(--text);
}

.hbs-hero-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 190px;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, #fff4e6 0%, #fff8f0 100%);
    box-shadow: 0 20px 60px rgba(17, 45, 91, 0.06);
}

.hbs-hero-pretitle {
    margin: 0 0 10px;
    color: #ff7a2f;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hbs-hero-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #1e2a4d;
}

.hbs-hero-panel p {
    margin: 0;
    color: #4b5876;
}

.hbs-hero-illustration {
    width: 118px;
    height: 118px;
    border-radius: 30px;
    background: radial-gradient(circle at top left, #ffe3bd 0%, #ffc46f 45%, #fdefe4 100%);
    position: relative;
    overflow: hidden;
}

.hbs-hero-avatar {
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hbs-hero-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hbs-profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(17, 45, 91, 0.06);
}

.hbs-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f3a78;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.hbs-status-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.hbs-status-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(17, 45, 91, 0.06);
}

.hbs-status-card strong {
    display: block;
    font-size: 32px;
    color: #1e2a4d;
}

.hbs-status-card span {
    color: #5b668e;
    font-size: 13px;
}

.hbs-status-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 123, 225, 0.12);
    font-size: 20px;
}

.hbs-status-card--red .hbs-status-card__icon {
    background: rgba(214, 63, 90, 0.16);
}

.hbs-status-card--green .hbs-status-card__icon {
    background: rgba(37, 166, 118, 0.16);
}

.hbs-status-card--orange .hbs-status-card__icon {
    background: rgba(255, 142, 66, 0.16);
}

.hbs-status-card--darkblue .hbs-status-card__icon {
    background: rgba(31, 58, 120, 0.14);
}

.hbs-financial-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.hbs-financial-card {
    padding: 22px 24px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(17, 45, 91, 0.06);
}

.hbs-financial-card span {
    display: block;
    color: #5b668e;
    margin-bottom: 12px;
    font-size: 13px;
}

.hbs-financial-card strong {
    font-size: 26px;
    color: #1e2a4d;
}

.hbs-financial-card--blue {
    border-left: 4px solid #3b7be1;
}

.hbs-financial-card--green {
    border-left: 4px solid #25a676;
}

.hbs-financial-card--red {
    border-left: 4px solid #d63f5a;
}

.hbs-panel--table {
    padding: 28px;
}

.hbs-table th,
.hbs-table td {
    padding: 16px 18px;
}

.hbs-table th {
    background: #f7f8fc;
}

.hbs-table tbody tr:hover td {
    background: #f5f8ff;
}

@media (max-width: 1180px) {
    .hbs-status-cards-grid,
    .hbs-financial-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hbs-dashboard-grid,
    .hbs-status-cards-grid,
    .hbs-financial-summary-grid {
        grid-template-columns: 1fr;
    }
}
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hbs-metric-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(17, 45, 91, 0.08);
    padding: 24px;
    min-height: 132px;
}

.hbs-metric-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 123, 225, 0.12);
    color: var(--blue);
    font-size: 18px;
}

.hbs-metric-card p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.hbs-metric-card h3 {
    margin: 0;
    font-size: 28px;
    color: var(--text);
}

.hbs-panel--table {
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(17, 45, 91, 0.08);
    border: none;
}

.hbs-panel__head h2 {
    font-size: 18px;
}

.hbs-table th,
.hbs-table td {
    padding: 16px 14px;
}

.hbs-table th {
    color: var(--muted);
    background: #f7f8fc;
}

.hbs-table tbody tr:hover td {
    background: #f5f8ff;
}

.hbs-topbar {
    padding: 22px 28px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(17, 45, 91, 0.05);
    border-bottom: none;
}

.hbs-topbar__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hbs-topbar__action {
    position: relative;
}

.hbs-topbar__notification span {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff7a2f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.hbs-sidebar__menu {
    gap: 8px;
}

.hbs-sidebar__menu-item {
    padding: 14px 18px;
    border-radius: 18px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.hbs-sidebar__menu-item.is-active {
    background: linear-gradient(180deg, #ff7a2f, #ff8f4d);
    color: #fff;
}

.hbs-sidebar__menu-item.is-active .hbs-sidebar__menu-icon {
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1100px) {
    .hbs-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hbs-sidebar {
        width: 100%;
    }
}

.hbs-sidebar {
    width: 280px;
    min-width: 280px;
    padding: 30px 20px;
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(17, 45, 91, 0.08);
}

.hbs-sidebar__menu {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 6px;
}

.hbs-sidebar__menu-item {
    min-height: 48px;
}

.hbs-sidebar__menu-item .hbs-sidebar__menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.hbs-sidebar__menu-item:hover,
.hbs-sidebar__menu-item.is-active {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}

.hbs-sidebar__profile {
    margin-top: auto;
}

.hbs-user-card {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hbs-user-card__avatar {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fc;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
}

.hbs-summary-filter-header,
.hbs-summary-filter-values,
.hbs-summary-filter-control,
.hbs-summary-filter-footer {
    margin-bottom: 16px;
}

.hbs-summary-filter-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hbs-summary-filter-values div,
.hbs-summary-filter-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hbs-summary-filter-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hbs-summary-filter-control select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff;
    color: var(--text);
}

.hbs-summary-filter-footer {
    padding: 18px 20px;
    background: #f7f8fc;
    border-radius: 18px;
}

.hbs-role-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hbs-role-card {
    background: #fff;
}

@media (max-width: 1100px) {
    .hbs-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.hbs-sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--navy), #16214f);
    color: #f4f6fb;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
}

.hbs-sidebar__brand {
    margin-bottom: 32px;
}

.hbs-sidebar__brand span {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.hbs-sidebar__brand small {
    display: block;
    margin-top: 6px;
    color: rgba(244, 246, 251, 0.75);
    font-size: 12px;
}

.hbs-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: auto;
}

.hbs-nav__item {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
    color: rgba(244, 246, 251, 0.86);
    transition: background .2s, color .2s;
}

.hbs-nav__item:hover,
.hbs-nav__item.is-active {
    background: rgba(255, 141, 82, .16);
    color: #fff;
}

.hbs-sidebar__footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hbs-sidebar__user span {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.hbs-sidebar__user small {
    display: block;
    color: rgba(244, 246, 251, 0.72);
    font-size: 12px;
}

.hbs-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    margin-top: 18px;
}

.hbs-button--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hbs-sidebar__logo {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1f2b48;
    font-weight: 800;
    margin-right: 14px;
    overflow: hidden;
    border: 1px solid rgba(31, 43, 72, 0.08);
}

.hbs-sidebar__logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hbs-sidebar__logo img,
.hbs-sidebar__logo svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.hbs-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.hbs-sidebar__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: auto;
}

.hbs-sidebar__menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    color: rgba(244, 246, 251, 0.88);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.hbs-sidebar__menu-item:hover,
.hbs-sidebar__menu-item.is-active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.hbs-sidebar__menu-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.hbs-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.hbs-avatar-wrapper,
.hbs-profile-avatar-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hbs-profile-avatar-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #f7f8fc;
}

.hbs-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.hbs-sidebar__profile span {
    display: block;
    font-weight: 700;
    color: #fff;
}

.hbs-sidebar__profile small {
    display: block;
    color: rgba(244, 246, 251, 0.72);
    font-size: 13px;
}

.hbs-search-wrap {
    flex: 1;
}

.hbs-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 18px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    max-width: 580px;
}

.hbs-search-form input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text);
    font-size: 14px;
}

.hbs-search-form button {
    border: none;
    background: var(--accent);
    color: #fff;
    border-radius: 14px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 700;
}

.hbs-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: background .2s ease;
}

.hbs-icon-button:hover {
    background: #f7f8fc;
}

.hbs-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px 14px;
}

.hbs-user-badge img,
.hbs-avatar__img,
.hbs-user-badge__img,
.hbs-profile-avatar__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.hbs-user-badge span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
}

.hbs-user-badge strong {
    font-size: 14px;
    color: var(--text);
}

.hbs-overview-panel {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.hbs-overview-card {
    border-radius: 24px;
    padding: 32px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(20, 34, 73, 0.05);
}

.hbs-overview-card--hero {
    background: linear-gradient(135deg, #fff9f2 0%, #ffe8cf 100%);
}

.hbs-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 141, 82, 0.12);
    color: var(--accent);
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 14px;
}

.hbs-overview-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: var(--navy);
}

.hbs-overview-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.hbs-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.hbs-metric-card {
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(20, 34, 73, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hbs-metric-card p {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 13px;
}

.hbs-metric-card h3 {
    margin: 0;
    font-size: 28px;
    color: var(--text);
}

.hbs-metric-card--blue {
    border-top: 4px solid #3b7be1;
}

.hbs-metric-card--red {
    border-top: 4px solid #d63f5a;
}

.hbs-metric-card--green {
    border-top: 4px solid #25a676;
}

.hbs-panel--summary,
.hbs-panel--table,
.hbs-role-panel {
    padding: 28px;
}

.hbs-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.hbs-role-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 16px 30px rgba(46, 63, 106, 0.06);
}

.hbs-role-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--text);
}

.hbs-role-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.hbs-summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hbs-summary-list div {
    background: #f7f8fc;
    border-radius: 18px;
    padding: 20px;
}

.hbs-summary-list strong {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.hbs-summary-list span {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
}

.hbs-table-wrap {
    overflow-x: auto;
}

.hbs-panel--table .hbs-table {
    min-width: 720px;
}

.hbs-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.hbs-panel__head h2 {
    margin: 0;
    font-size: 18px;
    color: var(--text);
}

.hbs-overview-grid,
.hbs-summary-list,
.hbs-grid--2 {
    gap: 20px;
}

@media (max-width: 1100px) {
    .hbs-overview-grid,
    .hbs-summary-list,
    .hbs-grid--2 {
        grid-template-columns: 1fr;
    }
}

.hbs-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    min-width: 0;
}

.hbs-content {
    padding: 28px 0 0;
}

.hbs-topbar {
    padding: 18px 28px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.hbs-topbar__left,
.hbs-topbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hbs-menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.hbs-topbar__right {
    margin-left: auto;
}

.hbs-user-badge__avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(17, 45, 91, 0.08);
}

.hbs-user-badge__avatar img,
.hbs-user-badge__avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hbs-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin: 24px 0 12px;
}

.hbs-page-header .hbs-title {
    margin: 0;
    font-size: 32px;
}

.hbs-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hbs-title {
    margin: 0;
    font-size: 28px;
    color: var(--text);
}

.hbs-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.hbs-topbar__actions {
    display: flex;
    align-items: center;
}

.hbs-pill {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.hbs-content {
    padding: 26px 30px 40px;
}

.hbs-grid {
    display: grid;
    gap: 18px;
}

.hbs-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hbs-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hbs-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hbs-card,
.hbs-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(46, 63, 106, 0.06);
}

.hbs-card__label {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.hbs-card__value {
    margin: 0;
    font-size: 28px;
    color: var(--text);
}

.hbs-card__meta {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.hbs-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.hbs-panel__head h2 {
    margin: 0;
    font-size: 16px;
}

.hbs-link {
    color: var(--blue);
    font-weight: 700;
}

.hbs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.hbs-table th,
.hbs-table td {
    padding: 14px 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.hbs-table th {
    background: #f7f8fc;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hbs-table tbody tr:hover td {
    background: #fafbff;
}

.hbs-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hbs-badge--green {
    background: rgba(37, 166, 118, 0.12);
    color: var(--green);
}

.hbs-badge--blue {
    background: rgba(59, 123, 225, 0.12);
    color: var(--blue);
}

.hbs-badge--amber {
    background: rgba(255, 177, 87, 0.14);
    color: var(--amber);
}

.hbs-badge--gray {
    background: rgba(108, 114, 141, 0.16);
    color: var(--muted);
}

.hbs-quote-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 16px;
}

.hbs-quote-filter,
.hbs-quote-action {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
}

.hbs-quote-filter.is-active,
.hbs-quote-action {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.hbs-quote-action--danger {
    border-color: var(--red);
    background: var(--red);
}

#hbs-quote-search {
    width: min(300px, 100%);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 9px 11px;
}

.hbs-footer {
    padding: 16px 28px;
    background: #fff;
    border-top: 1px solid var(--border);
}

.hbs-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 1100px) {
    .hbs-grid--4,
    .hbs-grid--3,
    .hbs-grid--2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hbs-shell {
        flex-direction: column;
    }
    .hbs-sidebar {
        width: 100%;
        padding: 20px;
    }
    .hbs-topbar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Dashboard layout overrides */
.hbs-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    gap: 28px;
    padding: 28px;
    background: #eef1f8;
}

.hbs-sidebar {
    width: 280px;
    min-width: 280px;
    min-height: calc(100vh - 56px);
    padding: 32px 24px;
    border-radius: 34px;
    background: linear-gradient(180deg, #16224e 0%, #1f3a78 100%);
    color: #f4f6fb;
    display: flex;
    flex-direction: column;
    box-shadow: 0 35px 90px rgba(17, 45, 91, 0.16);
    position: sticky;
    top: 28px;
    align-self: flex-start;
}

.hbs-sidebar__menu-wrap {
    flex: 1;
    overflow: hidden;
    min-height: 0;
    margin-top: 28px;
}

.hbs-sidebar__menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hbs-sidebar__menu-title {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
}

.hbs-sidebar__menu-count {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.hbs-sidebar__menu {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-height: calc(100vh - 360px);
    overflow-y: auto;
    padding-right: 8px;
}

.hbs-sidebar__group {
    display: grid;
    gap: 12px;
}

.hbs-sidebar__group-title {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hbs-sidebar__menu-item.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hbs-sidebar__menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hbs-sidebar__menu::-webkit-scrollbar {
    width: 8px;
}

.hbs-sidebar__menu::-webkit-scrollbar-track {
    background: transparent;
}

.hbs-sidebar__menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.hbs-sidebar__menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    color: rgba(244, 246, 251, 0.92);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.hbs-sidebar__menu-item:hover,
.hbs-sidebar__menu-item.is-active {
    background: rgba(255, 255, 255, 0.12);
}

.hbs-sidebar__menu-item.is-active {
    color: #fff;
}

.hbs-sidebar__menu-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.hbs-sidebar__footer {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hbs-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
}

.hbs-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.hbs-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
}

.hbs-button--ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hbs-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 24px;
}

.hbs-topbar {
    padding: 20px 26px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(17, 45, 91, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.hbs-topbar__left,
.hbs-topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hbs-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f7ff;
    border-radius: 18px;
    padding: 12px 14px;
    border: 1px solid #e7eaf3;
    max-width: 640px;
    width: 100%;
}

.hbs-search-form input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: #1f2a46;
    padding: 0;
}

.hbs-search-form button {
    border: none;
    border-radius: 14px;
    background: #ff8d52;
    color: #fff;
    min-width: 108px;
    padding: 12px 18px;
    cursor: pointer;
}

.hbs-topbar__action {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f5f7ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.hbs-topbar__notification {
    position: relative;
}

.hbs-topbar__notification span {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff7a2f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.hbs-user-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 20px;
    background: #fff;
    border: none;
    box-shadow: 0 12px 32px rgba(17, 45, 91, 0.08);
}

.hbs-user-badge--menu {
    cursor: default;
}

.hbs-user-badge__avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hbs-user-badge__avatar img,
.hbs-user-badge__avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hbs-user-badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #1f3a78;
    color: #fff;
    font-weight: 700;
}

.hbs-user-badge__toggle {
    background: transparent;
    border: none;
    color: #1f2a46;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.hbs-user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 190px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(17, 45, 91, 0.12);
    border: none !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
}

.hbs-user-menu.is-open {
    display: flex;
}

.hbs-user-menu__item {
    display: block;
    padding: 14px 16px;
    color: #1f2a46;
    text-decoration: none;
    border: none !important;
    outline: none;
    box-shadow: none;
    background: transparent;
    transition: background 0.2s ease;
}

.hbs-user-menu__item:focus {
    outline: none;
}

.hbs-user-menu__item:hover {
    background: #f5f7ff;
}

.hbs-page-header {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.hbs-page-header .hbs-title {
    margin: 0;
    font-size: 32px;
    color: #1f2a46;
}

.hbs-kicker {
    margin: 0 0 8px;
    color: #2b5be3;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hbs-content {
    padding: 0;
}

.hbs-dashboard-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
}

.hbs-left-panel,
.hbs-right-panel {
    display: grid;
    gap: 24px;
}

.hbs-hero-panel {
    min-height: 210px;
}

.hbs-status-cards-grid,
.hbs-financial-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hbs-panel--table {
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(17, 45, 91, 0.08);
}

.hbs-table-wrap {
    overflow-x: auto;
}

.hbs-panel--table .hbs-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.hbs-panel--table .hbs-table th,
.hbs-panel--table .hbs-table td {
    padding: 18px 16px;
    border: none;
}

.hbs-panel--table .hbs-table th {
    background: #f7f8fc;
    color: #7a83a8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hbs-panel--table .hbs-table tbody tr td {
    background: #fff;
    border-radius: 18px;
}

@media (max-width: 1180px) {
    .hbs-dashboard-grid,
    .hbs-status-cards-grid,
    .hbs-financial-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hbs-shell {
        flex-direction: column;
        padding: 18px;
    }
    .hbs-sidebar {
        width: 100%;
        min-width: auto;
    }
    .hbs-topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .hbs-search-form {
        width: 100%;
    }
}

/* Dashboard final overrides */
.hbs-shell {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
    gap: 28px;
    padding: 28px;
    background: #eef1f8;
}

.hbs-sidebar {
    width: 280px;
    min-width: 280px;
    min-height: calc(100vh - 56px);
    padding: 32px 24px;
    border-radius: 34px;
    background: linear-gradient(180deg, #16224e 0%, #1f3a78 100%);
    color: #f4f6fb;
    display: flex;
    flex-direction: column;
    box-shadow: 0 35px 90px rgba(17, 45, 91, 0.16);
    position: sticky;
    top: 28px;
    align-self: flex-start;
}

.hbs-sidebar__menu-wrap {
    flex: 1;
    overflow: hidden;
    min-height: 0;
    margin-top: 28px;
}

.hbs-sidebar__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    padding-right: 8px;
}

.hbs-sidebar__menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    color: rgba(244, 246, 251, 0.92);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hbs-sidebar__menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.hbs-sidebar__menu-item.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hbs-sidebar__menu-item.is-active .hbs-sidebar__menu-icon {
    background: rgba(255, 255, 255, 0.18);
}

.hbs-sidebar__menu-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.hbs-sidebar__footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hbs-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
}

.hbs-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.hbs-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
}

.hbs-button--ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hbs-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 24px;
}

.hbs-topbar {
    padding: 20px 26px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(17, 45, 91, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.hbs-topbar__left,
.hbs-topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hbs-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f7ff;
    border-radius: 18px;
    padding: 12px 14px;
    border: 1px solid #e7eaf3;
    max-width: 640px;
    width: 100%;
}

.hbs-search-form input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: #1f2a46;
    padding: 0;
}

.hbs-search-form button {
    border: none;
    border-radius: 14px;
    background: #ff8d52;
    color: #fff;
    min-width: 108px;
    padding: 12px 18px;
    cursor: pointer;
}

.hbs-topbar__action {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f5f7ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.hbs-page-header {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.hbs-page-header .hbs-title {
    margin: 0;
    font-size: 32px;
    color: #1f2a46;
}

.hbs-kicker {
    margin: 0 0 8px;
    color: #2b5be3;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hbs-content {
    padding: 0;
}

.hbs-dashboard-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
}

.hbs-left-panel,
.hbs-right-panel {
    display: grid;
    gap: 24px;
}

.hbs-status-cards-grid,
.hbs-financial-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hbs-panel--table {
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(17, 45, 91, 0.08);
}

.hbs-table-wrap {
    overflow-x: auto;
}

.hbs-panel--table .hbs-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.hbs-panel--table .hbs-table th,
.hbs-panel--table .hbs-table td {
    padding: 18px 16px;
    border: none;
}

.hbs-panel--table .hbs-table tbody tr td {
    background: #fff;
    border-radius: 18px;
}

@media (max-width: 1180px) {
    .hbs-dashboard-grid,
    .hbs-status-cards-grid,
    .hbs-financial-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hbs-shell {
        flex-direction: column;
        padding: 18px;
    }
    .hbs-sidebar {
        width: 100%;
        min-width: auto;
        position: static;
        top: auto;
    }
    .hbs-topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .hbs-search-form {
        width: 100%;
    }
}

.hbs-button--primary {
    display: inline-flex;
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #111 !important;
}

.hbs-button--primary:hover {
    background: #f2f2f2 !important;
}

.hbs-document-search,
.hbs-document-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 10px 12px;
}

.hbs-document-search {
    max-width: 300px;
}

.hbs-document-form {
    display: grid;
    gap: 8px;
}

.hbs-document-form label {
    font-size: 13px;
    font-weight: 600;
}

.hbs-document-form input[type="file"] {
    padding: 8px;
}

.hbs-document-form__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.hbs-document-form__message {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 640px) {
    .hbs-panel__head:has(.hbs-document-search) {
        align-items: stretch;
        flex-direction: column;
    }

    .hbs-document-search {
        max-width: none;
    }
}

/* Collapsed dashboard sidebar */
.hbs-sidebar {
    transition: width 0.25s ease, min-width 0.25s ease, padding 0.25s ease;
}

.hbs-shell.is-sidebar-collapsed .hbs-sidebar {
    width: 88px;
    min-width: 88px;
    padding: 24px 16px;
}

.hbs-shell.is-sidebar-collapsed .hbs-sidebar__brand {
    width: 100%;
    gap: 0;
    justify-content: center;
}

.hbs-shell.is-sidebar-collapsed .hbs-sidebar__brand strong,
.hbs-shell.is-sidebar-collapsed .hbs-sidebar__brand small,
.hbs-shell.is-sidebar-collapsed .hbs-sidebar__menu-header,
.hbs-shell.is-sidebar-collapsed .hbs-sidebar__group-title,
.hbs-shell.is-sidebar-collapsed .hbs-sidebar__footer {
    display: none;
}

.hbs-shell.is-sidebar-collapsed .hbs-sidebar__logo {
    flex: 0 0 52px;
    margin-right: 0;
}

.hbs-sidebar__brand-details {
    min-width: 0;
}

.hbs-sidebar__brand-title {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hbs-sidebar__brand-role {
    display: block;
    margin-top: 4px;
    color: #8fa9e8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.hbs-shell.is-sidebar-collapsed .hbs-sidebar__menu-wrap {
    margin-top: 28px;
}

.hbs-shell.is-sidebar-collapsed .hbs-sidebar__menu {
    max-height: calc(100vh - 176px);
    padding-right: 0;
}

.hbs-shell.is-sidebar-collapsed .hbs-sidebar__group {
    justify-items: center;
}

.hbs-shell.is-sidebar-collapsed .hbs-sidebar__menu-item {
    justify-content: center;
    padding: 14px 0;
    font-size: 0;
    background: transparent;
}

.hbs-shell.is-sidebar-collapsed .hbs-sidebar__menu-icon {
    font-size: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.hbs-shell.is-sidebar-collapsed .hbs-sidebar__menu-item.is-active {
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 900px) {
    .hbs-shell.is-sidebar-collapsed .hbs-sidebar {
        width: 100%;
        min-width: auto;
        padding: 20px;
    }
}
