/* KFC admin · visual layer only. Bootstrap behavior and status colors retained. */
:root { --ph-red:#e4002b; --ph-ink:#20232b; --ph-muted:#616979; --ph-line:#e4e7ed; --ph-surface:#f3f5f9; }
body { font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ph-ink); }
#content-wrapper { background:var(--ph-surface) !important; }
#content .container-fluid { padding-top:.5rem; padding-bottom:1.5rem; }
h1.h3 { font-weight:750; letter-spacing:-.035em; color:var(--ph-ink) !important; }
.text-gray-800,.text-gray-900 { color:var(--ph-ink) !important; }
.text-gray-600 { color:var(--ph-muted) !important; }
#accordionSidebar { background:linear-gradient(180deg,#24262d,#16181e) !important; border-right:1px solid #30323b; }
.sidebar .sidebar-brand { min-height:5rem; border-bottom:0; text-transform:none; letter-spacing:-.02em; }
.sidebar .sidebar-brand-text { color:#fff; font-size:1.05rem; }
.sidebar .nav-item .nav-link { color:#e2e4eb; border-radius:8px; margin:.2rem .6rem; width:calc(100% - 1.2rem); padding:.85rem .7rem; }
.sidebar .nav-item .nav-link i { color:#b8bdca; }
.sidebar .nav-item .nav-link:hover,.sidebar .nav-item.active > .nav-link { background:#393b45; color:#fff; }
.sidebar .nav-item.active > .nav-link { box-shadow:inset 3px 0 var(--ph-red); }
.sidebar .nav-item .nav-link span { font-size:.875rem; }
.sidebar .collapse-inner { box-shadow:0 8px 20px #0002; }
.sidebar .collapse-inner .collapse-item { border-radius:6px; }
.sidebar .collapse-inner .collapse-item.active { color:var(--ph-red); background:#fff0f2; }
.topbar { border-bottom:1px solid var(--ph-line); box-shadow:0 2px 8px #20232b04 !important; }
.card { border:1px solid var(--ph-line); border-radius:14px; }
.card.shadow,.card.shadow-lg { box-shadow:0 4px 20px #20232b06 !important; }
.card-header { background:#fff; border-bottom:1px solid var(--ph-line); padding:1rem 1.25rem; font-weight:650; }
.card-header:first-child { border-radius:13px 13px 0 0; }
.card-header .text-primary { color:var(--ph-red) !important; }
.form-control,.custom-select { border-color:#cdd2dc; border-radius:8px; color:var(--ph-ink); }
.form-control:focus,.custom-select:focus { border-color:var(--ph-red); box-shadow:0 0 0 .2rem #e4002b18; }
label { color:#414957; font-weight:600; }
.btn { border-radius:8px; font-weight:600; }
.btn-primary { background:var(--ph-red); border-color:var(--ph-red); }
.btn-primary:hover,.btn-primary:active { background:#a90d27 !important; border-color:#a90d27 !important; }
.btn-primary:focus { background:#a90d27; border-color:#a90d27; box-shadow:0 0 0 .2rem #e4002b40; }
.btn-outline-primary { color:var(--ph-red); border-color:var(--ph-red); }
.btn-outline-primary:hover { background:var(--ph-red); border-color:var(--ph-red); }
.btn-link,a { color:#b5102c; }
a:hover { color:#880b21; }
.dropdown-item:active { background:var(--ph-red); }
.table { color:#343b49; }
.table thead th { background:#f5f6f9; color:#4b5363; font-size:.875rem; font-weight:650; border-bottom:1px solid #dce0e7; vertical-align:middle; }
.table td,.table th { border-color:var(--ph-line); }
.table-hover tbody tr:hover { background:#f8f9fc; }
.table-bordered { border-color:var(--ph-line); }
.page-item.active .page-link { background:var(--ph-red); border-color:var(--ph-red); }
.page-link { color:#b5102c; }
.modal-content { border:1px solid var(--ph-line); border-radius:14px; box-shadow:0 24px 80px #13172030; }
.modal-header,.modal-footer { border-color:var(--ph-line); }
.modal-header { background:#f8f9fc; border-radius:14px 14px 0 0; }
.dropdown-menu { border-color:var(--ph-line); border-radius:10px; box-shadow:0 10px 32px #20232b12; }
footer.sticky-footer { border-top:1px solid var(--ph-line); }
:focus-visible { outline:3px solid #e4002b80; outline-offset:3px; }
/* Access screen: same form, same field names, same submission. */
body.ph-login { min-height:100vh; background:radial-gradient(ellipse at 10% 0%,#4c2430 0,transparent 55%),#181a20 !important; }
.ph-login > .container { max-width:560px; padding-top:clamp(1rem,8vh,6rem); padding-bottom:2rem; }
.ph-login .card { border-radius:20px; border-top:5px solid var(--ph-red) !important; box-shadow:0 24px 80px #0004 !important; }
.ph-login h1 { font-weight:800; letter-spacing:-.04em; font-size:2rem; }
.ph-login .ph-login-kicker { color:#a70e27; font-size:.8rem; font-weight:750; letter-spacing:.13em; text-transform:uppercase; margin-bottom:.75rem; }
.ph-login .ph-login-subtitle { color:var(--ph-muted); margin-bottom:2rem; font-size:.95rem; }
.ph-login form.user .form-control-user { border-radius:10px; font-size:1rem; padding:1.5rem 1rem; }
.ph-login form.user .btn-user { border-radius:10px; font-size:1rem; padding:.9rem 1rem; }
.ph-login .col-xl-10,.ph-login .col-lg-12.col-md-9 { flex:0 0 100%; max-width:100%; }
@media(max-width:575.98px) { .ph-login .p-5 { padding:1.75rem !important; } #content .container-fluid { padding-left:1rem; padding-right:1rem; } h1.h3 { font-size:1.5rem; } }
@media print { #content-wrapper { background:#fff !important; } .card { box-shadow:none !important; } }
/* Existing filter rows retain their fields and layout. */
#content .row[style*="background-color: #fffde6"] { background-color:#f8f9fc !important; border-bottom:1px solid var(--ph-line) !important; padding-top:1rem !important; padding-bottom:1rem !important; }
#content .row[style*="background-color: #ddd"] { background-color:#eef0f5 !important; }

/* Dashboard refinement: scoped to preserve other modules. */
.ph-menu-icon { width:20px; height:20px; flex-shrink:0; vertical-align:-4px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; margin-right:.55rem; }
.sidebar.toggled .ph-menu-icon { display:block; margin:0 auto .4rem; }
.ph-dashboard .ph-date-filter { display:flex; align-items:center; justify-content:space-between; gap:2rem; background:#fff; border:1px solid var(--ph-line); border-radius:16px; padding:1.5rem; margin-bottom:1.75rem; box-shadow:0 3px 14px #20232b03; }
.ph-filter-heading { display:flex; align-items:center; gap:1rem; }
.ph-filter-icon { display:grid; place-items:center; width:46px; height:46px; border-radius:12px; background:#f6f0f2; color:#b5102c; font-size:1.6rem; }
.ph-filter-heading h2 { font-size:1rem; font-weight:750; margin:0 0 .3rem; }
.ph-filter-heading p { color:var(--ph-muted); font-size:.875rem; margin:0; }
.ph-filter-fields { display:flex; gap:1rem; align-items:flex-end; }
.ph-filter-fields label { display:block; font-size:.875rem; margin-bottom:.4rem; }
.ph-filter-fields .form-control { min-height:44px; background:#fafbfc; }
.ph-filter-fields button { min-height:44px; padding:.65rem 1.75rem; }
.ph-store-card { padding:1.5rem; box-shadow:0 3px 16px #20232b04; border:1px solid #e3e6ed; border-radius:16px; }
.ph-store-heading { display:flex; gap:.8rem; align-items:center; min-height:46px; margin-bottom:1.5rem; }
.ph-store-heading h2 { margin:0; color:#353b49; font-size:1rem; line-height:1.4; font-weight:700; }
.ph-store-icon { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; border:1px solid #e7e9ee; border-radius:12px; background:#f8f9fc; color:#697285; }
.ph-store-icon svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; }
.ph-store-sales { margin-bottom:1.3rem; }
.ph-store-sales > span { color:var(--ph-muted); font-size:.875rem; }
.ph-store-sales > strong { display:block; font-size:1.85rem; line-height:1.25; letter-spacing:-.045em; font-weight:750; margin:.4rem 0; color:#20232b; font-variant-numeric:tabular-nums; }
.ph-store-sales > small { display:block; color:#7b8392; font-size:.8125rem; }
.ph-store-months { display:grid; grid-template-columns:1fr 1fr; padding:1rem; gap:1rem; border-radius:10px; background:#f5f6f9; margin-bottom:1.2rem; }
.ph-store-months span { display:block; color:#697285; font-size:.8125rem; text-transform:capitalize; margin-bottom:.3rem; }
.ph-store-months strong { display:block; color:#444c5a; font-size:.9375rem; font-weight:650; font-variant-numeric:tabular-nums; }
.ph-store-action { margin-top:auto; }
.ph-store-action .btn { width:100%; background:#fff; color:#ad102b; border:1px solid #e6cbd1; font-size:.875rem; padding:.7rem .5rem; }
.ph-store-action .btn:hover { background:#fff3f5; border-color:#e4002b; }
.ph-summary-card { padding:.5rem; border-radius:16px; border:1px solid #dce2eb; background:#edf1f6; }
.ph-summary-card .text-primary { color:#626c7e !important; text-transform:none !important; font-size:.875rem; font-weight:500 !important; }
.ph-summary-card .h5 { font-size:1.45rem; letter-spacing:-.035em; }
.ph-summary-card .fa-dollar-sign { display:none; }
.ph-summary-card .btn { display:inline-block !important; box-shadow:none !important; }
@media(max-width:1199.98px) { .ph-dashboard .ph-date-filter { align-items:stretch; flex-direction:column; gap:1.25rem; } .ph-filter-fields > div { flex:1; } }
@media(max-width:575.98px) { .ph-filter-fields { flex-wrap:wrap; } .ph-filter-fields > div { flex:1 1 100%; } .ph-filter-fields button { width:100%; } .ph-store-card { padding:1.25rem; } }
