/* ==== inline-block-1 (extracted from salaries-rent.php inline <style>) ==== */
body{background:linear-gradient(180deg,#f8fbff,#eef4ff)}
.sr-shell{padding:18px 0 44px}
.sr-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.sr-brand{display:flex;align-items:center;gap:13px;color:inherit;text-decoration:none}
.sr-logo,.sr-fallback{width:66px;height:66px;border-radius:20px;object-fit:cover;background:#fff;border:1px solid #e5e7eb;box-shadow:0 10px 28px rgba(15,23,42,.08)}
.sr-fallback{display:grid;place-items:center;color:#fff;font-weight:1000;background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed)}
.sr-title h1{margin:0;font-size:30px;letter-spacing:-.03em;color:#0f172a}
.sr-title p{margin:5px 0 0;color:#64748b;font-weight:800}

.sr-summary{display:grid;grid-template-columns:1.2fr repeat(5,minmax(0,1fr));gap:10px;margin-bottom:16px}
.sr-big,.sr-stat{border-radius:22px;padding:15px;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.sr-big{color:#fff;background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed)}
.sr-big small,.sr-stat small{display:block;text-transform:uppercase;letter-spacing:.45px;font-size:10px;font-weight:1000}
.sr-big strong{display:block;margin-top:8px;font-size:32px;line-height:1.06}
.sr-stat{border:1px solid #e5e7eb;background:#f8fafc}
.sr-stat:nth-child(2){background:#ecfdf5}.sr-stat:nth-child(3){background:#fff7ed}.sr-stat:nth-child(4){background:#eff6ff}.sr-stat:nth-child(5){background:#f5f3ff}.sr-stat:nth-child(6){background:#fef2f2}
.sr-stat small{color:#64748b}.sr-stat strong{display:block;margin-top:7px;font-size:21px;color:#0f172a;line-height:1.15}
.sr-section{background:#fff;border:1px solid #e5e7eb;border-radius:26px;margin-bottom:14px;box-shadow:0 14px 36px rgba(15,23,42,.07);overflow:hidden}
.sr-section-head{width:100%;border:0;background:linear-gradient(135deg,#fff,#f8fbff);display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;padding:16px;cursor:pointer}
.sr-section-head strong{display:block;font-size:21px;color:#0f172a}.sr-section-head small{display:block;color:#64748b;font-weight:800;margin-top:3px}
.sr-section-pill{background:#111827;color:#fff;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:1000;white-space:nowrap}
.sr-section-body{display:none;border-top:1px solid #e5e7eb;padding:16px;background:#fff}
.sr-section.open .sr-section-body{display:block}
.sr-subtitle{display:flex;align-items:center;gap:9px;margin:14px 0 10px}
.sr-subtitle strong{font-size:17px;color:#0f172a}
.sr-subtitle span{background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:1000}
.sr-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.sr-field label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.35px;font-weight:1000;color:#64748b;margin-bottom:5px}
.sr-field input,.sr-field textarea{width:100%;min-height:44px;border:1px solid #cbd5e1;border-radius:14px;padding:0 11px;font-weight:850;background:#fff}
.sr-field textarea{padding:11px;min-height:92px;resize:vertical}.sr-field.full{grid-column:1/-1}
.sr-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.staff-list,.month-list{display:grid;gap:10px}
.staff-card,.month-card{border:1px solid #e5e7eb;border-radius:18px;background:#fff;overflow:hidden}
.staff-head,.month-head{width:100%;border:0;background:linear-gradient(135deg,#f8fafc,#eef2ff);padding:13px;display:flex;justify-content:space-between;gap:10px;align-items:flex-start;text-align:left;cursor:pointer}
.staff-head strong,.month-head strong{display:block;color:#0f172a}.staff-head small,.month-head small{display:block;color:#64748b;margin-top:3px;font-weight:800}
.staff-salary-pill,.month-pill{border-radius:999px;background:#16a34a;color:#fff;padding:7px 10px;font-size:12px;font-weight:1000;white-space:nowrap}
.staff-rider-badge{display:inline-flex;align-items:center;gap:3px;border-radius:999px;background:#eef2ff;color:#4338ca;border:1px solid #c7d2fe;padding:2px 9px;font-size:11px;font-weight:1000;margin-left:8px;white-space:nowrap;vertical-align:middle}
.month-pill{background:#111827}
.staff-body,.month-body{display:none;border-top:1px solid #e5e7eb;padding:13px}
.staff-card.open .staff-body,.month-card.open .month-body{display:block}
.staff-detail-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-bottom:12px}
.staff-box,.month-box-inner{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:10px;font-size:12px;font-weight:850;line-height:1.4}
.salary-save-row{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:end;background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:11px}
.expense-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}
.extra-grid{display:grid;gap:9px}
.extra-row{display:grid;grid-template-columns:1.3fr .7fr;gap:9px;align-items:center}
.empty-note{border:1px dashed #cbd5e1;border-radius:18px;padding:16px;text-align:center;color:#64748b;font-weight:850;background:#f8fafc;margin-bottom:12px}
.help-note{background:#eff6ff;border:1px solid #dbeafe;color:#1d4ed8;border-radius:16px;padding:11px 12px;font-weight:850;margin-bottom:12px;font-size:13px}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:200;background:#111827;color:#fff;border-radius:999px;padding:11px 15px;box-shadow:0 18px 40px rgba(15,23,42,.28);display:none;font-weight:1000}
.toast.show{display:block}
@media(max-width:980px){.sr-summary{grid-template-columns:1fr 1fr}.sr-big{grid-column:1/-1}.staff-detail-grid{grid-template-columns:1fr}.expense-grid{grid-template-columns:1fr}}
@media(max-width:680px){.sr-shell{padding:12px 0 32px}.sr-head{display:grid;grid-template-columns:1fr;gap:10px}.sr-brand{background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed);color:#fff;border-radius:22px;padding:12px;box-shadow:0 16px 34px rgba(37,99,235,.22)}.sr-logo,.sr-fallback{width:56px;height:56px;border-radius:17px}.sr-title h1{font-size:23px;color:#fff}.sr-title p{font-size:12px;color:rgba(255,255,255,.82)}.sr-summary{grid-template-columns:1fr 1fr;gap:8px}.sr-big{grid-column:1/-1;border-radius:20px}.sr-big strong{font-size:27px}.sr-stat{border-radius:16px;padding:10px;min-height:76px}.sr-stat strong{font-size:17px}.sr-section{border-radius:22px}.sr-section-head{display:grid;grid-template-columns:1fr;gap:8px}.sr-section-head strong{font-size:19px}.sr-section-pill{width:max-content}.sr-form-grid,.expense-grid,.extra-row,.salary-save-row{grid-template-columns:1fr}.sr-actions .solid-btn,.sr-actions .ghost-btn{width:100%;justify-content:center}.staff-head,.month-head{display:grid;grid-template-columns:1fr;gap:8px}.staff-salary-pill,.month-pill{width:max-content}}

.old-month-filter{
    display:grid;
    grid-template-columns:minmax(180px,260px) auto auto minmax(0,1fr);
    gap:9px;
    align-items:end;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:12px;
    margin:12px 0 14px;
}
.old-month-filter .sr-field{margin:0}
.old-month-filter small{
    color:#64748b;
    font-weight:850;
    line-height:1.35;
    align-self:center;
}
.old-month-filter-result{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    border-radius:999px;
    padding:0 11px;
    background:#ecfdf5;
    color:#166534;
    font-size:12px;
    font-weight:1000;
}
@media(max-width:680px){
    .old-month-filter{
        grid-template-columns:1fr;
    }
    .old-month-filter button,
    .old-month-filter .ghost-btn,
    .old-month-filter .solid-btn{
        width:100%;
        justify-content:center;
    }
    .old-month-filter-result{
        justify-content:center;
        width:100%;
    }
}

.daily-report-filter{
    display:flex;
    align-items:end;
    gap:11px;
    flex-wrap:wrap;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:12px;
    margin:0 0 14px;
}
.daily-report-search-field{
    flex:1;
    min-width:220px;
    margin:0;
}
.daily-report-list{
    display:grid;
    gap:8px;
    max-height:640px;
    overflow-y:auto;
    padding-right:2px;
}
.daily-report-row{
    display:grid;
    grid-template-columns:120px 1fr;
    gap:10px;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:11px 13px;
    background:#fff;
}
.daily-report-date{
    display:flex;
    flex-direction:column;
    gap:6px;
}
.daily-report-date strong{color:#0f172a;font-size:15px}
.daily-report-pill{
    background:#111827;
    color:#fff;
    border-radius:999px;
    padding:4px 9px;
    font-size:11px;
    font-weight:1000;
    width:max-content;
}
.daily-report-items{
    display:grid;
    gap:6px;
    align-content:start;
}
.daily-report-item{
    display:grid;
    grid-template-columns:1.4fr .8fr .8fr;
    gap:8px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:7px 10px;
    font-size:12px;
    font-weight:850;
    cursor:pointer;
    transition:background .12s ease, border-color .12s ease;
}
.daily-report-item:hover{background:#eff6ff;border-color:#bfdbfe}
.daily-report-item-title{color:#0f172a}
.daily-report-item-amount{color:#16a34a;text-align:right}
.daily-report-item-time{color:#64748b;text-align:right}
.daily-report-empty{color:#94a3b8;font-weight:800;font-size:13px}

/* PAY_SALARY_V1: salary payments listed for the record only — not editable
   (no click-to-edit like other expense rows) and visually distinct so it's
   clear this figure isn't part of the day/month expense totals. */
.daily-report-item-salary{
    cursor:default;
    background:#eff6ff;
    border-color:#bfdbfe;
}
.daily-report-item-salary:hover{background:#eff6ff;border-color:#bfdbfe}
.daily-report-item-salary .daily-report-item-amount{color:#1d4ed8}
.daily-report-salary-tag{
    display:inline-block;
    margin-left:6px;
    padding:2px 7px;
    border-radius:999px;
    background:#dbeafe;
    color:#1d4ed8;
    font-size:9.5px;
    font-weight:1000;
    text-transform:uppercase;
    letter-spacing:.3px;
    vertical-align:middle;
}
@media(max-width:680px){
    .daily-report-filter{flex-direction:column;align-items:stretch}
    .daily-report-row{grid-template-columns:1fr}
    .daily-report-item{grid-template-columns:1fr;text-align:left}
    .daily-report-item-amount,.daily-report-item-time{text-align:left}
}


.db-check-box{
    background:#fff7ed;
    border:1px solid #fed7aa;
    color:#9a3412;
    border-radius:18px;
    padding:12px 14px;
    margin-bottom:14px;
    font-size:13px;
    font-weight:850;
    line-height:1.45;
}
.db-check-box strong{color:#7c2d12}
.db-check-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin-top:9px;
}
.db-check-mini{
    background:rgba(255,255,255,.72);
    border:1px solid #fed7aa;
    border-radius:14px;
    padding:9px;
}
.db-check-mini b{display:block;font-size:18px;color:#111827;margin-top:3px}
.db-check-box code{
    background:rgba(154,52,18,.08);
    border-radius:8px;
    padding:2px 5px;
    font-weight:1000;
}
.db-sample{
    margin-top:10px;
    background:#fff;
    border:1px solid #fed7aa;
    border-radius:14px;
    padding:9px;
    overflow:auto;
    max-height:180px;
    font-size:12px;
}
@media(max-width:680px){
    .db-check-grid{grid-template-columns:1fr}
}


.summary-month-filter{
    display:grid;
    grid-template-columns:minmax(190px,280px) auto auto minmax(0,1fr);
    gap:9px;
    align-items:end;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:20px;
    padding:12px;
    margin-bottom:14px;
    box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.summary-month-filter .sr-field{margin:0}
.summary-month-filter small{
    color:#64748b;
    font-weight:850;
    line-height:1.35;
    align-self:center;
}
.summary-month-filter .summary-chip{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    width:max-content;
    max-width:100%;
    border-radius:999px;
    padding:0 11px;
    background:#eff6ff;
    color:#1d4ed8;
    font-size:12px;
    font-weight:1000;
}
@media(max-width:680px){
    .summary-month-filter{
        grid-template-columns:1fr;
    }
    .summary-month-filter button,
    .summary-month-filter .ghost-btn,
    .summary-month-filter .solid-btn{
        width:100%;
        justify-content:center;
    }
    .summary-month-filter .summary-chip{
        width:100%;
        justify-content:center;
    }
}


.staff-action-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:9px;
    align-items:end;
    margin-top:10px;
}
.staff-delete-note{
    color:#991b1b;
    font-size:12px;
    font-weight:850;
    background:#fef2f2;
    border:1px solid #fecaca;
    border-radius:14px;
    padding:10px;
}
@media(max-width:680px){
    .staff-action-row{grid-template-columns:1fr}
}


/* v157 floating UX for Salaries & Rent */
.sr-action-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin:16px 0 18px;
}
.sr-action-card{
    min-height:118px;
    border:0;
    border-radius:24px;
    padding:15px;
    text-align:left;
    color:#fff;
    cursor:pointer;
    box-shadow:0 18px 38px rgba(15,23,42,.13);
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:10px;
    font:inherit;
    transition:transform .15s ease, box-shadow .15s ease;
}
.sr-action-card:hover{transform:translateY(-2px);box-shadow:0 22px 46px rgba(15,23,42,.18)}
.sr-action-card span{
    width:40px;
    height:40px;
    border-radius:15px;
    display:grid;
    place-items:center;
    background:rgba(255,255,255,.18);
    border:1px solid rgba(255,255,255,.22);
    font-size:18px;
    font-weight:1000;
}
.sr-action-card strong{display:block;font-size:17px;line-height:1.15}
.sr-action-card small{color:rgba(255,255,255,.82);font-size:12px;font-weight:900}
.sr-action-card.staff{background:linear-gradient(135deg,#0f172a,#2563eb)}
.sr-action-card.members{background:linear-gradient(135deg,#7c2d12,#f97316)}
.sr-action-card.expenses{background:linear-gradient(135deg,#14532d,#16a34a)}
.sr-action-card.previous{background:linear-gradient(135deg,#4c1d95,#7c3aed)}
.sr-modal-backdrop{
    position:fixed;
    inset:0;
    z-index:280;
    display:none;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:rgba(15,23,42,.62);
    backdrop-filter:blur(8px);
}
.sr-modal-backdrop.open{display:flex}
.sr-modal-card{
    width:100%;
    max-width:720px;
    max-height:92vh;
    background:#fff;
    border-radius:28px;
    box-shadow:0 30px 90px rgba(15,23,42,.34);
    overflow:hidden;
    display:flex;
    flex-direction:column;
    animation:srModalPop .16s ease-out;
}
.sr-modal-wide{max-width:1020px}
@keyframes srModalPop{from{opacity:.3;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.sr-modal-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:18px 20px;
    color:#fff;
    background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed);
}
.sr-modal-head h3{
    margin:0;
    font-size:22px;
    letter-spacing:-.02em;
}
.sr-modal-head button{
    border:0;
    min-height:40px;
    border-radius:14px;
    padding:0 14px;
    background:rgba(255,255,255,.15);
    color:#fff;
    font-weight:1000;
    cursor:pointer;
}
.sr-modal-body{
    padding:18px;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.sr-modal-body .help-note{
    display:none;
}
.sr-modal-body .sr-subtitle span{
    display:none;
}
.sr-modal-body .sr-subtitle{
    margin-top:10px;
}
.sr-modal-body .staff-list,
.sr-modal-body .month-list{
    max-height:calc(92vh - 165px);
    overflow:auto;
    padding-right:4px;
}
.sr-modal-body .month-card:last-child,
.sr-modal-body .staff-card:last-child{
    margin-bottom:24px;
}
.sr-modal-body .staff-head,
.sr-modal-body .month-head{
    border-radius:18px;
}
.sr-modal-body .staff-card,
.sr-modal-body .month-card{
    box-shadow:0 10px 24px rgba(15,23,42,.05);
}
@media(max-width:980px){
    .sr-action-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
    .sr-action-grid{
        grid-template-columns:1fr 1fr;
        gap:9px;
        margin-top:12px;
    }
    .sr-action-card{
        min-height:96px;
        border-radius:20px;
        padding:12px;
    }
    .sr-action-card span{
        width:34px;
        height:34px;
        border-radius:13px;
        font-size:15px;
    }
    .sr-action-card strong{font-size:14px}
    .sr-modal-backdrop{
        align-items:flex-start;
        padding:10px;
    }
    .sr-modal-card{
        max-height:94vh;
        border-radius:22px;
    }
    .sr-modal-head{
        padding:14px;
    }
    .sr-modal-head h3{
        font-size:18px;
    }
    .sr-modal-head button{
        min-height:36px;
        padding:0 11px;
    }
    .sr-modal-body{
        padding:13px;
    }
    .sr-modal-body .staff-list,
    .sr-modal-body .month-list{
        max-height:calc(94vh - 135px);
    }
}


/* v158 dynamic other expense boxes */
.sr-extra-titlebar{
    justify-content:space-between;
    flex-wrap:wrap;
}
.extra-add-btn{
    border:0;
    min-height:38px;
    border-radius:14px;
    padding:0 13px;
    color:#fff;
    background:linear-gradient(135deg,#111827,#2563eb);
    font-weight:1000;
    cursor:pointer;
    box-shadow:0 12px 24px rgba(37,99,235,.18);
}
.dynamic-extra-grid{
    margin-top:10px;
}
.dynamic-extra-row{
    grid-template-columns:minmax(0,1.25fr) minmax(130px,.55fr) auto!important;
    gap:9px!important;
    align-items:end!important;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:11px;
}
.extra-delete-btn{
    border:0;
    min-height:44px;
    border-radius:14px;
    padding:0 13px;
    color:#991b1b;
    background:#fee2e2;
    font-weight:1000;
    cursor:pointer;
}
.extra-delete-btn:hover{
    background:#fecaca;
}
.extra-empty-note{
    border:1px dashed #cbd5e1;
    border-radius:16px;
    padding:13px;
    background:#fff;
    color:#64748b;
    font-weight:850;
    text-align:center;
}
@media(max-width:680px){
    .sr-extra-titlebar{
        display:grid!important;
        grid-template-columns:1fr;
    }
    .extra-add-btn{
        width:100%;
        justify-content:center;
    }
    .dynamic-extra-row{
        grid-template-columns:1fr!important;
    }
    .extra-delete-btn{
        width:100%;
    }
}


/* v196 staff page assignment only */
.staff-page-assign-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:9px;
    align-items:center;
    margin-top:10px;
    border:1px solid #dbeafe;
    background:#eff6ff;
    border-radius:16px;
    padding:11px;
}
.staff-page-assign-summary{
    color:#1e40af;
    font-size:12px;
    font-weight:900;
    line-height:1.35;
}
.staff-page-assign-summary strong{
    display:block;
    color:#0f172a;
    font-size:13px;
    margin-bottom:2px;
}
.staff-page-assign-btn{
    border:0;
    min-height:42px;
    border-radius:14px;
    padding:0 12px;
    color:#fff;
    background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed);
    font-weight:1000;
    cursor:pointer;
    white-space:nowrap;
    box-shadow:0 12px 24px rgba(37,99,235,.18);
}
.staff-page-assign-panel{
    display:none;
    margin-top:10px;
    border:1px solid #dbeafe;
    border-radius:16px;
    padding:11px;
    background:linear-gradient(135deg,#fff,#eff6ff);
}
.staff-page-assign-panel.open{display:block}
.staff-page-assign-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
}
.staff-page-assign-check{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:10px;
    align-items:center;
    border:1px solid #e5e7eb;
    border-radius:15px;
    padding:10px;
    background:#fff;
    color:#0f172a;
    font-weight:900;
    box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.staff-page-assign-check input{
    width:18px;
    height:18px;
}
.staff-page-assign-actions{
    display:flex;
    justify-content:flex-end;
    gap:8px;
    margin-top:12px;
    flex-wrap:wrap;
}
@media(max-width:680px){
    .staff-page-assign-row{grid-template-columns:1fr}
    .staff-page-assign-btn{width:100%}
    .staff-page-assign-grid{grid-template-columns:1fr}
}


/* v200 passwords and staff access modal */
.sr-action-card.passwords{background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed);color:#fff}
.sr-action-card.passwords span{background:rgba(255,255,255,.18);color:#fff}
.password-row-list{display:grid;gap:10px}
.password-access-row{
    display:grid;grid-template-columns:minmax(170px,.85fr) auto minmax(160px,.75fr);
    gap:10px;align-items:end;border:1px solid #e5e7eb;border-radius:20px;padding:13px;background:#fff;box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.password-access-title strong{display:block;color:#0f172a;font-size:14px}
.password-access-title small,.password-access-staff small{display:block;color:#64748b;font-size:11px;font-weight:850;line-height:1.35;margin-top:3px}
.password-access-assign-btn{
    border:0;min-height:44px;border-radius:15px;padding:0 14px;color:#fff;background:linear-gradient(135deg,#16a34a,#22c55e);
    font-weight:1000;cursor:pointer;white-space:nowrap;box-shadow:0 12px 24px rgba(22,163,74,.18);
}
.password-access-staff{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:9px 10px}
.password-staff-panel{display:none;grid-column:1/-1;border:1px solid #dbeafe;border-radius:18px;padding:12px;background:linear-gradient(135deg,#ffffff,#eff6ff)}
.password-staff-panel.open{display:block}
.password-staff-panel-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.password-staff-panel-title strong{color:#0f172a}
.password-staff-panel-title small{display:block;color:#64748b;font-weight:850;margin-top:2px}
.password-staff-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.password-staff-check{
    display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;border:1px solid #e5e7eb;border-radius:15px;background:#fff;padding:10px;box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.password-staff-check input{width:18px;height:18px;margin-top:2px}
.password-staff-check strong{display:block;color:#0f172a;font-size:13px}
.password-staff-check small{display:block;color:#64748b;font-size:11px;font-weight:850;margin-top:2px}
.staff-password-status{display:inline-flex!important;width:max-content;border-radius:999px;padding:4px 8px;font-size:11px!important;margin-top:6px!important}
.staff-password-status.set{background:#dcfce7;color:#166534}
.staff-password-status.notset{background:#fee2e2;color:#991b1b}
.password-staff-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;flex-wrap:wrap}
.password-staff-empty{border:1px dashed #cbd5e1;border-radius:14px;padding:12px;color:#64748b;font-weight:900;background:#fff}
@media(max-width:900px){.password-access-row{grid-template-columns:1fr}.password-access-assign-btn{width:100%}.password-staff-list{grid-template-columns:1fr}}



/* vStaffFloatingDetails: saved staff member details open as a clean floating card. */
.staff-card.open .staff-body{
    display:block!important;
    position:fixed!important;
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    width:min(900px,calc(100vw - 24px))!important;
    max-height:min(88vh,760px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    z-index:120000!important;
    border:1px solid rgba(219,234,254,.95)!important;
    border-radius:28px!important;
    background:linear-gradient(180deg,#ffffff,#f8fbff)!important;
    box-shadow:0 34px 110px rgba(15,23,42,.38)!important;
    padding:16px!important;
    -webkit-overflow-scrolling:touch!important;
}
.staff-floating-title{
    position:sticky;
    top:-16px;
    z-index:2;
    margin:-16px -16px 14px;
    padding:16px 18px;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    color:#fff;
    background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed);
    border-radius:28px 28px 0 0;
}
.staff-floating-title strong{display:block;font-size:20px;color:#fff;line-height:1.15}
.staff-floating-title small{display:block;margin-top:4px;color:rgba(255,255,255,.86);font-weight:850;line-height:1.35}
.staff-floating-title .ghost-btn{background:rgba(255,255,255,.16)!important;color:#fff!important;border-color:rgba(255,255,255,.35)!important}
.staff-card.open .staff-head{box-shadow:0 0 0 3px rgba(37,99,235,.16) inset!important}
@media(max-width:700px){
    .staff-card.open .staff-body{width:calc(100vw - 16px)!important;max-height:92dvh!important;border-radius:22px!important;padding:12px!important}
    .staff-floating-title{margin:-12px -12px 12px;padding:13px 14px;border-radius:22px 22px 0 0;align-items:center}
    .staff-floating-title strong{font-size:17px}
}

/* ==== sr-navhead-v1 (extracted from salaries-rent.php inline <style>) ==== */
/* ===== NAVHEAD: burger drawer with index.php page list (all screen sizes) ===== */
.navhead-hidden-status{display:none !important;}
.bill-navhead{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    padding:0 !important;
    margin:0 0 12px !important;
    min-height:0 !important;
}
.navhead-burger{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:46px;height:46px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    cursor:pointer;
    padding:0 12px;
    flex-shrink:0;
    box-shadow:0 8px 20px rgba(0,0,0,.05);
    transition:box-shadow .15s ease, transform .15s ease;
}
.navhead-burger:hover{box-shadow:0 10px 26px rgba(0,0,0,.10);transform:translateY(-1px);}
.navhead-burger span{display:block;height:2.5px;width:100%;border-radius:3px;background:#0f172a;}
.navhead-page-title{
    font-size:16px;
    font-weight:1000;
    color:#0f172a;
    letter-spacing:-.02em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    min-width:0;
}
.navhead-lead{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}
@media(max-width:640px){
    .navhead-page-title{font-size:14px;}
    .navhead-lead{gap:9px;}
}
/* create-posts.php puts the burger on a dark gradient hero, so the dark
   default would be unreadable there. */
.cp-hero .navhead-page-title{color:#fff;}
@media print{.navhead-page-title,.navhead-lead{display:none !important;}}

/* Drawer: identical behaviour on desktop and mobile */
.navhead-links{
    position:fixed;
    top:0;left:0;bottom:0;
    width:min(300px,86vw);
    background:#fff;
    border-right:1px solid var(--line);
    box-shadow:0 0 60px rgba(0,0,0,.22);
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    flex-wrap:nowrap;
    gap:4px;
    padding:18px 12px;
    overflow-y:auto;
    z-index:99998;
    transform:translateX(-102%);
    transition:transform .22s ease;
}
.navhead-links.open{transform:translateX(0);}
.navhead-link{
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 12px;
    border-radius:12px;
    text-decoration:none;
    color:#334155;
    font-size:14px;
    font-weight:800;
    white-space:nowrap;
    transition:background .15s ease,color .15s ease;
}
.navhead-link:hover{background:#f1f5f9;color:#0f172a;}
.navhead-link.active{background:linear-gradient(135deg,#1e3a8a,#2563eb);color:#fff;}
.navhead-ico{font-size:17px;line-height:1;}
.navhead-backdrop{
    position:fixed;inset:0;
    background:rgba(15,23,42,.5);
    z-index:99997;
    opacity:0;pointer-events:none;
    transition:opacity .22s ease;
}
.navhead-backdrop.open{opacity:1;pointer-events:auto;}


/* Burger takes the place of the old logo + brand name on the left */
.sr-head{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:12px !important;
}
.navhead-burger{flex-shrink:0 !important;}
@media(max-width:640px){
}

/* v_report: action tiles (Add Rent & Bill / Add Daily Expense / Supplier
   Expenses); the base grid is repeat(4,...) which would leave them stranded
   at quarter width. */
@media(min-width:641px){
    .sr-action-grid{
        grid-template-columns:repeat(3, minmax(0,1fr)) !important;
    }
}

/* PAY_SALARY_V1: Staff Salaries list inside the Add Rent & Bill & Salaries
   modal — one row per staff member with a Pay Salary / Paid action. */
.staff-salary-month-label{
    background:#eff6ff;
    color:#1d4ed8;
    border-radius:999px;
    padding:6px 9px;
    font-size:11px;
    font-weight:1000;
    display:inline-block !important;
}
.staff-salary-pay-list{
    display:flex;
    flex-direction:column;
    gap:9px;
    max-height:320px;
    overflow:auto;
    padding-right:2px;
}
.staff-salary-empty{
    padding:16px;
    text-align:center;
    color:#64748b;
    font-size:13px;
    font-weight:700;
    background:#f8fafc;
    border-radius:14px;
}
.staff-salary-pay-row{
    display:grid;
    grid-template-columns:1fr auto auto;
    align-items:center;
    gap:10px;
    padding:11px 13px;
    border-radius:16px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
}
.staff-salary-pay-name{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:0;
}
.staff-salary-pay-name strong{
    font-size:14px;
    color:#0f172a;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.staff-salary-pay-name small{
    font-size:11px;
    color:#64748b;
    font-weight:700;
}
.staff-salary-pay-amount{
    font-size:13px;
    font-weight:1000;
    color:#0f172a;
    white-space:nowrap;
}
.staff-salary-pay-btn{
    border:0;
    min-height:36px;
    border-radius:12px;
    padding:0 13px;
    color:#fff;
    background:linear-gradient(135deg,#16a34a,#15803d);
    font-weight:1000;
    cursor:pointer;
    white-space:nowrap;
}
.staff-salary-paid-pill{
    border:0;
    min-height:36px;
    border-radius:12px;
    padding:0 13px;
    color:#166534;
    background:#dcfce7;
    font-weight:1000;
    white-space:nowrap;
    cursor:default;
}
@media(max-width:520px){
    .staff-salary-pay-row{
        grid-template-columns:1fr;
        gap:6px;
    }
    .staff-salary-pay-amount{
        order:2;
    }
    .staff-salary-pay-btn,
    .staff-salary-paid-pill{
        order:3;
        width:100%;
        text-align:center;
    }
}

/* PAY_RENT_BILL_V1: Pay Rent / Pay Bill controls next to the Rent and Bill
   amount boxes inside the Add Rent & Bill & Salaries modal. */
.rent-bill-grid .sr-field{
    display:flex;
    flex-direction:column;
    gap:7px;
}
.rent-bill-pay-row{
    min-height:20px;
}
.rent-bill-pay-btn{
    border:0;
    width:100%;
    min-height:38px;
    border-radius:12px;
    padding:0 13px;
    color:#fff;
    background:linear-gradient(135deg,#16a34a,#15803d);
    font-weight:1000;
    cursor:pointer;
}
.rent-bill-paid-pill{
    border:0;
    width:100%;
    min-height:38px;
    border-radius:12px;
    padding:0 13px;
    color:#166534;
    background:#dcfce7;
    font-weight:1000;
    cursor:default;
}
.rent-bill-error{
    display:block;
    font-size:11px;
    font-weight:800;
    color:#b91c1c;
}
.sr-field input:disabled{
    background:#f1f5f9;
    color:#64748b;
    cursor:not-allowed;
}

/* PAY_RENT_BILL_V1: paid rent/bill in the daily expenses calendar — counts
   toward totals like any other expense, but is locked (not click-to-edit)
   since it can only be corrected by editing the amount in the modal and
   paying again. */
.daily-report-item-locked{
    cursor:default;
}
.daily-report-item-locked:hover{background:#f8fafc;border-color:#e5e7eb}
.daily-report-paid-tag{
    display:inline-block;
    margin-left:6px;
    padding:2px 7px;
    border-radius:999px;
    background:#dcfce7;
    color:#166534;
    font-size:9.5px;
    font-weight:1000;
    text-transform:uppercase;
    letter-spacing:.3px;
    vertical-align:middle;
}

/* SUPPLIER_PANEL_V1: "Supplier Expenses" card — supplier list + ledger */
.supplier-list{
    display:flex;
    flex-direction:column;
    gap:9px;
    max-height:420px;
    overflow:auto;
    padding-right:2px;
}
.supplier-empty{
    padding:16px;
    text-align:center;
    color:#64748b;
    font-size:13px;
    font-weight:700;
    background:#f8fafc;
    border-radius:14px;
}
.supplier-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    width:100%;
    text-align:left;
    padding:12px 14px;
    border-radius:16px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    cursor:pointer;
    transition:background .12s ease, border-color .12s ease;
}
.supplier-row:hover{background:#eff6ff;border-color:#bfdbfe}
.supplier-row-name{display:flex;flex-direction:column;gap:2px;min-width:0}
.supplier-row-name strong{font-size:14px;color:#0f172a}
.supplier-row-name small{font-size:11px;color:#64748b;font-weight:700}
.supplier-row-due{
    border-radius:999px;
    padding:6px 11px;
    font-size:11.5px;
    font-weight:1000;
    white-space:nowrap;
    background:#dcfce7;
    color:#166534;
}
.supplier-row-due.has-due{background:#fee2e2;color:#991b1b}

.supplier-profile-head{
    display:flex;
    flex-direction:column;
    gap:3px;
    margin:14px 0;
    padding:14px;
    border-radius:16px;
    background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed);
    color:#fff;
}
.supplier-profile-head strong{font-size:17px}
.supplier-profile-head small{font-size:12px;font-weight:700;color:rgba(255,255,255,.85)}

.supplier-report-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-bottom:16px;
}
.supplier-report-box{
    border-radius:16px;
    padding:14px;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.supplier-report-box small{font-size:11px;text-transform:uppercase;letter-spacing:.4px;font-weight:1000;opacity:.75}
.supplier-report-box strong{font-size:20px}
.supplier-report-paid{background:#dcfce7;color:#14532d}
.supplier-report-due{background:#fee2e2;color:#7f1d1d}

.supplier-purchase-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:end;
}
.supplier-pay-choice{
    margin-top:10px;
    padding:12px;
    border-radius:16px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    position:relative;
}
.supplier-pay-choice-buttons{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    position:relative;
}

/* Floating popover for "Paid Partial" — anchored to the buttons row,
   overlays the content instead of pushing "Pay Remaining Amount" / History down. */
.supplier-partial-box{
    position:absolute;
    top:calc(100% + 12px);
    left:0;
    right:auto;
    width:min(320px, 100%);
    z-index:60;
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:end;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding:14px;
    box-shadow:0 18px 40px rgba(15,23,42,.16);
    opacity:0;
    transform:translateY(-6px);
    pointer-events:none;
    transition:opacity .14s ease, transform .14s ease;
}
.supplier-partial-box::before{
    content:"";
    position:absolute;
    top:-7px;
    left:28px;
    width:14px;
    height:14px;
    background:#fff;
    border-left:1px solid #e2e8f0;
    border-top:1px solid #e2e8f0;
    transform:rotate(45deg);
    border-radius:3px 0 0 0;
}
.supplier-partial-box.is-open{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}
.supplier-partial-box-close{
    grid-column:1/-1;
    justify-self:end;
    background:none;
    border:none;
    color:#64748b;
    font-weight:900;
    font-size:12px;
    cursor:pointer;
    padding:0 0 2px;
    margin-top:-8px;
}
.supplier-partial-box-close:hover{color:#0f172a}

.supplier-history{
    display:flex;
    flex-direction:column;
    gap:8px;
    max-height:280px;
    overflow:auto;
    padding-right:2px;
}
.supplier-history-row{
    display:grid;
    grid-template-columns:1.4fr .8fr .8fr;
    gap:8px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:9px 11px;
    font-size:12px;
    font-weight:850;
}
.supplier-history-row.supplier-history-payment{background:#eff6ff;border-color:#bfdbfe}
.supplier-history-title{color:#0f172a}
.supplier-history-title small{color:#64748b;font-weight:700}
.supplier-history-amount{color:#16a34a;text-align:right}
.supplier-history-time{color:#64748b;text-align:right;font-size:11px}

.supplier-history-pager{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    margin-top:12px;
}
.supplier-pager-btn{
    width:34px;
    height:34px;
    border-radius:50%;
    border:1px solid #e2e8f0;
    background:#fff;
    color:#1e293b;
    font-weight:1000;
    font-size:15px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 8px 18px rgba(15,23,42,.06);
    transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.supplier-pager-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 10px 22px rgba(15,23,42,.1)}
.supplier-pager-btn:disabled{opacity:.35;cursor:default;box-shadow:none}
.supplier-pager-label{font-size:12px;font-weight:900;color:#64748b}
@media(max-width:680px){
    .supplier-report-grid{grid-template-columns:1fr}
    .supplier-purchase-row{grid-template-columns:1fr}
    .supplier-purchase-row button{width:100%}
    .supplier-partial-box{
        grid-template-columns:1fr;
        left:50%;
        right:auto;
        transform:translate(-50%,-6px);
        width:calc(100vw - 56px);
        max-width:320px;
    }
    .supplier-partial-box.is-open{transform:translate(-50%,0)}
    .supplier-partial-box::before{left:50%;margin-left:-7px}
    .supplier-partial-box button{width:100%}
    .supplier-history-row{grid-template-columns:1fr;text-align:left}
    .supplier-history-amount,
    .supplier-history-time{text-align:left}
}


/* ==== V8-salaries-inline-style-1 ==== */
';
        html += 'table{border-collapse:collapse;font-family:Arial;font-size:12px}th,td{border:1px solid #999;padding:7px;text-align:left}';
        html += '.head{font-weight:bold;font-size:18px;background:#dbeafe}.total-row td{font-weight:bold;font-size:15px;background:#dcfce7}';
        html += '
