/* Life Football V12 — clean full-width enterprise UI */
:root{
  --lf12-bg:#f6f7f8;
  --lf12-surface:#ffffff;
  --lf12-surface-soft:#fafafa;
  --lf12-line:#e5e7eb;
  --lf12-line-strong:#d1d5db;
  --lf12-text:#15171a;
  --lf12-muted:#68707c;
  --lf12-charcoal:#2b2f33;
  --lf12-charcoal-hover:#1f2327;
  --lf12-soft:#f1f3f5;
  --lf12-radius:12px;
  --lf12-sidebar-w:238px;
}
html,body{background:var(--lf12-bg)!important;color:var(--lf12-text)!important}
body.lf-authenticated{font-size:14px;line-height:1.48;background:var(--lf12-bg)!important}
body.lf-authenticated.lf-bg-img{background:var(--lf12-bg)!important;background-image:none!important}
body.lf-authenticated *{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}

/* Full-width shell */
.lf-app-main{margin-left:var(--lf12-sidebar-w)!important;background:var(--lf12-bg);min-height:100vh}
.lf-page-container,.lf-page-container.lf-page-wide{width:100%!important;max-width:none!important;margin:0!important;padding:18px 22px 36px!important}
.lf-fin-shell,.lf-cashier-v11{width:100%!important;max-width:none!important;margin:0!important}

