/* =============================================================
   ADERA EXCHANGE – MASTER STYLESHEET
   All application styles consolidated here.
   Sections:
     1.  Base / Reset
     2.  Layout Shell
     3.  Top Header
     4.  Toolbar
     5.  Sidebar
     6.  Workspace
     7.  Panels
     8.  Tables
     9.  Forms & Buttons
     10. Modal (generic)
     11. Footer
     12. Dashboard
     13. Login Page
     14. Reports Page
     15. Daily Report Modal
     16. Transaction Processing – TP Modal
     17. Transaction Processing – SOA Modal
     18. Transaction Processing – Deposits Search Results
     19. Advance Report Page
     20. Duplicate Receipt
     21. Balance Sheet / SOA Result Window
     22. PDF / Print Styles
     23. Responsive
   ============================================================= */


/* ─── 1. BASE / RESET ─────────────────────────────────────── */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    background: #d9dde2;
    color: #222;
    height: 100%;
}

a {
    color: #1a57c8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* ─── 2. LAYOUT SHELL ─────────────────────────────────────── */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #d9dde2;
}

.main-layout {
    flex: 1;
    display: flex;
    min-height: 0;
}


/* ─── 3. TOP HEADER ───────────────────────────────────────── */
.top-header {
    background: #7a7a7a;
    color: #fff;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid #a9a9a9;
}

.top-header .brand {
    font-size: 18px;
    font-weight: bold;
}

.top-header .theme-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.top-header select {
    height: 24px;
    border: 1px solid #8f8f8f;
    background: #fff;
    font-size: 12px;
}


