:root{
  --sidebar-width:248px;
  --sidebar-bg:#111827;
  --sidebar-bg-soft:#172033;
  --sidebar-text:#d5dbea;
  --sidebar-muted:#7f8aa3;
  --primary:#635bff;
  --primary-dark:#5149e6;
  --surface:#ffffff;
  --surface-soft:#f7f8fb;
  --body-bg:#f3f5f9;
  --text:#1d2433;
  --muted:#748096;
  --line:#e8ebf1;
  --success:#15936f;
  --warning:#c78317;
  --danger:#d04e58;
  --shadow:0 12px 32px rgba(31,41,55,.075);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{min-height:100%}
body{margin:0;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{text-decoration:none}

.app-body{background:var(--body-bg)}
.app-shell{min-height:100vh}
.app-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);background:var(--sidebar-bg);z-index:1040;border-right:1px solid rgba(255,255,255,.045)}
.sidebar-inner{display:flex;flex-direction:column;width:100%;min-height:100%;padding:16px 12px}
.sidebar-brand{display:flex;align-items:center;gap:10px;min-height:46px;padding:5px 8px 15px;color:#fff}
.brand-mark{width:34px;height:34px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#7c73ff,#4e46db);font-size:.76rem;font-weight:800;letter-spacing:.02em;box-shadow:0 8px 18px rgba(99,91,255,.28)}
.brand-copy{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.brand-copy strong{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-copy small{margin-top:3px;color:var(--sidebar-muted);font-size:.68rem}
.sidebar-label{padding:7px 10px 6px;color:#6f7a91;font-size:.61rem;font-weight:800;letter-spacing:.13em}
.sidebar-nav{display:flex;flex-direction:column;gap:3px}
.sidebar-link{border:0;width:100%;min-height:38px;padding:7px 10px;border-radius:10px;display:flex;align-items:center;justify-content:flex-start;gap:9px;background:transparent;color:var(--sidebar-text);font-size:.81rem;font-weight:600;text-align:left;transition:.18s ease}
.sidebar-link i{width:18px;text-align:center;font-size:.92rem;color:#8994aa}
.sidebar-link:hover{background:rgba(255,255,255,.055);color:#fff}
.sidebar-link.active{background:rgba(99,91,255,.17);color:#fff}
.sidebar-link.active>i,.sidebar-link.active .d-flex>i{color:#a9a4ff}
.sidebar-toggle{justify-content:space-between}
.sidebar-toggle .toggle-icon{width:auto;font-size:.68rem;transition:transform .18s ease}
.sidebar-toggle[aria-expanded="true"] .toggle-icon{transform:rotate(180deg)}
.sidebar-submenu{margin:2px 0 4px 18px;padding:2px 0 2px 13px;border-left:1px solid rgba(255,255,255,.09)}
.sidebar-sublink{position:relative;display:block;padding:6px 10px;border-radius:8px;color:#9ba6bc;font-size:.76rem;font-weight:550;transition:.18s ease}
.sidebar-sublink:hover{color:#fff;background:rgba(255,255,255,.04)}
.sidebar-sublink.active{color:#fff;background:rgba(99,91,255,.13)}
.sidebar-sublink.active:before{content:"";position:absolute;left:-14px;top:50%;width:5px;height:5px;border-radius:50%;background:#8f88ff;transform:translateY(-50%);box-shadow:0 0 0 3px rgba(143,136,255,.13)}
.sidebar-spacer{flex:1;min-height:20px}
.sidebar-user{display:flex;align-items:center;gap:8px;margin-top:12px;padding:10px 8px 2px;border-top:1px solid rgba(255,255,255,.07)}
.user-avatar{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:#242f45;color:#e9edff;font-size:.76rem;font-weight:800}
.user-copy{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.user-copy strong{max-width:120px;color:#edf0f7;font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-copy small{margin-top:3px;color:#78849b;font-size:.65rem}
.icon-btn{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;background:transparent;color:#8792a8;transition:.18s ease}
.icon-btn:hover{background:rgba(255,255,255,.07);color:#fff}

.app-content{min-height:100vh;margin-left:var(--sidebar-width)}
.app-topbar{position:sticky;top:0;z-index:1025;min-height:62px;padding:10px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:rgba(255,255,255,.91);backdrop-filter:blur(14px);border-bottom:1px solid rgba(223,227,235,.86)}
.topbar-title{font-size:.93rem;font-weight:750;color:#263044}
.topbar-actions{display:flex;align-items:center;gap:8px}
.quick-action{min-height:34px;padding:7px 11px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#4c586e;font-size:.75rem;font-weight:700;box-shadow:0 1px 2px rgba(31,41,55,.03)}
.quick-action:hover{color:#202a3d;border-color:#d9deea}
.quick-action.primary{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 6px 14px rgba(99,91,255,.2)}
.quick-action.primary:hover{background:var(--primary-dark);color:#fff}
.app-main{width:100%;max-width:1640px;margin:0 auto;padding:22px 24px 42px}

.page-head{padding-top:2px}
.page-title,h1.h3{font-size:1.45rem!important;font-weight:780;letter-spacing:-.025em;color:#20293a}
.eyebrow{margin-bottom:4px;color:#7c879c;font-size:.66rem;font-weight:800;letter-spacing:.12em}
.version-chip{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#7c8796;font-size:.72rem;box-shadow:0 3px 10px rgba(31,41,55,.035)}
.version-chip strong{color:#303a4f}

.card,.premium-card{border-color:var(--line)!important;border-radius:var(--radius)!important;background:var(--surface);box-shadow:var(--shadow)!important;overflow:hidden}
.card-header{min-height:50px;padding:12px 16px!important;border-bottom:1px solid var(--line)!important}
.card-body{padding:18px!important}
.card-footer{padding:12px 16px!important;border-top:1px solid var(--line)!important}
.stat-card{height:100%;border:0!important;box-shadow:var(--shadow)!important}
.metric-card{padding:17px 18px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 7px 22px rgba(31,41,55,.05)}
.metric-label{color:#7c8798;font-size:.7rem;font-weight:700}
.metric-value{margin-top:6px;color:#222c40;font-size:1.42rem;font-weight:820;letter-spacing:-.035em}
.metric-note{margin-top:3px;color:#9aa3b2;font-size:.69rem}

.btn-premium{box-shadow:0 8px 18px rgba(99,91,255,.2)}

.btn{border-radius:9px;font-size:.8rem;font-weight:700;min-height:36px}
.btn-sm{min-height:30px;border-radius:8px;font-size:.72rem}
.btn-primary{background:var(--primary);border-color:var(--primary)}
.btn-primary:hover,.btn-primary:focus{background:var(--primary-dark);border-color:var(--primary-dark)}
.form-label{margin-bottom:5px;color:#566177;font-size:.71rem;font-weight:700}
.form-control,.form-select{min-height:39px;border-color:#dde2eb;border-radius:9px;background:#fff;color:#293448;font-size:.81rem;box-shadow:none!important}
.form-control:focus,.form-select:focus{border-color:#a7a2ff;box-shadow:0 0 0 3px rgba(99,91,255,.095)!important}
textarea.form-control{min-height:auto}

.table-responsive{outline:none}
.table{--bs-table-bg:transparent;margin-bottom:0}
.table thead th{padding:10px 13px!important;border-bottom:1px solid var(--line);background:#f8f9fb!important;color:#788397;font-size:.67rem;font-weight:800;text-transform:none;white-space:nowrap}
.table tbody td{padding:10px 13px!important;border-color:#edf0f4;color:#364156;font-size:.78rem;vertical-align:middle}
.table-hover>tbody>tr:hover>*{--bs-table-bg-state:#fafbfe}
.premium-table thead th{font-size:.66rem}
.status-pill{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border-radius:999px;font-size:.66rem;font-weight:800}
.status-pill.success{background:#eaf8f3;color:#147658}
.status-pill.warning{background:#fff5df;color:#a66808}
.status-pill.danger{background:#ffebed;color:#b73b47}
.badge{font-weight:700}
.nav-tabs{border-bottom:0;gap:6px;margin-bottom:8px}
.nav-tabs .nav-link{border:1px solid var(--line)!important;border-radius:9px!important;background:#fff;color:#68748a;font-size:.74rem;font-weight:700}
.nav-tabs .nav-link.active{background:#242e41;color:#fff;border-color:#242e41!important}
.premium-alert{border:0;border-radius:12px;box-shadow:0 8px 22px rgba(31,41,55,.065);font-size:.8rem}
.text-secondary{color:var(--muted)!important}
.font-monospace{font-size:.72rem!important}

.login-body{min-height:100vh;background:radial-gradient(circle at top left,#eeefff 0,transparent 36%),linear-gradient(145deg,#f6f7fb,#eef1f6)}
.login-main{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.login-main>.row{width:100%;margin:0}
.login-main .card{max-width:440px;margin:auto;box-shadow:0 22px 60px rgba(31,41,55,.12)!important}
.min-vh-75{min-height:auto!important}

.mobile-sidebar{--bs-offcanvas-width:min(86vw,280px);background:var(--sidebar-bg);color:#fff;border-right:0!important}
.mobile-sidebar .sidebar-inner{min-height:100vh}
.topbar-menu{background:#f2f4f8;color:#4b566b}
.topbar-menu:hover{background:#e9edf3;color:#2f394b}
.min-w-0{min-width:0}

@media(max-width:991.98px){
  .app-content{margin-left:0}
  .app-topbar{min-height:56px;padding:8px 14px}
  .app-main{padding:16px 14px 34px}
  .page-title,h1.h3{font-size:1.25rem!important}
  .card-body{padding:15px!important}
}

@media(max-width:767.98px){
  .app-main{padding-left:11px;padding-right:11px}
  .table{min-width:680px}
  .table tbody td{font-size:.75rem}
  .metric-card{padding:14px 15px}
  .metric-value{font-size:1.22rem}
  .d-flex.justify-content-between.align-items-center.mb-3{align-items:flex-start!important;gap:10px;flex-wrap:wrap}
}

@media(max-width:575.98px){
  .app-topbar{padding-left:10px;padding-right:10px}
  .quick-action{padding:7px 9px}
  .page-head{margin-bottom:14px!important}
  .version-chip{width:100%;justify-content:space-between}
  .btn{min-height:38px}
  .form-control,.form-select{min-height:41px}
}

/* v1.4.0 - Aşama 3 tahsilat deneyimi */
.balance-preview{min-height:39px;display:flex;align-items:center;padding:8px 12px;border:1px dashed #d9deea;border-radius:9px;background:#fafbfc;color:#8993a5;font-size:.8rem;font-weight:700}
.balance-preview.debt{border-style:solid;border-color:#f2d5d9;background:#fff7f8;color:#b63d49}
.balance-preview.credit{border-style:solid;border-color:#d4ece3;background:#f7fcfa;color:#147658}
.balance-preview.zero{border-style:solid;color:#657084}
.table-row-cancelled td{opacity:.62;text-decoration:none}
.table-row-cancelled td:first-child{box-shadow:inset 3px 0 0 #dc6670}
.receipt-sheet{position:relative;max-width:900px;margin:0 auto;padding:32px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 14px 36px rgba(31,41,55,.07);overflow:hidden}
.receipt-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.receipt-brand{font-size:1.2rem;font-weight:850;color:#20293a;letter-spacing:-.03em}
.receipt-amount{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:26px 0;padding:20px 22px;border-radius:14px;background:#f7f8fb}
.receipt-amount span{color:#7a8597;font-size:.76rem;font-weight:700}
.receipt-amount strong{font-size:2rem;line-height:1;color:#20293a;letter-spacing:-.045em}
.receipt-grid{padding:3px 2px 18px}
.receipt-label{margin-bottom:5px;color:#8a94a6;font-size:.66rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.receipt-value{color:#303a4d;font-size:.85rem;font-weight:700}
.receipt-foot{margin-top:10px;padding-top:18px;border-top:1px dashed #dfe3ea;color:#8a94a4;font-size:.72rem;text-align:center}
.receipt-cancel-box{margin-top:14px;padding:14px 16px;border:1px solid #f0cdd1;border-radius:12px;background:#fff5f6;color:#9f3640;font-size:.8rem}
.receipt-cancel-stamp{position:absolute;right:-35px;top:56px;width:170px;padding:8px;transform:rotate(35deg);background:#c84b56;color:#fff;text-align:center;font-size:1rem;font-weight:900;letter-spacing:.16em;box-shadow:0 6px 16px rgba(200,75,86,.18)}

@media(max-width:575.98px){
  .receipt-sheet{padding:20px 16px;border-radius:14px}
  .receipt-head{flex-direction:column}
  .receipt-head .text-end{text-align:left!important}
  .receipt-amount{align-items:flex-start;flex-direction:column;padding:16px}
  .receipt-amount strong{font-size:1.55rem}
}

@media print{
  body{background:#fff!important}
  .app-sidebar,.app-topbar,.no-print,.premium-alert{display:none!important}
  .app-content{margin-left:0!important}
  .app-main{max-width:none!important;padding:0!important}
  .receipt-sheet{max-width:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:18mm 14mm!important}
  .receipt-cancel-stamp{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}



/* v1.23 - premium login */
.login-body{
  min-height:100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(123,115,255,.26), transparent 28%),
    radial-gradient(circle at 88% 84%, rgba(45,212,191,.14), transparent 22%),
    linear-gradient(135deg,#eef2ff 0%,#f5f7fb 34%,#edf2ff 100%);
}
.login-main{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:26px}
.login-main>.row{width:100%;margin:0}
.login-shell{width:min(1380px,100%);margin-inline:auto}
.login-split-card{position:relative;display:grid;grid-template-columns:minmax(420px, 540px) 1fr;min-height:min(860px, calc(100vh - 52px));background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.72);border-radius:32px;overflow:hidden;box-shadow:0 30px 100px rgba(31,41,55,.14);backdrop-filter:blur(22px)}
.login-form-panel{position:relative;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,250,255,.95));z-index:2}
.login-panel-inner{display:flex;flex-direction:column;height:100%;padding:38px 34px 32px}
.login-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.login-kicker,.login-version{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:8px 12px;border-radius:999px;border:1px solid #e4e8f5;background:#fff;color:#44506a;font-size:.74rem;font-weight:800;box-shadow:0 10px 24px rgba(31,41,55,.05)}
.login-kicker i{color:var(--primary)}
.login-version{color:#66728a;font-size:.72rem}
.login-branding{display:flex;align-items:flex-start;gap:16px;margin-bottom:18px}
.login-brand-mark{width:68px;height:68px;flex:0 0 68px;border-radius:22px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#6b63ff,#4338ca);color:#fff;font-size:1.85rem;box-shadow:0 18px 34px rgba(79,70,229,.28)}
.login-branding h1{margin:0 0 8px;font-size:2.05rem;line-height:1.05;font-weight:860;letter-spacing:-.04em;color:#111b35}
.login-branding p{margin:0;color:#677389;font-size:.92rem;line-height:1.65}
.login-chip-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}
.login-chip{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:8px 12px;border-radius:999px;background:#f7f9ff;border:1px solid #e4e9f7;color:#4f5c75;font-size:.75rem;font-weight:800}
.login-chip i{color:#4f46e5}
.login-form-card{padding:22px 22px 20px;border:1px solid #e7ebf3;border-radius:24px;background:rgba(255,255,255,.82);box-shadow:0 16px 40px rgba(31,41,55,.06)}
.login-input-wrap{position:relative}
.login-control{min-height:56px;padding-left:48px;padding-right:16px;border-radius:16px;border-color:#e0e5f0;background:#fbfcff;font-size:.92rem}
.login-control::placeholder{color:#97a1b5}
.login-control:focus{border-color:#8e88ff;background:#fff;box-shadow:0 0 0 4px rgba(99,91,255,.09)!important}
.login-input-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;color:#78839b;font-size:1rem;pointer-events:none}
.login-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:12px;background:transparent;color:#74819b;transition:.18s ease}
.login-password-toggle:hover{background:#f2f4ff;color:#4038ca}
.login-form-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.login-remember{display:flex;align-items:center;gap:10px;padding:0}
.login-remember .form-check-input{float:none;margin:0;width:18px;height:18px;border-radius:6px;border-color:#cad2e0}
.login-remember .form-check-label{color:#556179;font-size:.8rem;font-weight:700}
.login-text-link{color:#524ae3;font-size:.75rem;font-weight:800}
.login-text-link:hover{color:#3d35c8}
.login-meta-badge{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border-radius:999px;background:#eef3ff;color:#536285;font-size:.71rem;font-weight:800}
.login-meta-badge i{color:#5e54ff}
.login-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.login-action-single{grid-template-columns:1fr}
.login-submit-btn,.login-demo-btn{min-height:50px;border-radius:15px;font-size:.85rem;font-weight:800}
.login-submit-btn{box-shadow:0 14px 26px rgba(99,91,255,.24)}
.login-demo-btn{border:1px solid #dfe4f0;background:#f9fbff;color:#33415c}
.login-demo-btn:hover{background:#f1f4ff;color:#24314a;border-color:#d6dcf3}
.login-assist-card{display:flex;align-items:flex-start;gap:14px;margin-top:18px;padding:16px 18px;border-radius:20px;background:linear-gradient(135deg,#121c38,#1d2d55 60%,#23386a);color:#f2f5ff;box-shadow:0 20px 44px rgba(17,24,39,.18)}
.login-assist-icon{width:42px;height:42px;flex:0 0 42px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.12);font-size:1rem;color:#99e9ff}
.login-assist-card strong{display:block;margin-bottom:5px;font-size:.9rem}
.login-assist-card p{color:rgba(237,242,255,.84);font-size:.78rem;line-height:1.6}
.login-security-note{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;border:1px solid #e5e9f4;background:#fff;color:#556278;font-size:.76rem;font-weight:700;box-shadow:0 12px 28px rgba(31,41,55,.04)}
.login-security-note i{width:28px;height:28px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:#eef2ff;color:#4e46db}

.login-visual-panel{position:relative;overflow:hidden;padding:44px 40px 36px;background:
 linear-gradient(150deg,#041b52 0%, #07255f 28%, #0b3278 58%, #133f8f 100%);
 color:#fff;isolation:isolate}
.login-visual-bg{position:absolute;inset:0;background:
 radial-gradient(circle at 20% 20%, rgba(86,169,255,.24), transparent 26%),
 radial-gradient(circle at 82% 18%, rgba(126,87,255,.26), transparent 20%),
 radial-gradient(circle at 74% 80%, rgba(45,212,191,.18), transparent 24%);
 opacity:.95}
.login-grid-glow{position:absolute;inset:auto -20% -20% auto;width:72%;height:72%;background:radial-gradient(circle, rgba(255,255,255,.15) 0%, rgba(255,255,255,0) 66%);filter:blur(18px);opacity:.42}
.login-orb{position:absolute;border-radius:999px;filter:blur(0);opacity:.9;mix-blend-mode:screen}
.login-orb.orb-one{width:260px;height:260px;right:-42px;top:-48px;background:radial-gradient(circle at 30% 30%, rgba(125,211,252,.65), rgba(69,109,255,.12) 68%, transparent 72%);animation:loginFloatOrb 12s ease-in-out infinite}
.login-orb.orb-two{width:220px;height:220px;left:-56px;bottom:-50px;background:radial-gradient(circle at 40% 40%, rgba(94,234,212,.28), rgba(45,212,191,.08) 68%, transparent 72%);animation:loginFloatOrb 14s ease-in-out infinite reverse}
.login-visual-content{position:relative;z-index:1;display:flex;flex-direction:column;height:100%}
.login-visual-kicker{display:inline-flex;align-self:flex-start;min-height:34px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);font-size:.74rem;font-weight:800;letter-spacing:.08em;color:#d9e7ff;backdrop-filter:blur(10px)}
.login-visual-content h2{max-width:720px;margin:18px 0 12px;font-size:2.4rem;line-height:1.08;font-weight:860;letter-spacing:-.04em}
.login-visual-content>p{max-width:620px;margin:0;color:rgba(230,238,255,.8);font-size:.95rem;line-height:1.7}
.login-center-stage{position:relative;flex:1;min-height:420px;margin-top:22px;border-radius:30px;border:1px solid rgba(255,255,255,.14);background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));backdrop-filter:blur(10px);overflow:hidden}
.login-center-stage::before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 96%, rgba(255,255,255,.08) 96%),linear-gradient(90deg, transparent 96%, rgba(255,255,255,.08) 96%);background-size:34px 34px;opacity:.22}
.login-core-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:18px;min-width:290px;padding:22px 24px;border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.22);box-shadow:0 30px 70px rgba(3,12,35,.26);backdrop-filter:blur(18px)}
.login-core-icon{width:68px;height:68px;border-radius:22px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#69a6ff,#6c63ff);font-size:1.9rem;color:#fff;box-shadow:0 18px 32px rgba(98,112,255,.35)}
.login-core-card strong{display:block;font-size:1.05rem;font-weight:850}
.login-core-card span{display:block;margin-top:3px;color:#d2defa;font-size:.8rem}
.login-float-card{position:absolute;display:flex;align-items:center;gap:12px;min-width:200px;padding:14px 15px;border-radius:18px;background:rgba(7,28,80,.48);border:1px solid rgba(255,255,255,.16);box-shadow:0 18px 36px rgba(2,10,28,.2);backdrop-filter:blur(10px);animation:loginFloatCard 7s ease-in-out infinite}
.login-float-card i{width:38px;height:38px;flex:0 0 38px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:rgba(125,211,252,.16);color:#9fe8ff;font-size:1.05rem}
.login-float-card strong{display:block;font-size:.82rem;font-weight:820}
.login-float-card span{display:block;margin-top:3px;color:#d8e4ff;font-size:.7rem;opacity:.84}
.float-card-a{left:26px;top:24px}
.float-card-b{right:28px;top:44px;animation-delay:-1s}
.float-card-c{left:32px;bottom:110px;animation-delay:-2s}
.float-card-d{right:24px;bottom:124px;animation-delay:-3s}
.float-card-e{left:20%;top:68%;animation-delay:-2.5s}
.float-card-f{right:18%;top:66%;animation-delay:-1.5s}
.login-feature-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.login-feature-box{padding:16px 16px 15px;border-radius:18px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(10px);box-shadow:0 16px 34px rgba(2,8,24,.12)}
.login-feature-box span{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:#dfeaff;font-size:.74rem;font-weight:800}
.login-feature-box strong{display:block;color:#fff;font-size:.82rem;line-height:1.45}
@keyframes loginFloatCard{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes loginFloatOrb{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,18px,0)}}

@media(max-width:1199.98px){
  .login-split-card{grid-template-columns:minmax(380px,490px) 1fr;min-height:auto}
  .login-visual-content h2{font-size:2rem}
  .login-center-stage{min-height:390px}
  .login-feature-stats{grid-template-columns:1fr}
}
@media(max-width:991.98px){
  .login-main{padding:16px}
  .login-split-card{grid-template-columns:1fr;min-height:auto}
  .login-form-panel{order:2}
  .login-visual-panel{order:1;padding:28px 24px 24px}
  .login-visual-content h2{font-size:1.72rem;max-width:none}
  .login-visual-content>p{font-size:.88rem}
  .login-center-stage{min-height:340px;margin-top:18px}
  .login-core-card{min-width:250px;padding:18px}
  .float-card-e,.float-card-f{display:none}
}
@media(max-width:767.98px){
  .login-panel-inner{padding:24px 18px 20px}
  .login-topline{flex-wrap:wrap}
  .login-brand-mark{width:58px;height:58px;flex-basis:58px;font-size:1.5rem;border-radius:18px}
  .login-branding h1{font-size:1.72rem}
  .login-form-card{padding:18px 16px}
  .login-action-grid{grid-template-columns:1fr}
  .login-form-meta{align-items:flex-start;flex-direction:column}
  .login-visual-panel{padding:20px 16px 18px}
  .login-center-stage{min-height:315px}
  .login-float-card{min-width:170px;padding:11px 12px}
  .login-float-card i{width:34px;height:34px;flex-basis:34px;border-radius:11px;font-size:.95rem}
  .float-card-a{left:10px;top:12px}
  .float-card-b{right:10px;top:18px}
  .float-card-c{left:12px;bottom:88px}
  .float-card-d{right:10px;bottom:92px}
}
@media(max-width:575.98px){
  .login-shell{width:100%}
  .login-split-card{border-radius:24px}
  .login-kicker,.login-version,.login-chip,.login-meta-badge{font-size:.68rem}
  .login-visual-content h2{font-size:1.45rem}
  .login-center-stage{min-height:290px}
  .login-core-card{left:50%;top:50%;width:calc(100% - 32px);min-width:0;gap:14px}
  .login-core-icon{width:58px;height:58px;font-size:1.55rem;border-radius:18px}
  .login-float-card{min-width:0;width:160px}
  .login-float-card strong{font-size:.75rem}
  .login-float-card span{font-size:.65rem}
  .login-feature-box{padding:13px 14px}
}

/* v1.5 inventory components */
.input-group-text{border-color:#dde2eb;background:#f7f8fb;color:#6d788c;font-size:.78rem;font-weight:700}
.mini-stat{display:flex;flex-direction:column;gap:3px;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}
.mini-stat span{color:var(--muted);font-size:.66rem;font-weight:700}
.mini-stat strong{font-size:.91rem;color:#2c3649}
.notice-box{display:flex;align-items:flex-start;gap:11px;padding:13px 14px;border:1px solid #dfe5f2;border-radius:12px;background:#f8faff;color:#536077}
.notice-box>i{margin-top:1px;color:var(--primary);font-size:1rem}
.notice-box>div{display:flex;flex-direction:column;gap:2px}
.notice-box strong{color:#2b3548;font-size:.76rem}
.notice-box span{font-size:.7rem;line-height:1.45}
.premium-check{display:flex;align-items:flex-start;gap:8px;padding:12px 13px;border:1px solid var(--line);border-radius:11px;background:#fafbfc}
.premium-check .form-check-input{margin-left:0;margin-top:2px;flex:0 0 auto}
.premium-check .form-check-label{display:flex;flex-direction:column;gap:2px}
.premium-check .form-check-label strong{font-size:.76rem;color:#354057}
.premium-check .form-check-label span{font-size:.68rem;color:var(--muted)}
.list-group-item-action{transition:.18s ease}
.list-group-item-action:hover{background:#fafbfe}

@media(max-width:575.98px){
  .topbar-actions .quick-action{padding-left:9px;padding-right:9px}
  .notice-box{padding:11px 12px}
  .page-head .btn{flex:1 1 auto}
}

/* v1.6 - Aşama 5 satış deneyimi */
.sale-summary-card{top:72px}
.sale-lines-wrap{min-height:180px}
.sale-lines .form-control,.sale-lines .form-select{min-height:38px;font-size:.75rem}
.sale-lines .input-group-text{padding-left:9px;padding-right:9px}
.sale-stock-hint{min-height:18px}
.sale-summary-lines{display:flex;flex-direction:column;gap:0;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fafbfc}
.sale-summary-lines>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 12px;border-bottom:1px solid var(--line);font-size:.75rem}
.sale-summary-lines>div:last-child{border-bottom:0}
.sale-summary-lines span{color:var(--muted);font-weight:700}
.sale-summary-lines strong{color:#313c50;font-size:.82rem}
.sale-summary-lines .grand{background:#f1f4ff;padding-top:13px;padding-bottom:13px}
.sale-summary-lines .grand span,.sale-summary-lines .grand strong{color:#33419b}
.sale-summary-lines .grand strong{font-size:1.05rem}
.sale-summary-lines .remaining{background:#fff8ed}
.sale-summary-lines .remaining span,.sale-summary-lines .remaining strong{color:#9a6513}
.sale-document{position:relative;max-width:1050px;margin:0 auto;padding:30px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 14px 36px rgba(31,41,55,.065);overflow:hidden}
.sale-doc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.sale-info-box{height:100%;padding:14px 15px;border:1px solid var(--line);border-radius:12px;background:#fafbfc}
.sale-detail-table{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.sale-totals{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:13px;overflow:hidden}
.sale-totals>div{display:flex;justify-content:space-between;gap:15px;padding:9px 12px;border-bottom:1px solid var(--line);font-size:.77rem}
.sale-totals>div:last-child{border-bottom:0}
.sale-totals span{color:var(--muted)}
.sale-totals .grand{background:#f3f5fb;font-size:.88rem}
.sale-totals .grand strong{font-size:1rem}
.sale-totals .remaining{background:#fff8ed;color:#9a6513}
.sale-note{display:flex;flex-direction:column;gap:4px;margin-top:18px;padding:13px 15px;border-radius:11px;background:#f8f9fb;font-size:.76rem}
.sale-note span{color:var(--muted)}
.sale-doc-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px;padding-top:16px;border-top:1px dashed #dfe3ea;color:var(--muted);font-size:.7rem}
.sale-cancel-stamp{position:absolute;right:-34px;top:60px;width:170px;padding:8px;transform:rotate(35deg);background:#c84b56;color:#fff;text-align:center;font-size:1rem;font-weight:900;letter-spacing:.16em;box-shadow:0 6px 16px rgba(200,75,86,.18);z-index:2}
.icon-btn.danger{color:#b8434e;background:#fff2f3}
.icon-btn.danger:hover{background:#ffe6e8;color:#9d2f39}

@media(max-width:1199.98px){.sale-summary-card{position:static!important}}
@media(max-width:575.98px){
  .sale-document{padding:18px 14px;border-radius:13px}
  .sale-doc-head{flex-direction:column}
  .sale-doc-head .text-end{text-align:left!important}
  .sale-summary-lines>div{padding:9px 10px}
}
@media print{
  .sale-document{max-width:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:12mm 10mm!important}
  .sale-cancel-stamp{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* v1.9 - Aşama 7 rapor merkezi */
.report-tabs{display:flex;gap:7px;overflow-x:auto;padding:2px 1px 5px;scrollbar-width:thin}
.report-tab{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#677287;font-size:.73rem;font-weight:750;text-decoration:none;transition:.18s ease}
.report-tab:hover{border-color:#cfd5e2;background:#fafbfe;color:#303a4e}
.report-tab.active{border-color:#313b58;background:#313b58;color:#fff;box-shadow:0 7px 18px rgba(49,59,88,.12)}
.report-period-label{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#737e91;font-size:.69rem;font-weight:750}
.report-kpi{height:100%;display:flex;flex-direction:column;gap:4px;padding:15px 16px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 7px 20px rgba(31,41,55,.035)}
.report-kpi>span{color:var(--muted);font-size:.67rem;font-weight:750;text-transform:uppercase;letter-spacing:.035em}
.report-kpi>strong{color:#2b3548;font-size:1.15rem;letter-spacing:-.025em}
.report-kpi>small{color:var(--muted);font-size:.65rem}
@media(max-width:575.98px){.report-tab{padding:8px 10px}.report-kpi{padding:13px 14px}.report-kpi>strong{font-size:1rem}}
@media print{
  .report-tabs,.report-period-label{display:none!important}
  .report-kpi,.premium-card,.metric-card{box-shadow:none!important;border:1px solid #dfe3ea!important;break-inside:avoid}
  .table{min-width:0!important;font-size:9pt!important}
}

/* v1.10 - Aşama 8 güvenlik, audit ve çıktı iyileştirmeleri */
.print-only{display:none}
.login-security-note{display:flex;align-items:center;gap:8px;padding:10px 11px;border:1px solid #e2e6ee;border-radius:10px;background:#fafbfc;color:#768196;font-size:.7rem;font-weight:650}
.login-security-note i{color:var(--success);font-size:.9rem}
.audit-module{display:inline-flex;align-items:center;padding:4px 7px;border-radius:7px;background:#f1f3f8;color:#566176;font-size:.64rem;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.audit-agent{max-width:260px}
.audit-json{max-height:320px;margin:0;padding:13px 14px;border:1px solid #e4e8ef;border-radius:10px;background:#f8f9fb;color:#364156;font-size:.7rem;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.audit-table-wrap .modal{text-align:left}

@media(max-width:767.98px){
  .audit-agent{max-width:150px}
}

@media print{
  @page{size:A4 portrait;margin:10mm}
  html,body{background:#fff!important;font-size:10pt!important}
  .print-only{display:flex!important}
  .print-global-header{align-items:center;justify-content:space-between;gap:12px;margin-bottom:8mm;padding-bottom:3mm;border-bottom:1px solid #d9dde5;color:#394257;font-size:9pt}
  .app-sidebar,.app-topbar,.offcanvas,.no-print,.premium-alert,.btn,.modal,.sidebar-user{display:none!important}
  .app-content{margin-left:0!important}
  .app-main{max-width:none!important;padding:0!important}
  .card,.premium-card,.metric-card,.report-kpi{box-shadow:none!important;break-inside:avoid}
  .table-responsive{overflow:visible!important}
  .table{width:100%!important;min-width:0!important}
  .table thead{display:table-header-group}
  .table tfoot{display:table-footer-group}
  .table tr{break-inside:avoid;page-break-inside:avoid}
  .table th,.table td{padding:5px 6px!important;font-size:8.5pt!important}
  a{color:#111!important;text-decoration:none!important}
  .sale-document,.receipt-sheet{break-inside:auto}
}

.profile-avatar{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border-radius:15px;background:linear-gradient(135deg,#756dff,#4f47df);color:#fff;font-size:1.15rem;font-weight:850;box-shadow:0 10px 22px rgba(99,91,255,.22)}
.profile-info-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.profile-info-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 13px;border-bottom:1px solid var(--line);font-size:.76rem}
.profile-info-list>div:last-child{border-bottom:0}.profile-info-list span{color:var(--muted)}.profile-info-list strong{color:#354057}

/* v1.11 - Mobil uygulama hissi ve alt navigasyon */
.mobile-bottom-nav{position:fixed;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:1045;display:grid;grid-template-columns:repeat(var(--mobile-nav-count,5),minmax(0,1fr));align-items:end;min-height:68px;padding:7px 5px 6px;border:1px solid rgba(218,223,233,.92);border-radius:21px;background:rgba(255,255,255,.94);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:0 18px 42px rgba(31,41,55,.17)}
.mobile-bottom-item,.mobile-bottom-action{min-width:0;border:0;background:transparent;color:#8a94a7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 2px;font-size:.61rem;font-weight:760;line-height:1.1;text-align:center;transition:transform .16s ease,color .16s ease;-webkit-tap-highlight-color:transparent}
.mobile-bottom-item i{font-size:1.08rem;line-height:1}
.mobile-bottom-item span,.mobile-bottom-action>span:last-child{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-bottom-item:hover,.mobile-bottom-item:focus,.mobile-bottom-item.active{color:var(--primary)}
.mobile-bottom-item:active{transform:scale(.95)}
button.mobile-bottom-item{font-family:inherit}
.mobile-bottom-action{position:relative;transform:translateY(-8px);color:#4d5770}
.mobile-bottom-action:hover,.mobile-bottom-action:focus,.mobile-bottom-action.active{color:var(--primary)}
.mobile-bottom-action:active{transform:translateY(-8px) scale(.96)}
.mobile-bottom-action-icon{width:50px;height:50px;display:flex;align-items:center;justify-content:center;border:5px solid rgba(255,255,255,.96);border-radius:17px;background:linear-gradient(145deg,#746cff,#5048df);color:#fff;box-shadow:0 10px 22px rgba(99,91,255,.32)}
.mobile-bottom-action-icon i{font-size:1.18rem;line-height:1}
.mobile-bottom-action.active .mobile-bottom-action-icon{box-shadow:0 10px 26px rgba(99,91,255,.4),0 0 0 3px rgba(99,91,255,.1)}


.mobile-customer-list{display:flex;flex-direction:column;gap:8px}
.mobile-customer-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto 16px;align-items:center;gap:10px;padding:11px 10px;border:1px solid #e8ebf1;border-radius:15px;background:#fff;color:inherit;box-shadow:0 7px 20px rgba(31,41,55,.045);-webkit-tap-highlight-color:transparent}
.mobile-customer-card:active{transform:scale(.988);background:#fafbfe}
.mobile-customer-card.is-passive{opacity:.62}
.mobile-customer-avatar{width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#eef0ff,#e5e8ff);color:#564ee0;font-size:.9rem;font-weight:850}
.mobile-customer-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.mobile-customer-name{display:block;color:#293348;font-size:.79rem;font-weight:790;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-customer-name em{display:inline-flex;margin-left:4px;padding:2px 5px;border-radius:5px;background:#f0efff;color:#635bff;font-size:.5rem;font-style:normal;font-weight:850;vertical-align:2px}
.mobile-customer-meta{display:block;color:#8a94a6;font-size:.62rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-customer-meta b{font-weight:400;color:#c2c8d2}
.mobile-customer-balance{display:flex;flex-direction:column;align-items:flex-end;gap:2px;white-space:nowrap}
.mobile-customer-balance strong{font-size:.72rem;font-weight:850}
.mobile-customer-balance small{font-size:.55rem;font-weight:750;text-transform:uppercase;letter-spacing:.025em}
.mobile-customer-balance.debt{color:#c84b56}.mobile-customer-balance.credit{color:#15936f}.mobile-customer-balance.zero{color:#8a94a6}
.mobile-customer-chevron{color:#c0c6d1;font-size:.72rem}
.mobile-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:30px 18px;border:1px dashed #dde2eb;border-radius:15px;background:#fff;color:#8a94a6;text-align:center}
.mobile-empty-state i{font-size:1.35rem}.mobile-empty-state strong{color:#49546a;font-size:.8rem}.mobile-empty-state span{font-size:.66rem}

@media(max-width:991.98px){
  .app-body{overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent}
  .app-topbar{padding-top:calc(8px + env(safe-area-inset-top));justify-content:center;background:rgba(247,248,251,.94);box-shadow:0 1px 0 rgba(226,230,238,.85)}
  .app-topbar .topbar-menu,.app-topbar .topbar-actions{display:none!important}
  .topbar-title{font-size:.94rem;font-weight:820;text-align:center;letter-spacing:-.015em}
  .app-main{padding-bottom:calc(106px + env(safe-area-inset-bottom))}
  .premium-card,.card{box-shadow:0 8px 24px rgba(31,41,55,.06)!important}
}

@media(max-width:575.98px){
  .app-main{padding-top:13px}
  .mobile-bottom-nav{left:8px;right:8px;bottom:calc(7px + env(safe-area-inset-bottom));border-radius:19px}
  .mobile-bottom-item,.mobile-bottom-action{font-size:.59rem}
  .mobile-bottom-action-icon{width:48px;height:48px;border-radius:16px}
  .page-title,h1.h3{font-size:1.15rem!important}
}

@media print{.mobile-bottom-nav{display:none!important}}

/* v1.12 - Kasa / gelir gider */
.cash-account-card{position:relative;overflow:hidden;padding:18px;border:1px solid #e7eaf1;border-radius:18px;background:linear-gradient(145deg,#fff,#fafbff);box-shadow:0 10px 30px rgba(31,41,55,.055)}
.cash-account-card:before{content:"";position:absolute;right:-30px;top:-40px;width:120px;height:120px;border-radius:50%;background:rgba(99,91,255,.055);pointer-events:none}
.cash-account-card.is-passive{opacity:.58;filter:saturate(.65)}
.cash-account-icon{width:42px;height:42px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#f0efff,#e8e9ff);color:#5d55e8;font-size:1.05rem}
.cash-balance{font-size:1.18rem;font-weight:850;letter-spacing:-.025em;color:#222b3b;margin-top:2px;white-space:nowrap}
.cash-account-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:13px;border-top:1px solid #edf0f5;font-size:.7rem;font-weight:720;color:#7c8798}
@media(max-width:575.98px){
  .cash-account-card{padding:14px;border-radius:16px}
  .cash-account-icon{width:38px;height:38px;border-radius:12px}
  .cash-balance{font-size:1rem}
  .cash-account-foot{font-size:.65rem}
}

/* v1.13 - Aşama 10 hızlı satış / POS */
.pos-screen{margin:-4px 0 0}.pos-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 190px auto;gap:10px;margin-bottom:12px}.pos-scan-wrap{position:relative}.pos-scan-wrap>i{position:absolute;left:14px;top:50%;transform:translateY(-50%);z-index:2;color:#625ae8;font-size:1.1rem}.pos-scan-wrap .form-control{height:48px;padding-left:42px;padding-right:42px;border-radius:14px;border-color:#dfe3ec;background:#fff;font-weight:680;box-shadow:0 7px 20px rgba(31,41,55,.045)}.pos-scan-wrap .form-control:focus{border-color:#aaa5ff;box-shadow:0 0 0 4px rgba(99,91,255,.09)}.pos-scan-clear{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:31px;height:31px;border:0;border-radius:9px;background:#f1f3f7;color:#8993a4}.pos-warehouse{height:48px;border-radius:14px;font-size:.75rem;font-weight:720}.pos-history{height:48px;display:flex;align-items:center;gap:7px;border-radius:14px;font-size:.74rem;font-weight:750}.pos-layout{display:grid;grid-template-columns:minmax(380px,1.15fr) minmax(360px,.9fr) 290px;gap:12px;align-items:stretch}.pos-products-panel,.pos-cart-panel,.pos-payment-panel{min-height:calc(100vh - 170px);border:1px solid #e5e8ef;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(31,41,55,.05);overflow:hidden}.pos-products-panel,.pos-cart-panel{display:flex;flex-direction:column}.pos-panel-head,.pos-cart-head{min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;border-bottom:1px solid #edf0f5}.pos-panel-head>div,.pos-cart-head>div{display:flex;align-items:baseline;gap:8px}.pos-panel-head strong,.pos-cart-head strong{font-size:.84rem;color:#2b3549}.pos-panel-head span,.pos-cart-head span{font-size:.62rem;color:#939cad}.pos-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;overflow:auto;align-content:start}.pos-product-card{min-height:105px;display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:11px;border:1px solid #e8ebf2;border-radius:14px;background:linear-gradient(145deg,#fff,#fbfcff);color:#30394d;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease}.pos-product-card:hover{border-color:#c9c5ff;box-shadow:0 8px 18px rgba(99,91,255,.08);transform:translateY(-1px)}.pos-product-card:active{transform:scale(.985)}.pos-product-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px;font-size:.72rem;font-weight:800;line-height:1.35}.pos-product-meta{margin-top:4px;color:#929bad;font-size:.56rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-product-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:auto;padding-top:9px}.pos-product-foot strong{font-size:.73rem;color:#4d46d8}.pos-product-foot small{font-size:.55rem;color:#7c8798}.pos-product-foot small.stock-zero{color:#c54b57}.pos-no-results{grid-column:1/-1;min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#8993a4;text-align:center}.pos-no-results i{font-size:1.4rem}.pos-no-results strong{font-size:.8rem;color:#4d576d}.pos-no-results span{font-size:.64rem}.pos-search-state{padding:8px 12px;border-bottom:1px solid #eef1f5;background:#fafbff;color:#6f798c;font-size:.65rem}.pos-customer-row{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border-bottom:1px solid #edf0f5;background:#fbfcff}.pos-customer-icon{width:38px;height:38px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#efeeff;color:#5e56e8}.pos-customer-row label{display:block;margin-bottom:3px;color:#858fa1;font-size:.56rem;font-weight:780;text-transform:uppercase}.pos-customer-row .form-select{height:33px;padding-top:4px;padding-bottom:4px;border:0;background-color:transparent;font-size:.72rem;font-weight:770;color:#313a4d;box-shadow:none}.pos-customer-balance{display:block;margin-top:2px;font-size:.58rem;font-weight:720}.pos-customer-balance.debt{color:#c34d58}.pos-customer-balance.credit{color:#159370}.pos-customer-balance.zero{color:#919aaa}.pos-cart-lines{flex:1;overflow:auto;padding:4px 9px 10px}.pos-cart-empty{flex:1;min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#929bac;text-align:center}.pos-empty-icon{width:54px;height:54px;display:flex;align-items:center;justify-content:center;border-radius:17px;background:#f1f2f8;color:#7d86a0;font-size:1.35rem}.pos-cart-empty strong{font-size:.8rem;color:#4d576c}.pos-cart-empty>span:last-child{font-size:.63rem}.pos-cart-line{display:grid;grid-template-columns:minmax(130px,1fr) 112px 86px 78px 30px;align-items:center;gap:7px;padding:9px 4px;border-bottom:1px solid #edf0f5}.pos-line-main{min-width:0}.pos-line-main strong{display:block;color:#313a4d;font-size:.69rem;font-weight:790;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-line-main span{display:block;margin-top:2px;color:#98a1b1;font-size:.54rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-qty-control{display:grid;grid-template-columns:30px 1fr 30px;align-items:center;border:1px solid #e1e5ec;border-radius:10px;overflow:hidden}.pos-qty-control button{height:31px;border:0;background:#f7f8fa;color:#697488}.pos-qty-control input{width:100%;height:31px;border:0;border-left:1px solid #e8ebf0;border-right:1px solid #e8ebf0;text-align:center;font-size:.63rem;font-weight:760;outline:none}.pos-price-wrap{position:relative}.pos-price-wrap input{width:100%;height:33px;padding:5px 19px 5px 7px;border:1px solid #e1e5ec;border-radius:9px;text-align:right;font-size:.62rem;font-weight:720;outline:none}.pos-price-wrap span{position:absolute;right:7px;top:50%;transform:translateY(-50%);color:#9aa3b2;font-size:.58rem}.pos-line-total{text-align:right;color:#333c50;font-size:.68rem;font-weight:820;white-space:nowrap}.pos-line-remove{width:29px;height:29px;border:0;border-radius:9px;background:#fff1f2;color:#c14d59}.pos-payment-panel{padding:14px;display:flex;flex-direction:column;gap:13px;position:sticky;top:76px}.pos-total-block{padding:16px;border-radius:15px;background:linear-gradient(145deg,#232a3a,#151b29);color:#fff}.pos-total-block>span{display:block;color:#aeb5c5;font-size:.58rem;font-weight:800;letter-spacing:.1em}.pos-total-block>strong{display:block;margin-top:2px;font-size:1.75rem;font-weight:880;letter-spacing:-.045em}.pos-total-block>small{display:block;margin-top:4px;color:#aeb5c5;font-size:.6rem}.pos-payment-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}.pos-pay-btn{height:68px;border:1px solid #e3e6ed;border-radius:13px;background:#fff;color:#737d90;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:.64rem;font-weight:780}.pos-pay-btn i{font-size:1.05rem}.pos-pay-btn.active{border-color:#8d86ff;background:#f2f1ff;color:#554ddd;box-shadow:0 0 0 3px rgba(99,91,255,.07)}.pos-partial-box{padding:11px;border:1px solid #e7e9f0;border-radius:12px;background:#fafbfe}.pos-partial-box label{display:block;margin-bottom:5px;color:#778296;font-size:.59rem;font-weight:780}.pos-partial-box .input-group-lg>.form-control,.pos-partial-box .input-group-lg>.input-group-text{font-size:.85rem}.pos-payment-summary{display:flex;flex-direction:column;border-top:1px solid #eceff4;border-bottom:1px solid #eceff4;padding:7px 0}.pos-payment-summary>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 1px;font-size:.66rem}.pos-payment-summary span{color:#7e899b}.pos-payment-summary strong{color:#343d51}.pos-complete{min-height:57px;margin-top:auto;border-radius:14px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:10px 13px;font-size:.74rem;font-weight:820}.pos-complete strong{font-size:.78rem}.pos-complete.is-loading{opacity:.7;pointer-events:none}.pos-shortcuts{align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;color:#929bac;font-size:.52rem}.pos-shortcuts kbd{padding:2px 4px;background:#f0f2f6;color:#596477;border:1px solid #e0e4eb;border-radius:4px;font-size:.49rem}.thermal-receipt{width:80mm;max-width:100%;margin:0 auto;padding:8mm 5mm;background:#fff;color:#171717;border:1px solid #e5e5e5;box-shadow:0 14px 40px rgba(0,0,0,.08);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px}.thermal-head{text-align:center;display:flex;flex-direction:column;align-items:center;gap:2px}.thermal-head strong{font-size:14px}.thermal-head span{font-size:9px}.thermal-logo{width:35px;height:35px;display:flex;align-items:center;justify-content:center;border:2px solid #111;border-radius:50%;font-weight:900;margin-bottom:3px}.thermal-cancel{margin:8px 0;padding:5px;border:2px dashed #111;text-align:center;font-weight:900}.thermal-meta{margin-top:9px}.thermal-meta>div,.thermal-totals>div{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:2px 0}.thermal-meta span,.thermal-totals span{color:#444}.thermal-meta strong,.thermal-totals strong{text-align:right}.thermal-divider{margin:7px 0;border-top:1px dashed #555}.thermal-item{display:grid;grid-template-columns:1fr auto;gap:1px 8px;padding:4px 0}.thermal-item strong{grid-column:1/-1}.thermal-item span{color:#444}.thermal-item b{text-align:right}.thermal-totals .grand{margin:3px 0;padding:5px 0;border-top:1px solid #222;border-bottom:1px solid #222;font-size:12px}.thermal-footer{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;padding-top:4px}.thermal-footer small{font-size:8px;color:#555}.pos-receipt-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:14px}
@media(max-width:1399.98px){.pos-layout{grid-template-columns:minmax(330px,1fr) minmax(330px,.9fr) 260px}.pos-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-cart-line{grid-template-columns:minmax(115px,1fr) 104px 78px 70px 28px}.pos-payment-panel{padding:11px}}
@media(max-width:1199.98px){.pos-layout{grid-template-columns:1fr 1fr}.pos-payment-panel{grid-column:1/-1;min-height:auto;position:static;display:grid;grid-template-columns:220px 1fr 220px;align-items:center}.pos-payment-buttons{grid-template-columns:repeat(4,1fr)}.pos-pay-btn{height:58px}.pos-partial-box{grid-column:2/3}.pos-payment-summary{grid-column:3/4;grid-row:1/2}.pos-complete{grid-column:3/4;grid-row:2/3;margin-top:0}.pos-products-panel,.pos-cart-panel{min-height:600px}}
@media(max-width:767.98px){.pos-screen{margin:-2px -3px 0}.pos-toolbar{grid-template-columns:1fr auto;margin-bottom:8px;gap:7px}.pos-scan-wrap{grid-column:1/-1}.pos-scan-wrap .form-control{height:45px;border-radius:13px}.pos-warehouse{height:40px;border-radius:11px;font-size:.68rem}.pos-history{height:40px;border-radius:11px}.pos-history span{display:none}.pos-layout{display:flex;flex-direction:column;gap:8px}.pos-products-panel,.pos-cart-panel,.pos-payment-panel{min-height:auto;border-radius:15px;box-shadow:0 7px 20px rgba(31,41,55,.05)}.pos-products-panel{order:1;max-height:330px}.pos-cart-panel{order:2}.pos-payment-panel{order:3;display:flex;padding:10px}.pos-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px}.pos-product-card{min-height:92px;padding:9px;border-radius:12px}.pos-product-name{font-size:.68rem;min-height:32px}.pos-product-foot strong{font-size:.68rem}.pos-panel-head,.pos-cart-head{min-height:47px;padding:8px 10px}.pos-customer-row{padding:9px 10px}.pos-cart-lines{max-height:340px}.pos-cart-line{grid-template-columns:minmax(100px,1fr) 98px 70px 27px;grid-template-areas:'main qty total remove' 'main price total remove';gap:5px;padding:8px 2px}.pos-line-main{grid-area:main}.pos-qty-control{grid-area:qty}.pos-price-wrap{grid-area:price}.pos-line-total{grid-area:total}.pos-line-remove{grid-area:remove}.pos-qty-control{grid-template-columns:28px 1fr 28px}.pos-qty-control button,.pos-qty-control input{height:29px}.pos-price-wrap input{height:29px}.pos-payment-buttons{grid-template-columns:repeat(4,1fr);gap:5px}.pos-pay-btn{height:58px;font-size:.57rem;border-radius:11px}.pos-total-block{padding:13px;border-radius:13px}.pos-total-block>strong{font-size:1.5rem}.pos-complete{min-height:54px}.pos-partial-box{order:2}.pos-payment-summary{order:3}.pos-complete{order:4}.thermal-receipt{width:100%;padding:7mm 4mm;box-shadow:none}}
@media(max-width:389.98px){.pos-product-grid{grid-template-columns:1fr 1fr}.pos-cart-line{grid-template-columns:minmax(88px,1fr) 91px 62px 25px}.pos-payment-buttons{grid-template-columns:1fr 1fr}.pos-pay-btn{height:54px}}
@media print{.pos-screen .pos-products-panel,.pos-screen .pos-payment-panel,.pos-screen .pos-toolbar,.pos-screen .pos-customer-row,.pos-screen .pos-cart-head{display:none!important}.thermal-receipt{width:80mm!important;max-width:80mm!important;margin:0!important;padding:2mm!important;border:0!important;box-shadow:none!important;font-size:9pt!important}.pos-receipt-actions{display:none!important}@page{size:80mm auto;margin:2mm}}
.status-pill.info{background:#edf4ff;color:#3167a8}.status-pill.neutral{background:#f1f3f6;color:#667085}

/* v1.14 - WhatsApp borc hatirlatma */
.whatsapp-info-alert{display:flex;align-items:flex-start;gap:11px;padding:14px 16px;border-radius:15px;background:linear-gradient(135deg,#f7fffa,#fbfffd)!important;color:#334155}.whatsapp-info-alert>i{font-size:1.15rem;color:#1fa463;margin-top:1px}.whatsapp-info-alert>div{display:flex;flex-direction:column;gap:2px}.whatsapp-info-alert strong{font-size:.78rem}.whatsapp-info-alert span{font-size:.68rem;color:#6b7586}.whatsapp-template-preview{display:flex;align-items:flex-start;gap:9px;padding:11px 13px;border:1px dashed #cfe8d9;border-radius:12px;background:#f7fcf9;color:#536273;font-size:.68rem;line-height:1.45}.whatsapp-template-preview i{color:#1fa463;font-size:.95rem}.whatsapp-mobile-list{padding:8px}.whatsapp-mobile-card{padding:13px;margin-bottom:8px;border:1px solid #e7ebef;border-radius:15px;background:#fff;box-shadow:0 5px 16px rgba(31,41,55,.04)}.whatsapp-mobile-card:last-child{margin-bottom:0}.whatsapp-mobile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.whatsapp-mobile-head>div{min-width:0}.whatsapp-mobile-head strong{display:block;font-size:.78rem;color:#30394c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.whatsapp-mobile-head span{display:block;margin-top:2px;font-size:.59rem;color:#8993a3}.whatsapp-mobile-head>b{font-size:.76rem;color:#c04c57;white-space:nowrap}.whatsapp-mobile-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:11px;padding-top:9px;border-top:1px solid #eef1f4}.whatsapp-mobile-foot small{font-size:.56rem;color:#8a94a4}.whatsapp-mobile-foot form{margin:0}.whatsapp-mobile-foot .btn-success,.btn-success{--bs-btn-bg:#1ea85f;--bs-btn-border-color:#1ea85f;--bs-btn-hover-bg:#188f50;--bs-btn-hover-border-color:#188f50}.whatsapp-mobile-foot .btn{border-radius:10px;font-weight:750}.whatsapp-template-token{display:inline-flex;align-items:center;padding:2px 6px;border-radius:7px;background:#eef8f2;color:#16804a;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.6rem}
@media(max-width:767.98px){.whatsapp-info-alert{padding:12px 13px}.whatsapp-info-alert span{font-size:.63rem}.whatsapp-template-preview{font-size:.63rem}.whatsapp-mobile-card{border-radius:14px}.whatsapp-mobile-head strong{font-size:.74rem}}

/* v1.15 - Excel / CSV veri aktarim merkezi */
.transfer-export-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.transfer-export-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border:1px solid var(--border-color,#e5e7eb);border-radius:14px;background:rgba(248,250,252,.72)}.transfer-export-item strong{display:block;font-size:.92rem}.transfer-export-item small{display:block;color:#94a3b8;margin-top:.1rem}.transfer-export-item .btn-group{flex:none}.premium-card code{color:#0f766e;background:#ecfdf5;border-radius:6px;padding:.12rem .32rem}
@media(max-width:767.98px){.transfer-export-grid{grid-template-columns:1fr}.transfer-export-item{padding:.75rem .8rem}.transfer-export-item .btn{min-width:58px}.app-main .page-title{font-size:1.3rem}}

/* v1.16 - Aşama 13 profesyonel belgeler ve cari ekstre */
.document-sheet{position:relative;max-width:1120px;margin:0 auto;padding:28px;border:1px solid #e4e8ef;border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(31,41,55,.07);color:#273142}
.document-company-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:18px;border-bottom:2px solid #222b3a}
.document-brand{font-size:1.25rem;font-weight:900;letter-spacing:-.025em;color:#222b3a}
.document-contact{margin-top:3px;color:#788396;font-size:.7rem;line-height:1.45}
.document-type{font-size:.82rem;font-weight:900;letter-spacing:.08em;color:#222b3a}
.document-date{margin-top:4px;color:#7d8798;font-size:.68rem}
.document-party-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.document-party{padding:13px 14px;border:1px solid #e8ebf0;border-radius:12px;background:#fafbfc}
.document-party>span{display:block;margin-bottom:4px;color:#8a94a5;font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.document-party>strong{display:block;color:#303a4c;font-size:.8rem}
.document-party>small{display:block;margin-top:3px;color:#818b9c;font-size:.62rem}
.document-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 18px}
.document-summary-grid>div{padding:12px 13px;border:1px solid #e6eaf0;border-radius:12px;background:#fff}
.document-summary-grid span{display:block;color:#8a94a5;font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.document-summary-grid strong{display:block;margin-top:5px;color:#313b4e;font-size:.84rem}
.document-summary-grid .primary{border-color:#d9d6ff;background:#f7f6ff}
.document-summary-grid .primary strong{color:#564ee0}
.document-table-wrap{border:1px solid #e6e9ef;border-radius:12px;overflow:hidden}
.document-table{font-size:.72rem}
.document-table thead th{padding:9px 10px;background:#f4f6f9;color:#596478;border-bottom:1px solid #dfe4eb;font-size:.6rem;font-weight:850;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap}
.document-table tbody td{padding:9px 10px;border-color:#edf0f4;color:#465165;vertical-align:middle}
.document-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-top:13px;border-top:1px solid #e1e5eb;color:#7b8596;font-size:.62rem}
.receipt-sheet .document-footer,.sale-document .document-footer{margin-top:18px}
.sale-document .document-contact,.receipt-sheet .document-contact{color:#7d8798;font-size:.64rem}
@media(max-width:767.98px){.document-sheet{padding:16px;border-radius:15px}.document-company-head{gap:12px}.document-type{font-size:.69rem}.document-party-grid{grid-template-columns:1fr}.document-summary-grid{grid-template-columns:1fr 1fr}.document-table{min-width:760px}.document-footer{flex-direction:column;gap:4px}}
@media print{
  .document-sheet,.receipt-sheet,.sale-document{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
  .document-company-head{padding-bottom:5mm;margin-bottom:4mm;border-bottom:1.5pt solid #222b3a}
  .document-party-grid{grid-template-columns:1fr 1fr!important;gap:3mm!important;margin:4mm 0!important}
  .document-party{padding:3mm!important;border:1px solid #dfe3e9!important;background:#fff!important}
  .document-summary-grid{grid-template-columns:repeat(4,1fr)!important;gap:2.5mm!important;margin-bottom:4mm!important}
  .document-summary-grid>div{padding:3mm!important;border:1px solid #dfe3e9!important;background:#fff!important}
  .document-table-wrap{overflow:visible!important;border:0!important;border-radius:0!important}
  .document-table{min-width:0!important;font-size:8pt!important}
  .document-table thead{display:table-header-group!important}
  .document-table th,.document-table td{padding:2mm 1.5mm!important;font-size:7.5pt!important}
  .document-footer{margin-top:5mm!important;padding-top:3mm!important;font-size:7.5pt!important;break-inside:avoid}
  .statement-sheet{font-size:9pt!important}
  .receipt-sheet,.sale-document{break-inside:auto!important}
}

/* v1.18 - Şube ve personel yönetimi */
.branch-switcher{height:38px;align-items:center;gap:8px;padding:0 10px;border:1px solid rgba(148,163,184,.28);border-radius:12px;background:rgba(255,255,255,.86);box-shadow:0 6px 18px rgba(15,23,42,.05)}
.branch-switcher i{color:#475569}.branch-switcher select{border:0;background:transparent;outline:0;max-width:165px;font-weight:700;font-size:.86rem;color:#0f172a;cursor:pointer}
.sidebar-branch-switch{margin:0 12px 10px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.sidebar-branch-switch label{display:block;color:#94a3b8;font-size:.64rem;font-weight:800;letter-spacing:.08em;margin-bottom:4px}
.sidebar-branch-switch select{width:100%;border:0;background:#172033;color:#f8fafc;border-radius:8px;padding:6px 8px;font-size:.78rem;outline:0}
.branch-choice{cursor:pointer;transition:.18s ease;background:#fff}.branch-choice:hover{border-color:#94a3b8!important;box-shadow:0 5px 18px rgba(15,23,42,.06)}
.branch-choice:has(.form-check-input:checked){border-color:#6366f1!important;background:rgba(99,102,241,.045)}
@media (max-width:767.98px){.branch-switcher{display:none!important}.branch-choice{padding:.75rem!important}}

/* v1.19 PWA / kurulabilir mobil uygulama */
.sidebar-install-link{width:100%;border:0;background:transparent;text-align:left;font-family:inherit}
.pwa-install-trigger{cursor:pointer}
.pwa-install-sheet[hidden]{display:none!important}
.pwa-install-sheet{position:fixed;inset:0;z-index:1095;display:flex;align-items:flex-end;justify-content:center;padding:18px;opacity:0;pointer-events:none;transition:opacity .18s ease}
.pwa-install-sheet.show{opacity:1;pointer-events:auto}
.pwa-install-backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,42,.48);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.pwa-install-card{position:relative;width:min(460px,100%);padding:14px 18px calc(18px + env(safe-area-inset-bottom));border:1px solid rgba(224,228,236,.94);border-radius:25px;background:#fff;box-shadow:0 30px 80px rgba(15,23,42,.25);transform:translateY(18px);transition:transform .18s ease}
.pwa-install-sheet.show .pwa-install-card{transform:translateY(0)}
.pwa-install-handle{width:42px;height:4px;margin:0 auto 16px;border-radius:99px;background:#d7dce5}
.pwa-install-icon{width:68px;height:68px;margin-bottom:14px;border-radius:20px;overflow:hidden;box-shadow:0 10px 28px rgba(67,56,202,.22)}
.pwa-install-icon img{width:100%;height:100%;display:block}
.pwa-install-copy h2{margin:0 0 7px;color:#263147;font-size:1.08rem;font-weight:850;letter-spacing:-.025em}
.pwa-install-copy p{margin:0;color:#7b8698;font-size:.75rem;line-height:1.55}
.pwa-ios-steps{display:grid;gap:8px;margin-top:16px}
.pwa-ios-steps>div{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:9px;padding:9px 10px;border:1px solid #e8ebf1;border-radius:12px;background:#fafbfe;color:#657084;font-size:.7rem}
.pwa-ios-steps b{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#efefff;color:#5b52e8}
.pwa-install-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:9px;margin-top:18px}
.pwa-install-actions .btn{min-height:43px;border-radius:12px;font-size:.73rem;font-weight:800}
.pwa-network-pill{position:fixed;z-index:1085;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid rgba(254,202,202,.9);border-radius:99px;background:rgba(255,247,247,.96);color:#b43d49;font-size:.67rem;font-weight:800;box-shadow:0 9px 26px rgba(94,31,39,.14);backdrop-filter:blur(12px)}
.pwa-network-pill[hidden]{display:none!important}
.pwa-standalone body{overscroll-behavior-y:none}
.pwa-standalone .app-topbar{padding-top:calc(10px + env(safe-area-inset-top))}
.pwa-standalone .mobile-sidebar{padding-top:env(safe-area-inset-top)}
@media(min-width:992px){.pwa-network-pill{bottom:22px}.pwa-install-sheet{align-items:center}.pwa-install-card{padding-bottom:18px}}
@media(max-width:575.98px){.pwa-install-sheet{padding:10px}.pwa-install-card{border-radius:23px}.pwa-install-actions{grid-template-columns:1fr 1.2fr}}
@media print{.pwa-install-sheet,.pwa-network-pill,.pwa-install-trigger{display:none!important}}

/* v1.22 demo hesap koruma popup */
.demo-lock-modal .modal-content{border-radius:24px;overflow:hidden}
.demo-lock-icon{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(145deg,#eff6ff,#dbeafe);color:#2563eb;font-size:28px;box-shadow:inset 0 0 0 1px rgba(37,99,235,.08)}
body[data-demo-account="1"] .sidebar-brand .brand-mark{position:relative}
body[data-demo-account="1"] .sidebar-brand .brand-mark::after{content:"D";position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#2563eb;color:#fff;font:700 10px/18px system-ui;text-align:center;box-shadow:0 0 0 2px #111827}


/* v1.24 - system-consistent login typography */
.login-shell,
.login-shell button,
.login-shell input,
.login-shell select,
.login-shell textarea,
.login-shell a,
.login-shell span,
.login-shell strong,
.login-shell p,
.login-shell h1,
.login-shell h2,
.login-shell label {
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
.login-branding h1{
  font-size:1.82rem;
  line-height:1.15;
  font-weight:760;
  letter-spacing:-.018em;
}
.login-branding p{
  font-size:.88rem;
  line-height:1.58;
  font-weight:400;
  letter-spacing:0;
}
.login-kicker,.login-version,.login-chip,.login-meta-badge{
  font-weight:650;
  letter-spacing:0;
  text-transform:none;
}
.login-visual-kicker{
  font-size:.76rem;
  font-weight:650;
  letter-spacing:.01em;
  text-transform:none;
}
.login-visual-content h2{
  max-width:680px;
  margin:18px 0 10px;
  font-size:2rem;
  line-height:1.18;
  font-weight:760;
  letter-spacing:-.018em;
}
.login-visual-content>p{
  font-size:.9rem;
  line-height:1.62;
  font-weight:400;
  letter-spacing:0;
}
.login-form-card .form-label,
.login-remember .form-check-label,
.login-text-link,
.login-security-note,
.login-assist-card p,
.login-core-card span,
.login-float-card span,
.login-feature-box span{
  letter-spacing:0;
}
.login-form-card .form-label{font-weight:650}
.login-control{font-weight:400}
.login-submit-btn,.login-demo-btn{font-weight:700;letter-spacing:0}
.login-assist-card strong,.login-core-card strong,.login-float-card strong,.login-feature-box strong{font-weight:700;letter-spacing:0}
.login-feature-box strong{font-size:.8rem;line-height:1.42}
.login-core-card strong{font-size:1rem}
.login-float-card strong{font-size:.8rem}
@media(max-width:991.98px){
  .login-visual-content h2{font-size:1.72rem}
}
@media(max-width:767.98px){
  .login-branding h1{font-size:1.58rem}
}
@media(max-width:575.98px){
  .login-visual-content h2{font-size:1.36rem}
}

/* v1.25 CSP-safe text action */
.login-text-button{padding:0;border:0;background:transparent;font-family:inherit;line-height:inherit;cursor:pointer}


/* v1.30 - toplu seçim / toplu silme */
.bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 7px 20px rgba(31,41,55,.04);transition:.18s ease}
.bulk-toolbar.has-selection{border-color:#d8d5ff;background:linear-gradient(120deg,#fbfbff,#fff);box-shadow:0 9px 24px rgba(99,91,255,.07)}
.bulk-toolbar-copy{display:flex;align-items:center;gap:9px;color:#677389;font-size:.76rem;font-weight:700}
.bulk-toolbar-copy i{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:#f0f1ff;color:var(--primary)}
.bulk-toolbar-copy strong{color:#2d374b}
.bulk-toolbar-actions{display:flex;align-items:center;gap:8px}
.bulk-select-head,.bulk-select-cell{width:42px!important;min-width:42px!important;text-align:center!important;padding-left:10px!important;padding-right:6px!important}
.bulk-select-head .form-check-input,.bulk-select-cell .form-check-input,.bulk-card-checkbox .form-check-input{width:17px;height:17px;margin:0;cursor:pointer;border-color:#cbd3e1}
.bulk-select-cell .form-check-input:checked,.bulk-select-head .form-check-input:checked,.bulk-card-checkbox .form-check-input:checked{background-color:var(--primary);border-color:var(--primary)}
.bulk-card-selectable{position:relative}
.bulk-card-checkbox{position:absolute;z-index:5;left:12px;top:12px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:rgba(255,255,255,.94);border:1px solid #e1e5ee;box-shadow:0 6px 18px rgba(31,41,55,.08)}
.bulk-card-selectable>.card-body,.cash-account-card.bulk-card-selectable{padding-top:48px!important}
.mobile-customer-card.bulk-card-selectable{padding-left:54px}
.mobile-customer-card.bulk-card-selectable .bulk-card-checkbox{left:10px;top:50%;transform:translateY(-50%)}
.bulk-action-icon{width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#fff0f1;color:#c8424d;font-size:1.2rem}
#bulkReasonWrap[hidden]{display:none!important}
@media(max-width:575.98px){.bulk-toolbar{align-items:stretch;flex-direction:column}.bulk-toolbar-actions{display:grid;grid-template-columns:1fr 1fr}.bulk-toolbar-actions .btn{width:100%}}


/* v1.31 - merkezi modul yonetimi */
.module-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-bottom:92px}
.module-group-card{overflow:visible!important}
.module-group-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfcff)}
.module-group-toggle{display:flex;align-items:center;gap:10px;color:#66738a;font-size:.72rem;font-weight:800;white-space:nowrap}
.module-group-toggle .form-check-input,.module-switch .form-check-input{width:2.65rem;height:1.38rem;margin:0;cursor:pointer}
.module-list{display:flex;flex-direction:column}
.module-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px 18px;border-bottom:1px solid #eef1f5;transition:.18s ease}
.module-row:last-child{border-bottom:0}
.module-row:hover{background:#fbfcff}
.module-row.is-disabled{background:#fafafa}
.module-row.is-disabled .module-icon,.module-row.is-disabled .module-copy{opacity:.64}
.module-icon{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#f0f2ff;color:#5149e6;font-size:1.05rem}
.module-copy strong{font-size:.82rem;color:#2c364a}
.module-copy p{margin:4px 0 0;color:#7c8799;font-size:.7rem;line-height:1.5}
.module-dependency{margin-top:6px;color:#8b6e2f;font-size:.66rem;font-weight:700}
.module-state-badge{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border-radius:999px;font-size:.61rem;font-weight:800}
.module-state-badge.active{background:#e9f8f2;color:#147658}
.module-state-badge.inactive{background:#f0f1f4;color:#717b8d}
.module-switch{display:flex;align-items:center}
.module-savebar{position:fixed;left:calc(var(--sidebar-width) + 24px);right:24px;bottom:18px;z-index:1024;display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1592px;margin:auto;padding:14px 16px;border:1px solid rgba(218,223,233,.94);border-radius:16px;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);box-shadow:0 16px 42px rgba(31,41,55,.14)}
.module-savebar>div{display:flex;flex-direction:column;gap:2px}.module-savebar strong{font-size:.8rem}.module-savebar span{color:#7c8799;font-size:.68rem}
@media(max-width:1199.98px){.module-settings-grid{grid-template-columns:1fr}}
@media(max-width:991.98px){.module-savebar{left:14px;right:14px;bottom:calc(82px + env(safe-area-inset-bottom))}}
@media(max-width:575.98px){.module-group-head{padding:15px 14px}.module-row{grid-template-columns:40px minmax(0,1fr) auto;padding:13px 14px;gap:10px}.module-icon{width:38px;height:38px;border-radius:12px}.module-savebar{align-items:stretch;flex-direction:column}.module-savebar .btn{width:100%}}

/* v1.35 - POS hızlı müşteri/ürün ve müşteri portalı */
.pos-product-card-wrap{position:relative;min-width:0}.pos-product-card-wrap>.pos-product-card{width:100%;height:100%}.pos-product-edit{position:absolute;top:6px;right:6px;z-index:3;width:27px;height:27px;border:1px solid #e2e5ec;border-radius:9px;background:rgba(255,255,255,.96);color:#5b55d9;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(31,41,55,.08);font-size:.7rem}.pos-product-edit:hover{background:#5e56e8;color:#fff;border-color:#5e56e8}.pos-add-customer{width:38px;height:33px;display:flex;align-items:center;justify-content:center;padding:0;border-radius:10px}.pos-customer-required{display:block;margin-top:3px;color:#9a6b18;font-size:.54rem;font-weight:650}.customer-account-admin-box{padding:18px;border:1px solid #e2e5ee;border-radius:16px;background:linear-gradient(145deg,#fbfcff,#f6f7fb)}.customer-admin-account-card{border:1px solid #e6e8ef!important}.customer-admin-account-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:#efeeff;color:#5e56e8;font-size:1.1rem}

.customer-portal-body{min-height:100vh;margin:0;background:#f4f6f9;color:#202a3b;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.customer-topbar{position:sticky;top:0;z-index:1020;height:68px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 max(18px,calc((100vw - 1180px)/2));background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid #e8ebf0}.customer-brand{display:flex;align-items:center;gap:11px;color:#202a3b;text-decoration:none}.customer-brand-mark{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:linear-gradient(145deg,#242c40,#111827);color:#fff;font-size:1rem;box-shadow:0 8px 22px rgba(17,24,39,.16)}.customer-brand strong,.customer-brand small{display:block}.customer-brand strong{font-size:.82rem}.customer-brand small{margin-top:1px;color:#8a94a5;font-size:.58rem}.customer-top-user{display:flex;align-items:center;gap:10px;color:#5d687a;font-size:.72rem;font-weight:700}.customer-desktop-nav{height:54px;position:sticky;top:68px;z-index:1010;align-items:center;justify-content:center;gap:5px;background:#fff;border-bottom:1px solid #e8ebf0}.customer-desktop-nav a{display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:10px;color:#6c7688;text-decoration:none;font-size:.68rem;font-weight:750}.customer-desktop-nav a.active,.customer-desktop-nav a:hover{background:#f0efff;color:#554ddd}.customer-portal-main{width:min(1180px,calc(100% - 28px));margin:0 auto;padding:28px 0 92px}.customer-alert{margin:0 0 18px;border:0;border-radius:14px;box-shadow:0 6px 18px rgba(31,41,55,.05)}.customer-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}.customer-page-head h1{margin:3px 0 4px;font-size:1.65rem;font-weight:850;letter-spacing:-.035em}.customer-page-head p{margin:0;color:#7d8798;font-size:.72rem}.customer-summary-grid{display:grid;grid-template-columns:1.35fr repeat(3,1fr);gap:12px;margin-bottom:20px}.customer-balance-card,.customer-stat-card{min-height:142px;padding:20px;border-radius:19px;background:#fff;border:1px solid #e6e9ef;box-shadow:0 10px 30px rgba(31,41,55,.045);display:flex;flex-direction:column}.customer-balance-card{color:#fff;border:0;background:linear-gradient(145deg,#2a3144,#121826)}.customer-balance-card.credit{background:linear-gradient(145deg,#087a66,#07594d)}.customer-balance-card.zero{background:linear-gradient(145deg,#4c5568,#30384a)}.customer-balance-card span,.customer-stat-card span{font-size:.62rem;font-weight:780;letter-spacing:.02em}.customer-balance-card span{color:#c8ced9}.customer-balance-card strong,.customer-stat-card strong{margin-top:9px;font-size:1.45rem;font-weight:880;letter-spacing:-.035em}.customer-balance-card small,.customer-stat-card small{margin-top:auto;font-size:.6rem}.customer-balance-card small{color:#abb4c5}.customer-stat-card span,.customer-stat-card small{color:#8a94a6}.customer-stat-card strong{color:#273145}.customer-section{margin-bottom:18px;border:1px solid #e6e9ef;border-radius:19px;background:#fff;box-shadow:0 10px 30px rgba(31,41,55,.04);overflow:hidden}.customer-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 19px;border-bottom:1px solid #edf0f4}.customer-section-head h2{margin:0;font-size:.9rem;font-weight:820}.customer-section-head p{margin:2px 0 0;color:#8c96a7;font-size:.61rem}.customer-sale-list{display:flex;flex-direction:column}.customer-sale-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto 18px;gap:11px;align-items:center;padding:13px 17px;color:#303a4d;text-decoration:none;border-bottom:1px solid #edf0f4;transition:background .12s ease}.customer-sale-row:last-child{border-bottom:0}.customer-sale-row:hover{background:#fafbfe}.customer-sale-row.cancelled{opacity:.52}.customer-sale-icon{width:39px;height:39px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#f1f0ff;color:#5c55df}.customer-sale-main strong,.customer-sale-main span,.customer-sale-amount strong,.customer-sale-amount span{display:block}.customer-sale-main strong{font-size:.7rem}.customer-sale-main span,.customer-sale-amount span{margin-top:2px;color:#8b95a5;font-size:.57rem}.customer-sale-amount{text-align:right}.customer-sale-amount strong{font-size:.72rem}.customer-empty{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:28px;color:#8791a2;text-align:center}.customer-empty>i{font-size:1.6rem}.customer-empty strong{color:#4b5669;font-size:.78rem}.customer-filter-bar{display:flex;align-items:flex-end;gap:8px;padding:14px;margin-bottom:14px;border:1px solid #e5e8ee;border-radius:16px;background:#fff}.customer-filter-bar>div{min-width:150px}.customer-filter-bar label{display:block;margin-bottom:4px;color:#7d8798;font-size:.57rem;font-weight:750}.customer-tabs{gap:7px;margin-bottom:12px}.customer-tabs .nav-link{border:1px solid #e3e6ed;background:#fff;color:#6f798b;border-radius:12px;font-size:.66rem;font-weight:760}.customer-tabs .nav-link.active{background:#222a3b;border-color:#222a3b;color:#fff}.customer-day-card{margin-bottom:12px;border:1px solid #e6e9ef;border-radius:17px;background:#fff;overflow:hidden}.customer-day-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#fafbfc;border-bottom:1px solid #edf0f4}.customer-day-head>div strong,.customer-day-head>div span{display:block}.customer-day-head>div strong{font-size:.75rem}.customer-day-head>div span{margin-top:2px;color:#8d97a7;font-size:.55rem}.customer-day-head>strong{font-size:.8rem}.customer-day-lines{display:flex;flex-direction:column}.customer-product-line{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;color:#313b4e;text-decoration:none;border-bottom:1px solid #edf0f4}.customer-product-line:last-child{border-bottom:0}.customer-product-line.cancelled{opacity:.45;text-decoration:line-through}.customer-product-line>div strong,.customer-product-line>div span{display:block}.customer-product-line>div strong{font-size:.68rem}.customer-product-line>div span{margin-top:3px;color:#8b95a6;font-size:.56rem}.customer-product-line>strong{font-size:.7rem;white-space:nowrap}.customer-table{margin:0;font-size:.66rem}.customer-table thead th{padding:10px 14px;background:#fafbfc;color:#788396;border-bottom-color:#e9ecf1;font-size:.56rem;text-transform:uppercase;letter-spacing:.03em}.customer-table tbody td{padding:11px 14px;border-color:#edf0f4}.customer-table td strong,.customer-table td small{display:block}.customer-table td small{margin-top:2px;color:#919bad;font-size:.54rem}.customer-inline-balance{padding:10px 14px;border-radius:13px;background:#222a3b;color:#fff;text-align:right}.customer-inline-balance span,.customer-inline-balance strong{display:block}.customer-inline-balance span{color:#aeb6c6;font-size:.55rem}.customer-inline-balance strong{margin-top:2px;font-size:.85rem}.customer-timeline{padding:5px 16px}.customer-movement{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px 0;border-bottom:1px solid #edf0f4}.customer-movement:last-child{border-bottom:0}.customer-movement-dot{width:31px;height:31px;display:flex;align-items:center;justify-content:center;border-radius:10px;font-size:.65rem}.customer-movement-dot.debt{background:#fff0f1;color:#c34e59}.customer-movement-dot.credit{background:#eaf8f3;color:#118468}.customer-movement-main strong,.customer-movement-main span,.customer-movement-money strong,.customer-movement-money span{display:block}.customer-movement-main strong{font-size:.67rem;text-transform:capitalize}.customer-movement-main span,.customer-movement-money span{margin-top:2px;color:#8d97a7;font-size:.55rem}.customer-movement-money{text-align:right}.customer-movement-money strong{font-size:.69rem}.customer-sale-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:14px}.customer-sale-summary>div{padding:14px;border:1px solid #e5e8ee;border-radius:14px;background:#fff}.customer-sale-summary span,.customer-sale-summary strong{display:block}.customer-sale-summary span{color:#8791a2;font-size:.55rem}.customer-sale-summary strong{margin-top:4px;font-size:.78rem}.customer-mobile-nav{position:fixed;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));z-index:1030;height:65px;display:grid;grid-template-columns:repeat(4,1fr);padding:5px;border:1px solid #e3e6ed;border-radius:20px;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);box-shadow:0 12px 35px rgba(31,41,55,.16)}.customer-mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:15px;color:#8a94a5;text-decoration:none;font-size:.51rem;font-weight:720}.customer-mobile-nav a i{font-size:.95rem}.customer-mobile-nav a.active{background:#222a3b;color:#fff}.customer-login-main{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 20%,rgba(105,96,255,.16),transparent 32%),radial-gradient(circle at 85% 80%,rgba(21,147,112,.11),transparent 28%),#f5f7fa}.customer-login-shell{width:min(430px,100%)}.customer-login-card{padding:32px;border:1px solid rgba(255,255,255,.9);border-radius:26px;background:rgba(255,255,255,.94);box-shadow:0 28px 80px rgba(31,41,55,.13);backdrop-filter:blur(18px)}.customer-login-logo{width:62px;height:62px;margin:0 auto 17px;display:flex;align-items:center;justify-content:center;border-radius:19px;background:linear-gradient(145deg,#292f43,#111827);color:#fff;font-size:1.5rem;box-shadow:0 12px 30px rgba(17,24,39,.22)}.customer-login-card h1{margin:3px 0 5px;font-size:1.38rem;font-weight:860;letter-spacing:-.035em}.customer-login-card p{margin:0;color:#818b9d;font-size:.68rem;line-height:1.55}.customer-input-icon{position:relative}.customer-input-icon>i{position:absolute;left:14px;top:50%;transform:translateY(-50%);z-index:2;color:#777fe0}.customer-input-icon .form-control{padding-left:43px;border-radius:14px;border-color:#dfe3ea;font-size:.76rem}.customer-login-button{min-height:51px;border-radius:14px;font-size:.75rem;font-weight:790}.customer-login-help{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:18px;color:#939cad;font-size:.58rem}
@media(max-width:991.98px){.customer-summary-grid{grid-template-columns:1fr 1fr}.customer-sale-summary{grid-template-columns:1fr 1fr}}
@media(max-width:767.98px){.pos-product-edit{top:4px;right:4px}.customer-portal-main{width:min(100% - 18px,1180px);padding-top:18px}.customer-topbar{height:60px;padding:0 12px}.customer-brand-mark{width:36px;height:36px;border-radius:11px}.customer-page-head{align-items:flex-start;flex-direction:column;margin-bottom:15px}.customer-page-head h1{font-size:1.3rem}.customer-summary-grid{grid-template-columns:1fr 1fr;gap:8px}.customer-balance-card,.customer-stat-card{min-height:118px;padding:14px;border-radius:15px}.customer-balance-card{grid-column:1/-1;min-height:132px}.customer-balance-card strong,.customer-stat-card strong{font-size:1.12rem}.customer-filter-bar{display:grid;grid-template-columns:1fr 1fr}.customer-filter-bar>div{min-width:0}.customer-filter-bar .btn{font-size:.65rem}.customer-sale-row{grid-template-columns:36px minmax(0,1fr) auto;padding:11px}.customer-sale-row>i{display:none}.customer-sale-icon{width:34px;height:34px}.customer-sale-amount span{display:none}.customer-product-line{padding:11px}.customer-movement{grid-template-columns:31px minmax(0,1fr) auto}.customer-table{min-width:650px}.customer-login-card{padding:26px 21px;border-radius:22px}}
@media(max-width:419.98px){.customer-summary-grid{grid-template-columns:1fr}.customer-balance-card{grid-column:auto}.customer-stat-card{min-height:105px}.customer-sale-summary{grid-template-columns:1fr 1fr}.customer-filter-bar{grid-template-columns:1fr}.customer-day-head,.customer-product-line{padding-left:12px;padding-right:12px}}

/* v1.36 - Sales product list + POS live filters/customer autocomplete */
/* v1.37 - Customer phone login normalization fix */
.pos-product-filters{display:grid;grid-template-columns:minmax(150px,1fr) minmax(120px,.7fr) auto;gap:.5rem;padding:.65rem .75rem;border-bottom:1px solid var(--bs-border-color,#e5e7eb);background:rgba(248,250,252,.82)}
.pos-customer-search-wrap{position:relative;min-width:0}
.pos-customer-search-wrap>i{position:absolute;left:.9rem;top:50%;transform:translateY(-50%);z-index:2;color:#64748b;pointer-events:none}
.pos-customer-search-wrap>.form-control{padding-left:2.45rem;padding-right:2.5rem}
.pos-customer-search-clear{position:absolute;right:.55rem;top:50%;transform:translateY(-50%);z-index:3;border:0;background:transparent;color:#94a3b8;width:1.9rem;height:1.9rem;border-radius:.5rem;display:grid;place-items:center}
.pos-customer-search-clear:hover{background:#f1f5f9;color:#334155}
.pos-customer-results{position:absolute;z-index:1080;left:0;right:0;top:calc(100% + .35rem);background:#fff;border:1px solid #e2e8f0;border-radius:.9rem;box-shadow:0 20px 45px rgba(15,23,42,.18);padding:.35rem;max-height:330px;overflow:auto}
.pos-customer-result{width:100%;border:0;background:transparent;border-radius:.7rem;padding:.7rem .75rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;text-align:left;color:#0f172a}
.pos-customer-result:hover,.pos-customer-result:focus{background:#f1f5f9;outline:0}
.pos-customer-result span{display:flex;flex-direction:column;min-width:0}
.pos-customer-result strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-customer-result small{color:#64748b;margin-top:.1rem}
.pos-customer-result em{font-style:normal;font-size:.78rem;font-weight:700;color:#475569;white-space:nowrap}
.pos-customer-hint{padding:.85rem .9rem;color:#64748b;font-size:.85rem;display:flex;flex-direction:column;gap:.15rem}
.pos-customer-hint strong{color:#334155}
@media(max-width:767.98px){.pos-product-filters{grid-template-columns:1fr 1fr}.pos-product-filters .btn{grid-column:1/-1}.pos-customer-result{align-items:flex-start;flex-direction:column;gap:.3rem}.pos-customer-results{max-height:260px}}

/* v1.41 - Premium customer account dashboard */
.customer-portal-body{background:linear-gradient(180deg,#eef2f8 0,#f7f9fc 260px,#f4f6f9 100%);color:#172033}
.customer-topbar{height:72px;border-bottom:1px solid rgba(219,225,235,.9);background:rgba(255,255,255,.88);box-shadow:0 5px 24px rgba(22,32,51,.035)}
.customer-brand-mark{background:linear-gradient(145deg,#111827,#27344c);box-shadow:0 10px 26px rgba(17,24,39,.22)}
.customer-brand strong{font-size:.86rem;letter-spacing:-.01em}.customer-brand small{font-size:.56rem;letter-spacing:.025em}
.customer-top-user{gap:9px}.customer-user-avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#eef1ff,#dddffe);color:#554ddd;font-size:.78rem;font-weight:900;box-shadow:inset 0 0 0 1px rgba(91,82,223,.08)}
.customer-user-copy{flex-direction:column;gap:0;line-height:1.15;max-width:180px}.customer-user-copy strong{font-size:.68rem;color:#273247;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-user-copy small{margin-top:3px;color:#98a1b0;font-size:.52rem;font-weight:650}
.customer-logout-btn{height:36px;display:flex;align-items:center;gap:6px;padding:0 11px;border:1px solid #e5e9f0;border-radius:11px;background:#fff;color:#657087;font-size:.62rem;font-weight:800;transition:.15s ease}.customer-logout-btn:hover{border-color:#f0c9cd;background:#fff5f6;color:#b83c48}
.customer-desktop-nav{top:72px;height:58px;gap:6px;background:rgba(255,255,255,.94);backdrop-filter:blur(16px)}.customer-desktop-nav a{padding:9px 13px;border:1px solid transparent;border-radius:11px;font-size:.66rem}.customer-desktop-nav a.active{border-color:#e1dfff;background:linear-gradient(145deg,#f3f2ff,#ecebff);box-shadow:0 4px 12px rgba(87,78,219,.05)}
.customer-portal-main{width:min(1220px,calc(100% - 30px));padding-top:24px}

.customer-premium-hero{position:relative;overflow:hidden;margin-bottom:14px;padding:27px 29px 22px;border-radius:25px;background:linear-gradient(135deg,#182236 0%,#242f48 56%,#152033 100%);color:#fff;box-shadow:0 22px 55px rgba(18,29,49,.18)}
.customer-premium-hero.credit{background:linear-gradient(135deg,#075e51 0%,#087663 55%,#075147 100%)}.customer-premium-hero.zero{background:linear-gradient(135deg,#344054,#1f2937)}
.customer-hero-glow{position:absolute;border-radius:999px;filter:blur(1px);pointer-events:none}.customer-hero-glow.glow-one{width:280px;height:280px;right:-70px;top:-120px;background:radial-gradient(circle,rgba(115,107,255,.34),rgba(115,107,255,0) 68%)}.customer-premium-hero.credit .glow-one{background:radial-gradient(circle,rgba(98,239,199,.24),rgba(98,239,199,0) 68%)}.customer-hero-glow.glow-two{width:230px;height:230px;left:42%;bottom:-170px;background:radial-gradient(circle,rgba(255,255,255,.09),rgba(255,255,255,0) 68%)}
.customer-hero-top,.customer-hero-balance,.customer-limit-strip{position:relative;z-index:2}.customer-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.customer-secure-pill{display:inline-flex;align-items:center;gap:6px;min-height:27px;padding:5px 9px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.08);color:#d5dbea;font-size:.55rem;font-weight:800;letter-spacing:.035em}.customer-secure-pill i{color:#8ef0c8}.customer-welcome h1{margin:12px 0 5px;font-size:1.52rem;font-weight:900;letter-spacing:-.035em}.customer-welcome p{max-width:600px;margin:0;color:#aeb8cb;font-size:.67rem;line-height:1.55}.customer-premium-hero.credit .customer-welcome p{color:#b9ddd5}
.customer-account-chip{min-width:132px;padding:10px 13px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.07);text-align:right}.customer-account-chip span,.customer-account-chip strong{display:block}.customer-account-chip span{color:#aeb8c9;font-size:.52rem}.customer-account-chip strong{margin-top:3px;font-size:.7rem;letter-spacing:.025em}
.customer-hero-balance{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-top:24px}.customer-balance-label{display:block;color:#bcc5d5;font-size:.63rem;font-weight:750}.customer-balance-value{display:block;margin-top:3px;font-size:2.35rem;line-height:1.05;font-weight:920;letter-spacing:-.055em}.customer-hero-balance p{margin:8px 0 0;color:#acb6c8;font-size:.58rem}.customer-hero-balance p i{margin-right:4px}.customer-premium-hero.credit .customer-balance-label,.customer-premium-hero.credit .customer-hero-balance p{color:#bbe0d8}
.customer-hero-actions{display:flex;gap:8px}.customer-hero-actions a{min-width:136px;height:45px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;border:1px solid rgba(255,255,255,.13);border-radius:13px;background:rgba(255,255,255,.08);color:#fff;text-decoration:none;font-size:.6rem;font-weight:800;backdrop-filter:blur(10px);transition:.15s ease}.customer-hero-actions a:hover{transform:translateY(-1px);background:rgba(255,255,255,.14)}
.customer-limit-strip{display:grid;grid-template-columns:auto minmax(120px,1fr) auto;align-items:center;gap:15px;margin-top:22px;padding-top:16px;border-top:1px solid rgba(255,255,255,.1)}.customer-limit-strip>div:not(.customer-limit-progress){display:flex;align-items:baseline;gap:7px}.customer-limit-strip span{color:#aeb8c9;font-size:.53rem}.customer-limit-strip strong{font-size:.64rem}.customer-limit-progress{height:6px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.11)}.customer-limit-progress>span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#8d86ff,#b7b3ff);box-shadow:0 0 12px rgba(141,134,255,.5)}.customer-premium-hero.credit .customer-limit-progress>span{background:linear-gradient(90deg,#50dbaf,#9df1d6)}

.customer-finance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.customer-finance-card{min-height:112px;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:flex-start;gap:12px;padding:16px;border:1px solid #e4e8ef;border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 10px 28px rgba(25,38,59,.045)}.customer-finance-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;font-size:1rem}.customer-finance-card>div:last-child{min-width:0}.customer-finance-card span,.customer-finance-card strong,.customer-finance-card small{display:block}.customer-finance-card span{color:#778398;font-size:.56rem;font-weight:800}.customer-finance-card strong{margin-top:5px;color:#202b3f;font-size:1rem;font-weight:900;letter-spacing:-.025em}.customer-finance-card small{margin-top:5px;color:#9aa3b2;font-size:.52rem;line-height:1.35}.customer-finance-card.debt-card .customer-finance-icon{background:#fff0f1;color:#c44c58}.customer-finance-card.credit-card .customer-finance-icon{background:#eaf9f4;color:#0d8a69}.customer-finance-card.shopping-card .customer-finance-icon{background:#f0efff;color:#5b54db}.customer-finance-card.payment-card .customer-finance-icon{background:#edf5ff;color:#2977c6}

.customer-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.72fr);gap:14px;align-items:start}.customer-dashboard-main,.customer-dashboard-side{display:flex;flex-direction:column;gap:14px}.customer-premium-section{overflow:hidden;border:1px solid #e4e8ef;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(25,38,59,.04)}.customer-premium-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 18px;border-bottom:1px solid #eef1f5}.customer-premium-section-head h2{margin:2px 0 0;color:#263248;font-size:.84rem;font-weight:880;letter-spacing:-.015em}.customer-premium-section-head p{margin:3px 0 0;color:#909aaa;font-size:.56rem}.section-kicker{display:block;color:#7068dd;font-size:.48rem;font-weight:900;letter-spacing:.11em}.customer-month-badge{display:flex;align-items:center;gap:6px;padding:6px 9px;border-radius:10px;background:#f3f4f8;color:#6c7688;font-size:.55rem;font-weight:800}.customer-section-link{display:flex;align-items:center;gap:5px;color:#5e57d5;text-decoration:none;font-size:.56rem;font-weight:850}.customer-section-link:hover{color:#3f38bd}.customer-icon-link{width:31px;height:31px;display:grid;place-items:center;border:1px solid #e5e8ef;border-radius:10px;background:#fff;color:#68748a;text-decoration:none}.customer-icon-link:hover{background:#f4f3ff;color:#564fd8;border-color:#dfdcff}
.customer-month-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:15px 16px 8px}.customer-month-card{padding:15px;border:1px solid #e9ecf2;border-radius:15px;background:linear-gradient(145deg,#fff,#fafbfe)}.customer-month-card span,.customer-month-card strong,.customer-month-card small{display:block}.customer-month-card span{color:#7c8798;font-size:.55rem;font-weight:800}.customer-month-card strong{margin-top:5px;color:#263248;font-size:1.15rem;font-weight:900;letter-spacing:-.03em}.customer-month-card small{margin-top:7px;color:#96a0af;font-size:.51rem}.customer-month-card small i{margin-right:4px;color:#6e66dd}
.customer-payment-progress{padding:10px 16px 16px}.customer-progress-copy{display:flex;align-items:center;justify-content:space-between;gap:12px}.customer-progress-copy span{color:#7c8798;font-size:.54rem;font-weight:750}.customer-progress-copy strong{color:#303b51;font-size:.61rem}.customer-progress-track{height:7px;overflow:hidden;margin-top:7px;border-radius:999px;background:#edf0f5}.customer-progress-track span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#5f57db,#8f88f3)}.customer-payment-progress>small{display:block;margin-top:6px;color:#a0a8b6;font-size:.49rem}

.customer-premium-sale-list{display:flex;flex-direction:column}.customer-premium-sale{display:grid;grid-template-columns:44px minmax(0,1fr) auto 18px;align-items:center;gap:11px;padding:11px 16px;border-bottom:1px solid #eef1f5;color:#263248;text-decoration:none;transition:.14s ease}.customer-premium-sale:last-child{border-bottom:0}.customer-premium-sale:hover{background:#fafbfe}.customer-premium-sale.cancelled{opacity:.5}.customer-sale-date{width:44px;height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:13px;background:#f1f2f7}.customer-sale-date strong{font-size:.72rem}.customer-sale-date span{margin-top:1px;color:#8a94a5;font-size:.47rem}.customer-sale-info{min-width:0}.customer-sale-info strong,.customer-sale-info span,.customer-sale-values strong,.customer-sale-values span{display:block}.customer-sale-info strong{font-size:.65rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-sale-info span{margin-top:3px;color:#8f99aa;font-size:.52rem}.customer-sale-values{text-align:right}.customer-sale-values strong{font-size:.67rem}.customer-sale-values span{margin-top:3px;font-size:.49rem;font-weight:800}.customer-sale-values span.has-debt{color:#c44c58}.customer-sale-values span.paid{color:#128a68}.customer-premium-sale>i{color:#bdc4d0;font-size:.65rem}

.customer-dashboard-side .compact-section .customer-premium-section-head{padding:15px}.customer-mini-timeline{padding:4px 14px}.customer-mini-movement{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #eef1f5}.customer-mini-movement:last-child{border-bottom:0}.movement-bullet{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;font-size:.67rem}.movement-bullet.debt{background:#fff0f1;color:#c34b57}.movement-bullet.credit{background:#eaf8f3;color:#118466}.customer-mini-movement>div:nth-child(2){min-width:0}.customer-mini-movement>div:nth-child(2) strong,.customer-mini-movement>div:nth-child(2) small{display:block}.customer-mini-movement>div:nth-child(2) strong{font-size:.57rem;text-transform:capitalize;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-mini-movement>div:nth-child(2) small{margin-top:2px;color:#98a1af;font-size:.48rem}.movement-money{font-size:.57rem;white-space:nowrap}.movement-money.debt{color:#c34b57}.movement-money.credit{color:#118466}
.customer-contact-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:center;padding:15px;border:1px solid #e3e7ef;border-radius:18px;background:linear-gradient(145deg,#222d43,#151e30);color:#fff;box-shadow:0 12px 30px rgba(22,31,49,.12)}.customer-contact-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:rgba(255,255,255,.09);color:#a9a5ff;font-size:1rem}.customer-contact-card span,.customer-contact-card strong,.customer-contact-card small{display:block}.customer-contact-card span{color:#aeb8c9;font-size:.5rem}.customer-contact-card strong{margin-top:3px;font-size:.65rem}.customer-contact-card small{margin-top:3px;color:#929eb2;font-size:.48rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-quick-actions{overflow:hidden;border:1px solid #e4e8ef;border-radius:18px;background:#fff}.customer-quick-actions>a{display:grid;grid-template-columns:37px minmax(0,1fr) 16px;align-items:center;gap:10px;padding:11px 13px;border-bottom:1px solid #eef1f5;color:#283449;text-decoration:none}.customer-quick-actions>a:last-child{border-bottom:0}.customer-quick-actions>a:hover{background:#fafbfe}.customer-quick-actions>a>span{width:37px;height:37px;display:grid;place-items:center;border-radius:11px;background:#f1f0ff;color:#5a53db}.customer-quick-actions strong,.customer-quick-actions small{display:block}.customer-quick-actions strong{font-size:.59rem}.customer-quick-actions small{margin-top:2px;color:#99a2b1;font-size:.48rem}.customer-quick-actions>a>i{color:#bdc4d0;font-size:.6rem}
.premium-empty{min-height:150px}.premium-empty span{color:#a1a9b6;font-size:.52rem}.mini-empty{min-height:120px}

@media(max-width:991.98px){.customer-finance-grid{grid-template-columns:1fr 1fr}.customer-dashboard-grid{grid-template-columns:1fr}.customer-dashboard-side{display:grid;grid-template-columns:1fr 1fr}.customer-dashboard-side .compact-section{grid-column:1/-1}}
@media(max-width:767.98px){.customer-topbar{height:62px}.customer-desktop-nav{top:62px}.customer-portal-main{width:min(100% - 16px,1220px);padding-top:12px}.customer-premium-hero{padding:19px 17px 17px;border-radius:20px}.customer-hero-top{gap:12px}.customer-account-chip{min-width:105px;padding:8px 10px}.customer-welcome h1{font-size:1.2rem}.customer-welcome p{font-size:.59rem}.customer-hero-balance{align-items:flex-start;flex-direction:column;margin-top:19px}.customer-balance-value{font-size:2rem}.customer-hero-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.customer-hero-actions a{min-width:0;height:42px}.customer-limit-strip{grid-template-columns:1fr auto;gap:8px}.customer-limit-progress{grid-column:1/-1;grid-row:2}.customer-finance-grid{gap:8px}.customer-finance-card{min-height:105px;grid-template-columns:36px minmax(0,1fr);gap:9px;padding:13px}.customer-finance-icon{width:36px;height:36px;border-radius:11px}.customer-finance-card strong{font-size:.88rem}.customer-month-grid{grid-template-columns:1fr}.customer-dashboard-side{display:flex}.customer-premium-sale{grid-template-columns:40px minmax(0,1fr) auto;padding:10px 12px}.customer-premium-sale>i{display:none}.customer-sale-date{width:40px;height:40px}.customer-mobile-nav{box-shadow:0 16px 40px rgba(31,41,55,.2)}}
@media(max-width:479.98px){.customer-account-chip{display:none}.customer-finance-grid{grid-template-columns:1fr}.customer-finance-card{min-height:88px;align-items:center}.customer-premium-section-head{align-items:flex-start}.customer-month-badge{display:none}.customer-premium-sale{grid-template-columns:38px minmax(0,1fr);gap:9px}.customer-sale-values{grid-column:2;text-align:left;display:flex;align-items:center;gap:8px}.customer-sale-values span{margin-top:0}.customer-hero-actions a span{font-size:.54rem}}

/* v1.43 - POS manuel urun popup */
.pos-panel-actions{display:flex!important;align-items:center!important;justify-content:flex-end;gap:6px!important;flex-wrap:wrap}.pos-panel-actions .btn-warning{border-color:#f1c96f;background:#fff7dc;color:#7b5710}.pos-panel-actions .btn-warning:hover{background:#ffefb7;color:#68470a}.manual-product-modal{border-radius:22px;overflow:hidden}.manual-product-modal .modal-header{padding:22px 24px 8px}.manual-product-modal .form-label{font-size:.67rem;font-weight:780;color:#667287}.manual-product-modal .form-control,.manual-product-modal .form-select,.manual-product-modal .input-group-text{min-height:44px;border-color:#e0e5ed;border-radius:12px}.manual-product-modal .input-group>.form-control{border-top-right-radius:0;border-bottom-right-radius:0}.manual-product-modal .input-group>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.manual-product-preview{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:9px;padding:10px;border:1px solid #e8e3c8;border-radius:15px;background:linear-gradient(145deg,#fffdf4,#fff9df)}.manual-product-preview>div{padding:10px 12px;border-radius:11px;background:rgba(255,255,255,.8)}.manual-product-preview span,.manual-product-preview strong{display:block}.manual-product-preview span{font-size:.58rem;font-weight:780;color:#8c7c50}.manual-product-preview strong{margin-top:3px;font-size:.8rem;color:#3f3a2b}.manual-product-preview .grand{background:#2d3444}.manual-product-preview .grand span{color:#bfc6d3}.manual-product-preview .grand strong{color:#fff;font-size:1rem}.pos-manual-line{background:linear-gradient(90deg,#fffdf4,#fff)}.manual-chip{display:inline-flex;align-items:center;margin-right:6px;padding:2px 5px;border-radius:5px;background:#fff0b9;color:#7b5710;font-size:.45rem;font-weight:900;letter-spacing:.05em;vertical-align:middle}.pos-manual-price{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;min-width:0}.pos-manual-price span{color:#a08b53;font-size:.5rem;font-weight:800}.pos-manual-price strong{margin-top:2px;color:#5a4a20;font-size:.64rem;white-space:nowrap}.pos-manual-edit{width:31px;height:31px;border:0;border-radius:9px;background:#fff7dc;color:#8a6414}.pos-manual-edit:hover{background:#ffe9a3}.sale-manual-meta{display:block;margin-top:3px;color:#9a7a2f;font-size:.55rem;font-weight:650}.manual-detail-chip{display:inline-flex;align-items:center;margin-right:5px;padding:2px 6px;border-radius:5px;background:#fff0b9;color:#7b5710;font-size:.5rem;font-weight:900;letter-spacing:.04em}
@media(max-width:767.98px){.pos-panel-head{align-items:flex-start;flex-direction:column}.pos-panel-actions{width:100%;justify-content:flex-start}.pos-panel-actions .btn{flex:1 1 auto}.manual-product-preview{grid-template-columns:1fr 1fr}.manual-product-preview .grand{grid-column:1/-1}.pos-manual-line{grid-template-columns:minmax(120px,1fr) 72px 32px 74px 28px}}

/* v1.45 - Premium responsive app shell */
:root{
  --app-safe-bottom:max(10px,env(safe-area-inset-bottom));
  --app-mobile-nav-space:92px;
  --app-glass:rgba(255,255,255,.92);
}
html{scroll-behavior:smooth}
body{overflow-x:hidden}
.app-body,.customer-portal-body{background:
  radial-gradient(circle at 8% -10%,rgba(99,91,255,.08),transparent 27%),
  radial-gradient(circle at 100% 18%,rgba(14,165,233,.045),transparent 24%),
  var(--body-bg)}

/* Admin login: desktop premium, mobile native-app feel */
.login-body{background:
  radial-gradient(circle at 10% 8%,rgba(99,91,255,.14),transparent 28%),
  radial-gradient(circle at 88% 86%,rgba(14,165,233,.10),transparent 28%),
  linear-gradient(145deg,#f8f9fd,#edf1f8)}
.login-split-card{box-shadow:0 38px 110px rgba(22,31,49,.16)}
.login-form-panel,.login-form-card{backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.login-control{font-size:16px}
.login-submit-btn{background:linear-gradient(135deg,#675fff,#4f46e5);border:0}
.login-submit-btn:hover{background:linear-gradient(135deg,#5b53f4,#4338ca)}

/* Customer login v1.45 */
.customer-login-main{padding:22px;background:
  radial-gradient(circle at 9% 10%,rgba(99,91,255,.13),transparent 27%),
  radial-gradient(circle at 88% 90%,rgba(13,148,136,.10),transparent 30%),
  linear-gradient(145deg,#f8f9fd,#eef2f7)}
.customer-login-experience{width:min(1320px,100%);margin:auto}
.customer-login-stage{display:grid;grid-template-columns:minmax(390px,520px) minmax(0,1fr);min-height:min(820px,calc(100vh - 44px));overflow:hidden;border:1px solid rgba(255,255,255,.88);border-radius:32px;background:rgba(255,255,255,.82);box-shadow:0 34px 100px rgba(24,32,48,.16);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.customer-login-form-side{display:flex;align-items:center;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,250,255,.97))}
.customer-login-inner{width:100%;padding:38px 34px}
.customer-login-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:26px}
.customer-login-pill,.customer-login-app{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid #e4e8f2;border-radius:999px;background:#fff;color:#59657a;font-size:.7rem;font-weight:800;box-shadow:0 8px 22px rgba(31,41,55,.045)}
.customer-login-pill i{color:#5b54e6}.customer-login-app i{color:#0f9f83}
.customer-login-branding{display:flex;align-items:flex-start;gap:15px;margin-bottom:22px}
.customer-login-brandmark{width:64px;height:64px;flex:0 0 64px;display:grid;place-items:center;border-radius:21px;background:linear-gradient(145deg,#242d43,#111827);color:#fff;font-size:1.55rem;box-shadow:0 18px 36px rgba(17,24,39,.22)}
.customer-login-eyebrow{display:block;margin-bottom:6px;color:#6d75d8;font-size:.64rem;font-weight:900;letter-spacing:.12em}
.customer-login-branding h1{margin:0 0 8px;color:#111a2d;font-size:2rem;line-height:1.06;font-weight:900;letter-spacing:-.045em}
.customer-login-branding p{margin:0;color:#748096;font-size:.84rem;line-height:1.65}
.customer-login-form{padding:20px;border:1px solid #e6eaf2;border-radius:23px;background:rgba(255,255,255,.88);box-shadow:0 16px 40px rgba(31,41,55,.055)}
.customer-login-form .form-label{font-size:.74rem}
.customer-login-input{position:relative}
.customer-login-input>i{position:absolute;left:15px;top:50%;transform:translateY(-50%);z-index:2;color:#6b67d8}
.customer-login-input .form-control{height:54px;padding-left:45px;padding-right:48px;border-radius:15px;background:#fbfcff;font-size:16px}
.customer-login-password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:12px;background:transparent;color:#7b8598}
.customer-login-password-toggle:hover{background:#f0f2ff;color:#5149dd}
.customer-login-submit{width:100%;height:52px;display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:15px;background:linear-gradient(135deg,#635bff,#4f46e5);box-shadow:0 14px 28px rgba(79,70,229,.24);font-size:.84rem;font-weight:850}
.customer-login-format-note{display:flex;gap:11px;margin-top:15px;padding:13px 14px;border:1px solid #e5e9f1;border-radius:16px;background:#fff;color:#647086;box-shadow:0 10px 26px rgba(31,41,55,.04)}
.customer-login-format-note>i{margin-top:2px;color:#15936f}.customer-login-format-note strong,.customer-login-format-note span{display:block}.customer-login-format-note strong{color:#334055;font-size:.72rem}.customer-login-format-note span{margin-top:3px;font-size:.62rem;line-height:1.5}
.customer-admin-login-link{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:9px;margin-top:12px;padding:10px 12px;border:1px solid #e5e9f1;border-radius:15px;background:#fff;color:#49566d;text-decoration:none;font-size:.7rem;font-weight:800}
.customer-admin-login-link>i:first-child{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f1f0ff;color:#574fe0}.customer-admin-login-link>i:last-child{color:#a0a8b6}
.customer-login-visual-side{position:relative;overflow:hidden;padding:46px 42px;background:
  radial-gradient(circle at 90% 10%,rgba(90,180,255,.30),transparent 25%),
  radial-gradient(circle at 12% 88%,rgba(45,212,191,.18),transparent 24%),
  linear-gradient(145deg,#101b3d 0%,#142d65 48%,#16477d 100%);color:#fff}
.customer-login-visual-side::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:38px 38px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 92%)}
.customer-login-visual-content{position:relative;z-index:1;display:flex;flex-direction:column;height:100%}
.customer-login-visual-kicker{align-self:flex-start;padding:8px 11px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.09);color:#d7e6ff;font-size:.68rem;font-weight:850;letter-spacing:.08em}
.customer-login-visual-content h2{max-width:720px;margin:17px 0 10px;font-size:2.35rem;line-height:1.08;font-weight:900;letter-spacing:-.045em}
.customer-login-visual-content>p{max-width:650px;margin:0;color:rgba(231,239,255,.78);font-size:.9rem;line-height:1.7}
.customer-login-phone-preview{width:min(430px,78%);margin:auto;padding:18px;border:1px solid rgba(255,255,255,.17);border-radius:31px;background:rgba(255,255,255,.94);color:#202a3b;box-shadow:0 35px 80px rgba(2,12,36,.34);transform:rotate(-2deg);backdrop-filter:blur(18px)}
.customer-preview-head{display:grid;grid-template-columns:38px minmax(0,1fr) 24px;align-items:center;gap:9px;padding-bottom:13px}.customer-preview-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#e9edff;color:#5048d9;font-weight:900}.customer-preview-head small,.customer-preview-head strong{display:block}.customer-preview-head small{color:#929cad;font-size:.54rem}.customer-preview-head strong{font-size:.68rem}.customer-preview-head>i{color:#657188}
.customer-preview-balance{padding:16px;border-radius:19px;background:linear-gradient(145deg,#202a3f,#111827);color:#fff}.customer-preview-balance span,.customer-preview-balance strong,.customer-preview-balance small{display:block}.customer-preview-balance span{color:#b6c1d1;font-size:.55rem}.customer-preview-balance strong{margin-top:5px;font-size:1.55rem}.customer-preview-balance small{margin-top:5px;color:#9eacc0;font-size:.49rem}
.customer-preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.customer-preview-grid>div{padding:12px;border:1px solid #e6e9f0;border-radius:15px;background:#fff}.customer-preview-grid i{color:#5a53df}.customer-preview-grid span,.customer-preview-grid strong{display:block}.customer-preview-grid span{margin-top:7px;color:#8b95a6;font-size:.5rem}.customer-preview-grid strong{margin-top:3px;font-size:.7rem}
.customer-preview-list{margin-top:8px;overflow:hidden;border:1px solid #e6e9f0;border-radius:16px;background:#fff}.customer-preview-list span{display:grid;grid-template-columns:20px 1fr 12px;align-items:center;gap:8px;padding:11px 12px;border-bottom:1px solid #edf0f4;font-size:.58rem;font-weight:750}.customer-preview-list span:last-child{border-bottom:0}.customer-preview-list i{color:#5b54dd}.customer-preview-list b{color:#a9b0bd}
.customer-login-feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:auto}.customer-login-feature-row span{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.08);color:#dce8ff;font-size:.62rem;font-weight:800;backdrop-filter:blur(10px)}

/* App shell refinements */
.app-topbar{box-shadow:0 8px 26px rgba(31,41,55,.035)}
.app-sidebar{box-shadow:12px 0 36px rgba(12,18,31,.08)}
.app-main{padding-bottom:54px}
.card,.premium-card{transition:box-shadow .18s ease,transform .18s ease}
.modal-content{border:0;border-radius:22px;box-shadow:0 28px 90px rgba(31,41,55,.18)}
.modal-header{border-bottom-color:#edf0f4}.modal-footer{border-top-color:#edf0f4}

/* Automatic mobile card tables */
.mobile-card-table td::before{content:attr(data-label)}

@media(max-width:991.98px){
  .app-body{padding-bottom:var(--app-mobile-nav-space)}
  .app-topbar{position:sticky;top:0;padding-top:max(8px,env(safe-area-inset-top));background:rgba(255,255,255,.94);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
  .mobile-sidebar{--bs-offcanvas-width:min(88vw,320px);border-radius:0 24px 24px 0;box-shadow:20px 0 60px rgba(13,20,34,.22)}
  .mobile-sidebar .sidebar-inner{padding-top:max(16px,env(safe-area-inset-top));padding-bottom:calc(18px + env(safe-area-inset-bottom))}
  .app-main{padding-bottom:calc(var(--app-mobile-nav-space) + 22px)}
  .mobile-bottom-nav{box-shadow:0 22px 55px rgba(31,41,55,.20)}
}

@media(max-width:767.98px){
  body{font-size:14px}
  .app-main{padding:14px 10px calc(var(--app-mobile-nav-space) + 20px)}
  .page-title,h1.h3{font-size:1.32rem!important;line-height:1.16}
  .card,.premium-card,.metric-card{border-radius:17px!important}
  .card-header{padding:12px 13px!important}.card-body{padding:14px!important}.card-footer{padding:12px 13px!important}
  .btn:not(.btn-close){min-height:42px;padding:.55rem .78rem;font-size:.78rem}
  .btn-sm:not(.btn-close){min-height:36px;padding:.42rem .6rem}
  .form-control,.form-select,.input-group-text{min-height:46px;font-size:16px!important;border-radius:12px}
  textarea.form-control{font-size:16px!important}
  .form-label{font-size:.73rem}
  .row.g-2,.row.g-3{--bs-gutter-y:.65rem}
  .modal-dialog{margin:8px}
  .modal-dialog.modal-dialog-centered{min-height:calc(100% - 16px)}
  .modal-content{max-height:calc(100dvh - 16px);border-radius:24px;overflow:hidden}
  .modal-body{overflow-y:auto;-webkit-overflow-scrolling:touch}
  .modal-header{padding:15px 16px}.modal-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  .manual-product-modal .modal-header{padding:16px 17px 8px}

  .table-responsive:has(.mobile-card-table){overflow:visible;border:0}
  .mobile-card-table{display:block!important;min-width:0!important;width:100%!important;background:transparent!important}
  .mobile-card-table thead{display:none!important}
  .mobile-card-table tbody{display:flex;flex-direction:column;gap:9px;width:100%}
  .mobile-card-table tr{display:grid;grid-template-columns:1fr 1fr;gap:0;width:100%;overflow:hidden;border:1px solid #e4e8ef;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(31,41,55,.055)}
  .mobile-card-table tr.d-none{display:none!important}
  .mobile-card-table td{display:flex!important;min-width:0!important;align-items:flex-start;justify-content:space-between;gap:12px;padding:9px 12px!important;border:0!important;border-bottom:1px solid #eef1f5!important;background:transparent!important;text-align:right!important;font-size:.73rem!important;white-space:normal!important}
  .mobile-card-table td::before{flex:0 0 42%;max-width:42%;color:#8993a4;font-size:.62rem;font-weight:800;text-align:left;line-height:1.4}
  .mobile-card-table td>*{max-width:58%}
  .mobile-card-table td:first-child{grid-column:1/-1;display:block!important;padding:13px 12px!important;text-align:left!important;background:#fafbfe!important}
  .mobile-card-table td:first-child::before{display:none}
  .mobile-card-table td:first-child>*{max-width:100%}
  .mobile-card-table td:last-child{grid-column:1/-1;justify-content:flex-end;border-bottom:0!important;padding:10px 12px!important}
  .mobile-card-table td:last-child::before{display:none}
  .mobile-card-table td:last-child>*{max-width:100%}
  .mobile-card-table td[colspan]{grid-column:1/-1!important;display:block!important;text-align:center!important;padding:28px 12px!important}
  .mobile-card-table td[colspan]::before{display:none}
  .mobile-card-table .d-inline-flex{width:100%;justify-content:flex-end!important}
  .mobile-card-table .btn{flex:1 1 auto}
  .mobile-card-table .bulk-select-cell{position:absolute;right:12px;top:12px;width:auto!important;padding:0!important;border:0!important;background:transparent!important;z-index:2}
  .mobile-card-table tr{position:relative}
  .mobile-card-table .bulk-select-cell::before{display:none}

  .customer-login-main{display:block;min-height:100dvh;padding:0;background:#f6f8fc}
  .customer-login-experience{width:100%;min-height:100dvh}
  .customer-login-stage{display:block;min-height:100dvh;border:0;border-radius:0;box-shadow:none;background:#fff}
  .customer-login-form-side{min-height:100dvh;align-items:flex-start;background:
    radial-gradient(circle at 90% 3%,rgba(99,91,255,.12),transparent 24%),
    linear-gradient(180deg,#fff,#f7f9fd)}
  .customer-login-inner{padding:max(22px,calc(env(safe-area-inset-top) + 16px)) 18px calc(24px + env(safe-area-inset-bottom))}
  .customer-login-topline{margin-bottom:22px}.customer-login-app{display:none}
  .customer-login-branding{display:block;margin-top:24px;text-align:center}.customer-login-brandmark{margin:0 auto 16px;width:68px;height:68px}
  .customer-login-eyebrow{font-size:.62rem}.customer-login-branding h1{font-size:1.78rem}.customer-login-branding p{max-width:360px;margin-inline:auto;font-size:.79rem}
  .customer-login-form{margin-top:22px;padding:18px 15px;border-radius:22px;box-shadow:0 18px 44px rgba(31,41,55,.07)}
  .customer-login-input .form-control{height:56px}
  .customer-login-submit{height:54px}
  .customer-login-format-note{margin-top:13px}
  .customer-login-visual-side{display:none}

  .login-main{display:block;min-height:100dvh;padding:0}
  .login-shell{width:100%;min-height:100dvh}
  .login-split-card{display:block;min-height:100dvh;border:0;border-radius:0;box-shadow:none;background:#fff}
  .login-form-panel{min-height:100dvh;background:
    radial-gradient(circle at 90% 4%,rgba(99,91,255,.13),transparent 24%),
    linear-gradient(180deg,#fff,#f6f8fd)}
  .login-panel-inner{min-height:100dvh;padding:max(22px,calc(env(safe-area-inset-top) + 16px)) 18px calc(24px + env(safe-area-inset-bottom))}
  .login-topline{margin-bottom:24px}.login-branding{display:block;margin-top:20px;text-align:center}.login-brand-mark{margin:0 auto 16px}
  .login-branding h1{font-size:1.8rem}.login-branding p{max-width:370px;margin-inline:auto;font-size:.8rem}
  .login-chip-row{justify-content:center;gap:7px;margin-bottom:17px}.login-chip{padding:7px 10px;font-size:.67rem}
  .login-form-card{padding:18px 15px;border-radius:22px}.login-control{min-height:56px;font-size:16px}
  .login-visual-panel{display:none}
  .login-security-note{margin-top:13px!important}

  .customer-portal-body{padding-bottom:86px;background:#f4f6fa}
  .customer-topbar{height:64px;padding-top:env(safe-area-inset-top);background:rgba(255,255,255,.95);box-shadow:0 6px 20px rgba(31,41,55,.04)}
  .customer-portal-main{width:100%;padding:12px 10px 104px}
  .customer-premium-hero{border-radius:22px}
  .customer-mobile-nav{left:8px;right:8px;bottom:calc(7px + env(safe-area-inset-bottom));height:68px;border-radius:21px;box-shadow:0 20px 50px rgba(31,41,55,.20)}
  .customer-mobile-nav a{font-size:.56rem}.customer-mobile-nav a i{font-size:1.05rem}
}

@media(max-width:479.98px){
  .mobile-card-table tr{grid-template-columns:1fr}
  .mobile-card-table td,.mobile-card-table td:first-child,.mobile-card-table td:last-child{grid-column:1/-1}
  .mobile-card-table td{align-items:center}
  .mobile-card-table td::before{flex-basis:45%;max-width:45%}
  .mobile-card-table td>*{max-width:55%}
  .login-topline{align-items:flex-start}.login-version{flex:0 0 auto}.login-kicker{font-size:.66rem}
  .customer-login-pill{font-size:.65rem}
  .customer-login-branding h1{font-size:1.6rem}.login-branding h1{font-size:1.62rem}
  .customer-finance-grid{grid-template-columns:1fr 1fr!important}.customer-finance-card{min-height:102px!important}.customer-finance-card small{display:none}
  .customer-finance-card strong{font-size:.84rem!important}
}

@media(min-width:768px) and (max-width:1100px){
  .app-main{padding:18px 18px 42px}
  .customer-login-stage{grid-template-columns:minmax(360px,46%) 1fr}.customer-login-visual-side{padding:36px 30px}.customer-login-visual-content h2{font-size:1.9rem}.customer-login-phone-preview{width:min(410px,92%)}
}

@supports(padding:max(0px)){
  .mobile-bottom-nav{bottom:max(7px,env(safe-area-inset-bottom))}
}


/* v1.46 - Login feedback lives inside the credential card */
.login-inline-feedback-stack{display:grid;gap:8px;margin:-2px 0 14px}
.login-inline-feedback-stack:empty{display:none}
.login-inline-feedback{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid transparent;border-radius:14px;box-shadow:0 8px 22px rgba(31,41,55,.045);animation:loginFeedbackIn .18s ease both}
.login-inline-feedback-icon{width:30px;height:30px;flex:0 0 30px;display:flex;align-items:center;justify-content:center;border-radius:10px;font-size:.82rem}
.login-inline-feedback-copy{min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.38}
.login-inline-feedback-copy strong{font-size:.68rem;font-weight:820}
.login-inline-feedback-copy small{font-size:.62rem;color:inherit;opacity:.86}
.login-inline-feedback.is-danger{border-color:#ffd8dc;background:#fff3f4;color:#9d2633}.login-inline-feedback.is-danger .login-inline-feedback-icon{background:#ffe1e4;color:#c53d4a}
.login-inline-feedback.is-warning{border-color:#ffe5b0;background:#fff9eb;color:#8c5a0b}.login-inline-feedback.is-warning .login-inline-feedback-icon{background:#ffefc8;color:#c17b09}
.login-inline-feedback.is-success{border-color:#ccebdc;background:#f0fbf6;color:#176d50}.login-inline-feedback.is-success .login-inline-feedback-icon{background:#d9f4e7;color:#12825e}
.login-inline-feedback.is-info{border-color:#d9e6ff;background:#f3f7ff;color:#315b9d}.login-inline-feedback.is-info .login-inline-feedback-icon{background:#e2ecff;color:#416ed0}
.login-form-card .form-control.is-invalid,.customer-login-form .form-control.is-invalid{border-color:#e56f78!important;background-image:none!important;box-shadow:0 0 0 3px rgba(214,65,78,.08)!important}
.login-input-wrap:has(.form-control.is-invalid),.customer-login-input:has(.form-control.is-invalid){color:#bd3542}
.login-feedback-cleared{display:none!important}
@keyframes loginFeedbackIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(max-width:767.98px){.login-inline-feedback{padding:12px;border-radius:15px}.login-inline-feedback-copy strong{font-size:.72rem}.login-inline-feedback-copy small{font-size:.66rem}}