/* White navigation */
.lf-sidebar{width:var(--lf12-sidebar-w)!important;background:#fff!important;color:var(--lf12-text)!important;border-right:1px solid var(--lf12-line)!important;box-shadow:none!important;padding:14px 12px!important}
.lf-sidebar-brand{border-bottom:1px solid var(--lf12-line)!important;padding:0 6px 13px!important}
.lf-sidebar-brand img{background:#fff!important;border:1px solid var(--lf12-line);box-shadow:none!important}
.lf-sidebar-brand strong{color:#16181b!important;font-size:.82rem!important;letter-spacing:.035em!important}
.lf-sidebar-brand span{color:#7a828d!important}
.lf-side-label{color:#969da6!important;font-size:.6rem!important;letter-spacing:.12em!important;padding:13px 9px 6px!important}
.lf-side-nav a{color:#4d5560!important;background:transparent!important;border:1px solid transparent!important;border-radius:9px!important;min-height:39px!important;font-size:.82rem!important;font-weight:700!important;transform:none!important}
.lf-side-nav a:hover{color:#17191c!important;background:#f5f6f7!important;border-color:#eceff1!important;transform:none!important}
.lf-side-nav a.active{color:#fff!important;background:var(--lf12-charcoal)!important;border-color:var(--lf12-charcoal)!important;box-shadow:none!important}
.lf-nav-icon{width:25px!important;height:25px!important;border-radius:7px!important;background:#f1f3f5!important;color:#656d77!important;font-size:.68rem!important}
.lf-side-nav a.active .lf-nav-icon{background:rgba(255,255,255,.14)!important;color:#fff!important}
.lf-sidebar-account{border-top:1px solid var(--lf12-line)!important}
.lf-sidebar-account strong{color:#22252a!important}.lf-sidebar-account span:not(.lf-avatar){color:#8a929c!important}.lf-sidebar-account a{color:#69727d!important}
.lf-sidebar-account .lf-avatar{background:#eef0f2!important;color:#353a40!important}

/* White top bar */
.lf-topbar{height:60px!important;background:#fff!important;backdrop-filter:none!important;border-bottom:1px solid var(--lf12-line)!important;padding:0 18px!important;box-shadow:none!important}
.lf-global-search{height:38px!important;background:#f7f8f9!important;border:1px solid #e6e8eb!important;border-radius:9px!important;max-width:620px!important}
.lf-global-search:focus-within{background:#fff!important;border-color:#aeb4bc!important;box-shadow:0 0 0 3px rgba(43,47,51,.06)!important}
.lf-global-search input{color:#191b1e!important;font-weight:600}.lf-global-search input::placeholder{color:#9ba1a9!important}
.lf-global-search button{color:#34383d!important}
.lf-top-action{background:#fff!important;border-color:#e2e5e8!important;color:#484f57!important;border-radius:9px!important}
.lf-top-action:hover{background:#f4f5f6!important;color:#1d2024!important}

/* Cards and panels */
body.lf-authenticated .card,body.lf-authenticated .lf-card,body.lf-authenticated .lf-panel,
body.lf-authenticated .lf-fin-workspace,body.lf-authenticated .lf-kpi,body.lf-authenticated .lf-mini-stat,
body.lf-authenticated .lf-stat-quiet,body.lf-authenticated .lf-cashier-user,body.lf-authenticated .lf-paytray{
  background:#fff!important;border:1px solid var(--lf12-line)!important;border-radius:var(--lf12-radius)!important;box-shadow:none!important
}
body.lf-authenticated .lf-card{padding:18px!important}
body.lf-authenticated .card-header,body.lf-authenticated .lf-panel-head{background:#fff!important;border-color:var(--lf12-line)!important}
body.lf-authenticated h1,body.lf-authenticated h2,body.lf-authenticated h3,body.lf-authenticated h4,body.lf-authenticated h5,body.lf-authenticated h6{color:#15171a!important;font-weight:800!important;letter-spacing:-.01em!important}
body.lf-authenticated p,body.lf-authenticated td,body.lf-authenticated th,body.lf-authenticated label{color:#2e3338}
body.lf-authenticated .text-muted,.lf-kpi-sub,.lf-step-note,.lf-fin-eyebrow,.lf-page-kicker{color:#717984!important}

/* Inputs */
body.lf-authenticated .form-control,body.lf-authenticated .form-select{background:#fff!important;color:#1c1f23!important;border:1px solid #d9dde2!important;border-radius:9px!important;min-height:39px!important;font-weight:600!important}
body.lf-authenticated .form-control:focus,body.lf-authenticated .form-select:focus{border-color:#8a9199!important;box-shadow:0 0 0 3px rgba(43,47,51,.07)!important}
body.lf-authenticated .form-control::placeholder{color:#a0a6ad!important}

/* Neutral charcoal buttons. Keep danger/success semantic actions recognizable. */
body.lf-authenticated .btn-primary,body.lf-authenticated .lf-btn-primary,body.lf-authenticated .lf-search-command-btn,body.lf-authenticated .lf-checkout-btn{
  background:var(--lf12-charcoal)!important;border-color:var(--lf12-charcoal)!important;color:#fff!important
}
body.lf-authenticated .btn-primary:hover,body.lf-authenticated .lf-btn-primary:hover,body.lf-authenticated .lf-search-command-btn:hover{background:var(--lf12-charcoal-hover)!important;border-color:var(--lf12-charcoal-hover)!important}
body.lf-authenticated .btn-outline-primary{color:#34383d!important;border-color:#aeb4bb!important;background:#fff!important}
body.lf-authenticated .btn-outline-primary:hover{color:#fff!important;background:#34383d!important;border-color:#34383d!important}
body.lf-authenticated .btn-warning{background:#eef0f2!important;border-color:#d4d8dc!important;color:#25292e!important}
body.lf-authenticated .btn-warning:hover{background:#e3e6e9!important;color:#191c20!important}

/* Tables: crisp, compact and readable */
body.lf-authenticated .table-responsive{border-radius:10px!important;overflow:auto!important}
body.lf-authenticated .table{font-size:.82rem!important;border-color:#e9ecef!important;background:#fff!important}
body.lf-authenticated .table thead th{background:#f6f7f8!important;color:#4e5660!important;border-bottom:1px solid #dfe3e7!important;font-size:.72rem!important;font-weight:800!important;letter-spacing:.01em!important;position:sticky;top:0;z-index:2}
body.lf-authenticated .table tbody td{color:#282d32!important;padding:.62rem .55rem!important;border-color:#eceff1!important}
body.lf-authenticated .table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-bg-type:#fbfbfc!important}
body.lf-authenticated .table-hover>tbody>tr:hover>*{--bs-table-bg-state:#f5f6f7!important}

/* Finance workspace */
.lf-fin-workspace{padding:10px 12px!important;margin-bottom:14px!important;border-radius:10px!important}
.lf-fin-workspace-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px!important}
.lf-fin-title{font-size:.9rem!important;color:#2e3338!important}.lf-fin-eyebrow{font-size:.58rem!important}
.lf-fin-nav{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
.lf-fin-nav a{background:#f5f6f7!important;color:#555d66!important;border:1px solid #eceff1!important;padding:7px 11px!important;border-radius:8px!important;font-size:.78rem!important;font-weight:750!important;text-decoration:none!important}
.lf-fin-nav a:hover{background:#eceff1!important;color:#202428!important}
.lf-fin-nav a.active{background:#303438!important;color:#fff!important;border-color:#303438!important;box-shadow:none!important}
.lf-fin-nav-danger{color:#6c3d43!important}
.lf-page-head{margin:2px 0 14px!important;padding:0 2px!important}.lf-page-head h2{font-size:1.45rem!important;margin-bottom:4px!important}.lf-page-head p{margin:0!important;color:#727a84!important}
.lf-kpi-grid{gap:10px!important;margin-bottom:14px!important}.lf-kpi{padding:14px!important;min-height:auto!important}.lf-kpi-label{color:#727a84!important;font-size:.72rem!important}.lf-kpi-value{color:#171a1d!important;font-size:1.35rem!important;margin-top:4px!important}.lf-kpi.good,.lf-kpi.bad,.lf-kpi.primary{border-left:3px solid #9aa1a8!important}
.lf-action-card{background:#fff!important;border:1px solid #e5e8eb!important;border-radius:10px!important;color:#30363c!important}.lf-action-card:hover{background:#f7f8f9!important;border-color:#cfd4d9!important}.lf-action-card .count{color:#202428!important}

/* Cashier stays intentionally simple */
.lf-cashier-layout{grid-template-columns:minmax(0,1.55fr) minmax(360px,.65fr)!important;gap:14px!important}
.lf-search-command{background:#fff!important;border:1px solid #d8dde2!important;border-radius:12px!important;box-shadow:none!important}
.lf-search-command:focus-within{border-color:#8d949c!important;box-shadow:0 0 0 3px rgba(43,47,51,.06)!important}
.lf-search-state{background:#fff!important;border:1px dashed #d7dce1!important;border-radius:12px!important}
.lf-result-card{background:#fff!important;border:1px solid #e2e5e8!important;border-radius:10px!important;box-shadow:none!important}
.lf-result-card:hover{border-color:#bbc1c7!important;background:#fcfcfc!important}
.lf-add-order{background:#303438!important;color:#fff!important;border-color:#303438!important}
.lf-paytray{position:sticky!important;top:76px!important}
.lf-method-row,.lf-tray-row{border-color:#e5e8eb!important;background:#fff!important}

/* Status pills are muted and readable */
.lf-status,.badge{font-weight:750!important;box-shadow:none!important}.lf-status.neutral{background:#f0f2f4!important;color:#535a63!important}.lf-status.good{background:#edf7f1!important;color:#236443!important}.lf-status.warn{background:#fff7e6!important;color:#835b16!important}.lf-status.bad{background:#fff0f1!important;color:#8a3540!important}

/* Old page-specific dark/gradient containers are neutralized */
body.lf-authenticated [style*="linear-gradient"],body.lf-authenticated [class*="hero"]{filter:none}
body.lf-authenticated .lf-search-hero{background:#fff!important;color:#171a1d!important;border:1px solid var(--lf12-line)!important}

/* Reduce perceived latency and unnecessary animation */
body.lf-authenticated *,body.lf-authenticated *::before,body.lf-authenticated *::after{animation-duration:.12s!important;transition-duration:.12s!important}
body.lf-authenticated .progress-bar{transition:none!important}

@media (max-width:991.98px){
  .lf-app-main{margin-left:0!important}.lf-sidebar{transform:translateX(-100%)}body.lf-sidebar-open .lf-sidebar{transform:translateX(0)}
  .lf-menu-btn{display:inline-grid!important;place-items:center;background:#f1f3f5!important;color:#2f3439!important}
  .lf-page-container,.lf-page-container.lf-page-wide{padding:14px 12px 28px!important}
  .lf-cashier-layout{grid-template-columns:1fr!important}.lf-paytray{position:static!important}.lf-global-search{min-width:0!important}
}

/* V12.1 final shell corrections: the previous template accidentally left the authenticated
   body class incomplete, so many clean-theme selectors never applied. Keep all authenticated
   workspaces full-width and neutral after the repaired body markup. */
body.lf-authenticated .lf-app-shell{min-height:100vh;background:var(--lf12-bg)!important}
body.lf-authenticated .lf-page-container > .container,
body.lf-authenticated .lf-page-container > .container-fluid,
body.lf-authenticated .lf-page-container .container-xl,
body.lf-authenticated .lf-page-container .container-xxl{width:100%!important;max-width:none!important}
body.lf-authenticated .lf-card,
body.lf-authenticated .card{background-image:none!important}
body.lf-authenticated .btn-secondary,
body.lf-authenticated .btn-dark{background:#3a3f44!important;border-color:#3a3f44!important;color:#fff!important}
body.lf-authenticated .btn-outline-secondary{background:#fff!important;color:#454b52!important;border-color:#c9ced4!important}
body.lf-authenticated .btn-outline-secondary:hover{background:#eceff1!important;color:#202428!important;border-color:#aeb5bc!important}
body.lf-authenticated a{transition:none!important}
body.lf-authenticated button,
body.lf-authenticated .btn{transition:none!important}

/* Wide desktop: use the screen instead of leaving a dark/empty gutter. */
@media (min-width: 1200px){
  .lf-page-container,.lf-page-container.lf-page-wide{padding-left:24px!important;padding-right:24px!important}
  .lf-card,.card{max-width:none!important}
}

/* --------------------------------------------------------------------------
   V13 cashier settlement + debtor collection clarity
   -------------------------------------------------------------------------- */
.lf-settlement-title{font-size:.78rem;font-weight:850;color:#373d43;margin:6px 0 8px}
.lf-settlement-options{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:10px}
.lf-settlement-option{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:center;border:1px solid #dfe3e7;border-radius:10px;padding:11px 12px;background:#fff;cursor:pointer}
.lf-settlement-option input{position:absolute;opacity:0;pointer-events:none}
.lf-settlement-option.is-active{border-color:#646b72;background:#f4f5f6;box-shadow:inset 3px 0 0 #34383d}
.lf-settlement-option .lf-settlement-icon{width:30px;height:30px;border-radius:8px;background:#eef0f2;color:#3a4046;display:grid;place-items:center;font-weight:900}
.lf-settlement-option.is-active .lf-settlement-icon{background:#34383d;color:#fff}
.lf-settlement-option b{display:block;color:#22272b;font-size:.84rem}.lf-settlement-option small{display:block;color:#737b84;margin-top:2px;line-height:1.35}
.lf-debt-fields{border:1px solid #e1e4e7;background:#fafafa;border-radius:10px;padding:10px;margin-top:8px}
.lf-settlement-warning{min-height:20px;margin:7px 0;color:#8b4e24;font-size:.76rem;font-weight:700}
.lf-result-out{min-width:95px;color:#737b84;font-size:.72rem}

.lf-debtor-head-total{min-width:190px;text-align:right;border:1px solid #e2e5e8;background:#fff;border-radius:10px;padding:10px 13px}.lf-debtor-head-total span{display:block;color:#757d85;font-size:.7rem}.lf-debtor-head-total strong{display:block;color:#9a3038;font-size:1.2rem;margin-top:2px}
.lf-kpi-value-sm{font-size:1rem!important}
.lf-debt-collect-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.lf-debt-collect-head p{margin:3px 0 0;color:#747c84;font-size:.75rem}.lf-debt-selected-total{text-align:right}.lf-debt-selected-total span{display:block;font-size:.68rem;color:#747b82}.lf-debt-selected-total strong{font-size:1.2rem;color:#22272b}
.lf-debt-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 12px;border-top:1px solid #eef0f2;border-bottom:1px solid #eef0f2;background:#fafbfb}.lf-check-all{font-weight:800;font-size:.78rem;margin-right:4px}
.lf-debt-order-table-wrap{border-radius:0!important}.lf-debt-order-table .debt-order-row.is-selected>*{background:#f6f7f8!important}.lf-debt-order-table .debt-order-row.is-overdue:not(.is-selected)>*{background:#fffafa!important}.lf-debt-order-table .alloc-input:disabled,.lf-debt-order-table .order-slip:disabled{background:#f4f5f6!important;opacity:.62}
.lf-debt-pay-bottom{padding:14px 14px 16px;border-top:1px solid #e7eaed;background:#fff}.lf-debt-pay-meta{display:grid;grid-template-columns:minmax(180px,.35fr) minmax(260px,1fr);gap:10px;margin-bottom:12px}
.lf-debt-reconcile{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.lf-debt-reconcile>div{border:1px solid #e1e4e7;border-radius:9px;padding:9px 10px;background:#fafafa}.lf-debt-reconcile span{display:block;color:#737b83;font-size:.68rem}.lf-debt-reconcile strong{display:block;font-size:.95rem;margin-top:2px}
@media(max-width:991.98px){.lf-debt-pay-meta{grid-template-columns:1fr}.lf-debt-reconcile{grid-template-columns:1fr}.lf-debtor-head-total{text-align:left;width:100%}}
