/* Noviqo customer club: emerald VIP and gold VVIP, with readable text at compact sizes. */
.loyalty-badge,.vip-btn.loyalty-badge{display:inline-flex!important;align-items:center;justify-content:center;gap:4px;white-space:nowrap;font-size:11px!important;font-weight:800!important;line-height:1.35!important;letter-spacing:.3px;border-radius:6px!important;padding:3px 7px!important;vertical-align:middle;margin-inline:5px;min-height:23px;box-shadow:0 2px 5px #162b2920}
.loyalty-badge.loyalty-vip,.vip-btn.loyalty-vip{color:#fff!important;background:#096650!important;border:1px solid #0d8065!important}
.loyalty-badge.loyalty-vvip,.vip-btn.loyalty-vvip{color:#362508!important;background:linear-gradient(115deg,#f8e4a4,#d9b45d)!important;border:1px solid #b48c35!important;box-shadow:0 2px 7px #9b72152b}
.loyalty-customer-name{display:inline-flex;align-items:center;flex-wrap:wrap;gap:3px}.loyalty-customer-name .loyalty-badge{flex:none}.dc-name .loyalty-badge{font-size:10px!important;min-height:20px;padding:2px 5px!important}.vip-btn.loyalty-badge:hover{filter:brightness(1.08)}.vip-btn.loyalty-badge:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
#modal:has(.vip-hero){width:min(1220px,96vw);max-width:96vw;padding:0;border:1px solid #d4c7a8;border-radius:22px;background:#f8f7f3;box-shadow:0 28px 90px #0c14285c;color:#1b293a}
#modal .vip-hero{position:relative;overflow:hidden;margin:0;padding:30px 32px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border:0;background:radial-gradient(ellipse at 0 0,#52665b44,transparent 65%),linear-gradient(125deg,#111e31,#20342f);color:#fff;border-bottom:3px solid #c9aa68}
#modal .vip-hero:after{content:'✧';position:absolute;inset-inline-end:110px;top:-44px;font-size:240px;line-height:1;color:#dbc38a0d;pointer-events:none}#modal .vip-hero>div{position:relative;z-index:1}.vip-eyebrow{display:block;color:#dfc58a;letter-spacing:2px;font-size:11px;font-weight:700;margin-bottom:10px}.vip-hero h2{font-size:26px!important;font-weight:800;margin:0 0 8px!important}.vip-hero p{font-size:14px;color:#d3ded9;margin:0}.vip-hero .bk-count{background:#ffffff14;border:1px solid #d7bd7c66;color:#f6dda5;padding:4px 12px;font-size:18px}.vip-hero #close-modal{background:#ffffff12;color:#fff;border:1px solid #ffffff30;border-radius:10px;min-width:38px}
#modal:has(.vip-hero)>:not(.vip-hero){margin-inline:26px}#modal:has(.vip-hero)>.notice{background:#f1eee4;border:1px solid #e0d7bd;border-inline-start:3px solid #b79a53;color:#465346;font-size:13px;padding:12px 16px;margin-top:18px;border-radius:10px}
#modal:has(.vip-hero) nav.tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;overflow:visible;margin-block:20px;padding:0;border:0}
#modal [data-vip-tier]{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;text-align:start;white-space:normal;min-height:96px;border:1px solid #dce2df;border-radius:14px;padding:13px;background:#fff;color:#43544c;font-size:12px;font-weight:700;box-shadow:0 4px 12px #1f302b04;transition:transform .15s,box-shadow .15s}
#modal [data-vip-tier]:hover{transform:translateY(-2px);box-shadow:0 6px 15px #1f302b12}#modal [data-vip-tier] .vip-tab-icon{font-size:22px;color:#7c9191}#modal [data-vip-tier]>span:nth-child(2){grid-column:1/-1;grid-row:2}#modal [data-vip-tier] .badge{grid-column:2;grid-row:1;background:transparent;color:inherit;font-size:23px;font-weight:800;padding:0}
#modal [data-vip-tier=vvip]{border-color:#dfc793;background:#fffaf0;color:#6a4b14}#modal [data-vip-tier=vvip] .vip-tab-icon{color:#9d7421}#modal [data-vip-tier=gold] .vip-tab-icon{color:#b59139}#modal [data-vip-tier=silver] .vip-tab-icon{color:#82919e}#modal [data-vip-tier=value] .vip-tab-icon{color:#24795d}
#modal [data-vip-tier][aria-pressed=true]{background:#173a32;color:#fff;border-color:#173a32;box-shadow:0 6px 16px #173a3226}#modal [data-vip-tier][aria-pressed=true] .vip-tab-icon{color:#dfc58a}#modal [data-vip-tier=vvip][aria-pressed=true]{background:linear-gradient(130deg,#f5e3ac,#d6b665);color:#332a17;border-color:#bba05d}
#modal:has(.vip-hero)>.card{background:#fff;border:1px solid #e1dfd6;border-radius:14px;padding:18px;box-shadow:none}#modal:has(.vip-hero)>.card h3{font-size:15px;margin:0 0 12px;color:#715624}#modal:has(.vip-hero) #vip-add{padding:0;border:0;background:transparent;margin:0}#modal:has(.vip-hero) #vip-add .primary{background:#192d29;border-color:#192d29;color:#f9e3ab;border-radius:9px;padding:10px 18px}
#modal:has(.vip-hero) #vip-filter{background:transparent;box-shadow:none;border:0;padding:8px 0;margin-block:12px}#modal:has(.vip-hero) #vip-filter input{min-width:220px;flex:1}#modal:has(.vip-hero)>h3{font-size:17px;margin-top:20px}#modal:has(.vip-hero)>.row{justify-content:flex-end;font-size:13px;margin-bottom:12px}
#modal:has(.vip-hero)>.compact{border:1px solid #e1e4df;border-radius:12px;overflow:auto;background:#fff;margin-bottom:26px}#modal:has(.vip-hero) table{width:100%;min-width:900px;border-collapse:collapse}#modal:has(.vip-hero) th{background:#eaf0ed;color:#44574f;font-size:12px;padding:14px 12px;white-space:nowrap;border-bottom:1px solid #dce4df}#modal:has(.vip-hero) td{padding:14px 12px;border-bottom:1px solid #eef1ed;font-size:12px;line-height:1.65;max-width:250px}#modal:has(.vip-hero) tbody tr:nth-child(even){background:#fafbf9}#modal:has(.vip-hero) tbody tr:hover{background:#f1f5ed}#modal:has(.vip-hero) [data-vvip-id]{font-size:11px;border-radius:8px;border-color:#d6c69c;background:#fff9ec;color:#624c20;white-space:nowrap}#modal:has(.vip-hero) td:first-child{min-width:175px}#modal:has(.vip-hero) td:nth-child(8){min-width:150px;color:#66746d}
@media(max-width:800px){#modal .vip-hero{padding:23px 18px}.vip-hero h2{font-size:21px!important}#modal:has(.vip-hero)>:not(.vip-hero){margin-inline:14px}#modal:has(.vip-hero) nav.tabs{grid-template-columns:repeat(3,minmax(0,1fr))}#modal [data-vip-tier]{min-height:88px;padding:10px}#modal:has(.vip-hero) #vip-add{display:flex;flex-wrap:wrap}#modal:has(.vip-hero) #vip-add input{min-width:130px;flex:1}#modal:has(.vip-hero) #vip-filter input{min-width:160px}.dc-name .loyalty-badge{margin-inline:2px}}
@media(prefers-reduced-motion:reduce){#modal [data-vip-tier]{transition:none}#modal [data-vip-tier]:hover{transform:none}}

/* Membership filters and compact, accessible contact actions. */
.loyalty-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;align-items:center}
.loyalty-filters button{min-height:36px;padding:7px 16px;border-radius:10px;border:1px solid #d5ded9;background:#fff;color:#203a32;font-weight:800}
.loyalty-filters .lf-vip{border-color:#82b7a8;color:#096650}
.loyalty-filters .lf-vvip{border-color:#c6a85f;color:#74551a;background:#fffaf0}
.loyalty-filters button[aria-pressed="true"]{background:#203a32;color:#fff;box-shadow:0 2px 6px #102d2426}
.loyalty-filters .lf-vip[aria-pressed="true"]{background:#096650;color:#fff}
.loyalty-filters .lf-vvip[aria-pressed="true"]{background:linear-gradient(120deg,#f0dba3,#cba95b);color:#3c2c0a}
.phone-actions{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;vertical-align:middle}
.phone-actions .phone-action{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:1px solid #c7dbe5;text-decoration:none;background:#edf5fc;line-height:1}
.phone-actions .phone-wa{background:#e5f6ed;border-color:#a9d8be}
.phone-actions .sh-phone{font-weight:800;letter-spacing:.3px}
.phone-action:focus-visible,.loyalty-filters button:focus-visible{outline:3px solid #1678aa;outline-offset:2px}
.driver-app .dc-phone-inline{display:flex;align-items:center;gap:5px}
.driver-app .dc-phone-inline .dc-contact{display:flex;flex-direction:column;gap:2px;margin:0}
.driver-app .dc-phone-inline .dc-contact a{min-height:26px;min-width:28px}
@media(pointer:coarse){.phone-actions .phone-action{width:36px;height:36px}}
.os-sheet td:has(>.phone-actions){min-width:175px!important;max-width:none!important}
.phone-actions .phone-action{flex-shrink:0}

/* Mobile sheets: let vertical gestures reach the page at either edge. */
@media (max-width:1000px){
 main:has(>#queue-filter,>.os-bulk)>.compact>.card.flush>.table-wrap{
  max-height:none!important;overflow-x:auto!important;overflow-y:auto!important;
  overscroll-behavior:auto!important;touch-action:auto;-webkit-overflow-scrolling:touch;
 }
 main>#queue-filter,main>.os-bulk{position:static!important;top:auto!important}
 main:has(>#queue-filter,>.os-bulk)>.compact thead th{position:relative!important;top:auto!important}
 .cq-sheet td:has(>.sh-ccode){min-width:96px!important;width:auto!important;max-width:none!important}
 .cq-sheet .sh-ccode,.cq-sheet td:has(>.sh-ccode)>.sh-num{
  max-width:none!important;overflow:visible!important;text-overflow:clip!important;
  white-space:nowrap;direction:ltr;unicode-bidi:isolate;display:block;
 }
 .cq-sheet .sh-ccode{font-weight:800;color:#3730a3}
 /* Touch gestures resize neither columns nor the page accidentally. Mouse resizing stays available. */
 .cq-sheet .col-grip{display:none}
}