/* ─── 4. TOOLBAR ──────────────────────────────────────────── */
.toolbar-strip {
    height: 46px;
    background: linear-gradient(to bottom, #f2f2f2, #d7dbe0);
    border-top: 1px solid #c9c9c9;
    border-bottom: 1px solid #a8adb3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-icon {
    width: 28px;
    height: 28px;
    border: 1px solid #b2b7bd;
    background: linear-gradient(to bottom, #ffffff, #d7dbe0);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3c6aa3;
    font-size: 16px;
    box-shadow: inset 0 1px 0 #fff;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-round {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #8ca46f;
    background: linear-gradient(to bottom, #9de65e, #5cb018);
    color: #fff;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.5);
}

.toolbar-round.logout {
    border-color: #4a7b3a;
    background: linear-gradient(to bottom, #1f9c35, #0f6d22);
}


/* ─── 5. SIDEBAR ──────────────────────────────────────────── */
.sidebar {
    width: 305px;
    background: #d6dbe1;
    border-right: 1px solid #adb4bb;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    flex-shrink: 0;
    transition: left 0.25s ease;
}

.sidebar-title {
    padding: 8px 8px 6px;
    font-size: 15px;
    font-weight: bold;
    color: #2b2b2b;
}

.sidebar-logo {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #aeb4bb;
    background: linear-gradient(to bottom, #f7f7f7, #d2d7dd);
    color: #222;
}

.sidebar-logo strong {
    display: block;
    font-size: 18px;
    letter-spacing: 1px;
}

.sidebar-logo span {
    display: block;
    font-size: 11px;
    color: #555;
    margin-top: 2px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 8px 6px;
    background: #dfe3e8;
    border-top: 1px solid #eef1f4;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    margin: 2px 0;
}

.sidebar-menu a,
.menu-title {
    display: block;
    padding: 7px 8px;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
}

.sidebar-menu a:hover,
.menu-title:hover {
    background: #eef3f8;
    border-color: #b5bcc4;
    color: #0a58ca;
    text-decoration: none;
}

.sidebar-menu li.active > a,
.sidebar-menu li.active > .menu-title,
.sidebar-menu .menu-group.active > .menu-title {
    background: linear-gradient(to bottom, #fff6d1, #efd18a);
    border-color: #c6a95a;
    font-weight: bold;
    color: #111;
}

.menu-group .submenu {
    display: none;
    list-style: none;
    margin: 2px 0 4px 0;
    padding-left: 18px;
}

.menu-group.open .submenu,
.menu-group.active .submenu {
    display: block;
}

.submenu li {
    margin: 1px 0;
}

.submenu li a {
    padding: 5px 8px;
    font-size: 12px;
    color: #111;
}

.submenu li.active a {
    background: #fff;
    border-color: #b5bcc4;
    color: #0a58ca;
    font-weight: bold;
}

/* Legacy sidebar tree (kept for compatibility) */
.sidebar-tree {
    background: #dfe3e8;
    border: 1px solid #b5bcc4;
    margin: 0 0 10px;
    padding: 8px 6px 12px;
    min-height: 330px;
}

.sidebar-section {
    min-height: 100%;
}

.sidebar-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 14px;
}

.sidebar-tree li {
    margin: 7px 0;
}

.sidebar-tree .root {
    padding-left: 2px;
    font-weight: bold;
}

.sidebar-tree a {
    color: #000;
    text-decoration: none;
}

.sidebar-tree a:hover {
    color: #0a58ca;
}

.sidebar-buttons {
    margin-top: auto;
    padding: 0;
    width: 100%;
}

.side-big-btn {
    width: 100%;
    height: 40px;
    border-top: 1px solid #b7bdc6;
    border-bottom: 1px solid #a4aab2;
    background: linear-gradient(to bottom, #f7f7f7, #d2d7dd);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 14px;
    margin: 0;
    font-size: 12px;
    font-weight: normal;
    color: #111;
    cursor: pointer;
    font-family: Tahoma, Arial, sans-serif;
    text-decoration: none;
    user-select: none;
}

.side-big-btn:hover {
    background: linear-gradient(to bottom, #ffffff, #c5ccd4);
    text-decoration: none;
}

.side-big-btn.title {
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(to bottom, #fff6d1, #efd18a);
}


/* ─── 6. WORKSPACE ────────────────────────────────────────── */
.workspace {
    flex: 1;
    padding: 6px 8px 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tab-strip {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 0;
}

.tab {
    background: linear-gradient(to bottom, #ffffff, #dfe4ea);
    border: 1px solid #aab0b6;
    border-bottom: none;
    padding: 8px 18px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    font-weight: bold;
}

.workspace-panel {
    border: 1px solid #aab0b6;
    background: #e3e7eb;
    flex: 1;
    padding: 6px;
    min-height: 0;
    overflow: auto;
}


/* ─── 7. PANELS ───────────────────────────────────────────── */
.panel-box {
    background: #efefef;
    border: 1px solid #aeb4bb;
    min-height: 120px;
}

.panel-header {
    font-weight: bold;
    font-size: 13px;
    padding: 6px 8px;
    border-bottom: 1px solid #bcc2c8;
    background: #efefef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-body {
    padding: 10px;
}

.panel-refresh {
    width: 22px;
    height: 22px;
    border: 1px solid #8d969f;
    background: linear-gradient(to bottom, #ffffff, #d5dbe1);
    color: #000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 3px;
    font-weight: bold;
}

.panel-refresh:hover {
    background: linear-gradient(to bottom, #ffffff, #c9d0d8);
    text-decoration: none;
}


/* ─── 8. TABLES ───────────────────────────────────────────── */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 5px 4px;
    vertical-align: top;
}

.info-table td:first-child {
    width: 110px;
    color: #333;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table th,
.data-table td {
    border: 1px solid #bcc2c8;
    padding: 4px 6px;
    text-align: left;
    font-size: 12px;
}

.data-table th {
    background: #ececec;
    font-weight: normal;
}

.empty-box {
    min-height: 180px;
    background: #fff;
    border: 1px solid #bcc2c8;
    padding: 10px;
}

.muted {
    color: #666;
}

.right  { text-align: right; }
.center { text-align: center; }
.no-data {
    height: 62px;
    text-align: center;
    color: #777;
    background: #fff;
}


/* ─── 9. FORMS & BUTTONS ──────────────────────────────────── */
.classic-select,
.classic-input {
    width: 100%;
    height: 28px;
    border: 1px solid #9ca3aa;
    background: #fff;
    padding: 4px 6px;
    font-size: 12px;
    font-family: Tahoma, Arial, sans-serif;
}

textarea.classic-input {
    height: auto;
    resize: vertical;
}

.classic-btn {
    height: 26px;
    padding: 0 14px;
    border: 1px solid #8c8c8c;
    background: linear-gradient(to bottom, #ffffff, #d7d7d7);
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    color: #111;
    font-family: Tahoma, Arial, sans-serif;
}

.classic-btn:hover {
    background: linear-gradient(to bottom, #ffffff, #cfcfcf);
    text-decoration: none;
}


/* ─── 10. MODAL (generic) ─────────────────────────────────── */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(80, 84, 88, 0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.custom-modal-box {
    width: 430px;
    background: #dfe6ec;
    border: 1px solid #7d8a96;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
    overflow: hidden;
}

.custom-modal-titlebar {
    height: 30px;
    background: linear-gradient(to bottom, #edf3f9, #dfe7ef);
    border-bottom: 1px solid #9eabb7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-weight: bold;
}

.modal-close-btn {
    border: 1px solid #999;
    background: linear-gradient(to bottom, #fff, #d6d6d6);
    width: 22px;
    height: 22px;
    cursor: pointer;
    line-height: 18px;
}

.custom-modal-body {
    background: #efefef;
    margin: 10px;
    border: 1px solid #aab0b6;
    padding: 18px;
}


/* ─── 11. FOOTER ──────────────────────────────────────────── */
.footer-status {
    height: 28px;
    background: #d1d5da;
    border-top: 1px solid #aeb4bb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 12px;
    color: #222;
}

.footer-status .footer-left,
.footer-status .footer-center,
.footer-status .footer-right {
    white-space: nowrap;
}


/* ─── 12. DASHBOARD ───────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 12px;
    align-items: start;
}

.dashboard-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ─── 13. LOGIN PAGE ──────────────────────────────────────── */
.login-page {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-window {
    width: 440px;
    background: #dfe6ec;
    border: 1px solid #7d8a96;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    overflow: hidden;
}

.login-titlebar {
    background: linear-gradient(to bottom, #edf3f9, #dfe7ef);
    color: #000;
    font-size: 13px;
    padding: 8px 10px;
    border-bottom: 1px solid #9eabb7;
}

.login-body {
    background: #efefef;
    margin: 10px;
    border: 1px solid #9ca7b1;
    padding: 8px 10px 18px;
}

.logo-wrap {
    width: 100%;
    text-align: center;
    padding: 10px 0 4px;
}

.logo-wrap img {
    max-width: 100%;
    max-height: 210px;
    object-fit: contain;
}

.logo-placeholder {
    width: 100%;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border: 1px dashed #b8b8b8;
    color: #777;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.form-title {
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin: 14px 0 16px;
}

.message {
    width: 100%;
    margin-bottom: 12px;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 3px;
}

.message.error {
    background: #fce4e4;
    border: 1px solid #d89a9a;
    color: #8a1f1f;
}

.message.success {
    background: #e7f6e7;
    border: 1px solid #9dca9d;
    color: #206320;
}

.login-form {
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.form-row label {
    width: 78px;
    font-size: 13px;
    color: #333;
}

.form-row input,
.form-row select {
    flex: 1;
    height: 28px;
    padding: 4px 8px;
    font-size: 13px;
    border: 1px solid #9ba3ab;
    background: #fff;
    outline: none;
}

.form-row input:focus,
.form-row select:focus {
    border-color: #6f8fb3;
    box-shadow: inset 0 0 2px rgba(0, 80, 160, 0.15);
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.btn-classic {
    min-width: 82px;
    height: 28px;
    padding: 0 14px;
    font-size: 13px;
    border: 1px solid #8d8d8d;
    border-radius: 3px;
    cursor: pointer;
    background: linear-gradient(to bottom, #fcfcfc, #d9d9d9);
    color: #222;
}

.btn-classic:hover {
    background: linear-gradient(to bottom, #ffffff, #cfcfcf);
}

.btn-classic:active {
    background: linear-gradient(to bottom, #d7d7d7, #f5f5f5);
}

.footer-note {
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 10px;
}


/* ─── 14. REPORTS PAGE ────────────────────────────────────── */
.report-page {
    background: #fff;
    min-height: 720px;
    padding: 14px 18px;
    border: 1px solid #aeb4bb;
}

.report-header {
    display: grid;
    grid-template-columns: 180px 1fr 330px;
    align-items: center;
    border-bottom: 1px solid #999;
    padding-bottom: 14px;
}

.report-logo {
    width: 90px;
    height: 70px;
    font-size: 52px;
    font-weight: bold;
    color: #16813a;
    text-align: center;
    line-height: 70px;
    margin-left: 30px;
}

.report-title {
    text-align: center;
}

.report-title h2 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: bold;
}

.report-title h3 {
    margin: 0;
    font-size: 19px;
    font-weight: bold;
}

.report-print-info {
    text-align: right;
    font-size: 12px;
    align-self: end;
    padding-bottom: 4px;
}

.report-meta {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1.3fr 1.4fr 1.1fr;
    gap: 18px;
    padding: 12px 0 10px;
    border-bottom: 1px solid #999;
    font-size: 12px;
    line-height: 1.5;
}

.report-actions {
    display: flex;
    gap: 8px;
    padding: 12px 0 8px;
    border-bottom: 1px solid #c3c3c3;
}

.report-actions .classic-btn {
    min-width: 105px;
}

.report-options {
    display: flex;
    gap: 120px;
    padding: 9px 0;
    border-bottom: 1px solid #999;
}

.report-options input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #3154a5;
}

.report-grid-area {
    margin-top: 8px;
}

.group-drop-row {
    background: #d7d7d7;
    border: 1px solid #b5bcc4;
    color: #777;
    padding: 9px;
    font-size: 12px;
}

.report-table-scroll {
    overflow-x: auto;
    border-left: 1px solid #b5bcc4;
    border-right: 1px solid #b5bcc4;
    border-bottom: 1px solid #b5bcc4;
    background: #fff;
}

.report-grid-table {
    min-width: 1750px;
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed;
}

.report-grid-table th {
    background: linear-gradient(to bottom, #5e75b6, #2c4b9c);
    color: #fff;
    border: 1px solid #7d8bb6;
    padding: 6px 7px;
    font-size: 12px;
    text-align: left;
    white-space: nowrap;
    font-weight: bold;
}

.report-grid-table td {
    border: 1px solid #d0d0d0;
    padding: 7px 7px;
    font-size: 12px;
    white-space: nowrap;
    background: #fff;
}

.report-grid-table .filter-row th {
    background: #efefef;
    padding: 4px;
}

.report-grid-table .filter-row input {
    width: 100%;
    height: 23px;
    border: 1px solid #b5bcc4;
    background: #fff;
}

.report-grid-table tbody tr {
    height: 48px;
}

.report-grid-table tfoot td {
    background: #6e83cc;
    color: #fff;
    font-weight: bold;
    border-color: #6e83cc;
    height: 28px;
}

.report-page .classic-btn {
    height: 28px;
    border-radius: 0;
}


/* ─── 15. DAILY REPORT MODAL ──────────────────────────────── */
.report-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.45) !important;
    z-index: 999999 !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
}

.report-modal-box {
    width: 920px !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    background: #f4f4f4 !important;
    border: 1px solid #62739f !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.45) !important;
}

.report-modal-title {
    height: 28px;
    background: linear-gradient(to bottom, #5069b1, #1e3d8f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-weight: bold;
}

.report-filter-form {
    padding: 12px;
}

.report-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.report-filter-row > label:first-child {
    width: 190px;
    text-align: right;
}

.report-filter-row .classic-select,
.report-filter-row .classic-input {
    width: 280px;
}


/* ─── 16. TRANSACTION PROCESSING – TP MODAL ──────────────── */
.tp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.tp-modal-box {
    width: 980px;
    min-height: 620px;
    background: #f5f5f5;
    border: 1px solid #6f7f9f;
    box-shadow: 0 5px 18px rgba(0,0,0,0.45);
}

.tp-modal-box.large-entry {
    width: 1180px;
    min-height: 760px;
}

.tp-modal-title {
    height: 28px;
    background: linear-gradient(to bottom, #dce8f5, #9fb8cf);
    border-bottom: 1px solid #7f8fa5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-weight: bold;
    font-size: 13px;
}

.tp-modal-title button,
.tp-window-buttons button {
    width: 24px;
    height: 20px;
    border: 1px solid #8a8a8a;
    background: linear-gradient(#fff,#d7d7d7);
    cursor: pointer;
    line-height: 14px;
}

.tp-window-buttons {
    display: flex;
    gap: 4px;
}

.tp-modal-body {
    padding: 18px;
}

.tp-filter-box {
    border: 1px solid #aab0b6;
    background: #fff;
    padding: 18px 20px 12px;
    position: relative;
    width: 900px;
}

.tp-filter-tab {
    position: absolute;
    top: -27px;
    left: 20px;
    border: 1px solid #aab0b6;
    border-bottom: none;
    background: #fff;
    padding: 8px 26px;
    font-weight: normal;
}

.tp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.tp-row label {
    width: 150px;
    text-align: right;
}

.tp-small-btn {
    width: 27px;
    height: 25px;
    border: 1px solid #777;
    background: linear-gradient(#fff,#ddd);
    cursor: pointer;
    font-weight: bold;
}

.tp-results-box {
    margin-top: 12px;
    background: #fff;
    min-height: 360px;
    overflow: auto;
}

.tp-empty,
.tp-loading {
    padding: 20px;
    color: #666;
}

.tp-entry-box {
    border: 1px solid #b8bec6;
    background: #fff;
    min-height: 650px;
    padding: 35px 80px;
}

.tp-entry-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tp-entry-row label {
    width: 135px;
    text-align: left;
}

.tp-entry-control {
    width: 380px;
}

.tp-entry-wide {
    width: 630px;
}

.tp-entry-note {
    color: #999;
    margin: 10px 0 34px 143px;
}

.tp-amount-input {
    width: 630px;
    text-align: right;
    font-weight: bold;
}

.tp-memo-box {
    width: 630px;
    height: 105px;
    resize: vertical;
}

.tp-save-row {
    margin-top: 155px;
    text-align: center;
}


/* ─── 17. TRANSACTION PROCESSING – SOA MODAL ─────────────── */
.soa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.soa-modal-box {
    width: 700px;
    min-height: 390px;
    background: #f5f5f5;
    border: 1px solid #6f7f9f;
    box-shadow: 0 5px 18px rgba(0,0,0,0.45);
}

.soa-modal-title {
    height: 28px;
    background: linear-gradient(to bottom, #dce8f5, #9fb8cf);
    border-bottom: 1px solid #7f8fa5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 13px;
}

.soa-window-buttons {
    display: flex;
    gap: 4px;
}

.soa-window-buttons button {
    width: 24px;
    height: 20px;
    border: 1px solid #8a8a8a;
    background: linear-gradient(#fff,#d7d7d7);
    cursor: pointer;
    line-height: 14px;
}

.soa-modal-body {
    padding: 22px;
}

.soa-filter-box {
    border: 1px solid #b8bec6;
    background: #fff;
    min-height: 250px;
    padding: 42px 44px 24px;
}

.soa-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.soa-row label {
    width: 145px;
    text-align: left;
}

.soa-control {
    width: 390px;
}

.soa-small-btn {
    width: 26px;
    height: 24px;
    border: 1px solid #777;
    background: linear-gradient(#fff,#ddd);
    cursor: pointer;
    font-weight: bold;
}

.soa-preview-row {
    text-align: right;
    margin-top: 34px;
}


/* ─── 18. TP – DEPOSITS SEARCH RESULTS ───────────────────── */
.tp-result-title {
    margin: 14px 0 8px;
    font-weight: bold;
}

.tp-grid-wrap {
    border: 1px solid #b8bec6;
    background: #fff;
    overflow: auto;
    height: 330px;
}

.tp-result-table {
    border-collapse: collapse;
    min-width: 1700px;
    width: 1700px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
}

.tp-result-table th {
    background: #eef2f6;
    color: #000;
    border-right: 1px solid #b8bec6;
    border-bottom: 1px solid #b8bec6;
    padding: 5px 6px;
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
}

.tp-result-table td {
    border-right: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
    padding: 4px 6px;
    white-space: nowrap;
}

.tp-result-table tr:hover {
    background: #eef6ff;
}


/* ─── 19. ADVANCE REPORT PAGE ─────────────────────────────── */
.advance-report-page {
    background: #fff;
    border: 1px solid #aab0b6;
    min-height: 720px;
    padding: 10px 14px;
}

.advance-inner-box {
    width: 760px;
    border: 1px solid #aab0b6;
    background: #fff;
    padding: 0 12px 16px;
}

.advance-tab-title {
    display: inline-block;
    background: #fff;
    border: 1px solid #aab0b6;
    border-bottom: none;
    padding: 7px 18px;
    font-weight: bold;
    margin-left: 8px;
    transform: translateY(-1px);
}

.advance-section {
    border: 1px solid #b8bec6;
    margin-top: 10px;
    padding: 12px 12px 10px;
    position: relative;
}

.advance-section-title {
    position: absolute;
    top: -9px;
    left: 10px;
    background: #fff;
    padding: 0 5px;
    font-weight: bold;
    font-size: 12px;
}

.advance-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
}

.advance-row label.main-label {
    width: 150px;
    text-align: right;
}

.advance-small-btn {
    width: 23px;
    height: 23px;
    border: 1px solid #777;
    background: linear-gradient(#fff,#d9d9d9);
    cursor: pointer;
    font-size: 12px;
    line-height: 18px;
    padding: 0;
}

.advance-filter-grid {
    display: grid;
    grid-template-columns: 310px 310px;
    gap: 14px 60px;
    align-items: start;
}

.advance-filter-block {
    display: grid;
    grid-template-columns: 150px 1fr;
    column-gap: 8px;
    align-items: start;
}

.advance-filter-title {
    text-align: right;
    padding-top: 2px;
    font-size: 12px;
}

.advance-check-list {
    width: 185px;
    height: 118px;
    overflow-y: auto;
    border: 1px solid #aab0b6;
    background: #fff;
    padding: 3px;
}

.advance-check-list.small {
    height: 92px;
}

.advance-check-list label {
    display: block;
    padding: 3px 4px;
    font-size: 12px;
    line-height: 16px;
}

.advance-check-list label:hover {
    background: #d8d8d8;
}

.advance-columns-box {
    border: 1px solid #b8bec6;
    margin-top: 14px;
    padding: 16px 12px;
    position: relative;
}

.advance-columns-title {
    position: absolute;
    top: -9px;
    left: 10px;
    background: #fff;
    padding: 0 5px;
    font-weight: bold;
    font-size: 12px;
}

.advance-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7px 55px;
}

.advance-columns-grid label {
    display: block;
    white-space: nowrap;
    font-size: 12px;
}

.advance-report-page input[type="checkbox"] {
    width: 13px;
    height: 13px;
    margin: 0 5px 0 0;
    vertical-align: middle;
    accent-color: #4b67b0;
}

.advance-preview-area {
    margin-top: 18px;
}

.advance-select {
    height: 24px;
    border: 1px solid #9da5ad;
    background: #fff;
    font-size: 12px;
}

.advance-input {
    height: 23px;
    border: 1px solid #9da5ad;
    padding: 2px 5px;
    font-size: 12px;
}


/* ─── 20. DUPLICATE RECEIPT ───────────────────────────────── */
.dup-tab-btn {
    padding: 8px 20px;
    border: 1px solid #aab0b6;
    border-bottom: none;
    background: #f5f5f5;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    cursor: pointer;
}

.dup-tab-btn.active {
    background: #fff;
    font-weight: bold;
}

.dup-search-box {
    border: 1px solid #aab0b6;
    background: #efefef;
    width: 780px;
    padding: 0;
}

.dup-form-area {
    padding: 18px 20px;
}

.dup-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
    align-items: center;
}

.dup-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dup-field label {
    width: 150px;
    text-align: right;
}

.dup-field.right label {
    width: 135px;
}


/* ─── 21. BALANCE SHEET / SOA RESULT WINDOW ──────────────── */
.balance-sheet-window {
    position: fixed;
    inset: 0;
    background: #e9e9e9;
    z-index: 999999;
    border: 1px solid #7f8fa5;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
}

.balance-sheet-titlebar {
    height: 30px;
    background: linear-gradient(to bottom, #dce8f5, #9fb8cf);
    border-bottom: 1px solid #7f8fa5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.balance-window-buttons button {
    width: 28px;
    height: 22px;
    border: 1px solid #777;
    background: linear-gradient(#fff, #d7d7d7);
    cursor: pointer;
}

.balance-sheet-body {
    height: calc(100vh - 31px);
    overflow: auto;
    background: #f2f2f2;
    padding: 14px 18px;
}

.balance-report-header {
    text-align: center;
    padding: 8px 0 18px;
    border-bottom: 1px solid #aaa;
}

.balance-report-header h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.balance-report-header h3 {
    margin: 0;
    font-size: 24px;
}

.balance-toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 8px;
    border-bottom: 1px solid #aaa;
}

.balance-plus {
    width: 38px;
    height: 30px;
    border: 1px solid #bbb;
    background: #fff;
    font-size: 18px;
}

.balance-actions {
    display: flex;
    gap: 8px;
    padding: 14px 4px;
    border-bottom: 1px solid #aaa;
}

.balance-actions .classic-btn {
    width: 140px;
}

.balance-actions a.classic-btn {
    color: #000;
}

.balance-refresh {
    margin-left: auto;
    width: 150px !important;
}

.balance-grid-area {
    margin-top: 12px;
    background: #ddd;
    border: 1px solid #c3c3c3;
    min-height: 560px;
    overflow: auto;
}

.balance-location-tab {
    display: inline-block;
    margin: 14px 0 12px 12px;
    background: linear-gradient(to bottom, #657dbd, #2d4c9b);
    color: #fff;
    padding: 12px 18px;
    border: 1px solid #1e377a;
    font-weight: bold;
}

.balance-table-wrap {
    overflow: auto;
    height: 500px;
    background: #eee;
}

.balance-table {
    border-collapse: collapse;
    min-width: 1800px;
    width: 1800px;
    background: #fff;
}

.balance-table th {
    background: linear-gradient(to bottom, #657dbd, #2d4c9b);
    color: #fff;
    border-right: 1px solid #7d8bb6;
    padding: 9px 8px;
    text-align: left;
    font-weight: normal;
    white-space: nowrap;
}

.balance-table td {
    border-right: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
    padding: 8px;
    white-space: nowrap;
    background: #fff;
}

.balance-table .filter-row td {
    background: #f5f5f5;
    padding: 5px;
}

.balance-table .filter-row input {
    width: 95%;
    height: 24px;
    border: 1px solid #aaa;
}

.location-row td {
    background: #eee;
    color: #555;
    font-size: 14px;
    padding: 12px 10px;
}

.balance-footer-count {
    background: #6b80c8;
    color: #fff;
    padding: 8px 28px;
    font-weight: bold;
}


/* ─── 22. PDF / PRINT STYLES ──────────────────────────────── */

/* Used by DomPDF for SOA and daily report PDFs */
.pdf-body {
    font-family: DejaVu Sans, Arial, sans-serif;
    font-size: 9px;
    color: #000;
}

.pdf-body h2, .pdf-body h3 {
    text-align: center;
    margin: 4px 0;
}

.pdf-body .meta {
    margin: 10px 0;
    font-size: 9px;
}

.pdf-body table {
    width: 100%;
    border-collapse: collapse;
}

.pdf-body th {
    background: #2d4c9b;
    color: #fff;
    border: 1px solid #777;
    padding: 4px;
    font-size: 8px;
    text-align: left;
}

.pdf-body td {
    border: 1px solid #ccc;
    padding: 4px;
    font-size: 8px;
}

.pdf-body .group {
    background: #eee;
    font-weight: bold;
}

/* PDF report table (daily) */
.pdf-report-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pdf-report-table th {
    background: #2d4c9b;
    color: #ffffff;
    border: 1px solid #777;
    padding: 4px 3px;
    font-size: 7px;
    text-align: left;
}

.pdf-report-table td {
    border: 1px solid #bbb;
    padding: 4px 3px;
    font-size: 7px;
    word-wrap: break-word;
}

.pdf-report-table .footer-row td {
    background: #6e83cc;
    color: #ffffff;
    font-weight: bold;
}

.pdf-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    border-bottom: 1px solid #777;
}

.pdf-meta-table td {
    padding: 3px 5px;
    font-size: 8px;
    vertical-align: top;
}

/* Screen print suppression */
@media print {
    body {
        background: #fff !important;
    }

    .top-header,
    .toolbar-strip,
    .sidebar,
    .tab-strip,
    .footer-status,
    .no-print {
        display: none !important;
    }

    .main-layout,
    .workspace,
    .workspace-panel {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
        border: none !important;
    }

    .receipt-area {
        border: none !important;
        box-shadow: none !important;
    }

    .panel-box {
        page-break-inside: avoid;
    }
}


/* ─── 23. RESPONSIVE ──────────────────────────────────────── */

/* ── Tablet: 768px – 1200px ─────────────────────────────── */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sidebar {
        width: 240px;
    }

    .report-meta {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .report-header {
        grid-template-columns: 120px 1fr;
    }

    .report-print-info {
        display: none;
    }

    .advance-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile: up to 768px ────────────────────────────────── */
@media screen and (max-width: 768px) {

    .main-layout {
        display: block !important;
    }

    /* Sidebar: hidden fixed overlay by default */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        min-height: unset !important;
        z-index: 9000 !important;
        overflow-y: auto !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.4) !important;
        transform: translateX(-100%) !important;
        transition: transform 0.25s ease !important;
    }

    /* Sidebar visible */
    .sidebar.sidebar-open {
        transform: translateX(0) !important;
    }

    /* Backdrop */
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 8999;
    }

    .sidebar-backdrop.sidebar-backdrop-visible {
        display: block;
    }

    /* Show hamburger */
    .topbar-hamburger {
        display: flex !important;
    }

    /* Hide theme selector */
    .top-header .theme-box {
        display: none;
    }

    /* Workspace full width */
    .workspace {
        width: 100% !important;
        padding: 4px !important;
    }

    /* Dashboard single column */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tables scroll */
    .panel-body {
        overflow-x: auto;
    }

    .data-table {
        min-width: 480px;
    }

    /* Forms single column */
    .um-form-grid {
        grid-template-columns: 1fr !important;
    }

    /* Modals full width */
    .tp-modal-box,
    .tp-modal-box.large-entry,
    .soa-modal-box,
    .custom-modal-box,
    .cp-box,
    .report-modal-box {
        width: 96vw !important;
        max-width: 96vw !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    .tp-filter-box { width: 100% !important; }
    .tp-entry-control, .tp-entry-wide,
    .tp-amount-input, .tp-memo-box, .soa-control { width: 100% !important; }

    .rp-role-tabs { flex-wrap: wrap; }
    .rp-module { flex-direction: column; gap: 8px; }
    .rp-module-name { width: 100%; }
    .report-header { grid-template-columns: 1fr; text-align: center; }
    .report-meta { grid-template-columns: 1fr 1fr; }
    .report-print-info { display: none; }
    .db-quick-actions { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile phone: up to 480px ─────────────────────────── */
@media (max-width: 480px) {

    html, body {
        font-size: 13px;
    }

    /* Login */
    .login-page {
        padding: 10px;
        align-items: flex-start;
        padding-top: 30px;
    }

    .login-window {
        width: 100%;
    }

    .login-form {
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 12px;
    }

    .form-row label {
        width: 100%;
        margin-bottom: 4px;
    }

    .button-row {
        flex-direction: column;
        gap: 8px;
    }

    .btn-classic {
        width: 100%;
        height: 36px;
        font-size: 14px;
    }

    /* Top header */
    .top-header {
        height: 48px;
        padding: 0 10px;
    }

    .top-header .brand {
        font-size: 15px;
    }

    /* Toolbar */
    .toolbar-strip {
        height: 46px;
    }

    .toolbar-round {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    /* Panels */
    .panel-header {
        font-size: 13px;
        padding: 8px 10px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .panel-body {
        padding: 8px;
    }

    /* Tables */
    .data-table th,
    .data-table td {
        padding: 6px 5px;
        font-size: 12px;
    }

    /* Classic buttons larger tap targets */
    .classic-btn {
        height: 32px;
        padding: 0 12px;
        font-size: 13px;
    }

    /* Dashboard quick actions */
    .db-quick-actions {
        grid-template-columns: 1fr;
    }

    .db-quick-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 14px;
    }

    .db-quick-icon {
        font-size: 20px;
        margin-right: 10px;
    }

    /* Tab strip */
    .tab-strip {
        flex-wrap: wrap;
    }

    .tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Workspace */
    .workspace {
        padding: 4px 4px 0;
    }

    /* Footer */
    .footer-status {
        font-size: 11px;
        padding: 0 6px;
    }

    .footer-status .footer-center {
        display: none;
    }

    /* Modals full screen on mobile */
    .cp-box,
    .tp-modal-box,
    .tp-modal-box.large-entry,
    .soa-modal-box,
    .custom-modal-box,
    .report-modal-box {
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .cp-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cp-row label {
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 4px;
    }

    .cp-input {
        width: 100%;
    }

    /* TP entry form on mobile */
    .tp-entry-box {
        padding: 16px 12px;
    }

    .tp-entry-row {
        flex-direction: column;
        align-items: stretch;
    }

    .tp-entry-row label {
        width: 100%;
        text-align: left;
        margin-bottom: 4px;
    }

    /* User management forms */
    .um-form-grid {
        grid-template-columns: 1fr !important;
    }

    /* Roles matrix */
    .rp-mgmt-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rp-perm-item {
        min-width: unset;
        width: 100%;
    }

    .rp-perms-row {
        flex-direction: column;
    }

    /* Advance report */
    .advance-columns-grid {
        grid-template-columns: 1fr 1fr;
    }

    .advance-filter-block {
        grid-template-columns: 1fr;
    }

    .advance-filter-title {
        text-align: left;
    }

    /* Sidebar buttons larger on mobile */
    .side-big-btn {
        height: 48px;
        font-size: 13px;
    }

    .sidebar-title {
        font-size: 16px;
        padding: 10px;
    }
}


/* ─── 24. CHANGE PASSWORD MODAL ───────────────────────────── */
.cp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.cp-box {
    width: 480px;
    background: #f0f0f0;
    border: 1px solid #6f7f9f;
    box-shadow: 0 5px 18px rgba(0,0,0,0.45);
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
}

.cp-titlebar {
    height: 28px;
    background: linear-gradient(to bottom, #dce8f5, #9fb8cf);
    border-bottom: 1px solid #7f8fa5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 13px;
    font-weight: bold;
}

.cp-win-buttons button {
    width: 22px;
    height: 18px;
    border: 1px solid #8a8a8a;
    background: linear-gradient(#fff, #d7d7d7);
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    padding: 0;
}

.cp-policy-wrap {
    margin: 12px 14px 0;
    border: 1px solid #b0b8c4;
    background: #fff;
    padding: 10px 12px;
    min-height: 70px;
}

.cp-policy-title {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 12px;
}

.cp-policy-text {
    color: #555;
    font-size: 12px;
    line-height: 1.5;
}

.cp-message {
    margin: 8px 14px 0;
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 2px;
}

.cp-message-error {
    background: #fce4e4;
    border: 1px solid #d89a9a;
    color: #8a1f1f;
}

.cp-message-success {
    background: #e7f6e7;
    border: 1px solid #9dca9d;
    color: #1a5c1a;
}

.cp-fields {
    margin: 14px 14px 0;
    border: 1px solid #b0b8c4;
    background: #fff;
    padding: 14px 16px;
}

.cp-divider {
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

.cp-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cp-row:last-child {
    margin-bottom: 0;
}

.cp-row label {
    width: 175px;
    text-align: right;
    padding-right: 10px;
    font-size: 12px;
    color: #333;
    flex-shrink: 0;
}

.cp-input {
    flex: 1;
    height: 26px;
    border: 1px solid #9ba3ab;
    background: #fff;
    padding: 3px 7px;
    font-size: 12px;
    font-family: Tahoma, Arial, sans-serif;
    outline: none;
}

.cp-input:focus {
    border-color: #6f8fb3;
    box-shadow: inset 0 0 2px rgba(0,80,160,0.15);
}

.cp-btn-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px 14px 18px;
}

.cp-save-btn {
    min-width: 70px;
}


/* ─── 25. USER MANAGEMENT ─────────────────────────────────── */
.um-alert {
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 2px;
}

.um-alert-success {
    background: #e8f6e8;
    border: 1px solid #9dca9d;
    color: #256025;
}

.um-alert-error {
    background: #fbe9e9;
    border: 1px solid #c88;
    color: #8a1f1f;
}

.um-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 2px;
}

.um-badge-active {
    background: #dff3df;
    color: #1f6b1f;
    border: 1px solid #8fc48f;
}

.um-badge-inactive {
    background: #eee;
    color: #555;
    border: 1px solid #bbb;
}

.um-form-section {
    font-weight: bold;
    font-size: 12px;
    color: #2d4c9b;
    border-bottom: 1px solid #c0c8d8;
    padding-bottom: 5px;
    margin-bottom: 14px;
}

.um-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
    max-width: 820px;
}

.um-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.um-field label {
    font-size: 12px;
    color: #333;
    font-weight: bold;
}

.um-required {
    color: #c00;
}

.um-hint {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.um-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}


/* ─── 26. ROLES & PERMISSIONS ─────────────────────────────── */
.rp-role-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #2d4c9b;
    margin-bottom: 14px;
}

.rp-role-tab {
    padding: 7px 20px;
    border: 1px solid #b0b8c8;
    border-bottom: none;
    background: linear-gradient(to bottom, #f5f7fa, #e0e5ed);
    color: #333;
    text-decoration: none;
    font-size: 12px;
    margin-right: 3px;
    border-radius: 3px 3px 0 0;
}

.rp-role-tab:hover {
    background: linear-gradient(to bottom, #fff, #d5dce8);
    text-decoration: none;
}

.rp-role-tab.active {
    background: #2d4c9b;
    color: #fff;
    font-weight: bold;
    border-color: #2d4c9b;
}

.rp-lock {
    font-size: 11px;
    margin-left: 4px;
}

.rp-role-desc {
    font-size: 12px;
    color: #444;
    margin-bottom: 14px;
    padding: 8px 10px;
    background: #f5f7fa;
    border: 1px solid #d0d6e0;
}

.rp-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.rp-matrix {
    border: 1px solid #c0c8d8;
    background: #fff;
}

.rp-section {
    border-bottom: 1px solid #c0c8d8;
}

.rp-section:last-child {
    border-bottom: none;
}

.rp-section-header {
    background: linear-gradient(to bottom, #657dbd, #2d4c9b);
    color: #fff;
    padding: 7px 12px;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rp-section-toggle {
    font-size: 11px;
    padding: 2px 10px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    border-radius: 2px;
}

.rp-section-toggle:hover {
    background: rgba(255,255,255,0.25);
}

.rp-module {
    display: flex;
    align-items: flex-start;
    padding: 9px 12px;
    border-bottom: 1px solid #edf0f5;
    gap: 16px;
}

.rp-module:last-child {
    border-bottom: none;
}

.rp-module-name {
    width: 210px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: bold;
    color: #222;
    padding-top: 3px;
}

.rp-perms-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rp-perm-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid #d0d6e0;
    border-radius: 3px;
    background: #f8f9fc;
    cursor: pointer;
    font-size: 12px;
    user-select: none;
}

.rp-perm-item:hover {
    background: #eef2fa;
    border-color: #aab8d8;
}

.rp-perm-item input[type="checkbox"] {
    width: 13px;
    height: 13px;
    accent-color: #2d4c9b;
    cursor: pointer;
}

.rp-locked {
    opacity: 0.75;
    cursor: default;
}

.rp-action-badge {
    display: inline-block;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 2px;
    letter-spacing: 0.3px;
}

.rp-action-view    { background: #ddeeff; color: #1a4d88; }
.rp-action-create  { background: #dff3df; color: #1a5c1a; }
.rp-action-edit    { background: #fff3d0; color: #7a5000; }
.rp-action-delete  { background: #fde8e8; color: #8a1f1f; }
.rp-action-export  { background: #ede8fd; color: #4a1f8a; }
.rp-action-approve { background: #d0f0e8; color: #1a5c3a; }
.rp-action-cancel  { background: #fde8e8; color: #8a1f1f; }
.rp-action-refund  { background: #ffeedd; color: #7a3300; }

.rp-perm-label {
    color: #333;
    font-size: 12px;
}

.rp-save-row {
    padding: 16px 12px;
    border-top: 1px solid #c0c8d8;
    background: #f5f7fa;
}

.rp-save-btn {
    min-width: 140px;
}


/* ─── 27. ROLES & PERMISSIONS – DYNAMIC MANAGEMENT ───────── */
.rp-mgmt-bar {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 8px 12px;
    background: #f0f3f8;
    border: 1px solid #c8d0dc;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rp-mgmt-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rp-mgmt-label {
    font-weight: bold;
    font-size: 12px;
    color: #444;
}

.rp-tab-edit {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    margin-left: 5px;
    text-decoration: none;
}

.rp-tab-edit:hover {
    color: #fff;
    text-decoration: none;
}

.rp-role-tab.active .rp-tab-edit {
    color: rgba(255,255,255,0.8);
}

.rp-module-edit {
    font-size: 11px;
    color: #888;
    margin-left: 5px;
    text-decoration: none;
}

.rp-module-edit:hover {
    color: #2d4c9b;
    text-decoration: none;
}

.rp-no-perms {
    font-size: 11px;
    color: #aaa;
    font-style: italic;
}

.rp-perm-count {
    display: inline-block;
    padding: 2px 8px;
    background: #eef2fa;
    border: 1px solid #c0ccdf;
    color: #2d4c9b;
    font-size: 11px;
    border-radius: 10px;
}

.rp-action-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #c8d0dc;
    background: #f8f9fc;
}

.rp-action-pick-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #d0d6e0;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    user-select: none;
    min-width: 160px;
}

.rp-action-pick-item:hover {
    background: #eef2fa;
    border-color: #aab8d8;
}

.rp-action-pick-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #2d4c9b;
    cursor: pointer;
}

.rp-delete-btn {
    background: linear-gradient(to bottom, #fff5f5, #f5d5d5) !important;
    border-color: #c88 !important;
    color: #8a1f1f !important;
    margin-left: auto;
}

.rp-delete-btn:hover {
    background: linear-gradient(to bottom, #fff0f0, #f0c8c8) !important;
}


/* ─── 28. ROLE-BASED DASHBOARD QUICK ACTIONS ─────────────── */
.db-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 4px 0;
}

.db-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border: 1px solid #b0b8c8;
    background: linear-gradient(to bottom, #f5f7fa, #e0e5ed);
    color: #222;
    text-decoration: none;
    font-size: 12px;
    text-align: center;
    border-radius: 4px;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.db-quick-btn:hover {
    background: linear-gradient(to bottom, #fff, #d0d8e8);
    border-color: #8898b8;
    color: #1a3a80;
    text-decoration: none;
}

.db-quick-btn.db-quick-primary {
    background: linear-gradient(to bottom, #4a6bbf, #2d4c9b);
    color: #fff;
    border-color: #1e377a;
    font-weight: bold;
}

.db-quick-btn.db-quick-primary:hover {
    background: linear-gradient(to bottom, #5a7bcf, #3d5caa);
    color: #fff;
}

.db-quick-icon {
    font-size: 22px;
    line-height: 1;
}


/* ─── 29. LOCKED NAV ITEMS ────────────────────────────────── */
.nav-locked {
    color: #999 !important;
    cursor: not-allowed !important;
    pointer-events: all !important;
}

.nav-locked:hover {
    color: #bbb !important;
    text-decoration: none !important;
    background: transparent !important;
}


/* ─── 30. MOBILE HAMBURGER & SIDEBAR DRAWER ──────────────── */
.topbar-hamburger {
    display: none;  /* hidden on desktop */
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    padding: 0;
}

.topbar-hamburger:hover {
    background: rgba(255,255,255,0.15);
}

/* Active sidebar bottom button */
.side-big-btn.active-side-btn {
    background: linear-gradient(to bottom, #fff6d1, #efd18a);
    font-weight: bold;
    border-top-color: #c6a95a;
}

/* Prevent body scroll when modal is open on mobile */
body.modal-open {
    overflow: hidden;
}


/* ─── 31. DASHBOARD WELCOME BAR ───────────────────────────── */
.db-welcome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(to bottom, #f5f7fa, #e8ecf2);
    border: 1px solid #c8d0dc;
    margin-bottom: 14px;
    font-size: 13px;
    flex-wrap: wrap;
}

.db-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.db-badge-admin {
    background: #2d4c9b;
    color: #fff;
}

.db-badge-agent {
    background: #1a6b1a;
    color: #fff;
}

.db-badge-accountant {
    background: #7a4c00;
    color: #fff;
}

.db-date {
    margin-left: auto;
    font-size: 12px;
    color: #666;
}


/* ─── 32. DEPOSITS & ADJUSTMENTS WORKFLOW ─────────────────── */
.da-section-title {
    font-weight: bold;
    font-size: 13px;
    color: #2d4c9b;
    border-bottom: 1px solid #c0c8d8;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.da-info-bar {
    background: #f0f6ff;
    border: 1px solid #b8ccee;
    color: #2d4c9b;
    padding: 8px 12px;
    font-size: 12px;
    margin-bottom: 14px;
    border-radius: 2px;
}

.da-tabs {
    display: flex;
    gap: 3px;
    border-bottom: 2px solid #2d4c9b;
    margin-bottom: 14px;
}

.da-tab {
    padding: 7px 16px;
    border: 1px solid #b0b8c8;
    border-bottom: none;
    background: linear-gradient(to bottom, #f5f7fa, #e0e5ed);
    color: #333;
    cursor: pointer;
    font-size: 12px;
    font-family: Tahoma, Arial, sans-serif;
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.da-tab:hover {
    background: linear-gradient(to bottom, #fff, #d5dce8);
}

.da-tab.active {
    background: #2d4c9b;
    color: #fff;
    border-color: #2d4c9b;
    font-weight: bold;
}

.da-tab-content {
    min-height: 200px;
}

.da-badge {
    display: inline-block;
    background: #c00;
    color: #fff;
    border-radius: 10px;
    padding: 0 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.da-tab.active .da-badge {
    background: rgba(255,255,255,0.3);
}


/* ─── 33. DEPOSITS ENTRY FORM ─────────────────────────────── */
.da-entry-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.da-entry-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.da-entry-row label {
    width: 150px;
    flex-shrink: 0;
    padding-top: 5px;
    font-size: 12px;
    text-align: right;
}

.da-entry-field {
    width: 380px;
}

.da-upload-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.da-upload-hint {
    font-size: 11px;
    color: #888;
}
