@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root{

    --dh-bg:#F8FAFC;
    --dh-card:#FFFFFF;

    --dh-border:#E2E8F0;

    --dh-text:#0F172A;
    --dh-text-soft:#475569;
    --dh-text-muted:#64748B;

    --dh-primary:#2563EB;
    --dh-primary-dark:#1D4ED8;

    --dh-success:#16A34A;
    --dh-danger:#DC2626;

    --dh-sidebar:#0F172A;
    --dh-sidebar-active:#172554;

    /* Global Density & Sizing System (~80-90% Compact ERP Baseline) */
    --dh-sidebar-width: 240px;
    --dh-header-height: 48px;
    --dh-content-padding: 12px 18px;
    --dh-card-radius: 12px;
    --dh-card-padding: 12px 14px;
    --dh-input-height: 32px;
    --dh-btn-height: 32px;
    --dh-font-size-base: 12px;
    --dh-font-size-sm: 11px;
    --dh-font-size-xs: 10px;
    --dh-font-size-title: 18px;
    --dh-font-size-subtitle: 12px;
    --dh-gap-grid: 10px;

}

/* =========================
   RESET
========================= */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html,
body{

    width:100%;
    height:100%;

}

body{

    font-family:'Plus Jakarta Sans',sans-serif;

    background:var(--dh-bg);

    color:var(--dh-text);

    overflow-y:auto;
overflow-x:hidden;

}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar{

    width:6px;
    height:6px;

}

::-webkit-scrollbar-thumb{

    background:#CBD5E1;
    border-radius:999px;

}

/* =========================
   APP LAYOUT
========================= */

.dh-layout{

    display:flex;

    width:100vw;
    height:100vh;

    overflow:hidden;

}

.dh-main{

    flex:1;

    display:flex;
    flex-direction:column;

    min-width:0;

    height:100vh;

    background:var(--dh-bg);

    overflow:auto;

}

.content{

    flex:1;

    overflow-y:auto;
    overflow-x:hidden;

}


/* =========================
   TOPBAR
========================= */

.topbar{

    height:var(--dh-header-height, 48px);

    background:#FFFFFF;

    border-bottom:1px solid var(--dh-border);

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 18px;

    flex-shrink:0;

}

.firm-dropdown{
    position:relative;
}

.firm-switch{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:6px 12px;
    background:#F8FAFC;
    border:1px solid #CBD5E1;
    border-radius:8px;
    cursor:pointer;
    user-select:none;
    transition:all .15s ease-in-out;
    box-shadow:0 1px 2px rgba(0,0,0,.04);
}

.firm-switch:hover{
    background:#F1F5F9;
    border-color:#94A3B8;
    box-shadow:0 2px 4px rgba(0,0,0,.06);
}

.firm-dropdown.open .firm-switch,
.firm-switch:active{
    background:#E2E8F0;
    border-color:#64748B;
}

.firm-switch .firm-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#475569;
}

