/**
 * ============================================================================
 * NOT PART OF THE ORIGINAL REPO
 * ----------------------------------------------------------------------------
 * This entire file was added by us; it did not exist in the original
 * repository/live-site copy this project started from.
 *
 * Source: the "Reusable global classes for all loaded subpages" block from
 * the live dev site's global-settings page
 * (https://devbnportal.e2esolutions.ph/global-settings-index.php, captured
 * in scratch/source-code-ph_global-settings-index.php.html), copied here
 * so newer static modules (e.g. chart-of-accounts) that
 * already reference these classes (page-shell, content-card, app-table,
 * btn-app-primary, global-content, status-badge, etc.) render as designed.
 *
 * Deliberately left OUT: that page's body-wide reset (font-family, page
 * background) and its app-shell/sidebar/topbar rules. Those belong to that
 * site's own sidebar layout, which this app's index.php does not use (a
 * plain Bootstrap navbar instead) - including them would have changed the
 * look of every existing page here, not just the new modules.
 * ============================================================================
 */

:root{--app-primary:#6366f1;--app-primary-dark:#4f46e5;--app-primary-soft:#eef2ff;--app-bg:#f6f7fb;--app-surface:#ffffff;--app-text:#172033;--app-muted:#6b7280;--app-border:#e5e7eb;--sidebar-width:245px;--topbar-height:64px;--font-min:.7rem;}

/* Reusable global classes for all loaded subpages */
.page-shell{width:100%;font-size:.72rem;}
.page-header{display:flex;margin-bottom:16px;align-items:flex-start;justify-content:space-between;gap:14px;}
.page-header-main{min-width:0;}
.page-title{margin:0;font-size:1.15rem;font-weight:800;letter-spacing:-.025em;}
.page-subtitle{margin:4px 0 0;font-size:.72rem;color:var(--app-muted);line-height:1.55;}
.page-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;}
.content-card{background:var(--app-surface);border:1px solid var(--app-border);border-radius:14px;box-shadow:0 4px 16px rgba(15,23,42,.035);}
.content-card-header{display:flex;padding:14px 15px;border-bottom:1px solid var(--app-border);align-items:center;justify-content:space-between;gap:12px;}
.content-card-body{padding:15px;}
.section-title{margin:0;font-size:.85rem;font-weight:800;}
.section-subtitle{margin:3px 0 0;font-size:var(--font-min);color:var(--app-muted);}
.filter-bar{display:flex;flex-wrap:wrap;padding:10px;margin-bottom:12px;background:#fff;border:1px solid var(--app-border);border-radius:12px;align-items:end;gap:8px;}
.filter-item{min-width:150px;flex:1 1 160px;}
.filter-actions{display:flex;gap:6px;}
.table-wrap{width:100%;overflow:auto;background:#fff;border:1px solid var(--app-border);border-radius:12px;}
.app-table{min-width:760px;margin:0;font-size:.72rem;}
.app-table thead th{padding:11px;color:#64748b;white-space:nowrap;background:#f8fafc;border-bottom-color:var(--app-border);}
.app-table tbody td{padding:11px;vertical-align:middle;border-bottom-color:#eef2f7;}
.app-table tbody tr:last-child td{border-bottom:0;}
.form-label-sm{margin-bottom:5px;font-size:var(--font-min);font-weight:700;color:#475569;}
.form-section{padding:14px;background:#fff;border:1px solid var(--app-border);border-radius:12px;}
.form-section-title{margin-bottom:12px;font-size:.75rem;font-weight:800;}
.status-badge{display:inline-flex;padding:4px 8px;font-size:var(--font-min);font-weight:800;border-radius:50rem;align-items:center;gap:4px;}
.status-active{color:#047857;background:#ecfdf5;}
.status-inactive{color:#64748b;background:#f1f5f9;}
.status-pending{color:#b45309;background:#fffbeb;}
.action-btn{display:inline-flex;width:29px;height:29px;padding:0;color:#475569;font-size:.72rem;background:#fff;border:1px solid var(--app-border);border-radius:8px;align-items:center;justify-content:center;}
.action-btn:hover{color:var(--app-primary);border-color:#c7d2fe;background:#f8f8ff;}
.btn-app-primary{color:#fff;background:var(--app-primary);border-color:var(--app-primary);}
.btn-app-primary:hover{color:#fff;background:var(--app-primary-dark);border-color:var(--app-primary-dark);}
.empty-state{padding:48px 20px;text-align:center;background:#fff;border:1px dashed #cbd5e1;border-radius:14px;}
.empty-state-icon{display:flex;width:46px;height:46px;margin:0 auto 10px;color:var(--app-primary);font-size:.85rem;background:var(--app-primary-soft);border-radius:13px;align-items:center;justify-content:center;}
.empty-state-title{font-size:.75rem;font-weight:800;}
.empty-state-text{max-width:360px;margin:4px auto 0;font-size:var(--font-min);color:var(--app-muted);line-height:1.55;}
.sticky-toolbar{position:sticky;top:calc(var(--topbar-height) + 8px);z-index:20;}
.global-content{font-size:.72rem;}
.global-content .btn-primary{background:#6366f1;border-color:#6366f1;}
.global-content .btn-primary:hover,.global-content .btn-primary:focus{background:#5558e6;border-color:#5558e6;}
.global-content,.global-content p,.global-content span,.global-content small,.global-content label,.global-content td,.global-content th,.global-content .form-text,.global-content .text-muted{font-size:max(var(--font-min),1em);}
.global-content .form-control,.global-content .form-select,.global-content .btn,.global-content .dropdown-item,.global-content .input-group-text,.modal,.offcanvas,.tooltip,.popover{font-size:.72rem;}
.global-content small,.global-content .small,small,.small{font-size:var(--font-min)!important;}
.global-content{font-size:.7rem;}
.global-content small,
.global-content .small,
.global-content .btn,
.global-content .form-control,
.global-content .form-select,
.global-content .form-label,
.global-content .input-group-text,
.global-content .badge,
.global-content .dropdown-item,
.global-content .table{font-size:.7rem!important;}
@media (max-width:991.98px){.page-header{flex-direction:column;}.page-actions{width:100%;justify-content:flex-start;}}
@media (max-width:575.98px){.page-title{font-size:1rem;}.page-actions .btn{flex:1 1 auto;}.filter-item{min-width:100%;}.filter-actions{width:100%;}.filter-actions .btn{flex:1;}.content-card-header{align-items:flex-start;flex-direction:column;}.content-card-body{padding:12px;}.page-subtitle,.section-subtitle,.app-table,.form-control,.form-select,.btn{font-size:var(--font-min);}}
