:root{
  --bg:#f3f4f6;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#6b7280;
  --line:#e5e7eb;
  --blue:#2563eb;
  --blue-soft:#eff6ff;
  --orange1:#ff8a00;
  --orange2:#ffc400;
  --green:#16a34a;
  --shadow:0 12px 28px rgba(15,23,42,.08);
  --radius:24px;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text)}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
.app-shell{min-height:100vh}
.main{min-height:100vh}
.mobile-width{max-width:760px;margin:0 auto}
.topbar{position:sticky;top:0;z-index:10;background:rgba(243,244,246,.92);backdrop-filter:blur(10px);padding:16px;border-bottom:1px solid rgba(229,231,235,.7);display:flex;justify-content:space-between;align-items:center;gap:12px}
.topbar-left,.topbar-right{display:flex;align-items:center;gap:12px}
.burger,.close-btn{width:48px;height:48px;border:none;border-radius:16px;background:#fff;box-shadow:var(--shadow);font-size:22px;cursor:pointer}
.ghost-close{box-shadow:none;background:#f3f4f6}
.topbar-title{font-size:18px;font-weight:900}
.topbar-sub{font-size:13px;color:var(--muted);margin-top:2px}
.topbar-balance,.hero-balance{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:16px;padding:12px 16px;font-weight:900;box-shadow:var(--shadow);white-space:nowrap}
.avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#dbeafe,#bfdbfe);display:flex;align-items:center;justify-content:center;font-weight:900;color:#111827;overflow:hidden;flex-shrink:0}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.balance-link{cursor:pointer}
.avatar-wrap{position:relative}
.avatar-btn{border:none;background:transparent;padding:0;cursor:pointer}
.avatar-menu{position:absolute;right:0;top:54px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:14px;min-width:220px;display:none;z-index:60}
.avatar-menu.open{display:block}
.avatar-menu-name{font-size:16px;font-weight:900}
.avatar-menu-sub{font-size:13px;color:var(--muted);margin:4px 0 12px}
.avatar-upload,.avatar-menu-link,.inline-link{display:flex;align-items:center;justify-content:center;height:42px;border-radius:14px;font-weight:800}
.avatar-upload{background:#f8fafc;border:1px solid var(--line);margin-bottom:8px;cursor:pointer}
.avatar-menu-link{background:#fff;border:1px solid var(--line)}
.avatar-top{width:42px;height:42px}.avatar-lg{width:54px;height:54px}.avatar-med{width:52px;height:52px}.hero-avatar{width:62px;height:62px}.profile-avatar{width:76px;height:76px}
.sidebar{position:fixed;top:0;left:0;bottom:0;width:292px;background:#fff;transform:translateX(-100%);transition:.25s;z-index:40;border-right:1px solid var(--line);padding:20px 18px;display:flex;flex-direction:column;gap:18px}
.sidebar.open{transform:translateX(0)}
.mobile-overlay{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:30;opacity:0;pointer-events:none;transition:.25s}
.mobile-overlay.open{opacity:1;pointer-events:auto}
.sidebar-head{display:flex;align-items:center;justify-content:flex-end}
.logo{font-size:28px;font-weight:900}
.user-card{background:#fff;border-radius:22px;padding:16px;border:1px solid var(--line);box-shadow:var(--shadow)}
.user-card.compact{background:#f8fafc;box-shadow:none}
.user-card-row{display:flex;align-items:center;gap:12px}
.user-name{font-size:18px;font-weight:900;line-height:1.25;margin-bottom:4px}
.user-meta{color:var(--muted);font-size:14px;line-height:1.45}
.nav-group-title{font-size:12px;font-weight:800;letter-spacing:.08em;color:#94a3b8;text-transform:uppercase;margin:0 12px 8px}
.nav-link{display:flex;align-items:center;padding:14px 14px;border-radius:16px;font-size:18px;font-weight:700;color:#111827;margin-bottom:4px}
.nav-link.active{background:var(--blue-soft);color:#1d4ed8}
.content{padding:16px 16px 28px}
.hero-card,.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-bottom:16px}
.hero-main{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hero-left{display:flex;align-items:center;gap:12px;min-width:0}
.hero-name{font-size:20px;font-weight:900;line-height:1.2}.hero-sub{font-size:14px;color:var(--muted);margin-top:4px}
.card-title{font-size:30px;font-weight:900;margin:0 0 6px}.card-sub{font-size:15px;color:var(--muted);margin-bottom:16px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.stat{background:#fff;border-radius:20px;padding:16px;border:1px solid var(--line)}
.stat-label{font-size:14px;color:var(--muted)}
.stat-value{font-size:30px;font-weight:900;margin-top:8px}.stat-sm{font-size:20px;line-height:1.3}
.progress-card{padding:18px;border-radius:22px;background:#f8fafc;margin-bottom:16px}
.progress-title{font-size:22px;font-weight:900;margin-bottom:14px}.progress-bar{height:28px;background:#dde3ed;border-radius:999px;overflow:hidden}
.progress-fill{height:100%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;min-width:0;transition:.3s}
.fill-android{background:linear-gradient(90deg,#ff7f50,#ff3b30)}.fill-iphone{background:linear-gradient(90deg,#60a5fa,#2563eb)}
.progress-meta{margin-top:10px;font-size:16px;color:#475569;line-height:1.5}
.toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:14px}.toolbar.compact-gap{margin-bottom:12px}
.segmented{display:flex;gap:10px;flex-wrap:wrap}.seg-btn,.ghost-btn,.primary-btn,.success-btn,.sold-btn{border:none;border-radius:16px;padding:12px 16px;font-weight:800;cursor:pointer}
.seg-btn{background:#fff;border:1px solid var(--line);color:#111827}.seg-btn.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.ghost-btn{background:#fff;border:1px solid var(--line)}.primary-btn{background:var(--blue);color:#fff}.success-btn{background:var(--green);color:#fff}
.sold-btn{width:100%;background:linear-gradient(90deg,var(--orange1),var(--orange2));color:#fff;font-size:18px;margin-bottom:10px}
.offer-pill{height:38px;background:#f8fafc;border:1px solid var(--line);border-radius:999px;display:flex;align-items:center;justify-content:center;font-size:14px;color:#64748b;margin-bottom:12px}
.search-row{margin-bottom:12px}.search-input{width:100%;height:42px;border:1px solid var(--line);border-radius:14px;padding:0 14px;background:#fff}
.table-wrap{overflow:auto;border-radius:18px;border:1px solid var(--line)}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:14px 16px;border-bottom:1px solid var(--line);font-size:15px;vertical-align:top}th{color:#475569;font-size:14px}
.sales-table th,.sales-table td{white-space:nowrap}
.badge{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:800}.badge.new{background:#dbeafe;color:#1d4ed8}.badge.paid,.badge.done{background:#dcfce7;color:#166534}.badge.failed,.badge.rejected{background:#fee2e2;color:#991b1b}
.list{display:flex;flex-direction:column;gap:14px}.history-item,.top-card,.plain-item{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px}.history-item{display:flex;justify-content:space-between;gap:16px;align-items:center}
.history-title{font-size:17px;font-weight:800}.history-sub,.top-sub{font-size:13px;color:var(--muted);margin-top:4px}.money{white-space:nowrap;font-variant-numeric:tabular-nums}.money.plus{color:#16a34a}.money.minus{color:#ef4444}
.top-card{display:flex;align-items:center;gap:14px}.top-rank{width:28px;font-size:22px;font-weight:900;color:#64748b;flex-shrink:0}.top-body{flex:1;min-width:0}.top-name{font-size:18px;font-weight:900;line-height:1.2}.top-sales{font-size:26px;font-weight:900}.top-sales.small{font-size:18px}
.form-grid{display:grid;gap:12px;grid-template-columns:1fr 1fr;min-width:0}.form-field{display:flex;flex-direction:column;gap:8px;min-width:0}.form-field label{font-size:14px;color:#475569;font-weight:700}.form-field input,.form-field select,.upload-box{height:48px;border:1px solid var(--line);border-radius:14px;padding:0 14px;background:#fff;min-width:0}.upload-box{display:flex;align-items:center;width:100%}.full{grid-column:1/-1}
.notice{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;padding:12px 14px;border-radius:14px;font-size:14px;margin-top:12px}.link-box{word-break:break-all}.empty{padding:28px;text-align:center;color:var(--muted);background:#fff;border:1px dashed var(--line);border-radius:20px}
.profile-head{display:flex;align-items:center;gap:14px;margin-bottom:16px}.subcard{background:#fff;border-radius:22px;padding:18px;border:1px solid var(--line)}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.5);display:flex;align-items:flex-end;justify-content:center;padding:12px;z-index:100}.modal{width:min(720px,100%);background:#fff;border-radius:28px;padding:22px;max-height:92vh;overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.2)}.sale-modal{max-width:560px}
.modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}.modal-title{font-size:28px;font-weight:900}.modal-sub{color:var(--muted);margin-top:6px}
.qr-hero{display:flex;align-items:center;justify-content:center;background:#f8fafc;border:1px solid var(--line);border-radius:22px;min-height:280px;margin-bottom:14px}.qr-hero img{max-width:100%;max-height:100%}
.sale-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}.sale-actions.centered{justify-content:center}.wide{width:100%}.file-card{background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:12px}.file-card-title{font-size:15px;font-weight:800;margin-bottom:10px}.bottom-actions{display:flex;gap:12px;justify-content:space-between;margin-top:18px}
@media (max-width:760px){.grid-2,.grid-3,.form-grid{grid-template-columns:1fr}.card-title{font-size:28px}.topbar{padding:14px}.content{padding:14px}.hero-main{align-items:flex-start}.hero-left{flex-direction:column;align-items:flex-start}.topbar-right{gap:8px}.topbar-balance{padding:10px 12px}}

@media (max-width:430px){
  .topbar{padding:10px 12px;gap:8px}
  .topbar-left{min-width:0;gap:8px}
  .topbar-left > div{min-width:0}
  .topbar-title{max-width:100%;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;font-size:17px;line-height:1.12}
  .topbar-sub{font-size:12px}
  .topbar-right{flex:0 0 auto;gap:6px}
  .burger,.close-btn{width:42px;height:42px;border-radius:14px}
  .topbar-balance{min-width:40px;height:40px;padding:0 10px;border-radius:14px}
  #openMyRatesBtn{width:40px;height:40px;margin-right:0!important;padding:0!important}
  .avatar-top,.avatar-btn{width:40px;height:40px}
  .password-row{min-width:0;flex-direction:column;align-items:stretch}
  .password-row input{width:100%;min-width:0}
  .password-row .small-btn{width:100%}
}

.stack-grid{display:grid;gap:16px;margin-bottom:18px}
.wide-subcard{max-width:none}
.form-grid-single{grid-template-columns:1fr}
.ios-form input,.ios-form select,.ios-select{background:#f8fafc;border:1px solid var(--line);border-radius:18px;height:52px;padding:0 16px;appearance:none}
.profile-upload{max-width:260px}
.camera-grid{display:grid;gap:12px;margin-top:16px}
.camera-card{background:#f8fafc;border:1px solid var(--line);border-radius:20px;padding:14px}
.camera-card-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.camera-icon{width:30px;height:30px;border-radius:999px;background:#e0e7ff;color:#1d4ed8;display:flex;align-items:center;justify-content:center;font-weight:900}
.camera-card-title{font-size:15px;font-weight:800}
.camera-button{display:flex;align-items:center;justify-content:center;height:44px;border-radius:14px;background:#fff;border:1px solid var(--line);font-weight:800;cursor:pointer}
.camera-status{margin-top:10px;font-size:13px;color:var(--muted);word-break:break-word}
.camera-status.done{color:var(--green);font-weight:700}.camera-preview-wrap{margin-top:12px;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:#fff}.camera-preview{display:block;width:100%;max-height:260px;object-fit:cover}
body.sale-modal-open{overflow:hidden}
.sale-modal[data-sale-modal="1"]{position:relative}
.sale-orientation-guard{display:none;position:absolute;inset:0;z-index:30;align-items:center;justify-content:center;padding:20px;background:rgba(248,250,252,.96);backdrop-filter:blur(8px);border-radius:inherit;text-align:center}
.sale-orientation-guard-box{width:min(360px,100%);border:1px solid var(--line);border-radius:22px;background:#fff;padding:22px;box-shadow:0 18px 50px rgba(15,23,42,.18)}
.sale-orientation-guard-title{font-size:22px;line-height:1.15;font-weight:900;color:#0f172a}
.sale-orientation-guard-sub{margin-top:10px;font-size:15px;line-height:1.4;color:#64748b;font-weight:700}
body.sale-modal-landscape .sale-modal[data-sale-modal="1"] .sale-orientation-guard{display:flex}
.ios-modal .bottom-actions .success-btn:disabled{background:#cbd5e1;color:#64748b;cursor:not-allowed}
.ios-modal .bottom-actions .success-btn:disabled:hover{opacity:1}
@media (max-width:760px){.stack-grid{grid-template-columns:1fr}}

.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}
.login-auth-card{max-width:420px;width:100%}
.auth-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.password-row{display:flex;gap:10px;align-items:center}
.password-row .search-input{flex:1}


.sidebar{overflow:hidden}
.sidebar-scroll{flex:1;min-height:0;overflow:auto;padding-right:2px}
.sidebar-nav{display:flex;flex-direction:column;gap:8px;padding-bottom:12px}
.sidebar-foot{padding-top:8px;border-top:1px solid var(--line);margin-top:auto}
.sidebar-logout{width:100%}
.avatar-menu{display:none;flex-direction:column;gap:8px}
.avatar-menu.open{display:flex}
.avatar-menu-danger{color:#b91c1c;border-color:#fecaca;background:#fff5f5}
.password-row{display:flex;gap:10px;align-items:center}
.password-row input{flex:1 1 auto}
.small-btn{height:48px;white-space:nowrap;padding:0 14px;border-radius:14px}
@media (max-width:760px){.sidebar{width:min(88vw,320px)}}


.nav-links{display:flex;flex-direction:column;gap:4px}
.sidebar-section{display:flex;flex-direction:column;gap:6px}
.grouped{background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:8px}
.nav-group-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;border:none;background:transparent;padding:10px 12px;border-radius:14px;font-size:14px;font-weight:800;color:#334155;cursor:pointer}
.nav-group-toggle:hover{background:#eef2ff}
.nav-group-chevron{font-size:18px;line-height:1;color:#64748b}
.grouped .nav-links{display:none;padding:4px 0 0}
.grouped .nav-links.open{display:flex}
.login-auth-card{padding:28px 24px 26px}
.login-auth-card .form-field{gap:10px;margin-top:0}
.login-auth-card .search-input{height:52px;border-radius:18px}
.login-auth-card .card-sub{margin-bottom:22px}
.auth-actions-stack{display:flex;flex-direction:column;align-items:stretch;gap:14px;margin-top:22px}
.auth-btn{width:100%;height:52px;border-radius:18px;font-size:18px;display:flex;align-items:center;justify-content:center;text-align:center}
.login-auth-card .ghost-btn{height:52px;border-radius:18px}
.login-auth-card .notice{margin-top:16px}

.ghost-btn:disabled,.primary-btn:disabled,.success-btn:disabled,.sold-btn:disabled{opacity:.6;cursor:not-allowed}.primary-btn,.success-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px}.btn-spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:btnSpin .75s linear infinite;flex:0 0 16px}@keyframes btnSpin{to{transform:rotate(360deg)}}
.auth-timer-hint{margin-top:10px;margin-bottom:0;text-align:center}

.auth-success{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:280px;padding:12px 6px 4px}.auth-success-mark{width:96px;height:96px;border-radius:999px;display:grid;place-items:center;background:rgba(34,197,94,.12);box-shadow:0 0 0 0 rgba(34,197,94,.18);animation:authSuccessPulse 1.4s ease-out infinite}.auth-success-mark svg{width:56px;height:56px;overflow:visible}.auth-success-mark circle{stroke:rgba(34,197,94,.28);stroke-width:4}.auth-success-mark path{stroke:#16a34a;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;animation:authSuccessCheck .55s ease .18s forwards}.auth-success-loader{width:100%;max-width:220px;height:8px;border-radius:999px;background:#e5e7eb;overflow:hidden;margin-top:10px}.auth-success-loader span{display:block;width:42%;height:100%;border-radius:999px;background:linear-gradient(90deg,#22c55e,#60a5fa);animation:authSuccessSlide 1.15s ease-in-out infinite}@keyframes authSuccessCheck{to{stroke-dashoffset:0}}@keyframes authSuccessPulse{0%{transform:scale(.96);box-shadow:0 0 0 0 rgba(34,197,94,.20)}70%{transform:scale(1);box-shadow:0 0 0 18px rgba(34,197,94,0)}100%{transform:scale(.98);box-shadow:0 0 0 0 rgba(34,197,94,0)}}@keyframes authSuccessSlide{0%{transform:translateX(-120%)}100%{transform:translateX(340%)}}

.field-hint{margin-top:8px;color:#6b7280;font-size:13px;line-height:1.35}
.ios-select-btn{width:100%;border:1px solid var(--line);background:#f8f8fb;border-radius:18px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;font:inherit;cursor:pointer;text-align:left;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.ios-select-value{font-size:16px;font-weight:600;color:#111827}
.ios-select-chevron{font-size:22px;line-height:1;color:#6b7280;margin-left:16px}
.ios-sheet{width:min(560px,calc(100vw - 24px));max-height:min(78vh,720px);background:#f5f5f7;border-radius:28px;padding:10px 12px 14px;box-shadow:0 24px 80px rgba(15,23,42,.22);display:flex;flex-direction:column}
.ios-sheet-handle{width:44px;height:5px;border-radius:999px;background:#d1d5db;margin:2px auto 12px}
.ios-sheet-header{display:flex;align-items:center;justify-content:space-between;padding:0 6px 8px}
.ios-sheet-title{font-size:22px;font-weight:800;color:#111827}
.bank-picker-sheet .close-btn{background:#fff;border:1px solid #e5e7eb;width:38px;height:38px;border-radius:50%}
.ios-sheet-search-wrap{padding:0 6px 10px}
.ios-sheet-search{background:#fff}
.ios-sheet-list{overflow:auto;padding:0 6px 4px;display:flex;flex-direction:column;gap:8px}
.search-picker-backdrop{align-items:flex-start;padding:8px}
.generic-picker-sheet{height:min(720px,calc(100% - 8px));max-height:calc(100% - 8px)}
.generic-picker-sheet .ios-sheet-handle,.generic-picker-sheet .ios-sheet-header,.generic-picker-sheet .ios-sheet-search-wrap{flex:0 0 auto}
.generic-picker-sheet .ios-sheet-list{flex:1 1 auto;min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.ios-bank-option{width:100%;border:0;background:#fff;border-radius:18px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;font:inherit;font-size:16px;font-weight:600;color:#111827;cursor:pointer;box-shadow:0 1px 0 rgba(17,24,39,.04)}
.ios-bank-option>span:first-child{min-width:0}
.picker-subtitle{display:block;margin-top:4px;color:#667085;font-size:12px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}
.ios-bank-option.active{outline:2px solid rgba(37,99,235,.16);background:#eef4ff}
.ios-bank-check{font-size:18px;color:#2563eb;min-width:24px;text-align:right}
.bank-empty{background:#fff;border-radius:18px;padding:20px}
@media (max-width:640px){.ios-sheet{width:calc(100vw - 16px);border-radius:24px}.ios-sheet-title{font-size:20px}.ios-bank-option{padding:15px 16px}}

.withdraw-bank-card{display:flex;align-items:center;gap:16px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border:1px solid var(--line);border-radius:24px;padding:18px 18px 18px 16px;margin-bottom:18px;box-shadow:0 12px 32px rgba(15,23,42,.06)}
.withdraw-bank-card.empty-state{background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}
.withdraw-bank-icon{width:64px;height:64px;border-radius:20px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#2563eb,#60a5fa);color:#fff;font-size:20px;font-weight:900;letter-spacing:.04em;flex-shrink:0;box-shadow:0 12px 30px rgba(37,99,235,.22)}
.withdraw-bank-body{min-width:0;flex:1}
.withdraw-bank-eyebrow{font-size:13px;font-weight:700;color:#64748b;margin-bottom:6px;text-transform:uppercase;letter-spacing:.04em}
.withdraw-bank-name{font-size:20px;font-weight:900;line-height:1.2;color:#0f172a}
.withdraw-bank-phone{margin-top:6px;font-size:15px;color:#475569;word-break:break-word}
.withdraw-bank-link{flex-shrink:0;min-width:116px;text-decoration:none;padding:0 14px}
@media (max-width:640px){.withdraw-bank-card{align-items:flex-start;flex-wrap:wrap}.withdraw-bank-link{width:100%;margin-top:2px}.withdraw-bank-name{font-size:18px}.withdraw-bank-icon{width:58px;height:58px;border-radius:18px;font-size:18px}}

.reconciliation-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;flex-wrap:wrap}
.reconciliation-date-field{min-width:220px;max-width:260px;flex:1}
.reconciliation-date-field label{display:block;font-size:13px;color:var(--muted);margin-bottom:8px;font-weight:700}
.reconciliation-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.reconciliation-list{margin-top:14px}
.reconciliation-city-group{padding-top:14px;border-top:1px solid var(--line)}
.reconciliation-city-group:first-child{padding-top:0;border-top:0}
.reconciliation-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:16px}
.reconciliation-card-head{display:flex;align-items:center;gap:14px}
.reconciliation-total{margin-left:auto;min-width:52px;height:52px;border-radius:18px;background:#111827;color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:900;flex-shrink:0}
.reconciliation-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.reconciliation-stat{background:#f8fafc;border:1px solid var(--line);border-radius:16px;padding:12px 10px;display:flex;flex-direction:column;gap:6px}
.reconciliation-stat span{font-size:12px;color:var(--muted);font-weight:700}
.reconciliation-stat b{font-size:24px;line-height:1;font-weight:900}
.reconciliation-meta{margin-top:12px;font-size:13px;line-height:1.45;color:var(--muted)}
.reconciliation-shift-index{width:max-content;margin-top:7px;padding:4px 7px;border-radius:6px;background:#eef2f6;color:#475467;font-size:11px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums}
.reconciliation-shift-index.good{background:#e9f8ef;color:#18733c}
.reconciliation-shift-index.warning{background:#fff5d9;color:#8a6200}
.reconciliation-shift-index.critical{background:#ffeded;color:#ad2727}
.reconciliation-shift-index.neutral{background:#eef2f6;color:#667085}
@media (max-width: 720px){
  .reconciliation-summary-grid{grid-template-columns:1fr}
  .reconciliation-date-field{min-width:100%;max-width:none}
  .reconciliation-total{min-width:46px;height:46px;border-radius:16px;font-size:20px}
  .reconciliation-stats{grid-template-columns:1fr 1fr 1fr}
}


.review-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:18px}
.review-sale-card{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px;overflow:hidden}
.review-sale-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.review-product-label{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;background:#e8f0ff;color:#2563eb;font-size:13px;font-weight:800;margin-bottom:10px}
.review-loader-card{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px 22px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;min-height:260px}
.review-loader-spinner{width:42px;height:42px;border-radius:999px;border:4px solid rgba(59,130,246,.18);border-top-color:#2563eb;animation:reviewSpin 1s linear infinite}
.review-loader-title{font-size:22px;font-weight:900;color:#0f172a}
.review-loader-sub{font-size:15px;color:#64748b;max-width:320px}
.review-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px;align-items:start}
.review-photos.empty-state{display:block}
.review-empty-photos{border:1px dashed var(--line);border-radius:18px;padding:28px 16px;text-align:center;color:#6b7280;background:#fafafa}
.review-photo-card{display:block;text-align:left;background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:8px;overflow:hidden;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
.review-photo-card:active{transform:scale(.99)}
.review-photo-title{font-size:12px;color:var(--muted);font-weight:700;margin-bottom:6px}
.review-photo-card img{display:block;width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:12px;background:#fff;border:1px solid var(--line)}
.review-number-box{margin-top:16px;background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:14px}
.review-number-box label{display:block;font-size:13px;color:var(--muted);margin-bottom:8px;font-weight:700}
.review-number-row{display:flex;gap:10px;align-items:center}
.review-check-btn{min-width:132px;flex-shrink:0}
.review-check-result{margin-top:10px;font-size:14px;font-weight:700}
.review-check-result.good{color:#15803d}
.review-check-result.bad{color:#b45309}
.review-check-result.hint{color:var(--muted);font-weight:600}
.review-status-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.status-pill,.reason-chip{display:flex;align-items:center;justify-content:center;min-height:52px;width:100%;border:1px solid var(--line);background:#fff;border-radius:18px;padding:0 16px;font:inherit;font-size:17px;font-weight:800;color:#111827;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease,background .12s ease;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.status-pill:active,.reason-chip:active{transform:scale(.99)}
.status-pill.active.accept{background:#dcfce7;border-color:#86efac;color:#166534;box-shadow:0 10px 24px rgba(22,163,74,.12)}
.status-pill.active.reject{background:#fff7ed;border-color:#fdba74;color:#c2410c;box-shadow:0 10px 24px rgba(234,88,12,.10)}
.review-reasons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.reason-chip.active{background:#eef2ff;border-color:#93c5fd;color:#1d4ed8;box-shadow:0 10px 24px rgba(37,99,235,.10)}
.review-actions{margin-top:16px}
.review-actions .success-btn{width:100%;min-height:58px;border-radius:20px;font-size:18px}
.photo-viewer-backdrop{padding:12px}
.photo-viewer-sheet{background:#0f172a;border-radius:24px;width:min(100%,760px);max-height:92vh;display:flex;flex-direction:column;overflow:hidden}
.photo-viewer-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;color:#fff}
.photo-viewer-title{font-size:16px;font-weight:800}
.photo-viewer-body{position:relative;padding:0 12px 12px;overflow:auto;touch-action:pinch-zoom}
.photo-viewer-image{display:block;width:100%;max-height:78vh;object-fit:contain;border-radius:18px;background:#111827}
.photo-viewer-loading{position:absolute;left:50%;bottom:28px;z-index:3;display:flex;align-items:center;gap:8px;transform:translateX(-50%);padding:9px 12px;border-radius:999px;background:rgba(15,23,42,.88);color:#fff;font-size:13px;font-weight:700;white-space:nowrap;pointer-events:none}
.photo-viewer-loading.is-hidden{display:none}
.photo-viewer-loading-spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.42);border-top-color:#fff;border-radius:50%;animation:photo-viewer-spin .75s linear infinite}
@keyframes photo-viewer-spin{to{transform:rotate(360deg)}}
@keyframes reviewSpin{to{transform:rotate(360deg)}}
@media (max-width: 980px){
  .review-summary-grid{grid-template-columns:1fr 1fr}
  .review-photo-card img{aspect-ratio:3/4}
}
@media (max-width: 640px){
  .review-sale-card{padding:16px}
  .review-sale-head{flex-direction:column}
  .review-number-row{flex-direction:column}
  .review-check-btn{width:100%}
  .review-status-row,.review-reasons{grid-template-columns:1fr}
  .review-photos{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .review-photo-card{padding:6px}
  .review-photo-card img{aspect-ratio:3/4}
}


/* review photo viewer with bottom number input */
body.modal-photo-viewer-open{overflow:hidden}
.photo-viewer-backdrop{align-items:flex-end;padding:10px}
.photo-viewer-sheet.with-panel{
  background:#0f172a;
  border-radius:24px;
  width:min(100%,760px);
  height:var(--photo-viewer-sheet-h, min(94vh, 920px));
  max-height:var(--photo-viewer-sheet-h, min(94vh, 920px));
  display:grid;
  grid-template-rows:auto var(--photo-viewer-hero-h, 56vh) auto;
  overflow:hidden;
}
.photo-viewer-sheet.with-panel .photo-viewer-head{
  padding:14px 16px;
  color:#fff;
  background:linear-gradient(180deg,rgba(15,23,42,1) 0%,rgba(15,23,42,.92) 100%);
}
.photo-viewer-sheet.with-panel .photo-viewer-body{
  padding:0 12px 12px;
  height:var(--photo-viewer-hero-h, 56vh);
  min-height:260px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.photo-viewer-sheet.with-panel .photo-viewer-image{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:18px;
  background:#111827;
}
.photo-viewer-panel{
  background:#fff;
  border-top-left-radius:22px;
  border-top-right-radius:22px;
  padding:14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow:0 -12px 32px rgba(15,23,42,.18);
}
.photo-viewer-tabs{
  display:flex;
  gap:8px;
  overflow:auto;
  padding-bottom:6px;
  margin-bottom:12px;
}
.photo-viewer-tab{
  border:1px solid var(--line);
  background:#fff;
  color:#111827;
  border-radius:999px;
  min-height:38px;
  padding:0 14px;
  font:inherit;
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
}
.photo-viewer-tab.active{
  background:#e8f0ff;
  border-color:#93c5fd;
  color:#1d4ed8;
}
.photo-viewer-field{margin-bottom:12px}
.photo-viewer-field label{display:block;font-size:14px;line-height:1.35;color:var(--muted);font-weight:700;margin-bottom:8px}
.photo-viewer-actions .review-check-btn{width:100%}
.review-number-box--summary .review-check-result{margin-top:10px}
.review-number-summary-value{min-height:56px;border:1px solid var(--line);background:#f8fafc;border-radius:18px;padding:16px 18px;font-size:18px;line-height:1.25;font-weight:700;color:#111827}
.review-number-summary-value.is-empty{color:var(--muted);font-weight:600}
.review-number-hint{margin-top:10px;font-size:14px;line-height:1.45;color:var(--muted)}
@media (max-width: 640px){
  .photo-viewer-backdrop{padding:0}
  .photo-viewer-sheet.with-panel{width:100%;height:var(--photo-viewer-sheet-h, 100vh);max-height:var(--photo-viewer-sheet-h, 100vh);border-radius:0;grid-template-rows:auto var(--photo-viewer-hero-h, 52vh) auto}
  .photo-viewer-sheet.with-panel .photo-viewer-body{padding:0 12px 10px;height:var(--photo-viewer-hero-h, 52vh);min-height:240px}
  .photo-viewer-panel{border-top-left-radius:22px;border-top-right-radius:22px}
}

.fill-sberprime{background:linear-gradient(90deg,#22c55e,#16a34a)}
.sales-toolbar-stack{align-items:flex-start}
.reconciliation-summary-grid--four{grid-template-columns:repeat(4,minmax(0,1fr))}
.reconciliation-stats--four{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:720px){.reconciliation-summary-grid--four{grid-template-columns:1fr 1fr}.reconciliation-stats--four{grid-template-columns:1fr 1fr}}


.sberprime-login-banner{margin-top:18px;padding:16px 16px 18px;border:1px solid rgba(34,197,94,.14);background:linear-gradient(180deg,#f6fff8 0%,#ffffff 100%);overflow:hidden}
.login-ad-card{position:relative;border-radius:24px;box-shadow:0 14px 36px rgba(15,23,42,.08)}
.login-ad-hero{margin:-2px -2px 14px;border-radius:20px;overflow:hidden;background:linear-gradient(135deg,#dcfce7,#eff6ff)}
.login-ad-image{display:block;width:100%;height:auto;object-fit:cover}
.login-ad-badge{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 10px;border-radius:999px;background:#e8f7ec;color:#15803d;font-size:12px;font-weight:800;margin-bottom:10px}
.login-ad-title{margin:0 0 10px;font-size:22px;line-height:1.15;font-weight:900;color:#0f172a}
.login-ad-copy{font-size:14px;line-height:1.5;color:#475569;margin-bottom:10px}
.login-ad-footnote{font-size:12px;line-height:1.45;color:#64748b;margin:2px 0 14px}
.sberprime-login-btn{width:100%;min-height:52px;border:none;border-radius:18px;background:linear-gradient(90deg,#16a34a 0%,#22c55e 45%,#06b6d4 100%);color:#fff;font:inherit;font-size:17px;font-weight:900;cursor:pointer;box-shadow:0 16px 32px rgba(34,197,94,.24)}
.sberprime-login-btn:active{transform:translateY(1px)}
@media (max-width:640px){.login-ad-title{font-size:20px}.sberprime-login-banner{padding:14px 14px 16px}}


.sales-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.ratio-info-btn{border:none;background:#eef2ff;color:#1d4ed8;border-radius:14px;padding:8px 12px;font:inherit;font-weight:900;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(147,197,253,.65)}
.ratio-info-btn--inline{padding:4px 8px;border-radius:10px;font-size:13px;line-height:1.2;vertical-align:middle}
.ratio-modal{max-width:420px}
.ratio-modal-copy{font-size:16px;line-height:1.5;color:#334155}
.sale-status-pill{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;border-radius:12px;font-size:18px;background:#f8fafc;border:1px solid var(--line)}
.sale-status-pill--accepted{background:#dcfce7;border-color:#86efac}
.sale-status-pill--rejected{background:#fee2e2;border-color:#fca5a5}
.sale-status-pill--pending{background:#fff7ed;border-color:#fdba74}
.sale-status-pill--neutral{background:#f8fafc;border-color:#e5e7eb;color:#64748b}
.progress-meta .ratio-info-btn{margin:0 4px}
.top-sales .ratio-info-btn{min-width:74px}
.big-number .ratio-info-btn{font-size:24px;padding:10px 14px;border-radius:16px}
@media (max-width:760px){.sales-summary-grid{grid-template-columns:1fr 1fr}}

.ratio-info-btn--compact{padding:6px 10px;border-radius:12px;font-size:16px;line-height:1.1}
.reconciliation-total .ratio-info-btn{background:rgba(255,255,255,.16);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.reconciliation-total .ratio-info-btn:hover{opacity:.95}


/* additions pinch zoom */
.photo-viewer-backdrop{touch-action:pinch-zoom}
.photo-viewer-body{touch-action:pinch-zoom;overscroll-behavior:contain}
.photo-viewer-image{touch-action:pinch-zoom;user-select:none;-webkit-user-drag:none}


/* admin user actions / custom date range / photo pinch zoom */
.danger-btn{border-color:#fecaca!important;color:#b91c1c!important;background:#fff5f5!important}
.date-range-modal{width:min(430px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:clamp(16px,4vw,22px);overflow-x:hidden}
.date-range-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}
.date-range-month{min-width:0;text-align:center;font-weight:900;text-transform:capitalize;color:#111827}
.date-range-weekdays,.date-range-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.date-range-weekdays span{text-align:center;font-size:12px;font-weight:800;color:#64748b;padding:4px 0}
.date-cell{height:42px;border:1px solid var(--line);border-radius:14px;background:#fff;font:inherit;font-weight:800;color:#111827}
.date-cell--blank{border:none;background:transparent}
.date-cell.in-range{background:#eef2ff;border-color:#c7d2fe}
.date-cell.selected{background:#111827;color:#fff;border-color:#111827}
.date-range-actions{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:8px;margin-top:14px}
@media (max-width:430px){
  .date-range-modal .modal-title{font-size:clamp(22px,7vw,28px);line-height:1.08;overflow-wrap:anywhere}
  .date-range-modal .modal-sub{font-size:14px;line-height:1.25}
  .date-range-toolbar{gap:8px;margin:12px 0}
  .date-range-toolbar .small-btn{width:44px;height:44px;padding:0;border-radius:14px;flex:0 0 44px}
  .date-range-weekdays,.date-range-grid{gap:5px}
  .date-range-weekdays span{font-size:11px}
  .date-cell{height:clamp(36px,10vw,42px);border-radius:12px;font-size:15px;padding:0}
  .date-range-actions{grid-template-columns:1fr 1fr;gap:8px}
  .date-range-actions .primary-btn{grid-column:1/-1}
  .date-range-actions .ghost-btn,.date-range-actions .primary-btn{min-width:0;padding:12px 10px}
}
.pinch-zoom-wrap{width:100%;min-height:55vh;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none;background:#0f172a;border-radius:18px}
.pinch-zoom-wrap .photo-viewer-image{transform-origin:center center;will-change:transform;max-height:78vh;width:100%;object-fit:contain}
.photo-viewer-backdrop,.photo-viewer-body{touch-action:none}


/* admin users detail page C */
.admin-users-list{gap:12px}
.admin-user-card-btn{width:100%;appearance:none;border:1px solid var(--line);background:#fff;color:inherit;text-align:left;cursor:pointer;transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease}
.admin-user-card-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(15,23,42,.07);border-color:#dbe3ef}
.admin-user-card-btn:active{transform:scale(.995)}
.admin-user-card-btn .top-name,.admin-user-card-btn .top-sub{overflow-wrap:anywhere}
.admin-user-card-side{display:flex;flex-direction:column;align-items:flex-end;gap:5px;white-space:nowrap;flex-shrink:0;text-align:right}
.admin-user-open-hint{font-size:12px;font-weight:900;color:#2563eb}
.admin-user-details-modal{max-width:560px}
.admin-user-detail-head{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--line);background:#f8fafc;border-radius:22px;margin-bottom:14px}
.admin-user-detail-main{min-width:0}
.admin-user-detail-name{font-size:24px;font-weight:900;line-height:1.15;overflow-wrap:anywhere}
.admin-user-detail-sub{font-size:14px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.admin-user-detail-grid{display:grid;grid-template-columns:1fr;gap:10px;margin:14px 0}
.admin-user-detail-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:13px 14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.admin-user-detail-row span{color:var(--muted);font-size:14px;font-weight:800;flex-shrink:0}
.admin-user-detail-row b{text-align:right;overflow-wrap:anywhere;min-width:0}
.admin-user-action-stack{display:grid;gap:10px;margin-top:16px}
@media (max-width:520px){
  .admin-user-card-btn{align-items:flex-start}
  .admin-user-card-side{font-size:16px;align-self:flex-start;padding-top:2px}
  .admin-user-open-hint{display:none}
  .admin-user-detail-head{align-items:flex-start}
  .admin-user-detail-name{font-size:21px}
  [data-team-promoter-card],[data-team-balance-card]{
    display:grid;
    grid-template-columns:52px minmax(0,1fr);
    align-items:start;
    gap:12px;
  }
  [data-team-promoter-card] .avatar-med,[data-team-balance-card] .avatar-med{
    grid-column:1;
    grid-row:1;
  }
  [data-team-promoter-card] .top-body,[data-team-balance-card] .top-body{
    grid-column:2;
    grid-row:1;
    min-width:0;
  }
  [data-team-promoter-card] .admin-user-card-side,[data-team-balance-card] .admin-user-card-side{
    grid-column:1/-1;
    grid-row:2;
    width:100%;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    padding-top:10px;
    border-top:1px solid var(--line);
    text-align:left;
  }
}



/* ===== History balance stats ===== */
.history-page-card {
  overflow: hidden;
}

.history-month-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
  text-align: center;
  margin-bottom: 14px;
}

.history-month-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.history-stat-muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.history-donuts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.history-donut {
  width: min(210px, 72vw);
  height: min(210px, 72vw);
  border-radius: 999px;
  margin: 0 auto 14px;
  background: var(--history-donut-gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.history-donut-hole {
  width: 56%;
  height: 56%;
  border-radius: 999px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.history-item-enhanced .history-title {
  font-size: 16px;
}

.history-list {
  margin-top: 8px;
}

.history-date-group-head{display:flex;align-items:center;gap:10px;margin:8px 2px -2px;color:var(--muted);font-size:13px;font-weight:900;text-transform:none}
.history-date-group-head:after{content:"";height:1px;background:var(--line);flex:1}
.history-date-group-head span{white-space:nowrap}
.history-row-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.history-row-actions .money{flex:0 0 auto;min-width:max-content;text-align:right}
.history-detail-btn{width:34px;height:34px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--blue);font-weight:900;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.history-detail-modal{width:min(980px,100%);max-width:980px}
.history-detail-summary{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.history-detail-summary .admin-user-detail-row{align-items:center;min-width:0}
.history-detail-summary .admin-user-detail-row span{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;line-height:1.2}
.history-detail-summary .admin-user-detail-row b{flex:0 0 auto;white-space:nowrap;min-width:max-content}
.history-detail-table{display:flex;flex-direction:column;gap:10px}
.history-detail-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.2fr);gap:12px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.history-detail-main{min-width:0}
.history-detail-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;font-size:13px;color:var(--muted)}
.history-detail-metrics span{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:8px 10px;border-radius:12px;background:#f8fafc;line-height:1.2;overflow-wrap:anywhere}
.history-detail-metrics b{color:var(--text);flex:0 0 auto;white-space:nowrap;min-width:max-content}
body.team-balance-modal-open{overflow:hidden}
.team-balance-history-modal{display:flex;flex-direction:column;max-height:92dvh;overflow:hidden}
.team-balance-history-modal .modal-header{flex:0 0 auto}
.team-balance-history-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-right:2px}
.pd-awaiting-resubmission{margin-top:14px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;overflow:hidden}.pd-awaiting-resubmission-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}.pd-awaiting-resubmission-list{max-height:260px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.pd-awaiting-resubmission-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,.7fr);gap:14px;align-items:center;padding:12px 16px;background:#fff;border-bottom:1px solid var(--line)}.pd-awaiting-resubmission-row:last-child{border-bottom:0}.pd-awaiting-resubmission-row b,.pd-awaiting-resubmission-row span{min-width:0;overflow-wrap:anywhere}.pd-awaiting-resubmission-row span{color:var(--muted);text-align:right}.pd-awaiting-resubmission-empty{padding:16px;color:var(--muted);text-align:center;background:#fff}
@media (max-width:520px){.pd-awaiting-resubmission-row{grid-template-columns:minmax(0,1fr);gap:4px}.pd-awaiting-resubmission-row span{text-align:left}}
.history-item-stack{align-items:stretch;flex-direction:column}
.history-item-line{display:flex;align-items:center;justify-content:space-between;gap:14px}
.history-inline-detail{border-top:1px solid var(--line);padding-top:10px}
.history-inline-detail summary{cursor:pointer;font-weight:900;color:var(--blue)}
@media (max-width:640px){.history-item{align-items:flex-start}.history-item-enhanced{align-items:stretch;flex-direction:column}.history-item-enhanced>div:first-child{min-width:0}.history-row-actions{width:100%;align-items:center;justify-content:space-between;flex-direction:row}.history-row-actions .money{font-size:18px;text-align:left}.history-detail-modal{border-radius:24px;padding:18px}.history-detail-row{grid-template-columns:1fr}.history-detail-metrics{grid-template-columns:1fr}.history-item-line{align-items:flex-start}.history-detail-summary{grid-template-columns:1fr}}

@media (min-width: 760px) {

  .history-donuts-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ===== History visual refresh ===== */
.history-page-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(245,248,252,.72));
}

.history-month-head {
  grid-template-columns: 42px 1fr 42px;
  margin-bottom: 14px;
}

.history-month-title {
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.015em;
}

.history-stat-tabs {
  width: 100%;
  margin: 0 auto 18px;
  padding: 4px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}

.history-stat-tabs .seg-btn {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
}

.history-donut-stage {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.history-donut-peek {
  position: absolute;
  right: -28%;
  top: 50%;
  width: 46%;
  max-width: 180px;
  transform: translateY(-50%);
  opacity: .78;
  filter: saturate(.88);
  z-index: 1;
  pointer-events: none;
}

.history-donut-stage--all {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.history-donut {
  width: min(250px, 68vw);
  height: min(250px, 68vw);
  margin: 0 auto 16px;
  background: var(--history-donut-gradient);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, .08),
    inset 0 1px 0 rgba(255,255,255,.28);
}

.history-donut-hole {
  width: 56%;
  height: 56%;
  background: #edf3f8;
  font-size: 17px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 8px 22px rgba(15,23,42,.045);
}

.history-donut-hole-title {
  font-weight: 950;
}

.history-donut-hole-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #7b8797;
  font-weight: 800;
}

.history-empty-chart {
  min-height: 220px;
  display: grid;
  place-items: center;
}

@media (max-width: 390px) {

  .history-donut-stage {
    min-height: 300px;
  }

  .history-donut-peek {
    right: -34%;
  }
}

@media (min-width: 760px) {

  .history-donut-stage {
    min-height: 370px;
  }

  .history-donut-peek {
    right: 4%;
  }
}


/* ===== History simple native v6 START ===== */

.hstat-root {
  width: 100%;
}

.hstat-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.hstat-summary-card {
  min-width: 0;
  border-radius: 22px;
  padding: 13px 11px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(247,250,253,.74)),
    rgba(255,255,255,.62);
  border: 1px solid rgba(132,146,166,.16);
  box-shadow: 0 14px 30px rgba(15,23,42,.045);
}

.hstat-summary-label {
  color: #7d8797;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.12;
}

.hstat-summary-value {
  margin-top: 7px;
  color: var(--text);
  font-size: clamp(17px, 4.7vw, 25px);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
}

.hstat-summary-value.plus,
.hstat-total-value.plus,
.hstat-donut-amount.plus {
  color: #16a34a;
}

.hstat-summary-value.minus,
.hstat-total-value.minus,
.hstat-donut-amount.minus {
  color: #3f414b;
}

.hstat-summary-sub {
  margin-top: 7px;
  color: #9aa4b2;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
}

.hstat-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 16px;
  margin: 0 0 16px;
  background:
    radial-gradient(circle at 12% -12%, rgba(121,139,166,.10), transparent 34%),
    radial-gradient(circle at 110% 0%, rgba(116,137,172,.08), transparent 34%),
    linear-gradient(180deg, rgba(250,252,255,.92), rgba(239,245,250,.94));
  border: 1px solid rgba(132,146,166,.18);
  box-shadow: 0 18px 44px rgba(15,23,42,.052);
}

.hstat-head {
  margin-bottom: 12px;
}

.hstat-title {
  color: var(--text);
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.hstat-sub {
  margin-top: 5px;
  color: #828c9c;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.22;
}

.hstat-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 5px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(225,233,243,.78);
}

.hstat-tab {
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 10px 6px;
  background: transparent;
  color: #6f7988;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.hstat-tab.active {
  color: #111827;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15,23,42,.07);
}

.hstat-panel {
  border-radius: 26px;
  padding: 16px 14px 14px;
  background:
    linear-gradient(180deg, rgba(235,242,248,.78), rgba(229,238,246,.66));
  border: 1px solid rgba(132,146,166,.10);
}

.hstat-all-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.hstat-total-card {
  min-width: 0;
}

.hstat-total-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f7d90;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
}

.hstat-total-value {
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(25px, 7.4vw, 43px);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
}

.hstat-selected-month {
  color: #9aa4b2;
  font-size: 12px;
  font-weight: 850;
  margin: 0 0 4px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot.credit {
  background: linear-gradient(180deg, #8adf3d, #35b84b);
}

.dot.debit {
  background: linear-gradient(180deg, #f7b36b, #ee8a2c);
}

.hstat-pill-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 13px;
  min-height: 176px;
}

.hstat-pill-item {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hstat-pill-pair {
  height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hstat-pill-track {
  position: relative;
  width: 14px;
  height: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 8px 18px rgba(15,23,42,.025);
  overflow: hidden;
}

.hstat-pill-fill {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  border-radius: 999px;
  opacity: .72;
}

.hstat-pill-item.active .hstat-pill-fill {
  opacity: 1;
}

.hstat-pill-fill.credit {
  background: linear-gradient(180deg, rgba(176,229,165,.98), rgba(106,200,92,.98));
}

.hstat-pill-fill.debit {
  background: linear-gradient(180deg, rgba(245,196,150,.98), rgba(236,138,44,.98));
}

.hstat-pill-label {
  color: #aeb8c6;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.05;
}

.hstat-pill-item.active .hstat-pill-label {
  color: var(--text);
  font-weight: 950;
}

.hstat-donut-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -14px;
  padding: 0 14px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hstat-donut-carousel::-webkit-scrollbar {
  display: none;
}

.hstat-donut-track {
  display: flex;
  gap: 12px;
}

.hstat-donut-slide {
  flex: 0 0 calc(100% - 38px);
  min-width: 0;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4px 0 0;
}

.hstat-donut-amount {
  margin: 0 0 12px;
  font-size: clamp(28px, 8.2vw, 46px);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
}

.hstat-donut-ring {
  width: min(188px, 52vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow:
    0 18px 42px rgba(15,23,42,.075),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.hstat-donut-center {
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: #eef3f8;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 9px 22px rgba(15,23,42,.032);
}

.hstat-donut-month {
  max-width: 100%;
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -.02em;
  line-height: 1.04;
}

.hstat-donut-kind {
  margin-top: 6px;
  color: #66758e;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.05;
}

.hstat-donut-footer {
  margin-top: 12px;
  color: #8b96a6;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 430px) {
  .hstat-summary {
    gap: 8px;
  }

  .hstat-summary-card {
    border-radius: 20px;
    padding: 12px 9px;
  }

  .hstat-summary-label {
    font-size: 10.5px;
  }

  .hstat-summary-value {
    font-size: clamp(16px, 4.9vw, 22px);
  }

  .hstat-summary-sub {
    font-size: 9.5px;
  }

  .hstat-shell {
    border-radius: 28px;
    padding: 15px 13px;
  }

  .hstat-panel {
    border-radius: 24px;
    padding: 14px 12px 13px;
  }

  .hstat-total-value {
    font-size: clamp(23px, 7vw, 36px);
  }

  .hstat-pill-row {
    gap: 10px;
    min-height: 166px;
  }

  .hstat-pill-pair {
    height: 124px;
    gap: 7px;
  }

  .hstat-pill-track {
    width: 13px;
  }

  .hstat-donut-carousel {
    margin: 0 -12px;
    padding: 0 12px 2px;
  }

  .hstat-donut-ring {
    width: min(176px, 51vw);
  }

  .hstat-donut-month {
    font-size: 15px;
  }
}

@media (max-width: 370px) {
  .hstat-summary {
    grid-template-columns: 1fr;
  }

  .hstat-all-top {
    gap: 10px;
  }

  .hstat-total-value {
    font-size: clamp(20px, 6.8vw, 30px);
  }

  .hstat-pill-row {
    gap: 8px;
  }

  .hstat-donut-slide {
    flex-basis: calc(100% - 28px);
  }

  .hstat-donut-ring {
    width: min(162px, 50vw);
  }

  .hstat-donut-month {
    font-size: 13px;
  }
}

@media (min-width: 760px) {
  .hstat-summary {
    gap: 12px;
  }

  .hstat-donut-slide {
    flex-basis: 70%;
    max-width: 500px;
  }

  .hstat-donut-ring {
    width: 206px;
  }
}

/* ===== History simple native v6 END ===== */


/* ===== Date trigger button START ===== */
.date-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}

.date-trigger-btn:empty::before {
  content: 'Нажми, чтобы выбрать';
  color: #a4acb8;
}
/* ===== Date trigger button END ===== */


/* ===== Team promoter toggles START ===== */
.team-toggle-card {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.team-toggle-row {
  width: 100%;
  border: 1px solid rgba(120,136,160,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.team-switch {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #c8d2de;
  padding: 3px;
  flex: 0 0 auto;
  transition: .18s ease;
}

.team-switch i {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15,23,42,.16);
  transition: .18s ease;
}

.team-switch.on {
  background: #22c55e;
}

.team-switch.on i {
  transform: translateX(20px);
}
/* ===== Team promoter toggles END ===== */


/* ===== Team promoters disabled state START ===== */
.team-promoter-card--disabled {
  opacity: .58;
  filter: grayscale(.75);
  background:
    linear-gradient(180deg, rgba(245,247,250,.82), rgba(235,240,246,.72)),
    rgba(239,244,249,.72);
}

.team-promoter-card--disabled .top-name,
.team-promoter-card--disabled .top-sub,
.team-promoter-card--disabled .top-sales {
  color: #7c8797;
}
/* ===== Team promoters disabled state END ===== */

/* ===== Senior promoter management cards START ===== */
.senior-promoter-card {
  align-items: flex-start;
}

.senior-promoter-card .top-name,
.senior-promoter-card .top-sub {
  overflow-wrap: anywhere;
}

.senior-promoter-actions {
  max-width: 230px;
}

.senior-promoter-actions .small-btn {
  height: auto;
  min-height: 48px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.15;
  padding: 10px 14px;
  text-align: center;
}

@media (max-width: 640px) {
  .senior-promoter-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
  }

  .senior-promoter-card .avatar-med {
    grid-column: 1;
    grid-row: 1;
  }

  .senior-promoter-card .top-body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .senior-promoter-actions {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    align-items: stretch;
    padding-top: 10px;
    text-align: center;
  }

  .senior-promoter-actions .small-btn {
    width: 100%;
    max-width: none;
  }
}
/* ===== Senior promoter management cards END ===== */


/* ===== Team promoters form width fix START ===== */
#teamPromoterSearch,
#createPromoterForm input,
#createPromoterForm button,
#createPromoterForm .search-input,
#createPromoterForm .ghost-btn,
#createPromoterForm .primary-btn {
  box-sizing: border-box;
  max-width: 100%;
}

#createPromoterForm {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#createPromoterForm .form-field {
  min-width: 0;
}

#createPromoterForm .password-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

#createPromoterForm .password-row input {
  min-width: 0;
  width: 100%;
}

#createPromoterForm .password-row .ghost-btn {
  white-space: nowrap;
}

@media (max-width: 430px) {
  #createPromoterForm .password-row {
    grid-template-columns: 1fr;
  }

  #createPromoterForm .password-row .ghost-btn {
    width: 100%;
  }
}
/* ===== Team promoters form width fix END ===== */


/* ===== Create promoter modal START ===== */
#createPromoterForm {
  width: 100%;
  max-width: 100%;
}

#createPromoterForm .form-field {
  min-width: 0;
}

.create-promoter-password-row {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.create-promoter-password-row input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.create-promoter-password-row .ghost-btn {
  white-space: nowrap;
}

@media (max-width: 430px) {
  .create-promoter-password-row {
    grid-template-columns: 1fr;
  }

  .create-promoter-password-row .ghost-btn {
    width: 100%;
  }
}
/* ===== Create promoter modal END ===== */


/* ===== Create promoter input focus fix START ===== */
#createPromoterForm .search-input {
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

#createPromoterForm .search-input:focus,
#createPromoterForm .search-input:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, .42);
  box-shadow:
    inset 0 0 0 2px rgba(37, 99, 235, .18),
    0 8px 22px rgba(37, 99, 235, .06);
}

#createPromoterForm .form-field {
  overflow: visible;
}

#createPromoterForm .modal,
#createPromoterForm {
  overflow: visible;
}
/* ===== Create promoter input focus fix END ===== */


/* ===== Slice pages START ===== */
.slice-card .form-grid {
  align-items: end;
}

.slice-table {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.slice-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(236, 243, 250, .78);
  border: 1px solid rgba(120, 136, 160, .10);
  color: #66758a;
}

.slice-row-head {
  background: rgba(226, 235, 245, .92);
  font-weight: 900;
  color: #7a8799;
}

.slice-row-total {
  background: rgba(220, 230, 241, .96);
  font-weight: 950;
  color: var(--text);
}

.slice-date,
.slice-network-name {
  font-weight: 950;
  color: #536176;
}

.slice-metric {
  min-width: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 16px;
  color: #5f6d82;
}

.slice-num-main {
  font-weight: 950;
  color: #536176;
}

.slice-num-up {
  color: #f2b705;
}

.slice-sep {
  color: #a0abb9;
  padding: 0 4px;
}

.compact-toggle {
  height: 46px;
  padding: 8px 12px;
}

@media (max-width: 640px) {
  .slice-table {
    overflow-x: visible;
    gap: 10px;
  }

  .slice-row {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
    padding: 12px;
  }

  .slice-row-head {
    display: none;
  }

  .slice-date,
  .slice-network-name {
    min-width: 0;
    font-size: 15px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .slice-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    white-space: normal;
    text-align: right;
    font-size: 15px;
    line-height: 1.25;
    border-radius: 13px;
    background: rgba(255,255,255,.66);
    border: 1px solid rgba(120,136,160,.12);
    padding: 9px 10px;
  }

  .slice-metric::before {
    content: attr(data-slice-label);
    flex: 0 1 auto;
    min-width: 0;
    color: #7a8799;
    font-size: 12px;
    font-weight: 900;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .slice-sep {
    padding: 0 2px;
  }
}
/* ===== Slice pages END ===== */


/* ===== Slice product columns V2 START ===== */
.slice-row-products-mode {
  min-width: 0;
  grid-template-columns: minmax(140px, 1.1fr) repeat(2, minmax(112px, .95fr));
}

.slice-row-total-mode {
  min-width: 0;
  grid-template-columns: minmax(150px, 1.2fr) minmax(130px, 1fr);
}

.slice-row-products-mode .slice-metric {
  font-size: 15px;
}

@media (max-width: 640px) {
  .slice-row-products-mode {
    grid-template-columns: 1fr;
  }

  .slice-row-total-mode {
    grid-template-columns: 1fr;
  }
}
/* ===== Slice product columns V2 END ===== */

/* ===== Slice iOS overflow fix START ===== */
.slice-card,
.slice-card .form-grid,
.slice-card .form-field {
  min-width: 0;
}

.slice-card .search-input,
.slice-card input.search-input,
.slice-card select.search-input,
.slice-card button.search-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.slice-card input[type="month"].search-input {
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 18px;
}

.slice-card input[type="month"].search-input::-webkit-calendar-picker-indicator {
  margin: 0;
  transform: scale(.96);
}

.slice-table,
.slice-table-online {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.slice-table > .slice-row,
.slice-table-online > .slice-row {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cluster-online-products-row {
  grid-template-columns: minmax(140px, 1.18fr) repeat(2, minmax(112px, .9fr));
}

@media (max-width: 640px) {
  .slice-table,
  .slice-table-online {
    overflow-x: visible !important;
    overflow-y: visible;
  }

  .cluster-online-products-row {
    grid-template-columns: 1fr;
  }
}
/* ===== Slice iOS overflow fix END ===== */

/* Logout buttons inside menu scroll, not fixed at bottom */
.sidebar-foot.sidebar-foot-inline {
  position: static !important;
  bottom: auto !important;
  margin-top: 18px;
  padding-bottom: 18px;
}

/* FINAL FIX: logout buttons must scroll with menu, not stay pinned */
.sidebar {
  overflow-y: auto !important;
}

.sidebar-scroll {
  flex: 0 0 auto !important;
  min-height: auto !important;
  overflow: visible !important;
}

.sidebar-foot {
  margin-top: 18px !important;
  flex: 0 0 auto !important;
  position: static !important;
  bottom: auto !important;
}

/* Gap between logout buttons */
.sidebar-foot .avatar-menu-link + .avatar-menu-link {
  margin-top: 8px;
}

#avatarLogoutAllBtn {
  margin-top: 8px;
}

/* Password visibility controls */
.password-visibility-wrap {
  position: relative;
  width: 100%;
}

.password-visibility-wrap .search-input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 52px;
}

.password-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, .06);
  color: #111827;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

/* Force visible password save button */
.change-password-submit-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  color: #fff !important;
  font-weight: 900 !important;
}

/* Passport locked state */
.personal-data-locked .search-input,
.personal-data-locked input,
.personal-data-locked textarea,
.personal-data-locked select {
  opacity: .78;
  background: #f3f4f6 !important;
  color: #64748b !important;
  cursor: not-allowed;
}

.camera-card.locked .camera-button {
  display: none !important;
}

.pd-review-rate-note {
  margin-top: 14px;
}

.pd-review-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
  min-width: 0;
}

.pd-review-media {
  appearance: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.pd-review-media span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}

.pd-review-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 8px;
  background: #f3f4f6;
}

.pd-review-media--signature img {
  background: #fff;
}

.pd-review-media--missing {
  min-height: 112px;
  cursor: default;
  color: #6b7280;
  background: #f8fafc;
}

.pd-review-media--missing b {
  align-self: center;
  justify-self: center;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .pd-review-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Personal data consent toggle */
.personal-consent-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}

.personal-consent-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.personal-consent-switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background .18s ease;
}

.personal-consent-switch::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
  transition: transform .18s ease;
}

.personal-consent-toggle input:checked + .personal-consent-switch {
  background: #007aff;
}

.personal-consent-toggle input:checked + .personal-consent-switch::after {
  transform: translateX(20px);
}

.personal-consent-text {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  color: #111827;
}

/* Locked personal consent toggle */
.personal-consent-toggle.disabled {
  cursor: not-allowed;
  opacity: .82;
}

.personal-consent-toggle.disabled .personal-consent-text {
  color: #64748b;
}

/* Review photo viewer number actions */
.photo-viewer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.photo-viewer-actions .review-recognize-btn,
.photo-viewer-actions .review-check-btn {
  flex: 1 1 150px;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .photo-viewer-actions {
    flex-direction: column;
  }

  .photo-viewer-actions .review-recognize-btn,
  .photo-viewer-actions .review-check-btn {
    width: 100%;
    flex: none;
  }
}

/* Fast OCR review actions */
.photo-viewer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.photo-viewer-actions .review-recognize-btn,
.photo-viewer-actions .review-check-btn {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  box-sizing: border-box;
}

@media (max-width: 390px) {
  .photo-viewer-actions {
    grid-template-columns: 1fr;
  }
}

/* ===== Hide empty auth/login alert boxes START ===== */
#app .auth-card .notice:empty,
#app .auth-card .error:empty,
#app .auth-card .auth-error:empty,
#app .auth-card .login-error:empty,
#app .login-card .notice:empty,
#app .login-card .error:empty,
#app .login-card .auth-error:empty,
#app .login-card .login-error:empty,
#app [id="authError"]:empty,
#app [id="loginError"]:empty,
#app [data-auth-error]:empty,
#app [data-login-error]:empty {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
/* ===== Hide empty auth/login alert boxes END ===== */


/* remove yandex auth empty banner */
#promunity-yandex-distribution-check-banner,
[id*="yandex-distribution"],
[id*="distribution-verification"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.login-auth-card > .notice:empty,
.login-auth-card > .error:empty,
.login-auth-card > .auth-error:empty,
.login-auth-card > .login-error:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
}

/* ===== Review photo viewer centering fix START ===== */
.photo-viewer-sheet.with-panel .photo-viewer-body{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}

.photo-viewer-sheet.with-panel .pinch-zoom-wrap{
  width:100% !important;
  height:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}

.photo-viewer-sheet.with-panel .photo-viewer-image{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:100% !important;
  margin:0 auto !important;
  object-fit:contain !important;
  transform-origin:center center !important;
}
/* ===== Review photo viewer centering fix END ===== */

/* ===== Review photo viewer hard centering v2 START ===== */
.photo-viewer-sheet.with-panel .review-photo-viewer-body{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 12px 10px!important;
  overflow:hidden!important;
}

.photo-viewer-sheet.with-panel .review-pinch-zoom-wrap{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0 auto!important;
  overflow:hidden!important;
  background:#0f172a;
  border-radius:18px;
}

.photo-viewer-sheet.with-panel .review-pinch-zoom-wrap .photo-viewer-image{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  height:auto!important;
  max-height:100%!important;
  object-fit:contain!important;
  margin:auto!important;
  transform-origin:center center!important;
}

@media (max-width:520px){
  .photo-viewer-sheet.with-panel .review-photo-viewer-body{
    padding:0 12px 10px!important;
  }
}
/* ===== Review photo viewer hard centering v2 END ===== */

/* ===== Photo viewer mobile overflow fix START ===== */
body.modal-photo-viewer-open{
  overflow:hidden!important;
  width:100%!important;
  max-width:100%!important;
}

.photo-viewer-backdrop{
  overflow:hidden!important;
  max-width:100vw!important;
}

.photo-viewer-sheet.with-panel{
  width:100%!important;
  max-width:100vw!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

.photo-viewer-sheet.with-panel *{
  box-sizing:border-box!important;
}

.photo-viewer-head,
.photo-viewer-panel{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
}

.photo-viewer-title{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.photo-viewer-tabs{
  width:100%!important;
  max-width:100%!important;
  display:flex!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  padding-bottom:4px!important;
}

.photo-viewer-tab{
  flex:0 0 auto!important;
  max-width:72vw!important;
  white-space:nowrap!important;
}

.photo-viewer-field,
.photo-viewer-field .search-input{
  width:100%!important;
  max-width:100%!important;
}

.photo-viewer-actions{
  width:100%!important;
  max-width:100%!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
}

.photo-viewer-actions .ghost-btn,
.photo-viewer-actions .primary-btn,
.photo-viewer-actions .review-recognize-btn,
.photo-viewer-actions .review-check-btn{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding-left:10px!important;
  padding-right:10px!important;
  white-space:nowrap!important;
}

.photo-viewer-sheet.with-panel .review-photo-viewer-body,
.photo-viewer-sheet.with-panel .photo-viewer-body{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
}

.photo-viewer-sheet.with-panel .review-pinch-zoom-wrap,
.photo-viewer-sheet.with-panel .pinch-zoom-wrap{
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.photo-viewer-sheet.with-panel .photo-viewer-image{
  max-width:100%!important;
  max-height:100%!important;
  margin:auto!important;
}

@media (max-width:420px){
  .photo-viewer-actions{
    grid-template-columns:1fr!important;
  }
}
/* ===== Photo viewer mobile overflow fix END ===== */

/* ===== Fraud suspicion review START ===== */
.fraud-suspicion-text{
  margin-top:6px;
  color:#b91c1c;
  font-size:13px;
  line-height:1.35;
  font-weight:900;
  overflow-wrap:anywhere;
}

.danger-text-btn{
  color:#b91c1c!important;
  border-color:rgba(185,28,28,.28)!important;
  background:rgba(254,242,242,.82)!important;
}

.fraud-suspicion-form textarea.search-input{
  min-height:92px;
  resize:vertical;
  line-height:1.35;
}

.fraud-suspicion-groups{
  display:grid;
  gap:14px;
}

.fraud-suspicion-group{
  border:1px solid rgba(17,24,39,.10);
  border-radius:18px;
  background:#fff;
  padding:14px;
  min-width:0;
}

.fraud-suspicion-group-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  min-width:0;
}

.fraud-suspicion-group-head > div:first-child{
  min-width:0;
}

.fraud-suspicion-group-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex:0 0 auto;
}

.fraud-suspicion-focus{
  border:1px solid rgba(185,28,28,.18);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(254,242,242,.96),rgba(255,255,255,.96));
  padding:12px;
  margin-bottom:12px;
}

.fraud-suspicion-focus-title{
  color:#991b1b;
  font-size:13px;
  line-height:1.25;
  font-weight:950;
  margin-bottom:8px;
}

.fraud-suspicion-focus-list{
  display:grid;
  gap:7px;
}

.fraud-suspicion-focus-item{
  position:relative;
  color:#7f1d1d;
  font-size:13px;
  line-height:1.35;
  font-weight:850;
  padding-left:17px;
  overflow-wrap:anywhere;
}

.fraud-suspicion-focus-item:before{
  content:"";
  position:absolute;
  left:1px;
  top:.58em;
  width:7px;
  height:7px;
  border-radius:999px;
  background:#ef4444;
}

.fraud-suspicion-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:12px;
}

.fraud-suspicion-card{
  border:1px solid rgba(17,24,39,.10);
  border-radius:14px;
  background:#f9fafb;
  padding:12px;
  min-width:0;
}

.fraud-suspicion-card-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  min-width:0;
}

.fraud-suspicion-sale-line{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  color:#111827;
  font-size:15px;
  line-height:1.25;
  font-weight:950;
}

.fraud-suspicion-sale-line span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}

.fraud-suspicion-sale-id{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:2px 8px;
  border-radius:999px;
  background:#eef2ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:950;
}

.fraud-suspicion-photos{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.fraud-suspicion-photo{
  appearance:none;
  border:1px solid rgba(17,24,39,.10);
  border-radius:12px;
  background:#fff;
  padding:6px;
  cursor:pointer;
  min-width:0;
  text-align:left;
}

.fraud-suspicion-photo span{
  display:block;
  color:#6b7280;
  font-size:11px;
  font-weight:800;
  line-height:1.25;
  margin-bottom:5px;
}

.fraud-suspicion-photo img{
  display:block;
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius:8px;
  background:#eef2f7;
}

@media (max-width:430px){
  .fraud-suspicion-group-head{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  .fraud-suspicion-group-actions{
    justify-content:stretch;
  }

  .fraud-suspicion-group-actions .ghost-btn{
    width:100%;
  }

  .fraud-suspicion-group{
    padding:10px;
    border-radius:14px;
  }

  .fraud-suspicion-grid{
    grid-template-columns:1fr;
  }

  .fraud-suspicion-card{
    padding:10px;
  }
}
/* ===== Fraud suspicion review END ===== */

/* ===== Operational director START ===== */
.operations-content{max-width:1180px}
.operational-mode-btn{width:100%;margin:12px 0 4px;padding:12px 14px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1e293b;font-weight:800;text-align:left;cursor:pointer;line-height:1.3}
.operational-mode-btn.active{border-color:#64748b;background:#f1f5f9}
.operational-preview-banner{position:sticky;top:81px;z-index:9;padding:9px 16px;background:#fff7d6;border-bottom:1px solid #ead588;color:#6b4f00;font-size:13px;line-height:1.35;text-align:center}
.topbar-role-badge{display:flex;align-items:center;justify-content:center;width:44px;height:40px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#374151;font-size:14px;font-weight:900}
.operations-page{display:flex;flex-direction:column;gap:18px;min-width:0}
.operations-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:8px 2px 4px;border-bottom:1px solid #dfe3e8}
.operations-page-head h1{margin:0;font-size:30px;line-height:1.15;letter-spacing:0;font-weight:900}
.operations-page-head p{margin:7px 0 13px;color:#667085;font-size:15px;line-height:1.45}
.operations-page-meta{flex:0 0 auto;margin-bottom:13px;color:#667085;font-size:13px;text-align:right}
.operations-metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.operations-metrics-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}
.operations-metric{min-width:0;padding:15px;border:1px solid #dfe3e8;border-radius:8px;background:#fff}
.operations-metric.tone-ok{border-color:#b7d8c2;background:#f3faf5}
.operations-metric.tone-warning{border-color:#e7cf86;background:#fffaf0}
.operations-metric.tone-error{border-color:#e8b2b2;background:#fff6f6}
.operations-metric.tone-critical{border-color:#ca7777;background:#fff0f0}
.operations-metric-label{color:#667085;font-size:13px;line-height:1.25;font-weight:700}
.operations-metric-value{margin-top:8px;color:#101828;font-size:26px;line-height:1.1;font-weight:900;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.operations-metric-detail{margin-top:7px;color:#667085;font-size:12px;line-height:1.35}
.operations-band{min-width:0;padding:18px 0;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;background:transparent}
.operations-band-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.operations-band-head h2{margin:0;color:#111827;font-size:20px;line-height:1.25;font-weight:900}
.operations-band-head p{margin:4px 0 0;color:#667085;font-size:13px;line-height:1.4}
.operations-link{flex:0 0 auto;color:#175cd3;font-size:14px;font-weight:800}
.operations-sales-grid,.operations-error-compact-list,.operations-list,.operations-approval-list{display:flex;flex-direction:column;gap:8px}
.operations-sale-row{display:grid;grid-template-columns:minmax(190px,1.5fr) repeat(3,minmax(95px,.7fr));gap:12px;align-items:center;padding:13px 14px;border:1px solid #e2e5e9;border-radius:8px;background:#fff}
.operations-sale-row>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.operations-sale-row span{color:#667085;font-size:12px;line-height:1.3}
.operations-sale-row b{font-size:16px;font-variant-numeric:tabular-nums}
.operations-last-event{margin-top:11px;color:#475467;font-size:13px;line-height:1.4}
.operations-error-compact{display:flex;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid #e2e5e9;border-left-width:4px;border-radius:8px;background:#fff}
.operations-error-compact.severity-critical{border-left-color:#b42318}.operations-error-compact.severity-error{border-left-color:#d92d20}.operations-error-compact.severity-warning{border-left-color:#dc9803}.operations-error-compact.severity-info{border-left-color:#1570ef}
.operations-error-compact>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.operations-error-compact b{font-size:14px}.operations-error-compact span{color:#667085;font-size:12px;line-height:1.35}
.operations-error-time{flex:0 0 auto;color:#667085;font-size:12px;text-align:right}
.operations-ok-state{padding:24px;border:1px dashed #b7d8c2;border-radius:8px;background:#f3faf5;color:#287a48;text-align:center;font-weight:800}
.operations-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end;margin-bottom:16px}
.operations-filters.journal{grid-template-columns:2fr repeat(3,minmax(140px,1fr)) repeat(2,minmax(145px,1fr)) auto}
.operations-filters.economics{grid-template-columns:repeat(3,minmax(160px,1fr)) auto}
.operations-filters.one-line{grid-template-columns:minmax(200px,320px)}
.operations-filters label{display:flex;flex-direction:column;gap:6px;min-width:0;color:#475467;font-size:12px;font-weight:800}
.operations-filters .search-input{height:44px;min-width:0;border-radius:8px}
.operations-filters .primary-btn{min-height:44px;border-radius:8px;white-space:nowrap}
.operations-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px;border:1px solid #e2e5e9;border-radius:8px;background:#fff}
.operations-list-main,.operations-list-meta{display:flex;flex-direction:column;gap:4px;min-width:0}
.operations-list-main b{line-height:1.3}.operations-list-main span,.operations-list-meta span{color:#667085;font-size:12px;line-height:1.35}
.operations-list-meta{align-items:flex-end;text-align:right}
.operations-status{display:inline-flex;padding:4px 8px;border-radius:6px;font-size:11px!important;font-weight:800}
.operations-status.status-submitted{background:#fff0c2;color:#795c00}.operations-status.status-approved{background:#dcf3e4;color:#237544}.operations-status.status-rejected{background:#fee4e2;color:#b42318}.operations-status.status-draft{background:#eef0f3;color:#475467}
.operations-cost-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.operations-cost-block{padding:15px;border:1px solid #dfe3e8;border-radius:8px;background:#fff;min-width:0}
.operations-cost-title{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding-bottom:11px;border-bottom:1px solid #eaecf0}
.operations-cost-title strong{font-size:17px;text-align:right}
.operations-cost-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;margin-top:11px}
.operations-cost-parts span{color:#667085;font-size:12px;line-height:1.35}
.operations-approval-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border:1px solid #dfe3e8;border-radius:8px;background:#fff}
.operations-approval-summary span{color:#475467;font-weight:700}.operations-approval-summary b{font-size:25px;font-variant-numeric:tabular-nums}
.operations-approval-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:15px;border:1px solid #e2e5e9;border-left-width:4px;border-radius:8px;background:#fff}
.operations-approval-row>div{display:flex;flex-direction:column;gap:4px}.operations-approval-row span{color:#667085;font-size:12px;line-height:1.4}.operations-approval-row strong{font-size:22px;font-variant-numeric:tabular-nums}
.operations-approval-row.severity-ok{border-left-color:#5da878}.operations-approval-row.severity-info{border-left-color:#4b8de8}.operations-approval-row.severity-warning{border-left-color:#dc9803}.operations-approval-row.severity-error{border-left-color:#d92d20}
.operations-error-list{display:flex;flex-direction:column;gap:10px}
.operations-error-row{padding:15px;border:1px solid #e2e5e9;border-left-width:5px;border-radius:8px;background:#fff;min-width:0}
.operations-error-row.severity-critical{border-left-color:#b42318}.operations-error-row.severity-error{border-left-color:#d92d20}.operations-error-row.severity-warning{border-left-color:#dc9803}.operations-error-row.severity-info{border-left-color:#1570ef}.operations-error-row.resolved{opacity:.72;border-left-color:#98a2b3}
.operations-error-row-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.operations-error-title-wrap{min-width:0}.operations-error-title-wrap h3{margin:8px 0 4px;font-size:17px;line-height:1.3}.operations-error-title-wrap p{margin:0;color:#475467;font-size:13px;line-height:1.45}
.operations-error-badges{display:flex;flex-wrap:wrap;gap:6px}.operations-error-badges span{padding:3px 7px;border-radius:5px;background:#f2f4f7;color:#475467;font-size:10px;font-weight:800}
.operations-error-context{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:12px;padding-top:10px;border-top:1px solid #eaecf0;color:#667085;font-size:11px;line-height:1.35}
.operations-error-details{margin-top:10px}.operations-error-details summary{cursor:pointer;color:#344054;font-size:12px;font-weight:800}.operations-error-details pre{max-height:180px;overflow:auto;margin:8px 0 0;padding:10px;border-radius:6px;background:#f6f7f9;color:#344054;font:11px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.operations-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px}.operations-pagination span{color:#667085;font-size:13px}.operations-pagination .ghost-btn{border-radius:8px}
.operations-readonly-notice{color:#475467;background:#f8fafc;border-color:#dfe3e8}
.balance-transfer-form{display:flex;flex-direction:column;gap:18px}
.balance-transfer-users-grid{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);gap:12px;align-items:end}
.balance-transfer-user-field,.balance-transfer-details-grid>label{display:flex;flex-direction:column;gap:7px;min-width:0;color:#475467;font-size:12px;font-weight:800}
.balance-transfer-user-btn{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:6px;width:100%;min-height:92px;padding:13px 14px;border:1px dashed #98a2b3;border-radius:8px;background:#fff;color:#344054;text-align:left;cursor:pointer;overflow:hidden}
.balance-transfer-user-btn.selected{border-style:solid;border-color:#84adf5;background:#f6f9ff}
.balance-transfer-user-name{display:block;max-width:100%;color:#101828;font-size:15px;line-height:1.3;font-weight:900;overflow-wrap:anywhere}
.balance-transfer-user-meta,.balance-transfer-placeholder{display:block;max-width:100%;color:#667085;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.balance-transfer-placeholder{font-size:14px;font-weight:800}
.balance-transfer-swap-btn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-bottom:24px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:#344054;font-size:22px;font-weight:900;cursor:pointer}
.balance-transfer-swap-btn:disabled{opacity:.45;cursor:not-allowed}
.balance-transfer-details-grid{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(260px,1.35fr);gap:12px}
.balance-transfer-details-grid small{color:#667085;font-size:11px;line-height:1.35;font-weight:600}
.balance-transfer-money-input{position:relative}
.balance-transfer-money-input .search-input{height:48px;padding-right:42px;border-radius:8px;font-size:17px;font-weight:800;font-variant-numeric:tabular-nums}
.balance-transfer-money-input b{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#667085;font-size:16px}
.balance-transfer-auto-reasons{display:flex;flex-direction:column;justify-content:center;gap:7px;min-width:0;padding:12px 14px;border:1px solid #d8e3f5;border-radius:8px;background:#f7faff;color:#475467}
.balance-transfer-auto-reasons>span{font-size:12px;font-weight:800}
.balance-transfer-auto-reasons p{margin:0;color:#344054;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.balance-transfer-auto-reasons b{color:#101828}
.balance-transfer-error{color:#b42318!important}
.balance-transfer-submit-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:14px;border-top:1px solid #eaecf0}
.balance-transfer-preview{min-width:0;color:#475467;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.balance-transfer-submit-row .primary-btn{flex:0 0 auto;min-width:190px;min-height:46px;border-radius:8px}
.balance-transfer-submit-row .primary-btn:disabled{opacity:.5;cursor:not-allowed}
.balance-transfer-history-list{display:flex;flex-direction:column;gap:8px;max-height:680px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-right:2px}
.balance-transfer-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:14px;border:1px solid #e2e5e9;border-radius:8px;background:#fff}
.balance-transfer-history-main{min-width:0}
.balance-transfer-history-route{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:#101828;font-size:14px;line-height:1.35}
.balance-transfer-history-route b{overflow-wrap:anywhere}
.balance-transfer-history-route span{color:#667085}
.balance-transfer-history-main p{margin:7px 0;color:#475467;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.balance-transfer-history-meta{display:flex;flex-wrap:wrap;gap:5px 14px;color:#667085;font-size:11px;line-height:1.35}
.balance-transfer-history-amount{display:flex;flex-direction:column;align-items:flex-end;gap:5px;white-space:nowrap;text-align:right}
.balance-transfer-history-amount strong{color:#175cd3;font-size:18px;font-variant-numeric:tabular-nums}
.balance-transfer-history-amount span{color:#667085;font-size:11px;font-variant-numeric:tabular-nums}
.penalty-management-page{gap:18px}
.penalty-issue-form{display:flex;flex-direction:column;gap:14px}
.penalty-issue-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.65fr);gap:12px;align-items:start}
.penalty-form-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:#475467;font-size:12px;font-weight:800}
.penalty-form-field small{color:#667085;font-size:11px;line-height:1.35;font-weight:600}
.penalty-reason-input{height:auto!important;min-height:96px;padding:13px 14px!important;resize:vertical;font:inherit;font-size:15px!important;line-height:1.45}
.penalty-upload-field{position:relative;display:flex;align-items:center;gap:12px;min-height:76px;padding:13px 14px;border:1px dashed #98a2b3;border-radius:8px;background:#fff;cursor:pointer}
.penalty-upload-field:focus-within{border-color:#2e6de6;box-shadow:0 0 0 3px rgba(46,109,230,.12)}
.penalty-upload-field input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.penalty-upload-icon{display:flex;flex:0 0 40px;align-items:center;justify-content:center;width:40px;height:40px;border-radius:8px;background:#eef4ff;color:#175cd3;font-size:25px;line-height:1;font-weight:500}
.penalty-upload-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.penalty-upload-copy b{color:#101828;font-size:14px;line-height:1.3}
.penalty-upload-copy small{color:#667085;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.penalty-evidence-preview{width:min(100%,420px);padding:8px;border:1px solid #e4e7ec;border-radius:8px;background:#f8fafc}
.penalty-evidence-preview[hidden]{display:none}
.penalty-evidence-preview img{display:block;width:100%;max-height:280px;border-radius:6px;object-fit:contain;background:#fff}
.penalty-submit-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:14px;border-top:1px solid #eaecf0}
.penalty-submit-summary{min-width:0;color:#475467;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.penalty-submit-row .primary-btn{flex:0 0 auto;min-width:190px;min-height:46px;border-radius:8px}
.penalty-submit-row .primary-btn:disabled{opacity:.5;cursor:not-allowed}
.penalty-evidence-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.penalty-evidence-btn{color:#175cd3;border-color:#b2ccff;background:#f5f8ff}
.penalty-cancel-meta{margin-top:8px;padding-top:8px;border-top:1px solid #eaecf0}
.penalty-cancel-modal{width:min(560px,calc(100vw - 24px));max-height:min(760px,calc(100dvh - 24px));overflow-y:auto;border-radius:8px}
.penalty-cancel-form{display:flex;flex-direction:column;gap:14px;margin-top:16px}
.penalty-cancel-warning{padding:12px 14px;border:1px solid #fecaca;border-radius:8px;background:#fff7f7;color:#912018;font-size:13px;line-height:1.45}
.danger-action-btn{background:#c9302c!important;border-color:#c9302c!important;color:#fff!important}
.danger-action-btn:hover{background:#a92320!important;border-color:#a92320!important}

@media (max-width:960px){
  .operations-metrics-grid,.operations-metrics-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .operations-filters.journal{grid-template-columns:repeat(3,minmax(0,1fr))}
  .operations-filters.journal .wide{grid-column:span 2}
}

@media (max-width:620px){
  .operations-content{padding-left:12px;padding-right:12px}
  .operations-page{gap:14px}
  .operations-page-head{display:block}
  .operations-page-head h1{font-size:25px}
  .operations-page-head p{margin-bottom:8px}
  .operations-page-meta{text-align:left;margin-bottom:10px}
  .operations-metrics-grid,.operations-metrics-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .operations-metric{padding:12px}
  .operations-metric-value{font-size:21px}
  .operations-band{padding:14px 0}
  .operations-band-head{align-items:flex-start}
  .operations-sale-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .operations-sale-row>div:first-child{grid-column:1/-1;padding-bottom:8px;border-bottom:1px solid #eaecf0}
  .operations-error-compact,.operations-error-row-head{display:block}
  .operations-error-time{margin-top:8px;text-align:left}
  .operations-error-row-head .small-btn{width:100%;margin-top:12px}
  .operations-filters,.operations-filters.journal,.operations-filters.economics,.operations-filters.one-line{grid-template-columns:1fr}
  .operations-filters.journal .wide{grid-column:auto}
  .operations-list-row{display:block}
  .operations-list-meta{align-items:flex-start;text-align:left;margin-top:10px}
  .operations-cost-grid{grid-template-columns:1fr}
  .operations-cost-title{display:block}.operations-cost-title strong{display:block;margin-top:6px;text-align:left}
  .operations-approval-row{gap:10px}
  .operational-preview-banner{top:63px;padding:8px 12px}
  .balance-transfer-users-grid{grid-template-columns:1fr}
  .balance-transfer-swap-btn{margin:0 auto;transform:rotate(90deg)}
  .balance-transfer-details-grid{grid-template-columns:1fr}
  .balance-transfer-submit-row{align-items:stretch;flex-direction:column}
  .balance-transfer-submit-row .primary-btn{width:100%;min-width:0}
  .balance-transfer-history-row{grid-template-columns:1fr;gap:10px}
  .balance-transfer-history-amount{align-items:flex-start;text-align:left}
  .penalty-issue-grid{grid-template-columns:1fr}
  .penalty-submit-row{align-items:stretch;flex-direction:column}
  .penalty-submit-row .primary-btn{width:100%;min-width:0}
  .penalty-user-field .balance-transfer-user-btn{min-height:78px}
}

@media (max-width:390px){
  .operations-metrics-grid,.operations-metrics-grid.compact{grid-template-columns:1fr}
  .operations-page-head h1{font-size:23px}
  .operations-cost-parts{grid-template-columns:1fr}
  .operations-approval-row{grid-template-columns:minmax(0,1fr) 42px}
  .operations-approval-row strong{font-size:19px;text-align:right}
  .operational-topbar .topbar-left>div{display:none}
  .operational-topbar .topbar-right{margin-left:auto}
  .operational-topbar .topbar-balance{padding:0 8px;font-size:14px}
  .operational-topbar .topbar-role-badge{width:38px;height:38px;font-size:12px}
  .operational-topbar .avatar-top,.operational-topbar .avatar-btn{width:38px;height:38px}
}
/* ===== Operational director END ===== */

/* ===== Promoter work schedules START ===== */
.work-schedule-page{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
  max-width:1180px;
  margin:0 auto;
  animation:workScheduleFadeIn .2s ease-out;
}

.route-work-schedule,
.route-work-schedules,
.route-work-calendar,
.route-work-schedule-analytics{max-width:1180px}

@keyframes workScheduleFadeIn{
  from{opacity:0;transform:translateY(4px)}
  to{opacity:1;transform:translateY(0)}
}

.work-schedule-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  min-width:0;
  padding:4px 0 14px;
  border-bottom:1px solid #dfe3e8;
}

.work-schedule-head>div:first-child{min-width:0}
.work-schedule-head h1{margin:0;color:#101828;font-size:30px;line-height:1.15;font-weight:900;letter-spacing:0}
.work-schedule-head p{max-width:680px;margin:7px 0 0;color:#667085;font-size:14px;line-height:1.45}
.work-schedule-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}

.work-schedule-status{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 9px;
  border:1px solid transparent;
  border-radius:6px;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  white-space:nowrap;
}

.work-schedule-status.status-draft{color:#475467;background:#f2f4f7;border-color:#d0d5dd}
.work-schedule-status.status-pending{color:#7a5600;background:#fff5cc;border-color:#e7c963}
.work-schedule-status.status-approved{color:#176b3a;background:#e7f7ed;border-color:#9dd4af}
.work-schedule-status.status-rejected{color:#b42318;background:#fff0ef;border-color:#efb1ac}
.work-schedule-status.status-not_sent{color:#667085;background:#f8fafc;border-color:#d0d5dd}

.work-schedule-week-nav{
  display:grid;
  grid-template-columns:42px minmax(190px,1fr) 42px auto;
  align-items:center;
  gap:8px;
  flex:0 1 auto;
  min-width:0;
}

.work-schedule-icon-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border:1px solid #d0d5dd;
  border-radius:8px;
  background:#fff;
  color:#344054;
  font-size:20px;
  font-weight:900;
  cursor:pointer;
}

.work-schedule-icon-btn:disabled{opacity:.55;cursor:wait}
.work-schedule-week-current{display:flex;flex-direction:column;align-items:center;min-width:0}
.work-schedule-week-current span{color:#667085;font-size:10px;line-height:1.2;font-weight:800;text-transform:uppercase}
.work-schedule-week-current strong{max-width:100%;margin-top:3px;color:#101828;font-size:14px;line-height:1.25;font-weight:900;white-space:nowrap}
.work-schedule-current-btn{min-height:42px;border-radius:8px;padding:10px 12px;white-space:nowrap}

.work-schedule-notice{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:13px 15px;
  border:1px solid #d0d5dd;
  border-left-width:4px;
  border-radius:8px;
  color:#344054;
  background:#f8fafc;
  font-size:13px;
  line-height:1.4;
}

.work-schedule-notice.tone-critical{border-color:#efb1ac;border-left-color:#d92d20;background:#fff5f4;color:#912018}
.work-schedule-notice.tone-neutral{border-left-color:#667085}

.work-schedule-overview{
  display:grid;
  grid-template-columns:minmax(280px,1.35fr) minmax(260px,.65fr);
  gap:12px;
}

.work-schedule-quality-card{
  min-width:0;
  padding:16px;
  border:1px solid #dfe3e8;
  border-left-width:5px;
  border-radius:8px;
  background:#fff;
}

.work-schedule-quality-card.tone-good{border-left-color:#2f9e5b}
.work-schedule-quality-card.tone-warning{border-left-color:#d99b13}
.work-schedule-quality-card.tone-critical{border-left-color:#d92d20}
.work-schedule-quality-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:13px}
.work-schedule-quality-head>div{display:flex;align-items:baseline;gap:9px;min-width:0}
.work-schedule-quality-head span{color:#475467;font-size:13px;font-weight:800}
.work-schedule-quality-head strong{color:#101828;font-size:28px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums}
.work-schedule-quality-head small{color:#667085;font-size:11px;line-height:1.3;text-align:right}

.work-schedule-progress{
  width:100%;
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:#e9edf2;
}

.work-schedule-progress-fill{height:100%;min-width:0;border-radius:inherit;transition:width .25s ease}
.work-schedule-progress-fill.tone-good{background:#2f9e5b}
.work-schedule-progress-fill.tone-warning{background:#d99b13}
.work-schedule-progress-fill.tone-critical{background:#d92d20}
.work-schedule-progress-label{margin-top:5px;color:#667085;font-size:10px}

.work-schedule-overview-metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.work-schedule-metric{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  min-height:92px;
  padding:14px;
  border:1px solid #dfe3e8;
  border-radius:8px;
  background:#fff;
}

.work-schedule-metric.tone-good{border-color:#a9d8b8;background:#f4fbf6}
.work-schedule-metric.tone-warning{border-color:#e8d08d;background:#fffaf0}
.work-schedule-metric.tone-critical{border-color:#efb1ac;background:#fff6f5}
.work-schedule-metric.tone-neutral{background:#f8fafc}
.work-schedule-metric>span{color:#667085;font-size:12px;line-height:1.3;font-weight:800}
.work-schedule-metric>strong{margin-top:6px;color:#101828;font-size:23px;line-height:1.1;font-weight:900;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.work-schedule-metric>small{margin-top:5px;color:#667085;font-size:10px;line-height:1.3}
.work-schedule-metric>.work-schedule-progress{margin-top:9px}

.work-schedule-days{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.work-schedule-day{
  min-width:0;
  padding:15px;
  border:1px solid #dfe3e8;
  border-radius:8px;
  background:#fff;
  transition:border-color .18s ease,background .18s ease;
}

.work-schedule-day.is-off{background:#f8fafc}
.work-schedule-day-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.work-schedule-day-head>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.work-schedule-day-head strong{color:#101828;font-size:16px;line-height:1.25}
.work-schedule-day-head span{color:#667085;font-size:11px}

.work-schedule-off-toggle{
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  color:#475467;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.work-schedule-off-toggle input{width:18px;height:18px;margin:0;accent-color:#1570ef}
.work-schedule-off-toggle input:disabled{cursor:not-allowed}
.work-schedule-time-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 70px;gap:9px;align-items:end}
.work-schedule-time-grid label{display:flex;flex-direction:column;gap:6px;min-width:0}
.work-schedule-time-grid label>span,.work-schedule-day-hours>span{color:#667085;font-size:10px;line-height:1.2;font-weight:800;text-transform:uppercase}
.work-schedule-time-grid input{
  width:100%;
  height:44px;
  box-sizing:border-box;
  min-width:0;
  padding:8px 10px;
  border:1px solid #cfd5dd;
  border-radius:8px;
  background:#fff;
  color:#101828;
  font:800 15px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-variant-numeric:tabular-nums;
}

.work-schedule-time-grid input:disabled{color:#98a2b3;background:#eef1f4}
.work-schedule-day-hours{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:6px;height:44px}
.work-schedule-day-hours strong{color:#101828;font-size:18px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums}

.work-schedule-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:16px 0 2px;
  border-top:1px solid #dfe3e8;
}

.work-schedule-actions>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.work-schedule-actions>div:first-child strong{color:#101828;font-size:14px}
.work-schedule-actions>div:first-child span{color:#667085;font-size:12px;line-height:1.4}
.work-schedule-action-buttons{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.work-schedule-action-buttons .ghost-btn,.work-schedule-action-buttons .primary-btn{min-height:44px;border-radius:8px}

.work-schedule-metrics-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.work-schedule-metrics-grid.analytics{grid-template-columns:repeat(4,minmax(0,1fr))}
.work-schedule-analytics-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.work-schedule-analytics-strip .work-schedule-metric{min-height:82px;padding:12px}
.work-schedule-analytics-strip .work-schedule-metric>strong{font-size:20px}

.work-schedule-list-section,.work-schedule-analytics-section{padding-top:4px;border-top:1px solid #e5e7eb}
.work-schedule-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:14px 0}
.work-schedule-section-head h2{margin:0;color:#101828;font-size:20px;line-height:1.25}
.work-schedule-section-head p{margin:4px 0 0;color:#667085;font-size:12px;line-height:1.4}
.work-schedule-calendar-link{border-radius:8px;text-decoration:none;white-space:nowrap}
.work-schedule-person-list{display:flex;flex-direction:column;gap:8px}

.work-schedule-person-row{
  display:grid;
  grid-template-columns:minmax(220px,1.25fr) minmax(300px,1fr) 112px;
  align-items:center;
  gap:16px;
  min-width:0;
  padding:14px;
  border:1px solid #dfe3e8;
  border-left-width:4px;
  border-radius:8px;
  background:#fff;
}

.work-schedule-person-row.status-pending{border-left-color:#d99b13}
.work-schedule-person-row.status-approved{border-left-color:#2f9e5b}
.work-schedule-person-row.status-rejected{border-left-color:#d92d20}
.work-schedule-person-row.status-not_sent{border-left-color:#98a2b3}
.work-schedule-person-main{display:flex;flex-direction:column;gap:5px;min-width:0}
.work-schedule-person-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.work-schedule-person-title strong{color:#101828;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.work-schedule-person-main>span{color:#667085;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.work-schedule-person-numbers{display:grid;grid-template-columns:58px 58px minmax(120px,1fr);gap:12px;min-width:0}
.work-schedule-person-numbers>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.work-schedule-person-numbers span{color:#667085;font-size:10px;font-weight:800;text-transform:uppercase}
.work-schedule-person-numbers b{color:#101828;font-size:16px;font-variant-numeric:tabular-nums}
.work-schedule-person-quality .work-schedule-progress{margin-top:2px}
.work-schedule-open-btn{min-height:40px;border-radius:8px}
.work-schedule-no-action{color:#98a2b3;font-size:11px;line-height:1.3;text-align:right}

.work-schedule-empty{
  padding:26px 18px;
  border:1px dashed #c7cdd5;
  border-radius:8px;
  background:#f8fafc;
  color:#667085;
  font-size:13px;
  line-height:1.45;
  text-align:center;
}

.work-schedule-calendar{display:flex;flex-direction:column;gap:10px}
.work-schedule-calendar-day{border:1px solid #dfe3e8;border-radius:8px;background:#fff;overflow:hidden}
.work-schedule-calendar-day-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;background:#f8fafc;border-bottom:1px solid #e5e7eb}
.work-schedule-calendar-day-head>div:first-child{min-width:0}
.work-schedule-calendar-day-head span{color:#667085;font-size:10px;line-height:1.2;font-weight:900;text-transform:uppercase}
.work-schedule-calendar-day-head h2{margin:3px 0 0;color:#101828;font-size:17px;line-height:1.3}
.work-schedule-calendar-day-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.work-schedule-calendar-day-actions>b{color:#475467;font-size:12px;white-space:nowrap}
.work-schedule-copy-day-btn{min-height:36px;padding:8px 11px;border-radius:8px;font-size:12px}
.work-schedule-calendar-shifts{display:flex;flex-direction:column}
.work-schedule-calendar-shift{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:12px 16px;border-bottom:1px solid #eef0f3}
.work-schedule-calendar-shift:last-child{border-bottom:0}
.work-schedule-calendar-shift>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.work-schedule-calendar-shift strong{color:#101828;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.work-schedule-calendar-shift span{color:#667085;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.work-schedule-calendar-shift>b{color:#175cd3;font-size:16px;white-space:nowrap;font-variant-numeric:tabular-nums}
.work-schedule-calendar-empty{padding:18px;color:#98a2b3;font-size:12px;text-align:center}

.work-schedule-summary-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.work-schedule-summary-bar{padding:16px;border:1px solid #dfe3e8;border-left-width:5px;border-radius:8px;background:#fff}
.work-schedule-summary-bar.tone-good{border-left-color:#2f9e5b}
.work-schedule-summary-bar.tone-warning{border-left-color:#d99b13}
.work-schedule-summary-bar.tone-critical{border-left-color:#d92d20}
.work-schedule-summary-bar>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:12px}
.work-schedule-summary-bar span{color:#475467;font-size:13px;font-weight:800}
.work-schedule-summary-bar strong{color:#101828;font-size:27px;font-variant-numeric:tabular-nums}
.work-schedule-summary-bar small{display:block;margin-top:9px;color:#667085;font-size:11px;line-height:1.4}

.work-schedule-analytics-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.work-schedule-analytics-group{min-width:0;padding:15px;border:1px solid #dfe3e8;border-radius:8px;background:#fff}
.work-schedule-analytics-group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:11px;border-bottom:1px solid #eaecf0}
.work-schedule-analytics-group-head>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.work-schedule-analytics-group-head span{color:#667085;font-size:10px;font-weight:900;text-transform:uppercase}
.work-schedule-analytics-group-head strong{color:#101828;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.work-schedule-analytics-group-head small{color:#667085;font-size:10px;line-height:1.3}
.work-schedule-analytics-group-total{flex:0 0 auto;padding:5px 8px;border-radius:6px;background:#f2f4f7;color:#475467;font-size:11px;font-weight:900}
.work-schedule-group-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:13px}
.work-schedule-bar-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
.work-schedule-bar-label span{color:#667085;font-size:10px;font-weight:800}
.work-schedule-bar-label b{color:#101828;font-size:12px;font-variant-numeric:tabular-nums}
.work-schedule-group-counts{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:13px;padding-top:10px;border-top:1px solid #eaecf0}
.work-schedule-group-counts span{color:#667085;font-size:10px;line-height:1.3}
.work-schedule-group-counts b{color:#344054;font-variant-numeric:tabular-nums}

.work-schedule-modal{width:min(680px,calc(100vw - 24px));max-height:min(90dvh,860px);overflow-y:auto;overscroll-behavior:contain;border-radius:8px}
.work-schedule-modal-summary{display:flex;flex-direction:column;gap:7px;padding:13px;border:1px solid #dfe3e8;border-radius:8px;background:#f8fafc}
.work-schedule-modal-summary>strong{color:#101828;font-size:16px}
.work-schedule-modal-summary>span{color:#667085;font-size:12px}
.work-schedule-modal-summary .work-schedule-status{align-self:flex-start}
.work-schedule-modal-days{display:flex;flex-direction:column;margin-top:12px;border:1px solid #dfe3e8;border-radius:8px;overflow:hidden}
.work-schedule-modal-day{display:grid;grid-template-columns:minmax(0,1fr) auto 48px;align-items:center;gap:12px;padding:11px 13px;border-bottom:1px solid #eaecf0;background:#fff}
.work-schedule-modal-day:last-child{border-bottom:0}
.work-schedule-modal-day.is-off{background:#f8fafc;color:#667085}
.work-schedule-modal-day>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.work-schedule-modal-day strong{font-size:13px}.work-schedule-modal-day span{color:#667085;font-size:10px}
.work-schedule-modal-day>b{font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.work-schedule-modal-day>span{text-align:right}
.work-schedule-modal .work-schedule-notice{margin-top:12px}
.work-schedule-review{margin-top:14px;padding-top:14px;border-top:1px solid #dfe3e8}
.work-schedule-review label{display:flex;flex-direction:column;gap:6px}
.work-schedule-review label>span{color:#475467;font-size:12px;font-weight:800}
.work-schedule-review textarea{width:100%;min-height:86px;box-sizing:border-box;resize:vertical;padding:11px 12px;border:1px solid #cfd5dd;border-radius:8px;color:#101828;font:14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.work-schedule-review>div{display:flex;justify-content:flex-end;gap:9px;margin-top:11px}
.work-schedule-review .ghost-btn,.work-schedule-review .primary-btn{min-width:125px;border-radius:8px}
.work-schedule-reject-btn{color:#b42318;border-color:#efb1ac}

@media (max-width:980px){
  .work-schedule-head{align-items:flex-start;flex-direction:column}
  .work-schedule-week-nav{width:100%;grid-template-columns:42px minmax(0,1fr) 42px auto}
  .work-schedule-analytics-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .work-schedule-person-row{grid-template-columns:minmax(210px,1fr) minmax(260px,1fr) 100px}
}

@media (max-width:760px){
  .work-schedule-page{gap:14px}
  .work-schedule-head h1{font-size:25px}
  .work-schedule-overview{grid-template-columns:1fr}
  .work-schedule-days{grid-template-columns:1fr}
  .work-schedule-metrics-grid,.work-schedule-metrics-grid.analytics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .work-schedule-analytics-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .work-schedule-person-row{grid-template-columns:1fr;gap:12px}
  .work-schedule-person-numbers{grid-template-columns:repeat(3,minmax(0,1fr))}
  .work-schedule-open-btn{width:100%}
  .work-schedule-no-action{text-align:left}
  .work-schedule-summary-bars,.work-schedule-analytics-groups{grid-template-columns:1fr}
  .work-schedule-actions{align-items:stretch;flex-direction:column}
  .work-schedule-action-buttons{width:100%}
  .work-schedule-action-buttons .ghost-btn,.work-schedule-action-buttons .primary-btn{flex:1 1 0;min-width:0}
}

@media (max-width:520px){
  .route-work-schedule,.route-work-schedules,.route-work-calendar,.route-work-schedule-analytics{padding-left:10px;padding-right:10px}
  .work-schedule-head{padding-top:0}
  .work-schedule-head h1{font-size:23px}
  .work-schedule-week-nav{grid-template-columns:40px minmax(0,1fr) 40px}
  .work-schedule-icon-btn{width:40px;height:40px}
  .work-schedule-current-btn{grid-column:1/-1;width:100%;min-height:40px}
  .work-schedule-week-current strong{font-size:13px}
  .work-schedule-quality-head{align-items:flex-start;flex-direction:column;gap:7px}
  .work-schedule-quality-head small{text-align:left}
  .work-schedule-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .work-schedule-day{padding:13px}
  .work-schedule-day-head{margin-bottom:12px}
  .work-schedule-time-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .work-schedule-day-hours{grid-column:1/-1;align-items:flex-start;height:auto;padding-top:3px}
  .work-schedule-action-buttons{flex-direction:column}
  .work-schedule-action-buttons .ghost-btn,.work-schedule-action-buttons .primary-btn{width:100%}
  .work-schedule-metrics-grid,.work-schedule-metrics-grid.analytics,.work-schedule-analytics-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .work-schedule-metric{min-height:82px;padding:12px}
  .work-schedule-metric>strong{font-size:20px}
  .work-schedule-section-head{align-items:stretch;flex-direction:column}
  .work-schedule-calendar-link{width:100%;box-sizing:border-box;text-align:center}
  .work-schedule-person-numbers{gap:8px}
  .work-schedule-calendar-day-head{align-items:flex-start;padding:12px}
  .work-schedule-calendar-day-head h2{font-size:15px}
  .work-schedule-calendar-day-actions{align-items:flex-end;flex-direction:column;gap:6px}
  .work-schedule-copy-day-btn{min-height:34px;padding:7px 9px}
  .work-schedule-calendar-shift{align-items:flex-start;padding:11px 12px}
  .work-schedule-calendar-shift>b{font-size:14px}
  .work-schedule-group-bars{grid-template-columns:1fr}
  .work-schedule-modal{width:calc(100vw - 16px);max-height:94dvh;padding:14px}
  .work-schedule-modal-day{grid-template-columns:minmax(0,1fr) auto}
  .work-schedule-modal-day>span{display:none}
  .work-schedule-review>div{flex-direction:column-reverse}
  .work-schedule-review .ghost-btn,.work-schedule-review .primary-btn{width:100%}
}

@media (max-width:360px){
  .work-schedule-overview-metrics,.work-schedule-metrics-grid,.work-schedule-metrics-grid.analytics,.work-schedule-analytics-strip{grid-template-columns:1fr}
  .work-schedule-person-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}
  .work-schedule-person-quality{grid-column:1/-1}
  .work-schedule-time-grid{grid-template-columns:1fr}
  .work-schedule-day-hours{grid-column:auto}
}

@media (prefers-reduced-motion:reduce){
  .work-schedule-page{animation:none}
  .work-schedule-progress-fill,.work-schedule-day{transition:none}
}
/* ===== Promoter work schedules END ===== */

/* ===== iPhone shift index ===== */
.iphone-shift-card{
  margin-bottom:16px;
  padding:20px;
  border:1px solid #d9dee7;
  border-left:5px solid #1677ff;
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
  color:#101828;
}
.iphone-shift-card.is-upcoming{border-left-color:#64748b}
.iphone-shift-card.is-unavailable{border-left-color:#d99b13}
.iphone-shift-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.iphone-shift-head>div:first-child{min-width:0}
.iphone-shift-eyebrow{display:block;margin-bottom:4px;color:#667085;font-size:11px;font-weight:900;text-transform:uppercase}
.iphone-shift-head h2{margin:0;font-size:22px;line-height:1.2;letter-spacing:0}
.iphone-shift-badges{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}
.iphone-shift-badge{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border-radius:6px;font-size:11px;font-weight:900;line-height:1.2;white-space:nowrap}
.iphone-shift-badge.good{background:#e9f8ef;color:#18733c}
.iphone-shift-badge.warning{background:#fff5d9;color:#8a6200}
.iphone-shift-badge.critical{background:#ffeded;color:#ad2727}
.iphone-shift-badge.neutral{background:#eef2f6;color:#475467}
.iphone-shift-badge.newcomer{background:#eaf2ff;color:#175cd3}
.iphone-shift-upcoming-text{margin:14px 0 0;color:#475467;font-size:14px;line-height:1.45}
.iphone-shift-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:18px;margin-top:18px}
.iphone-shift-rate,.iphone-shift-index{display:flex;flex-direction:column;gap:4px}
.iphone-shift-rate span,.iphone-shift-index span{color:#667085;font-size:11px;font-weight:800}
.iphone-shift-rate strong{font-size:34px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:0}
.iphone-shift-index{align-items:flex-end}
.iphone-shift-index strong{font-size:26px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:0}
.iphone-shift-progress{height:10px;margin-top:14px;border-radius:5px;background:#e7ebf0;overflow:hidden}
.iphone-shift-progress-fill{height:100%;border-radius:inherit;transition:width .25s ease}
.iphone-shift-progress-fill.good{background:#2f9e5b}
.iphone-shift-progress-fill.warning{background:#e1a922}
.iphone-shift-progress-fill.critical{background:#d84a4a}
.iphone-shift-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px;border-top:1px solid #e4e7ec;border-bottom:1px solid #e4e7ec}
.iphone-shift-metrics>div{display:flex;flex-direction:column;gap:5px;min-width:0;padding:13px 12px;border-right:1px solid #e4e7ec}
.iphone-shift-metrics>div:nth-child(3n){border-right:0}
.iphone-shift-metrics>div:nth-child(n+4){border-top:1px solid #e4e7ec}
.iphone-shift-metrics span{color:#667085;font-size:10px;font-weight:800;line-height:1.25}
.iphone-shift-metrics b{font-size:16px;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.iphone-shift-note{margin-top:12px;padding:11px 12px;border-left:3px solid #1677ff;background:#f3f7fc;color:#344054;font-size:12px;line-height:1.4}
.iphone-shift-note.good{border-left-color:#2f9e5b;background:#eef9f2}
.iphone-shift-hints{display:grid;gap:6px;margin-top:13px}
.iphone-shift-hints p{margin:0;color:#344054;font-size:12px;line-height:1.4}
.iphone-shift-disclaimer{margin:14px 0 0;color:#667085;font-size:11px;line-height:1.45}

@media (max-width:560px){
  .iphone-shift-card{padding:16px}
  .iphone-shift-head{flex-direction:column;gap:10px}
  .iphone-shift-badges{justify-content:flex-start}
  .iphone-shift-summary{grid-template-columns:1fr auto;gap:10px}
  .iphone-shift-rate strong{font-size:29px}
  .iphone-shift-index strong{font-size:23px}
  .iphone-shift-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .iphone-shift-metrics>div,.iphone-shift-metrics>div:nth-child(3n){border-right:1px solid #e4e7ec}
  .iphone-shift-metrics>div:nth-child(2n){border-right:0}
  .iphone-shift-metrics>div:nth-child(n+3){border-top:1px solid #e4e7ec}
}

@media (max-width:360px){
  .iphone-shift-summary{grid-template-columns:1fr}
  .iphone-shift-index{align-items:flex-start}
  .iphone-shift-metrics{grid-template-columns:1fr}
  .iphone-shift-metrics>div,.iphone-shift-metrics>div:nth-child(2n),.iphone-shift-metrics>div:nth-child(3n){border-right:0}
  .iphone-shift-metrics>div:nth-child(n+2){border-top:1px solid #e4e7ec}
}

@media (prefers-reduced-motion:reduce){.iphone-shift-progress-fill{transition:none}}
/* ===== iPhone shift index END ===== */

.history-shift-calculation{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  gap:7px 14px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #e4e7ec;
  color:#667085;
  font-size:11px;
  line-height:1.35;
}
.history-shift-calculation b{color:#101828;font-variant-numeric:tabular-nums}

/* ===== leadership iPhone shift averages ===== */
.iphone-network-index-panel{
  margin-bottom:16px;
  padding:20px;
  border:1px solid #d9dee7;
  border-left:5px solid #475467;
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
  color:#101828;
}
.iphone-network-index-panel.is-upcoming{border-left-color:#64748b}
.iphone-network-index-panel.is-unavailable{border-left-color:#d99b13}
.iphone-network-index-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.iphone-network-index-head h2{margin:0;font-size:22px;line-height:1.2;letter-spacing:0}
.iphone-network-index-total{display:flex;align-items:flex-end;flex-direction:column;gap:3px;text-align:right}
.iphone-network-index-total span{color:#667085;font-size:11px;font-weight:800}
.iphone-network-index-total strong{font-size:25px;line-height:1;font-variant-numeric:tabular-nums}
.iphone-network-index-total strong.good,.iphone-network-index-value strong.good{color:#18733c}
.iphone-network-index-total strong.warning,.iphone-network-index-value strong.warning{color:#8a6200}
.iphone-network-index-total strong.critical,.iphone-network-index-value strong.critical{color:#ad2727}
.iphone-network-index-total strong.neutral,.iphone-network-index-value strong.neutral{color:#667085}
.iphone-network-index-list{margin-top:16px;border-top:1px solid #e4e7ec}
.iphone-network-index-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,180px);align-items:center;gap:18px;padding:14px 0;border-bottom:1px solid #e4e7ec}
.iphone-network-index-name{display:flex;min-width:0;flex-direction:column;gap:4px}
.iphone-network-index-name b{font-size:15px;line-height:1.25;overflow-wrap:anywhere}
.iphone-network-index-name span{color:#667085;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.iphone-network-index-value{display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:10px}
.iphone-network-index-value strong{width:48px;text-align:right;font-size:16px;font-variant-numeric:tabular-nums}
.iphone-network-index-track{width:100%;height:7px;border-radius:4px;background:#e7ebf0;overflow:hidden}
.iphone-network-index-track i{display:block;height:100%;border-radius:inherit}
.iphone-network-index-track i.good{background:#2f9e5b}
.iphone-network-index-track i.warning{background:#e1a922}
.iphone-network-index-track i.critical{background:#d84a4a}
.iphone-network-index-empty{padding:16px 0;color:#667085;font-size:13px;line-height:1.4}

@media (max-width:560px){
  .iphone-network-index-panel{padding:16px}
  .iphone-network-index-head{align-items:flex-start;flex-direction:column;gap:10px}
  .iphone-network-index-total{align-items:flex-start;text-align:left}
  .iphone-network-index-row{grid-template-columns:1fr;gap:10px}
  .iphone-network-index-value{justify-content:flex-start}
  .iphone-network-index-value strong{width:44px;text-align:left}
}
/* ===== leadership iPhone shift averages END ===== */

/* ===== admin cluster management ===== */
.cluster-management-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.cluster-management-heading>div{min-width:0}
.cluster-management-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.cluster-management-title{margin:0 0 16px;color:#101828;font-size:22px;line-height:1.25}
.cluster-management-form{align-items:end}
.cluster-management-submit-field button{min-height:52px}
.cluster-management-list{margin-top:16px}
.cluster-management-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.cluster-management-row-main{min-width:0;overflow-wrap:anywhere}
.cluster-management-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto}
.cluster-management-row-actions button{white-space:nowrap}
.cluster-management-row-actions button:disabled{cursor:not-allowed;opacity:.48}
.cluster-management-history-row>div:first-child{min-width:0;overflow-wrap:anywhere}
.cluster-management-history-time{flex:0 0 auto;color:var(--muted);font-size:13px;text-align:right;white-space:nowrap}
.cluster-management-empty{margin-top:14px}

@media (max-width:700px){
  .cluster-management-heading{align-items:stretch;flex-direction:column}
  .cluster-management-heading .ghost-btn{width:100%}
  .cluster-management-stats{grid-template-columns:1fr}
  .cluster-management-row{align-items:stretch;flex-direction:column}
  .cluster-management-row-actions{justify-content:space-between;width:100%}
  .cluster-management-row-actions button{flex:0 1 auto;min-width:0}
  .cluster-management-history-time{text-align:left;white-space:normal}
}

@media (max-width:390px){
  .cluster-management-row-actions{align-items:stretch;flex-direction:column}
  .cluster-management-row-actions .badge{align-self:flex-start}
  .cluster-management-row-actions button{width:100%}
}
/* ===== admin cluster management END ===== */