.firm-name{
    font-size:13px;
    font-weight:700;
    color:#0F172A;
    letter-spacing:-0.01em;
    max-width:200px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.firm-badge-tag{
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
    padding:2px 6px;
    background:#E0F2FE;
    color:#0284C7;
    border-radius:4px;
    letter-spacing:0.03em;
}

.firm-arrow{
    width:14px;
    height:14px;
    color:#64748B;
    transition:transform .2s ease;
}

.firm-dropdown.open .firm-arrow{
    transform:rotate(180deg);
}

.firm-menu{
    position:absolute;
    top:calc(100% + 6px);
    left:0;
    min-width:250px;
    background:#FFFFFF;
    border:1px solid #E2E8F0;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 10px 25px -5px rgba(15,23,42,.12), 0 8px 10px -6px rgba(15,23,42,.08);
    z-index:100;
    padding:4px 0;
}

.firm-menu-header{
    padding:8px 12px 6px;
    font-size:11px;
    font-weight:700;
    color:#64748B;
    text-transform:uppercase;
    letter-spacing:.05em;
    border-bottom:1px solid #F1F5F9;
    margin-bottom:4px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.firm-option{
    padding:8px 12px;
    font-size:12.5px;
    cursor:pointer;
    transition:.15s;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    color:#1E293B;
}

.firm-option:hover{
    background:#F8FAFC;
    color:#0284C7;
}

.firm-option.active{
    background:#F0F9FF;
    color:#0284C7;
    font-weight:600;
}

.firm-option-left{
    display:flex;
    align-items:center;
    gap:8px;
    overflow:hidden;
}

.firm-option-name{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12.5px;
}

.firm-option-role{
    font-size:10px;
    font-weight:600;
    padding:1px 5px;
    border-radius:3px;
    background:#F1F5F9;
    color:#64748B;
    text-transform:uppercase;
}

.firm-option.active .firm-option-role{
    background:#E0F2FE;
    color:#0284C7;
}

.firm-check-icon{
    width:15px;
    height:15px;
    color:#0284C7;
    flex-shrink:0;
}

.hidden{

    display:none;

}

/* =========================
   COMMON CARDS
========================= */

.dh-card{

    background:#FFFFFF;

    border:1px solid var(--dh-border);

    border-radius:var(--dh-card-radius, 16px);

    box-shadow:
    0 1px 2px rgba(15,23,42,.04);

}

/* =========================
   BUTTONS
========================= */

.dh-btn{

    height:var(--dh-btn-height, 38px);

    border:none;

    border-radius:10px;

    padding:0 15px;

    font-size:11.5px;
    font-weight:700;

    cursor:pointer;

    transition:.2s;

}

.dh-btn:hover{

    transform:translateY(-1px);

}

.dh-btn-primary{

    background:var(--dh-primary);

    color:#FFFFFF;

    box-shadow:
    0 6px 16px rgba(37,99,235,.16);

}

.dh-btn-success{

    background:var(--dh-success);

    color:#FFFFFF;

}

.dh-btn-light{

    background:#FFFFFF;

    color:var(--dh-text-soft);

    border:1px solid var(--dh-border);

}

/* =========================
   INPUTS
========================= */

.dh-input{

    width:100%;
    height:var(--dh-input-height, 38px);

    border:1px solid #CBD5E1;

    border-radius:10px;

    background:#FFFFFF;

    padding:0 12px;

    font-size:12.5px;
    font-weight:600;

    color:var(--dh-text);

    outline:none;

    transition:.2s;

}

.dh-input:focus{

    border-color:#93C5FD;

    box-shadow:
    0 0 0 4px rgba(37,99,235,.08);

}

.dh-input::placeholder{

    color:#64748B;

}

textarea.dh-input{

    height:auto;

    padding:10px 12px;

}

/* =========================
   LABELS
========================= */

.dh-label{

    font-size:9.5px;
    font-weight:800;

    text-transform:uppercase;

    letter-spacing:.08em;

    color:#64748B;

}

/* =========================
   TABLES
========================= */

.dh-table{

    width:100%;

    border-collapse:collapse;

}

.dh-table thead{

    background:#F8FAFC;

}

.dh-table thead th{

    padding:10px 14px;

    font-size:9.5px;
    font-weight:800;

    letter-spacing:.06em;
    text-transform:uppercase;

    color:#64748B;

    text-align:left;

}

.dh-table tbody td{

    padding:10px 14px;

    border-top:1px solid #F1F5F9;

    font-size:12.5px;
    font-weight:600;

    color:#334155;

}

/* =========================
   STATUS PILLS
========================= */

.status-pill{

    padding:4px 10px;

    border-radius:999px;

    font-size:10px;
    font-weight:800;

    text-transform:uppercase;

}

.status-success{

    background:#DCFCE7;
    color:#166534;

}

.status-danger{

    background:#FEE2E2;
    color:#B91C1C;

}

.status-warning{

    background:#FEF3C7;
    color:#92400E;

}

/* =========================
   UTILITIES
========================= */

.text-muted{

    color:#64748B;

}

.text-soft{

    color:#475569;

}

.text-danger{

    color:#DC2626;

}

.text-success{

    color:#16A34A;

}

.custom-scrollbar{

    scrollbar-width:thin;

}

.btn-primary {

    height: var(--dh-btn-height, 38px);

    padding: 0 15px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: white;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.btn-primary:hover {

    background: #1d4ed8;
}


.btn-light {

    height: var(--dh-btn-height, 38px);

    padding: 0 15px;

    border-radius: 10px;

    border: 1px solid #dbe2ea;

    background: white;

    color: #0f172a;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.btn-light:hover {

    background: #f8fafc;
}


.btn-danger {

    height: var(--dh-btn-height, 38px);

    padding: 0 15px;

    border: none;

    border-radius: 10px;

    background: #ef4444;

    color: white;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}