:root{
      --bg:#0f1115;
      --panel:#ffffff;
      --panel-soft:#f8fafc;
      --text:#0f172a;
      --muted:#64748b;
      --line:rgba(15,23,42,.08);
      --green:#22c55e;
      --green-2:#16a34a;
      --red:#ef4444;
      --yellow:#f59e0b;
      --shadow:0 18px 40px rgba(15,23,42,.14);
      --shadow-lg:0 28px 70px rgba(15,23,42,.22);
      --radius:20px;
      --radius-lg:28px;
      --font-body:"Plus Jakarta Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
      --font-display:"Plus Jakarta Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
      color-scheme: dark;
    }
    *{box-sizing:border-box}
    html,body{margin:0;min-height:100%;overflow-x:hidden;font-family:var(--font-body);color:#fff;background:radial-gradient(circle at top left, rgba(34,197,94,.12), transparent 30%), radial-gradient(circle at top right, rgba(148,163,184,.08), transparent 24%), linear-gradient(180deg,#0c0f14 0%, #0f1115 30%, #0c0f14 100%)}
    body{
      min-height:100vh;
      min-height:100dvh;
    }
    img{max-width:100%;display:block}
    button,input,select,textarea{font:inherit}
    button{cursor:pointer}
    a{color:inherit;text-decoration:none}
    .hidden{display:none !important}
    .shell{width:min(1320px,100%);margin:0 auto;padding:20px}
    .login-screen{
      min-height:100vh;
      min-height:100dvh;
      display:grid;
      place-items:center;
      padding:20px;
    }
    .login-card{
      width:min(560px,100%);
      display:grid;
      gap:24px;
      padding:28px;
      border-radius:32px;
      background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,247,250,.96));
      color:var(--text);
      box-shadow:var(--shadow-lg);
      border:1px solid rgba(255,255,255,.64);
    }
    .login-title{
      margin:0;
      font-size:clamp(1.8rem,3.4vw,3rem);
      line-height:1.05;
      letter-spacing:-.04em;
      font-weight:400;
      font-family:var(--font-display);
      color:var(--text);
    }
    h1,h2,h3,h4,h5,h6{
      font-family:var(--font-display);
      letter-spacing:-.03em;
      font-weight:400;
    }
    p,span,input,button,textarea,select,a,label{
      font-family:var(--font-body);
    }
    .login-form{display:grid;gap:14px;margin-top:20px}
    .field{display:grid;gap:8px}
    .field span{font-size:.92rem;font-weight:400}
    .product-entries{display:grid;gap:10px}
    .product-entry{
      display:grid;
      grid-template-columns:minmax(0,1fr) auto;
      gap:10px;
      align-items:center;
    }
    .product-entry .input{min-width:0}
    .product-entry .btn{
      min-width:108px;
      white-space:nowrap;
    }
    .add-product-btn{width:fit-content}
    .input,.select,.textarea{
      width:100%;
      min-height:48px;
      border-radius:16px;
      border:1px solid rgba(15,23,42,.12);
      background:#fff;
      color:var(--text);
      padding:0 16px;
      outline:none;
      transition:180ms ease;
    }
    .textarea{min-height:110px;padding:14px 16px;resize:vertical}
    .input:focus,.select:focus,.textarea:focus{border-color:rgba(34,197,94,.78);box-shadow:0 0 0 4px rgba(34,197,94,.12)}
    .input.is-invalid,.select.is-invalid,.textarea.is-invalid{
      border-color:rgba(239,68,68,.88);
      box-shadow:0 0 0 4px rgba(239,68,68,.12);
      background:rgba(255,245,245,.98);
    }
    .form-error{
      padding:12px 14px;
      border-radius:16px;
      border:1px solid rgba(239,68,68,.2);
      background:rgba(239,68,68,.08);
      color:#991b1b;
      font-size:.92rem;
      line-height:1.45;
    }
    .product-picker{position:relative}
    .product-trigger{
      width:100%;
      min-height:56px;
      border-radius:18px;
      border:1px solid rgba(15,23,42,.1);
      background:linear-gradient(180deg,#fff,#f8fafc);
      color:var(--text);
      padding:10px 14px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      box-shadow:0 8px 20px rgba(15,23,42,.05);
    }
    .product-trigger .left{display:flex;align-items:center;gap:12px;min-width:0}
    .product-trigger img{
      width:38px;
      height:38px;
      border-radius:12px;
      object-fit:cover;
      flex:0 0 auto;
    }
    .product-trigger .text{display:grid;gap:2px;min-width:0;text-align:left}
    .product-trigger .text strong{
      font-size:.98rem;
      white-space:normal;
      overflow:visible;
      text-overflow:clip;
      overflow-wrap:anywhere;
    }
    .product-trigger .text span{font-size:.8rem;color:var(--muted);font-weight:400}
    .product-trigger .chev{font-size:.9rem;color:var(--muted);transition:transform 180ms ease}
    .product-picker.open .product-trigger .chev{transform:rotate(180deg)}
    .product-dropdown{
      position:absolute;
      left:0;
      right:0;
      top:calc(100% + 10px);
      z-index:40;
      border-radius:22px;
      border:1px solid rgba(15,23,42,.08);
      background:rgba(255,255,255,.98);
      box-shadow:var(--shadow-lg);
      padding:10px;
      display:none;
      max-height:320px;
      overflow:auto;
    }
    .product-picker.open .product-dropdown{display:grid;gap:8px}
    .product-option{
      width:100%;
      border:1px solid rgba(15,23,42,.08);
      background:#fff;
      border-radius:18px;
      padding:10px;
      display:flex;
      align-items:center;
      gap:12px;
      text-align:left;
    }
    .product-option img{
      width:48px;
      height:48px;
      border-radius:14px;
      object-fit:cover;
      flex:0 0 auto;
    }
    .product-option .meta{display:grid;gap:2px;min-width:0}
    .product-option .meta strong{
      font-size:.95rem;
      white-space:normal;
      overflow:visible;
      text-overflow:clip;
      overflow-wrap:anywhere;
    }
    .product-option .meta span{font-size:.8rem;color:var(--muted)}
    .product-option.active{border-color:rgba(34,197,94,.32);background:rgba(34,197,94,.08)}
    .select-hidden{display:none !important}
    .row{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
    .switch{display:inline-flex;align-items:center;gap:10px;min-height:48px}
    .btn{
      min-height:48px;
      border-radius:16px;
      padding:0 18px;
      font-weight:400;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      border:1px solid transparent;
      transition:transform 180ms ease, background 180ms ease, border-color 180ms ease;
      cursor:pointer;
    }
    .btn:hover{transform:translateY(-1px)}
    .primary{color:#fff;background:linear-gradient(135deg,var(--green),var(--green-2));box-shadow:0 16px 28px rgba(34,197,94,.22)}
    .ghost{color:var(--text);background:#f8fafc;border-color:var(--line)}
    .ghost:hover{background:#eef2f7}
    .workspace{display:grid;gap:18px}
    .topbar-chip{
      min-height:36px;
      padding:0 12px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      background:rgba(255,255,255,.08);
      border:1px solid rgba(255,255,255,.1);
      color:#fff;
      font-size:.82rem;
      font-weight:400;
      white-space:nowrap;
    }
    .menu-shell{display:grid;gap:10px}
    .menu-toggle{
      display:none;
      width:100%;
      min-height:50px;
      border-radius:18px;
      padding:0 16px;
      border:1px solid rgba(255,255,255,.1);
      background:rgba(255,255,255,.08);
      color:#fff;
      font-weight:400;
      justify-content:space-between;
      align-items:center;
      gap:12px;
      box-shadow:0 14px 34px rgba(0,0,0,.18);
    }
    .menu-toggle .label{display:inline-flex;align-items:center;gap:10px}
    .menu-toggle .caret{transition:transform 180ms ease}
    .menu-shell.open .menu-toggle .caret{transform:rotate(180deg)}
    .menu-panel{display:block}
    .menu-help{
      margin:0;
      color:rgba(255,255,255,.68);
      font-size:.92rem;
      line-height:1.5;
      padding:0 2px;
    }
    .menu-bar{
      display:flex;
      gap:10px;
      padding:10px;
      border-radius:24px;
      background:rgba(255,255,255,.07);
      border:1px solid rgba(255,255,255,.09);
      backdrop-filter:blur(16px);
      box-shadow:0 14px 34px rgba(0,0,0,.18);
      overflow-x:auto;
      scrollbar-width:none;
      -ms-overflow-style:none;
      scroll-snap-type:x proximity;
    }
    .menu-bar::-webkit-scrollbar{display:none}
    .menu-pill{
      min-height:46px;
      padding:0 16px;
      border-radius:16px;
      display:inline-flex;
      align-items:center;
      gap:8px;
      justify-content:center;
      white-space:nowrap;
      flex:0 0 auto;
      scroll-snap-align:start;
      border:1px solid rgba(255,255,255,.1);
      background:rgba(255,255,255,.08);
      color:#fff;
      font-weight:400;
      letter-spacing:-.01em;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
      overflow:hidden;
    }
    .menu-pill i{
      width:18px;
      height:18px;
      flex:0 0 auto;
    }
    .menu-pill span{
      line-height:1;
      min-width:0;
    }
    .menu-pill.active{
      background:linear-gradient(135deg, rgba(34,197,94,.24), rgba(22,163,74,.2));
      border-color:rgba(34,197,94,.35);
      box-shadow:0 10px 24px rgba(34,197,94,.18);
    }
    .card{
      border-radius:var(--radius);
      background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
      color:var(--text);
      box-shadow:var(--shadow);
      border:1px solid rgba(15,23,42,.06);
      overflow:hidden;
    }
    .card-inner{padding:18px;display:grid;gap:14px}
    .section-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
    .section-head h2,.section-head h3,.section-head p{margin:0}
    .section-head p{color:var(--muted)}
    .stack{display:grid;gap:12px}
    .split{display:grid;grid-template-columns:1fr 1fr;gap:18px}
    .search-controls{display:grid;gap:12px}
    .search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
    .rentals-quick-panel{
      display:grid;
      gap:12px;
      padding:14px;
      border-radius:24px;
      background:linear-gradient(135deg, rgba(37,99,235,.08), rgba(14,165,233,.08));
      border:1px solid rgba(37,99,235,.12);
    }
    .rentals-quick-add{
      width:100%;
      min-height:56px;
      justify-content:center;
      gap:10px;
      font-size:1rem;
      border-radius:18px;
    }
    .rentals-quick-add i{width:20px;height:20px}
    .rentals-quick-grid{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:10px;
    }
    .rentals-quick-btn{
      min-height:54px;
      padding:10px 12px;
      border-radius:18px;
      display:grid;
      grid-template-columns:auto minmax(0,1fr);
      align-items:center;
      justify-items:start;
      gap:10px;
      text-align:left;
    }
    .rentals-quick-btn i{width:18px;height:18px}
    .rentals-quick-btn span{line-height:1.2}
    .page-today-deliveries .search-controls{
      gap:10px;
    }
    .page-today-deliveries .today-deliveries-search{
      width:100%;
      min-height:48px;
      box-sizing:border-box;
    }
    .page-today-deliveries .search-controls > *{
      width:100%;
      padding:10px;
      border-radius:18px;
      background:#fff;
      border:1px solid rgba(15,23,42,.08);
      box-sizing:border-box;
    }
    .day-nav{
      display:grid;
      grid-template-columns:44px minmax(180px, 240px) 44px;
      gap:8px;
      align-items:center;
      width:100%;
    }
    .day-nav-btn{
      width:44px;
      padding:0;
      flex:0 0 auto;
      border-radius:16px;
      font-size:1.25rem;
      line-height:1;
    }
    .day-date-input{
      display:block;
      width:100%;
      min-width:0;
      min-height:48px;
      padding:0 12px;
      text-align:center;
      letter-spacing:.02em;
      background:#fff;
      color:var(--text);
      border:1px solid rgba(15,23,42,.12);
      border-radius:16px;
      appearance:auto;
      -webkit-appearance:auto;
    }
    .day-summary{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:12px;
      padding:12px 14px;
      border-radius:18px;
      background:linear-gradient(135deg, rgba(59,130,246,.08), rgba(14,165,233,.08));
      border:1px solid rgba(59,130,246,.12);
    }
    .day-summary strong{display:block;font-size:1.05rem}
    .day-summary-label{
      display:block;
      margin-bottom:4px;
      font-size:.75rem;
      color:var(--muted);
      text-transform:uppercase;
      letter-spacing:.08em;
    }
    .filter-toggle{
      width:50px;
      padding:0;
      flex:0 0 auto;
      border-radius:16px;
    }
    .filter-toggle i{width:20px;height:20px}
    .filter-panel{
      display:grid;
      gap:16px;
      padding:14px;
      border-radius:22px;
      background:linear-gradient(180deg, #fff, #f8fafc);
      border:1px solid rgba(15,23,42,.08);
      box-shadow:0 12px 26px rgba(15,23,42,.08);
    }
    .filter-group{display:grid;gap:10px}
    .filter-group span{font-size:.85rem;font-weight:400;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
    .filter-chips{display:flex;flex-wrap:wrap;gap:8px}
    .date-input-row{
      display:grid;
      grid-template-columns:minmax(0,1fr) 48px;
      gap:8px;
      align-items:center;
    }
    .date-picker-btn{
      width:48px;
      padding:0;
      flex:0 0 auto;
      border-radius:16px;
    }
    .date-picker-btn i{
      width:18px;
      height:18px;
    }
    .filter-chip{
      min-height:38px;
      padding:0 12px;
      border-radius:999px;
      border:1px solid rgba(15,23,42,.1);
      background:#fff;
      color:var(--text);
      font-weight:400;
      white-space:nowrap;
    }
    .filter-chip.active{
      background:linear-gradient(135deg, rgba(34,197,94,.14), rgba(22,163,74,.1));
      border-color:rgba(34,197,94,.28);
      color:#14532d;
    }
    .preview-zone{
      border-radius:18px;
      border:1px dashed rgba(34,197,94,.28);
      background:rgba(34,197,94,.06);
      min-height:220px;
      display:grid;
      place-items:center;
      text-align:center;
      gap:10px;
      padding:16px;
      overflow:hidden;
    }
    .preview-zone.is-invalid{
      border-color:rgba(239,68,68,.55);
      background:rgba(254,242,242,.9);
      box-shadow:0 0 0 3px rgba(239,68,68,.08);
    }
    .preview-zone.compact{
      min-height:220px;
      padding:8px;
      gap:0;
      align-content:start;
      justify-items:stretch;
      background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.94));
      border:1px solid rgba(15,23,42,.07);
      border-radius:16px;
      box-shadow:0 10px 24px rgba(15,23,42,.05);
      overflow:hidden;
    }
    .edit-photo-zone{
      display:grid;
      gap:12px;
      width:100%;
      padding:0;
      border:0;
      background:transparent;
    }
    .preview-edit-layout{
      width:100%;
      display:flex;
      flex-direction:column;
      gap:10px;
      align-items:stretch;
      min-height:0;
      height:100%;
    }
    .preview-edit-main{
      display:grid;
      gap:8px;
      min-width:0;
      min-height:0;
    }
    .preview-edit-scroll{
      display:grid;
      gap:8px;
      min-width:0;
      min-height:0;
      max-height:180px;
      overflow-y:auto;
      overflow-x:hidden;
      padding:0 2px 12px 0;
      scrollbar-width:none;
      -webkit-overflow-scrolling:touch;
      overscroll-behavior:contain;
    }
    .preview-edit-scroll::-webkit-scrollbar{display:none}
    .preview-edit-head{
      display:flex;
      align-items:center;
      gap:10px;
      min-width:0;
      padding:0;
      border-radius:0;
      background:transparent;
      box-shadow:none;
      backdrop-filter:none;
    }
    .preview-edit-icon{
      width:32px;
      height:32px;
      border-radius:10px;
      display:grid;
      place-items:center;
      background:linear-gradient(180deg, rgba(34,197,94,.12), rgba(22,163,74,.08));
      color:var(--green-2);
      border:1px solid rgba(34,197,94,.16);
      flex:0 0 auto;
    }
    .preview-edit-icon i{
      width:16px;
      height:16px;
    }
    .preview-edit-meta{
      display:grid;
      gap:3px;
      min-width:0;
    }
    .preview-edit-meta strong{
      font-size:.95rem;
      line-height:1.05;
    }
    .preview-edit-meta .sub{
      font-size:.74rem;
      color:var(--muted);
      line-height:1.2;
      white-space:normal;
    }
    .preview-edit-list{
      display:grid;
      gap:8px;
      width:100%;
      min-height:0;
    }
    .preview-edit-row{
      display:grid;
      grid-template-columns:54px minmax(0,1fr) auto;
      gap:10px;
      align-items:center;
      padding:8px 10px;
      border-radius:14px;
      border:1px solid rgba(15,23,42,.08);
      background:rgba(255,255,255,.92);
      box-shadow:0 6px 14px rgba(15,23,42,.04);
    }
    .preview-edit-thumb-img{
      width:54px;
      height:68px;
      border-radius:10px;
      object-fit:contain;
      object-position:center center;
      background:#fff;
      border:1px solid rgba(15,23,42,.08);
    }
    .preview-edit-row-meta{
      min-width:0;
      display:grid;
      gap:2px;
    }
    .preview-edit-row-meta strong{
      font-size:.85rem;
      line-height:1.1;
      font-weight:600;
    }
    .preview-edit-row-meta .sub{
      font-size:.7rem;
      color:var(--muted);
      line-height:1.2;
    }
    .preview-edit-remove-inline{
      border:0;
      border-radius:999px;
      min-height:30px;
      padding:0 10px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      background:rgba(220,38,38,.12);
      color:#b91c1c;
      font-size:.78rem;
      font-weight:700;
      cursor:pointer;
      white-space:nowrap;
    }
    .preview-edit-remove-inline:hover{
      background:rgba(220,38,38,.18);
    }
    .preview-edit-main .preview-btn{
      width:fit-content;
      min-height:32px;
      padding:0 10px;
      border-radius:999px;
      font-size:.78rem;
      background:#fff;
      border-color:rgba(15,23,42,.08);
    }
    .preview-edit-footer{
      display:flex;
      justify-content:flex-start;
      padding-top:0;
    }
    .preview-edit-more{
      min-width:32px;
      height:32px;
      padding:0 8px;
      border-radius:999px;
      display:grid;
      place-items:center;
      border:1px solid rgba(15,23,42,.08);
      background:#fff;
      color:var(--muted);
      font-size:.72rem;
      font-weight:400;
      box-shadow:0 4px 10px rgba(15,23,42,.04);
    }
    .edit-media-panel{
      display:grid;
      gap:10px;
      padding:12px;
      border-radius:18px;
      background:#fff;
      border:1px solid rgba(15,23,42,.08);
      box-shadow:var(--shadow);
      overflow:hidden;
    }
    .edit-media-head{
      display:grid;
      grid-template-columns:auto minmax(0,1fr) auto;
      gap:10px;
      align-items:center;
    }
    .edit-media-icon{
      width:38px;
      height:38px;
      border-radius:12px;
      display:grid;
      place-items:center;
      background:linear-gradient(180deg, rgba(34,197,94,.16), rgba(22,163,74,.08));
      color:var(--green-2);
      border:1px solid rgba(34,197,94,.16);
      flex:0 0 auto;
    }
    .edit-media-icon i{
      width:18px;
      height:18px;
    }
    .edit-media-copy{
      display:grid;
      gap:2px;
      min-width:0;
    }
    .edit-media-copy strong{
      font-size:.94rem;
      line-height:1.1;
      color:var(--text);
    }
    .edit-media-copy .sub{
      font-size:.74rem;
      line-height:1.25;
      color:var(--muted);
    }
    .edit-media-count{
      min-height:28px;
      padding:0 8px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      background:rgba(34,197,94,.1);
      border:1px solid rgba(34,197,94,.14);
      color:#14532d;
      font-size:.72rem;
      font-weight:600;
      white-space:nowrap;
    }
    .edit-media-list-panel{
      gap:12px;
    }
    .edit-media-actions{
      display:none;
    }
    .edit-media-list{
      display:grid;
      gap:8px;
      max-height:clamp(140px, 26vh, 210px);
      overflow-y:auto;
      overflow-x:hidden;
      padding-right:2px;
      scrollbar-width:none;
      -webkit-overflow-scrolling:touch;
      overscroll-behavior:contain;
    }
    .edit-media-list::-webkit-scrollbar{display:none}
    .edit-media-item{
      display:grid;
      grid-template-columns:48px minmax(0,1fr) auto;
      gap:10px;
      align-items:center;
      padding:8px 10px;
      border-radius:16px;
      border:1px solid rgba(15,23,42,.08);
      background:#fff;
      box-shadow:0 6px 14px rgba(15,23,42,.04);
    }
    .edit-media-thumb{
      width:48px;
      height:48px;
      border-radius:12px;
      overflow:hidden;
      border:1px solid rgba(15,23,42,.08);
      background:linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.98));
      flex:0 0 auto;
    }
    .edit-media-thumb img{
      width:100%;
      height:100%;
      object-fit:cover;
      object-position:center center;
      display:block;
    }
    .edit-media-meta{
      display:grid;
      gap:2px;
      min-width:0;
    }
    .edit-media-meta strong{
      font-size:.84rem;
      line-height:1.08;
    }
    .edit-media-meta .sub{
      font-size:.7rem;
      line-height:1.15;
      color:var(--muted);
    }
    .edit-media-remove{
      min-height:30px;
      padding:0 10px;
      border:0;
      border-radius:999px;
      background:rgba(239,68,68,.12);
      color:#b91c1c;
      font-size:.72rem;
      font-weight:700;
      white-space:nowrap;
      cursor:pointer;
    }
    .edit-media-remove:hover{
      background:rgba(239,68,68,.18);
    }
    .edit-media-footer{
      display:grid;
      gap:10px;
      padding-top:2px;
      border-top:1px solid rgba(15,23,42,.06);
    }
    .edit-media-footer .preview-btn{
      width:100%;
    }
    .edit-media-footer .sub{
      font-size:.78rem;
      color:var(--muted);
    }
    .edit-media-action-row{
      display:grid;
      gap:8px;
      padding:0 2px 2px;
    }
    .edit-media-action-row .preview-btn{
      width:100%;
    }
    .edit-media-empty{
      gap:14px;
    }
    .edit-media-empty-state{
      min-height:72px;
      display:grid;
      place-items:center;
      text-align:center;
      padding:12px 14px;
      border-radius:14px;
      border:1px dashed rgba(148,163,184,.32);
      background:rgba(248,250,252,.9);
      color:var(--muted);
      font-size:.84rem;
      line-height:1.45;
    }
    @media (max-width: 720px){
      .preview-edit-layout{
        height:auto;
      }
      .preview-edit-row{
        grid-template-columns:44px minmax(0,1fr) auto;
      }
      .preview-edit-thumb-img{
        width:44px;
        height:56px;
      }
      .preview-zone.compact{min-height:200px}
      .preview-stack{max-height:220px}
      .preview-img{max-height:140px}
      .preview-mini-thumb{width:42px;height:56px}
      .edit-media-panel{
        padding:10px;
        gap:8px;
        border-radius:16px;
      }
      .edit-media-head{
        grid-template-columns:auto minmax(0,1fr);
        align-items:flex-start;
        gap:8px 8px;
      }
      .edit-media-count{
        grid-column:1 / -1;
        width:fit-content;
      }
      .edit-media-list{
        max-height:22vh;
      }
      .edit-media-item{
        grid-template-columns:42px minmax(0,1fr) auto;
        gap:8px;
        padding:8px;
        align-items:center;
      }
      .edit-media-thumb{
        width:42px;
        height:42px;
        border-radius:10px;
      }
      .edit-media-remove{
        min-height:28px;
        padding:0 9px;
      }
      .edit-media-footer{
        gap:6px;
      }
      .edit-media-footer .preview-btn{
        min-height:40px;
      }
      .edit-media-action-row{
        gap:6px;
      }
    }
    .preview-zone.over{background:rgba(34,197,94,.12)}
    .preview-stack{
      width:100%;
      display:grid;
      gap:10px;
      justify-items:center;
      max-height:250px;
      overflow:hidden;
    }
    .preview-img{
      width:auto;
      height:auto;
      max-width:100%;
      max-height:170px;
      border-radius:18px;
      object-fit:contain;
      object-position:center center;
      background:#fff;
      padding:8px;
      display:block;
    }
    .preview-mini-strip{
      width:100%;
      display:flex;
      gap:8px;
      overflow-x:auto;
      overflow-y:hidden;
      padding-bottom:2px;
      scrollbar-width:none;
      -ms-overflow-style:none;
    }
    .preview-mini-strip::-webkit-scrollbar{display:none}
    .preview-mini-thumb{
      flex:0 0 auto;
      width:48px;
      height:64px;
      border-radius:14px;
      overflow:hidden;
      border:1px solid rgba(15,23,42,.08);
      background:#fff;
      box-shadow:0 6px 14px rgba(15,23,42,.06);
    }
    .preview-mini-thumb img{
      width:100%;
      height:100%;
      object-fit:contain;
      object-position:center center;
      background:#fff;
    }
    .preview-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
    .preview-btn{
      min-height:42px;
      padding:0 14px;
      border-radius:14px;
      border:1px solid rgba(15,23,42,.08);
      background:#fff;
      color:var(--text);
      font-weight:400;
      display:inline-flex;
      align-items:center;
      gap:8px;
    }
    .chips{display:flex;flex-wrap:wrap;gap:8px}
    .chip{
      min-height:34px;
      padding:0 10px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      gap:6px;
      font-size:.8rem;
      font-weight:400;
      border:1px solid rgba(15,23,42,.08);
      background:#fff;
      color:var(--text);
    }
    .report-card{
      border-radius:22px;
      padding:16px;
      background:linear-gradient(180deg, #fff, #f8fafc);
      border:1px solid rgba(15,23,42,.06);
      box-shadow:var(--shadow);
      display:grid;
      gap:8px;
    }
    .report-label{
      margin:0;
      color:var(--muted);
      font-size:.82rem;
      font-weight:400;
      text-transform:uppercase;
      letter-spacing:.08em;
    }
    .report-value{
      margin:0;
      font-size:1.8rem;
      letter-spacing:-.05em;
      font-weight:400;
    }
    .report-note{
      margin:0;
      color:var(--muted);
      font-size:.92rem;
    }
    .report-item{
      display:flex;
      justify-content:space-between;
      gap:12px;
      align-items:flex-start;
      padding:14px 16px;
      border-radius:18px;
      border:1px solid rgba(15,23,42,.06);
      background:#fff;
      box-shadow:0 8px 20px rgba(15,23,42,.04);
    }
    .report-item strong{display:block;font-size:1rem}
    .report-item p{margin:4px 0 0;color:var(--muted);font-size:.88rem;line-height:1.45}
    .report-item span{font-weight:400;color:var(--text);white-space:nowrap}
    .report-shell{
      display:grid;
      gap:18px;
    }
    .report-toolbar{
      display:grid;
      gap:14px;
      padding:16px;
      border-radius:24px;
      background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
      border:1px solid rgba(15,23,42,.06);
      box-shadow:var(--shadow);
    }
    .report-segment-group{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
    }
    .report-segment{
      min-height:42px;
      padding:0 16px;
      border-radius:999px;
      border:1px solid rgba(15,23,42,.08);
      background:#fff;
      color:var(--text);
      font-weight:500;
      letter-spacing:.01em;
    }
    .report-segment.active{
      color:#fff;
      background:linear-gradient(135deg,#16a34a,#22c55e);
      border-color:rgba(22,163,74,.24);
      box-shadow:0 12px 22px rgba(34,197,94,.18);
    }
    .report-range{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr)) auto auto;
      gap:10px;
      align-items:end;
    }
    .report-range .field span{
      font-size:.76rem;
      font-weight:600;
      text-transform:uppercase;
      letter-spacing:.08em;
    }
    .report-summary-grid{
      display:grid;
      grid-template-columns:repeat(4,minmax(0,1fr));
      gap:12px;
    }
    .report-stat-card{
      border-radius:24px;
      padding:16px;
      background:linear-gradient(180deg, #fff, #f8fafc);
      border:1px solid rgba(15,23,42,.06);
      box-shadow:var(--shadow);
      display:grid;
      gap:8px;
    }
    .report-stat-card .report-value{
      font-size:1.5rem;
    }
    .report-fixture-card{
      border-radius:28px;
      padding:18px;
      background:
        radial-gradient(circle at top right, rgba(34,197,94,.12), transparent 28%),
        linear-gradient(180deg, #fff, #f8fafc);
      border:1px solid rgba(15,23,42,.06);
      box-shadow:var(--shadow);
      display:grid;
      gap:14px;
      overflow:visible;
    }
    .report-fixture-head{
      display:flex;
      justify-content:space-between;
      gap:12px;
      align-items:flex-start;
    }
    .report-fixture-head > div{
      min-width:0;
    }
    .report-fixture-head h3{
      margin:0;
      font-size:1.2rem;
      font-weight:500;
      line-height:1.25;
      overflow-wrap:anywhere;
    }
    .report-fixture-head p{
      margin:6px 0 0;
      color:var(--muted);
      line-height:1.45;
      overflow-wrap:anywhere;
    }
    .report-mode-pill{
      min-height:34px;
      padding:0 12px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      background:rgba(34,197,94,.1);
      border:1px solid rgba(34,197,94,.18);
      color:#14532d;
      font-size:.82rem;
      font-weight:600;
      white-space:nowrap;
    }
    .report-range-label{
      font-size:.88rem;
      color:var(--muted);
      letter-spacing:.02em;
      overflow-wrap:anywhere;
    }
    .fixture-track{
      display:grid;
      grid-auto-flow:column;
      grid-auto-columns:minmax(126px,1fr);
      gap:12px;
      overflow-x:auto;
      overflow-y:visible;
      padding-top:18px;
      margin-top:-18px;
      padding-bottom:6px;
      scrollbar-width:none;
      -ms-overflow-style:none;
    }
    .fixture-track::-webkit-scrollbar{display:none}
    .fixture-day-card{
      position:relative;
      min-height:220px;
      border-radius:22px;
      padding:14px 12px;
      background:linear-gradient(180deg, #fff, rgba(248,250,252,.98));
      border:1px solid rgba(15,23,42,.06);
      box-shadow:0 10px 22px rgba(15,23,42,.05);
      display:grid;
      grid-template-rows:auto auto auto auto auto;
      gap:10px;
      justify-items:center;
      text-align:center;
      align-content:start;
      overflow:visible;
    }
    .fixture-day-head{
      display:grid;
      gap:4px;
      justify-items:center;
    }
    .fixture-day-weekday{
      font-size:.78rem;
      text-transform:uppercase;
      letter-spacing:.12em;
      color:var(--muted);
      overflow-wrap:anywhere;
    }
    .fixture-day-date{
      font-size:.96rem;
      font-weight:500;
      color:var(--text);
      overflow-wrap:anywhere;
    }
    .fixture-node{
      position:relative;
      width:100%;
      min-height:96px;
      display:grid;
      place-items:center;
      border:0;
      background:transparent;
      padding:0;
      outline:none;
    }
    .fixture-node::before{
      content:"";
      position:absolute;
      left:12%;
      right:12%;
      top:50%;
      height:2px;
      border-radius:999px;
      background:linear-gradient(90deg, rgba(148,163,184,.15), rgba(148,163,184,.35), rgba(148,163,184,.15));
      transform:translateY(-50%);
    }
    .fixture-dot{
      width:var(--dot-size, 18px);
      height:var(--dot-size, 18px);
      border-radius:999px;
      position:relative;
      z-index:1;
      box-shadow:0 0 0 8px rgba(255,255,255,.7), 0 8px 18px rgba(15,23,42,.12);
      transition:transform 160ms ease, box-shadow 160ms ease;
    }
    .fixture-node:hover .fixture-dot,
    .fixture-node:focus-visible .fixture-dot{
      transform:scale(1.08);
      box-shadow:0 0 0 10px rgba(255,255,255,.8), 0 12px 24px rgba(15,23,42,.16);
    }
    .fixture-node.level-high .fixture-dot{
      background:linear-gradient(135deg,#16a34a,#22c55e);
    }
    .fixture-node.level-medium .fixture-dot{
      background:linear-gradient(135deg,#f59e0b,#fbbf24);
    }
    .fixture-node.level-none .fixture-dot{
      background:linear-gradient(135deg,#cbd5e1,#e2e8f0);
    }
    .fixture-tooltip{
      position:absolute;
      left:50%;
      bottom:calc(100% + 14px);
      transform:translateX(-50%);
      min-width:160px;
      max-width:210px;
      padding:10px 12px;
      border-radius:14px;
      background:rgba(15,23,42,.94);
      color:#fff;
      font-size:.8rem;
      line-height:1.45;
      text-align:left;
      opacity:0;
      pointer-events:none;
      transition:opacity 160ms ease, transform 160ms ease;
      box-shadow:0 18px 34px rgba(15,23,42,.2);
      z-index:2;
    }
    .fixture-node:hover .fixture-tooltip,
    .fixture-node:focus-visible .fixture-tooltip{
      opacity:1;
      transform:translateX(-50%);
    }
    .fixture-day-value{
      font-size:1rem;
      font-weight:600;
      letter-spacing:-.02em;
      color:var(--text);
      overflow-wrap:anywhere;
    }
    .fixture-day-count{
      font-size:.84rem;
      color:var(--muted);
      overflow-wrap:anywhere;
    }
    .fixture-legend{
      display:flex;
      flex-wrap:wrap;
      gap:10px 16px;
      justify-content:flex-start;
      color:var(--muted);
      font-size:.84rem;
    }
    .fixture-legend span{
      display:inline-flex;
      align-items:center;
      gap:8px;
    }
    .legend-dot{
      width:10px;
      height:10px;
      border-radius:999px;
      display:inline-block;
    }
    .legend-dot.level-high{background:linear-gradient(135deg,#16a34a,#22c55e)}
    .legend-dot.level-medium{background:linear-gradient(135deg,#f59e0b,#fbbf24)}
    .legend-dot.level-none{background:linear-gradient(135deg,#cbd5e1,#e2e8f0)}
    .fixture-empty{
      min-height:180px;
      align-items:center;
      justify-items:center;
    }
    .product-list{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:16px;
    }
    .product-card{
      border-radius:24px;
      border:1px solid rgba(15,23,42,.06);
      background:linear-gradient(180deg, #fff, #f8fafc);
      box-shadow:var(--shadow);
      padding:16px;
      display:grid;
      gap:14px;
    }
    .product-card-top{
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      gap:12px;
    }
    .product-card-top h4{
      margin:0;
      font-size:1.1rem;
      font-weight:400;
    }
    .product-card-top p{
      margin:6px 0 0;
      color:var(--muted);
      font-size:.92rem;
      font-weight:400;
    }
    .product-card-stats{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
    }
    .product-gallery{
      position:relative;
      min-height:220px;
      border-radius:22px;
      overflow:hidden;
      border:1px solid rgba(15,23,42,.08);
      background:#fff;
      box-shadow:0 10px 22px rgba(15,23,42,.06);
    }
    .product-gallery-track{
      width:100%;
      height:100%;
      display:flex;
      overflow-x:auto;
      overflow-y:hidden;
      scroll-snap-type:x mandatory;
      scroll-behavior:smooth;
      -webkit-overflow-scrolling:touch;
      scrollbar-width:none;
      touch-action:pan-x;
    }
    .product-gallery-track::-webkit-scrollbar{display:none}
    .product-gallery-slide{
      flex:0 0 100%;
      min-width:100%;
      height:100%;
      scroll-snap-align:start;
      display:grid;
      place-items:center;
      background:#fff;
    }
    .product-gallery-slide img{
      width:100%;
      height:100%;
      object-fit:contain;
      object-position:center center;
      background:#fff;
    }
    .slider-dots{
      position:absolute;
      left:50%;
      bottom:12px;
      transform:translateX(-50%);
      z-index:2;
      display:flex;
      gap:8px;
      padding:8px 12px;
      border-radius:999px;
      background:rgba(15,23,42,.46);
      backdrop-filter:blur(10px);
    }
    .slider-dot{
      width:8px;
      height:8px;
      min-height:8px;
      padding:0;
      border:0;
      border-radius:999px;
      background:rgba(255,255,255,.42);
      opacity:.7;
      box-shadow:none;
    }
    .slider-dot.active{
      width:22px;
      background:#fff;
      opacity:1;
    }
    .product-gallery-badge{
      position:absolute;
      right:12px;
      bottom:54px;
      z-index:1;
      min-height:30px;
      padding:0 10px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      background:rgba(15,23,42,.72);
      color:#fff;
      font-size:.78rem;
      font-weight:500;
      letter-spacing:-.01em;
      backdrop-filter:blur(10px);
      pointer-events:none;
    }
    .product-gallery-empty{
      min-height:220px;
      display:grid;
      place-items:center;
      border:1px dashed rgba(15,23,42,.12);
      color:var(--muted);
      font-weight:400;
      background:rgba(255,255,255,.65);
    }
    .badge{min-height:30px;padding:0 10px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:400;border:1px solid transparent}
    .badge-green{color:#14532d;background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.18)}
    .badge-yellow{color:#92400e;background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.18)}
    .badge-red{color:#991b1b;background:rgba(239,68,68,.12);border-color:rgba(239,68,68,.18)}
    .badge-orange{color:#9a3412;background:rgba(249,115,22,.12);border-color:rgba(249,115,22,.18)}
    .status-badge{
      min-height:34px;
      padding:0 12px;
      white-space:nowrap;
      font-size:.86rem;
      font-weight:600;
      letter-spacing:.01em;
      box-shadow:0 8px 18px rgba(15,23,42,.08);
      border-width:1px;
    }
    .status-badge.badge-green{
      color:#fff;
      background:linear-gradient(135deg,#16a34a,#22c55e);
      border-color:rgba(22,163,74,.26);
    }
    .status-badge.badge-yellow{
      color:#7c2d12;
      background:linear-gradient(135deg, rgba(245,158,11,.28), rgba(251,191,36,.22));
      border-color:rgba(245,158,11,.28);
    }
    .status-badge.badge-orange{
      color:#fff;
      background:linear-gradient(135deg,#f97316,#fb923c);
      border-color:rgba(249,115,22,.28);
    }
    .status-badge.badge-red{
      color:#fff;
      background:linear-gradient(135deg,#dc2626,#ef4444);
      border-color:rgba(220,38,38,.26);
    }
    .rental-list{display:grid;gap:14px}
    .rental-card{
      border-radius:22px;
      overflow:hidden;
      border:1px solid var(--line);
      background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
      box-shadow:var(--shadow);
    }
    .rental-inner{
      padding:14px;
      display:grid;
      gap:12px;
    }
    .rental-cover{
      position:relative;
      width:100%;
      min-height:380px;
      max-height:520px;
      border-radius:22px;
      overflow:hidden;
      background:#fff;
      border:1px solid rgba(15,23,42,.08);
      box-shadow:0 10px 22px rgba(15,23,42,.06);
    }
    .rental-cover-track{
      width:100%;
      height:100%;
      display:flex;
      overflow-x:auto;
      overflow-y:hidden;
      scroll-snap-type:x mandatory;
      scroll-behavior:smooth;
      -webkit-overflow-scrolling:touch;
      scrollbar-width:none;
      touch-action:pan-x;
    }
    .rental-cover-track::-webkit-scrollbar{display:none}
    .rental-cover-slide{
      flex:0 0 100%;
      min-width:100%;
      height:100%;
      scroll-snap-align:start;
    }
    .rental-cover img{
      width:100%;
      height:100%;
      object-fit:cover;
      object-position:center center;
      display:block;
    }
    .rental-cover-badge{
      position:absolute;
      right:12px;
      bottom:54px;
      z-index:1;
      min-height:30px;
      padding:0 10px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      background:rgba(15,23,42,.72);
      color:#fff;
      font-size:.78rem;
      font-weight:500;
      letter-spacing:-.01em;
      backdrop-filter:blur(10px);
      pointer-events:none;
    }
    .rental-cover-empty{
      width:100%;
      height:100%;
      min-height:190px;
      display:grid;
      place-items:center;
      color:var(--muted);
      font-weight:400;
      background:linear-gradient(135deg, rgba(248,250,252,.9), rgba(255,255,255,.98));
    }
    .rental-body{display:grid;gap:10px;min-width:0}
    .rental-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
    .rental-top > :first-child{min-width:0}
    .rental-top > .stack{flex:0 0 max-content;min-width:max-content}
    .rental-top h3{margin:0;font-weight:400}
    .rental-top p{margin:4px 0 0;color:var(--muted)}
    .rental-product-wrap{display:grid;gap:8px;margin-top:10px}
    .rental-product-title{
      margin:0;
      font-size:.8rem;
      text-transform:uppercase;
      letter-spacing:.08em;
      color:var(--muted);
      font-weight:600;
    }
    .rental-product-chips{display:flex;flex-wrap:wrap;gap:8px}
    .rental-product-chip{
      min-height:32px;
      padding:0 10px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      background:rgba(34,197,94,.08);
      border:1px solid rgba(34,197,94,.14);
      color:#14532d;
      font-size:.82rem;
      font-weight:500;
    }
    .phone-link{
      display:inline-flex;
      align-items:center;
      color:var(--text);
      font-weight:400;
      text-decoration:none;
      cursor:pointer;
    }
    .phone-link:hover{color:var(--green-2)}
    .meta-row{display:flex;flex-wrap:wrap;gap:8px}
    .meta{min-height:40px;padding:0 12px;border-radius:999px;background:#f8fafc;border:1px solid var(--line);display:inline-flex;align-items:center;gap:8px;color:var(--text);font-weight:400}
    .financial-row{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:10px;
    }
    .financial-item{
      padding:12px 14px;
      border-radius:18px;
      background:rgba(248,250,252,.9);
      border:1px solid rgba(15,23,42,.06);
      display:grid;
      gap:4px;
    }
    .financial-item .label{
      font-size:.76rem;
      text-transform:uppercase;
      letter-spacing:.08em;
      color:var(--muted);
      font-weight:600;
    }
    .financial-item strong{
      font-size:1rem;
      font-weight:600;
      color:var(--text);
    }
    .actions{display:flex;flex-wrap:wrap;gap:8px}
    .actions .action-deliver{
      flex:0 0 auto;
      min-width:172px;
      white-space:nowrap;
    }
    .note{color:var(--muted);line-height:1.55;margin:0}
    @media (max-width: 720px){
      .product-gallery{min-height:180px}
      .product-gallery-empty{min-height:180px}
      .search-row{grid-template-columns:minmax(0,1fr) 52px}
      .rentals-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      .filter-chip{font-size:.86rem}
      .rental-cover{min-height:320px;max-height:420px;border-radius:20px}
      .rental-cover-empty{min-height:165px}
      .workspace{padding-bottom:110px}
      .financial-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
      .financial-item{padding:10px 10px;border-radius:16px}
      .financial-item .label{font-size:.7rem}
      .financial-item strong{font-size:.92rem}
    }
    @media (max-width: 380px){
      .actions .action-deliver{
        flex:1 0 100%;
        width:100%;
      }
    }
    .placeholder{
      min-height:200px;
      border-radius:22px;
      display:grid;
      place-items:center;
      text-align:center;
      color:var(--muted);
      background:rgba(248,250,252,.96);
      border:1px solid rgba(15,23,42,.06);
    }
    .empty{display:grid;place-items:center;text-align:center;padding:24px;color:var(--muted)}
    .menu-sheet{position:relative}
    .menu-sheet>summary{list-style:none;cursor:pointer}
    .menu-sheet>summary::-webkit-details-marker{display:none}
    .dropdown-panel{
      position:absolute;
      top:calc(100% + 10px);
      right:0;
      width:min(320px, calc(100vw - 32px));
      padding:16px;
      border-radius:22px;
      background:rgba(255,255,255,.98);
      color:var(--text);
      box-shadow:var(--shadow-lg);
      border:1px solid rgba(15,23,42,.06);
      z-index:30;
    }
    .skeleton{
      position:relative;
      overflow:hidden;
      background:rgba(15,23,42,.05);
      border-radius:20px;
      min-height:88px;
    }
    .skeleton::after{
      content:"";
      position:absolute;
      inset:0;
      transform:translateX(-100%);
      background:linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
      animation:shimmer 1.2s infinite;
    }
    @keyframes shimmer{100%{transform:translateX(100%)}}
    .modal{
      position:fixed;
      inset:0;
      display:grid;
      place-items:center;
      padding:18px;
      background:rgba(2,6,23,.62);
      backdrop-filter:blur(10px);
      z-index:120;
    }
    body.modal-open .menu-shell{
      opacity:0;
      visibility:hidden;
      pointer-events:none;
    }
    .modal-panel{
      width:min(560px,100%);
      max-height:calc(100vh - 36px);
      max-height:calc(100dvh - 36px);
      border-radius:28px;
      background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.98));
      color:var(--text);
      border:1px solid rgba(15,23,42,.08);
      box-shadow:var(--shadow-lg);
      overflow:hidden;
      display:flex;
      flex-direction:column;
    }
    .modal-head{
      display:flex;
      justify-content:space-between;
      gap:12px;
      align-items:flex-start;
      padding:18px 18px 0;
    }
    .modal-body{
      padding:16px 18px 18px;
      display:grid;
      gap:10px;
      overflow:auto;
      min-height:0;
    }
    .modal-actions{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      justify-content:flex-end;
      padding:0 18px 18px;
      position:sticky;
      bottom:0;
      background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(248,250,252,.98));
      backdrop-filter:blur(8px);
    }
    body.modal-open{overflow:hidden}
    .payment-modal{width:min(720px,100%)}
    .payment-modal form{
      display:flex;
      flex-direction:column;
      min-height:0;
      flex:1 1 auto;
    }
    .payment-modal .modal-body{
      overflow-y:auto;
      display:flex;
      flex-direction:column;
      min-height:0;
      flex:1 1 auto;
    }
    #editModal .modal-panel{
      width:min(560px,100%);
      max-height:calc(100vh - 24px);
      max-height:calc(100dvh - 24px);
    }
    #editModal form{
      display:flex;
      flex-direction:column;
      min-height:0;
      flex:1 1 auto;
    }
    #editModal .modal-body{
      overflow-y:auto;
      display:flex;
      flex-direction:column;
      min-height:0;
      flex:1 1 auto;
    }
    .payment-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .payment-modal #paymentLogList{
      flex:none;
      min-height:0;
      max-height:none;
      overflow:visible;
    }
    .payment-log-item{
      display:flex;
      justify-content:space-between;
      gap:12px;
      align-items:flex-start;
      padding:14px 16px;
      border-radius:18px;
      border:1px solid rgba(15,23,42,.06);
      background:#fff;
      box-shadow:0 8px 20px rgba(15,23,42,.04);
    }
    .payment-log-item strong{display:block;font-size:1rem}
    .payment-log-item p{margin:4px 0 0;color:var(--muted);font-size:.88rem;line-height:1.45}
    .payment-log-item .right{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
    .activity-log-modal{
      width:min(760px,100%);
      max-height:calc(100vh - 24px);
      max-height:calc(100dvh - 24px);
    }
    .activity-log-body{
      display:grid;
      gap:12px;
      overflow-y:auto;
      min-height:0;
    }
    .activity-log-list{
      display:grid;
      gap:12px;
    }
    .activity-log-item{
      padding:14px 16px;
      border-radius:18px;
      border:1px solid rgba(15,23,42,.08);
      background:linear-gradient(180deg,#fff,#f8fafc);
      box-shadow:0 10px 24px rgba(15,23,42,.06);
      display:grid;
      gap:10px;
    }
    .activity-log-head{
      display:flex;
      gap:10px;
      align-items:center;
      justify-content:space-between;
      flex-wrap:wrap;
    }
    .activity-log-badge{
      display:inline-flex;
      align-items:center;
      min-height:30px;
      padding:0 10px;
      border-radius:999px;
      background:rgba(34,197,94,.12);
      color:#14532d;
      border:1px solid rgba(34,197,94,.18);
      font-size:.78rem;
      font-weight:600;
      letter-spacing:.06em;
      text-transform:uppercase;
    }
    .activity-log-user{
      color:var(--muted);
      font-size:.88rem;
      font-weight:600;
    }
    .activity-log-summary{
      font-size:1rem;
      line-height:1.5;
      color:var(--text);
      font-weight:500;
    }
    .activity-log-meta{
      color:var(--muted);
      font-size:.84rem;
    }
    .activity-log-empty-note{
      margin:0;
      color:var(--muted);
      font-size:.92rem;
      line-height:1.5;
    }
    .activity-log-change-list{
      display:grid;
      gap:8px;
      padding-top:2px;
    }
    .activity-log-change{
      display:grid;
      grid-template-columns:minmax(0,1fr) auto auto auto;
      gap:8px;
      align-items:center;
      padding:10px 12px;
      border-radius:14px;
      background:rgba(15,23,42,.04);
      color:var(--text);
      font-size:.9rem;
    }
    .activity-log-change strong{
      font-size:.82rem;
      color:var(--muted);
      font-weight:600;
      text-transform:uppercase;
      letter-spacing:.06em;
    }
    .activity-log-change span{
      min-width:0;
      word-break:break-word;
    }
    .activity-log-change i{
      width:16px;
      height:16px;
      color:var(--muted);
    }
    .btn.action-log{
      color:#0f766e;
      background:linear-gradient(135deg, rgba(204,251,241,.96), rgba(236,253,245,.98));
      border-color:rgba(20,184,166,.2);
      box-shadow:0 12px 22px rgba(20,184,166,.08);
    }
    .btn.action-log:hover{
      background:linear-gradient(135deg, rgba(153,246,228,.98), rgba(204,251,241,.98));
    }
    .btn.danger{
      color:#991b1b;
      background:rgba(239,68,68,.08);
      border-color:rgba(239,68,68,.18);
    }
    .btn.danger:hover{background:rgba(239,68,68,.14)}
    .icon-btn{
      width:42px;
      height:42px;
      border-radius:14px;
      border:1px solid rgba(15,23,42,.08);
      background:#fff;
      color:var(--text);
      display:grid;
      place-items:center;
      flex:0 0 auto;
    }
    .action-modal{
      width:min(760px,100%);
    }
    .action-modal-hero{
      display:grid;
      grid-template-columns:auto minmax(0,1fr) auto;
      gap:14px;
      align-items:center;
      padding:20px 20px 0;
      background:
        radial-gradient(circle at top left, rgba(34,197,94,.18), transparent 40%),
        linear-gradient(135deg, rgba(15,23,42,.04), rgba(34,197,94,.06));
      border-bottom:1px solid rgba(15,23,42,.06);
    }
    .action-modal-icon{
      width:58px;
      height:58px;
      border-radius:18px;
      display:grid;
      place-items:center;
      background:linear-gradient(135deg, rgba(34,197,94,.16), rgba(34,197,94,.08));
      border:1px solid rgba(34,197,94,.16);
      color:#14532d;
      box-shadow:0 14px 28px rgba(34,197,94,.14);
      flex:0 0 auto;
    }
    .action-modal-icon i{
      width:26px;
      height:26px;
    }
    .action-modal-copy{
      display:grid;
      gap:6px;
      padding-top:2px;
      min-width:0;
      justify-items:center;
      text-align:center;
    }
    .action-modal-kicker{
      display:inline-flex;
      width:fit-content;
      min-height:30px;
      padding:0 10px;
      margin-inline:auto;
      border-radius:999px;
      align-items:center;
      justify-content:center;
      background:rgba(34,197,94,.12);
      color:#14532d;
      border:1px solid rgba(34,197,94,.18);
      font-size:.78rem;
      font-weight:600;
      letter-spacing:.08em;
      text-transform:uppercase;
    }
    .action-modal-copy h2{
      margin:0;
      font-size:1.45rem;
      line-height:1.15;
    }
    .action-modal-copy p{
      margin:0;
      color:var(--muted);
      line-height:1.5;
      max-width:60ch;
    }
    .action-modal-close{
      margin-left:auto;
    }
    .action-modal-body{
      padding:18px 20px 16px;
      gap:14px;
    }
    .action-summary-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:12px;
    }
    .action-summary-card{
      border-radius:20px;
      padding:14px;
      border:1px solid rgba(15,23,42,.08);
      background:linear-gradient(180deg, #fff, #f8fafc);
      box-shadow:0 10px 24px rgba(15,23,42,.06);
      display:grid;
      gap:6px;
    }
    .action-summary-card .label{
      color:var(--muted);
      font-size:.76rem;
      font-weight:600;
      text-transform:uppercase;
      letter-spacing:.08em;
    }
    .action-summary-card .value{
      font-size:1rem;
      line-height:1.45;
      color:var(--text);
      font-weight:500;
      word-break:break-word;
    }
    .action-summary-card .hint{
      color:var(--muted);
      font-size:.9rem;
      line-height:1.45;
    }
    .action-modal-note{
      border-radius:20px;
      padding:14px 16px;
      background:rgba(15,23,42,.04);
      border:1px solid rgba(15,23,42,.06);
      color:var(--text);
      line-height:1.55;
    }
    .action-modal-actions{
      justify-content:space-between;
      padding:0 20px 20px;
    }
    .btn.action-danger{
      color:#fff;
      background:linear-gradient(135deg,#dc2626,#ef4444);
      box-shadow:0 16px 28px rgba(239,68,68,.2);
    }
    .btn.action-danger:hover{
      background:linear-gradient(135deg,#b91c1c,#dc2626);
    }
    .btn.action-success{
      color:#fff;
      background:linear-gradient(135deg,#16a34a,#22c55e);
      box-shadow:0 16px 28px rgba(34,197,94,.2);
    }
    .btn.action-success:hover{
      background:linear-gradient(135deg,#15803d,#16a34a);
    }
    .btn.action-payment{
      color:#1d4ed8;
      background:linear-gradient(135deg, rgba(219,234,254,.96), rgba(239,246,255,.98));
      border-color:rgba(59,130,246,.18);
      box-shadow:0 12px 22px rgba(59,130,246,.1);
    }
    .btn.action-payment:hover{
      background:linear-gradient(135deg, rgba(191,219,254,.98), rgba(219,234,254,.98));
    }
    .btn.action-edit{
      color:#b45309;
      background:linear-gradient(135deg, rgba(254,243,199,.96), rgba(255,251,235,.98));
      border-color:rgba(245,158,11,.2);
      box-shadow:0 12px 22px rgba(245,158,11,.1);
    }
    .btn.action-edit:hover{
      background:linear-gradient(135deg, rgba(253,230,138,.98), rgba(254,243,199,.98));
    }
    .btn.action-delete{
      color:#b91c1c;
      background:linear-gradient(135deg, rgba(254,226,226,.96), rgba(255,241,242,.98));
      border-color:rgba(239,68,68,.2);
      box-shadow:0 12px 22px rgba(239,68,68,.1);
    }
    .btn.action-delete:hover{
      background:linear-gradient(135deg, rgba(252,165,165,.98), rgba(254,226,226,.98));
    }
    .btn.action-neutral{
      color:#334155;
      background:linear-gradient(135deg, rgba(224,231,255,.98), rgba(238,242,255,.98));
      border-color:rgba(99,102,241,.18);
      box-shadow:0 12px 22px rgba(99,102,241,.1);
    }
    .btn.action-neutral:hover{
      background:linear-gradient(135deg, rgba(199,210,254,.98), rgba(224,231,255,.98));
    }
    .notification-host{
      position:fixed;
      right:16px;
      bottom:16px;
      z-index:220;
      display:grid;
      gap:10px;
      width:min(360px, calc(100vw - 32px));
      pointer-events:none;
    }
    .notification{
      pointer-events:auto;
      border-radius:20px;
      padding:14px 14px 14px 16px;
      border:1px solid rgba(15,23,42,.08);
      background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
      box-shadow:0 18px 36px rgba(15,23,42,.16);
      display:grid;
      grid-template-columns:auto minmax(0,1fr) auto;
      gap:12px;
      align-items:start;
      color:var(--text);
      animation:notification-in 180ms ease-out;
    }
    .notification-title{
      margin:0;
      font-size:.95rem;
      font-weight:700;
      line-height:1.2;
    }
    .notification-message{
      margin:4px 0 0;
      color:var(--muted);
      font-size:.88rem;
      line-height:1.45;
    }
    .notification-icon{
      width:40px;
      height:40px;
      border-radius:14px;
      display:grid;
      place-items:center;
      flex:0 0 auto;
      border:1px solid transparent;
    }
    .notification-icon i{width:20px;height:20px}
    .notification-close{
      width:30px;
      height:30px;
      min-height:30px;
      padding:0;
      border-radius:10px;
      border:1px solid rgba(15,23,42,.08);
      background:#fff;
      color:var(--muted);
      font-size:1rem;
      line-height:1;
    }
    .notification-success .notification-icon{
      background:rgba(34,197,94,.12);
      color:#166534;
      border-color:rgba(34,197,94,.18);
    }
    .notification-warning .notification-icon{
      background:rgba(245,158,11,.14);
      color:#92400e;
      border-color:rgba(245,158,11,.2);
    }
    .notification-error .notification-icon{
      background:rgba(239,68,68,.12);
      color:#991b1b;
      border-color:rgba(239,68,68,.2);
    }
    .notification-info .notification-icon{
      background:rgba(59,130,246,.12);
      color:#1d4ed8;
      border-color:rgba(59,130,246,.18);
    }
    @keyframes notification-in{
      from{opacity:0;transform:translateY(10px) scale(.98)}
      to{opacity:1;transform:translateY(0) scale(1)}
    }
    .success-modal{
      width:min(620px,100%);
    }
    .success-modal-hero{
      display:grid;
      grid-template-columns:auto minmax(0,1fr) auto;
      gap:14px;
      align-items:center;
      min-height:132px;
      padding:26px 22px;
      background:
        radial-gradient(circle at top left, rgba(34,197,94,.2), transparent 42%),
        linear-gradient(135deg, rgba(22,163,74,.08), rgba(15,23,42,.03));
      border-bottom:1px solid rgba(15,23,42,.06);
    }
    .success-modal-icon{
      width:58px;
      height:58px;
      border-radius:18px;
      display:grid;
      place-items:center;
      background:linear-gradient(135deg, rgba(34,197,94,.18), rgba(34,197,94,.1));
      border:1px solid rgba(34,197,94,.16);
      color:#14532d;
      box-shadow:0 14px 28px rgba(34,197,94,.14);
      flex:0 0 auto;
    }
    .success-modal-icon i{
      width:26px;
      height:26px;
    }
    .success-modal-copy{
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:6px;
      text-align:center;
      padding:6px 0;
      min-width:0;
    }
    .success-modal-kicker{
      display:inline-flex;
      width:fit-content;
      min-height:30px;
      padding:0 10px;
      border-radius:999px;
      background:rgba(34,197,94,.12);
      color:#14532d;
      border:1px solid rgba(34,197,94,.18);
      font-size:.78rem;
      font-weight:700;
      letter-spacing:.08em;
      text-transform:uppercase;
      margin:0 auto 2px;
    }
    .success-modal-copy h2{
      margin:0;
      font-size:1.45rem;
      line-height:1.15;
    }
    .success-modal-copy p{
      margin:0;
      color:var(--muted);
      line-height:1.5;
      max-width:60ch;
    }
    .success-modal-close{
      margin-left:auto;
      align-self:center;
    }
    .success-modal-body{
      padding:18px 20px 16px;
    }
    .success-summary-card{
      padding:16px 18px;
      border-radius:20px;
      background:linear-gradient(180deg, #fff, #f8fafc);
      border:1px solid rgba(15,23,42,.08);
      box-shadow:0 10px 24px rgba(15,23,42,.06);
      display:grid;
      gap:8px;
    }
    .success-summary-card strong{
      font-size:1.02rem;
      color:var(--text);
    }
    .success-summary-card p{
      margin:0;
      color:var(--muted);
      line-height:1.55;
    }
    .success-modal-actions{
      justify-content:space-between;
      padding:0 20px 20px;
    }
    @media (max-width: 980px){
      .login-card{grid-template-columns:1fr}
      .split{grid-template-columns:1fr}
      .payment-summary{grid-template-columns:1fr}
      .report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      .report-range{grid-template-columns:repeat(2,minmax(0,1fr))}
      .product-list{grid-template-columns:1fr}
    }
    @media (max-width: 720px){
      .payment-modal{max-height:calc(100dvh - 24px)}
      .report-toolbar{padding:14px}
      .report-segment-group{gap:8px}
      .report-segment{flex:1 1 auto}
      .report-range{grid-template-columns:1fr; align-items:stretch}
      .report-summary-grid{grid-template-columns:1fr}
      .report-fixture-head{flex-direction:column}
      .report-fixture-card{padding:16px}
      .product-list{grid-template-columns:1fr}
      .fixture-track{
        grid-auto-columns:minmax(132px,1fr);
        padding-top:20px;
        margin-top:-20px;
      }
      .fixture-day-card{min-height:228px}
      .fixture-tooltip{
        min-width:150px;
        max-width:190px;
        font-size:.78rem;
      }
      .action-modal-hero{
        grid-template-columns:auto minmax(0,1fr);
        padding:18px 18px 0;
      }
      .action-modal-close{
        grid-column:2;
        justify-self:end;
        margin-top:-4px;
      }
      .action-summary-grid{
        grid-template-columns:1fr;
      }
      .action-modal-actions{
        flex-direction:column-reverse;
        align-items:stretch;
      }
      .action-modal-actions .btn{
        width:100%;
      }
      .success-modal-hero{
        grid-template-columns:auto minmax(0,1fr);
        min-height:124px;
        padding:20px 18px;
      }
      .success-modal-copy{
        justify-items:center;
        text-align:center;
      }
      .success-modal-close{
        grid-column:2;
        justify-self:end;
        margin-top:-4px;
      }
      .success-modal-actions{
        flex-direction:column-reverse;
        align-items:stretch;
      }
      .success-modal-actions .btn{
        width:100%;
      }
      .notification-host{
        right:12px;
        left:12px;
        bottom:12px;
        width:auto;
      }
      .page-today-deliveries .search-controls > *{
        padding:10px;
      }
      .page-today-deliveries .today-deliveries-search{
        padding-inline:14px;
      }
      .page-today-deliveries .day-nav{
        grid-template-columns:repeat(3,minmax(0,1fr));
      }
      .page-today-deliveries .day-nav-btn{
        width:100%;
        min-width:0;
      }
      .page-today-deliveries .day-nav .input{
        min-height:48px;
        min-width:0;
      }
      .page-today-deliveries .day-summary{
        flex-direction:column;
        align-items:stretch;
        padding:10px 12px;
        border-radius:18px;
        background:#fff;
        border:1px solid rgba(15,23,42,.08);
      }
      .page-today-deliveries .day-summary .btn{
        width:100%;
      }
      .page-today-deliveries .day-date-input{font-size:.95rem}
      .date-input-row{grid-template-columns:minmax(0,1fr) 44px}
      .date-picker-btn{width:44px}
    }
    @media (max-width: 720px){
      .shell{padding:12px}
      .menu-toggle{display:none}
      .menu-panel{
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        z-index:95;
      }
      .menu-bar{
        width:100%;
        padding:8px 8px calc(8px + env(safe-area-inset-bottom));
        border-radius:0;
        justify-content:space-between;
        gap:6px;
        overflow:visible;
        background:linear-gradient(180deg, rgba(15,23,42,.72), rgba(7,11,18,.92));
        border-top:1px solid rgba(255,255,255,.12);
        border-left:1px solid rgba(255,255,255,.05);
        border-right:1px solid rgba(255,255,255,.05);
        border-bottom:0;
        box-shadow:0 -18px 40px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
        backdrop-filter:blur(18px);
      }
      .menu-pill{
        flex:1 1 0;
        min-width:0;
        min-height:66px;
        padding:8px 5px;
        border-radius:16px;
        flex-direction:column;
        gap:5px;
        font-size:.68rem;
        white-space:normal;
        border:1px solid rgba(255,255,255,.08);
        background:rgba(255,255,255,.07);
        box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
        overflow:hidden;
      }
      .menu-pill i{
        width:18px;
        height:18px;
      }
      .menu-pill span{
        display:block;
        max-width:100%;
        text-align:center;
        line-height:1;
        opacity:.94;
        overflow:visible;
        text-overflow:clip;
        white-space:normal;
        word-break:keep-all;
        hyphens:none;
      }
      .menu-pill.active{
        background:linear-gradient(180deg, rgba(34,197,94,.18), rgba(22,163,74,.12));
        border-color:rgba(34,197,94,.28);
        box-shadow:0 10px 22px rgba(34,197,94,.12), inset 0 1px 0 rgba(255,255,255,.08);
      }
    }
