/* SuvidhaPOS Waiter UI v12 - premium responsive table dashboard.
   Base behavior remains in ordering.css; this file is visual/responsive enhancement only. */
.tables-dashboard{--premium-bg:#060b14;--premium-panel:#0b1424;--premium-panel-2:#0d1a2d;--premium-line:#203551;--premium-muted:#8494ad;--premium-purple:#7c43ff;--premium-blue:#3389ff;--premium-green:#19cf88;--premium-amber:#ffb216;--premium-red:#ff4664;background:radial-gradient(circle at 12% -10%,rgba(42,86,179,.28),transparent 32%),radial-gradient(circle at 92% 0,rgba(110,42,185,.17),transparent 30%),var(--premium-bg);min-height:100vh}
.tables-dashboard .topbar{height:72px;padding:0 26px;background:rgba(5,10,19,.92);border-bottom:1px solid rgba(92,126,187,.22);box-shadow:0 10px 35px rgba(0,0,0,.18)}
.tables-dashboard .brand-cluster{display:flex;align-items:center;gap:12px;min-width:0}.tables-dashboard .brand img{width:180px;height:54px;object-fit:contain}.tables-dashboard .brand-caption{display:flex;flex-direction:column;padding-left:12px;border-left:1px solid rgba(255,255,255,.1)}.tables-dashboard .brand-caption strong{font-size:13px}.tables-dashboard .brand-caption span{margin-top:2px;color:#7f90aa;font-size:9px}.tables-dashboard .userbox{gap:10px}.connection-pill,.waiter-profile{height:38px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #1c304b;border-radius:11px;background:rgba(12,24,42,.8);font-size:10px;font-weight:800;color:#d7e2f4}.connection-pill.offline .user-dot{background:#ff5566;box-shadow:0 0 14px rgba(255,85,102,.7)}.waiter-avatar{width:26px;height:26px;display:grid;place-items:center;border:1px solid #7958dc;border-radius:50%;background:linear-gradient(135deg,#263b74,#7025a9);font-size:10px;font-weight:900}.logout-btn{height:38px;display:inline-flex;align-items:center;gap:7px}.logout-mark{font-size:15px}
.tables-dashboard .page{max-width:1500px;padding:24px 26px 18px}.premium-hero{align-items:center;margin-bottom:18px}.premium-hero .title{font-size:36px;letter-spacing:-.03em}.premium-hero .subtitle{font-size:12px}.hero-clock{min-width:175px;display:grid;gap:6px;padding:10px 14px;border:1px solid #233654;border-radius:13px;background:linear-gradient(145deg,rgba(18,34,58,.9),rgba(10,18,32,.9));text-align:right}.hero-clock span{color:#95a4bc;font-size:10px}.hero-clock strong{font-size:17px}
.premium-stats{gap:14px;margin-bottom:18px}.premium-stats .stat{min-height:104px;padding:14px 16px;display:flex;align-items:center;gap:14px;position:relative;overflow:hidden;box-shadow:0 14px 34px rgba(0,0,0,.22)}.premium-stats .stat:after{content:"";position:absolute;right:-25px;bottom:-36px;width:110px;height:110px;border-radius:50%;opacity:.09;background:currentColor}.premium-stats .stat-icon{width:50px;height:50px;flex:0 0 50px;display:grid;place-items:center;border-radius:50%;font-size:23px;font-weight:900;border:1px solid currentColor;background:rgba(255,255,255,.035);box-shadow:inset 0 0 26px rgba(255,255,255,.04)}.premium-stats .stat-copy{min-width:0}.premium-stats .stat-value{font-size:28px;margin:0;line-height:1}.premium-stats .stat-label{font-size:10px;margin-top:5px;color:#e7eefc;letter-spacing:.05em}.premium-stats .stat-note{font-size:9px;margin-top:4px;color:#6e7f99}.premium-stats .total-stat{color:#747cff;border-color:rgba(91,101,255,.58)}.premium-stats .available-stat{color:var(--premium-green);border-color:rgba(25,207,136,.55)}.premium-stats .running-stat{color:var(--premium-amber);border-color:rgba(255,178,22,.56)}.premium-stats .occupied-stat{color:var(--premium-red);border-color:rgba(255,70,100,.56)}
.table-tools{display:grid;grid-template-columns:minmax(230px,1fr) auto auto;align-items:center;gap:10px;margin-bottom:10px}.table-search{height:44px;display:flex;align-items:center;gap:8px;padding:0 13px;border:1px solid #243855;border-radius:12px;background:#091322}.table-search:focus-within{border-color:#6156d8;box-shadow:0 0 0 3px rgba(101,77,223,.12)}.search-glyph{font-size:23px;color:#91a2bc;transform:rotate(-15deg)}.table-search input{width:100%;height:40px;border:0!important;outline:0;background:transparent!important;color:#f4f7ff!important;padding:0!important;min-height:0!important}.table-search input::placeholder{color:#65748b}.status-filters{display:flex;gap:6px;overflow:auto}.status-filter,.refresh-tables{height:42px;white-space:nowrap;border:1px solid #263a58;border-radius:11px;background:#0b1729;color:#91a0b8;padding:0 12px;font-size:10px;font-weight:850;cursor:pointer}.status-filter.active{color:#fff;border-color:#6356da;background:linear-gradient(135deg,#254f9f,#7a36db);box-shadow:0 8px 22px rgba(69,61,188,.2)}.filter-dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px}.filter-dot.g{background:var(--premium-green)}.filter-dot.y{background:var(--premium-amber)}.filter-dot.r{background:var(--premium-red)}.refresh-tables{color:#d9e6fa;border-color:#285a9c;background:linear-gradient(135deg,#0b2748,#0b1a2f)}
.tables-dashboard .tabs{gap:8px;margin-bottom:10px}.tables-dashboard .tab{min-width:160px;height:44px;padding:0 18px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;font-size:11px}.tables-dashboard .tab.active{background:linear-gradient(115deg,#2e90ff,#7139ff 65%,#ae3fe5);box-shadow:0 10px 26px rgba(79,78,255,.23)}.tab-symbol{font-size:17px}.tables-dashboard .floor-head{height:44px;padding:0 2px;margin:0 0 10px}.floor-name{display:flex;align-items:center;gap:8px;letter-spacing:.02em}.floor-name b{color:#5d6f8b}.floor-accent{width:6px;height:24px;border-radius:6px;background:linear-gradient(180deg,#33a0ff,#7344ff);box-shadow:0 0 14px rgba(66,110,255,.38)}
.tables-dashboard .tables{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.tables-dashboard .table,.tables-dashboard .table.occupied,.tables-dashboard .table.occupied.has-preview{height:232px;min-height:232px;padding:13px 13px 12px;border-radius:16px;background:linear-gradient(155deg,rgba(15,28,48,.98),rgba(7,13,24,.98));box-shadow:0 14px 30px rgba(0,0,0,.22);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.tables-dashboard .table:hover{transform:translateY(-2px)}.tables-dashboard .table.available{border-color:rgba(25,207,136,.63);box-shadow:0 12px 28px rgba(25,207,136,.05)}.tables-dashboard .table.running{border-color:rgba(255,178,22,.75);box-shadow:0 12px 28px rgba(255,178,22,.07)}.tables-dashboard .table.occupied{border-color:rgba(255,70,100,.7);box-shadow:0 12px 28px rgba(255,70,100,.06)}.tables-dashboard .table:before{width:115px;height:115px;right:-36px;bottom:-45px;opacity:.08}.table-status-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:26px}.tables-dashboard .status{height:24px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;font-size:8px}.tables-dashboard .status i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 11px currentColor}.running-time{display:inline-flex;align-items:center;gap:4px;color:#eebc50;font-size:9px;font-weight:800;white-space:nowrap}.clock-dot{font-size:13px}.table-silhouette{position:absolute;right:10px;top:58px;width:78px;height:68px;opacity:.16;pointer-events:none}.table-silhouette .top{position:absolute;left:18px;top:17px;width:42px;height:18px;border-radius:50%;background:currentColor;box-shadow:0 8px 0 -3px currentColor}.table-silhouette .seat{position:absolute;top:21px;width:17px;height:28px;border:4px solid currentColor;border-top-width:7px;border-radius:6px}.table-silhouette .s1{left:1px}.table-silhouette .s2{right:1px}.available .table-silhouette{color:var(--premium-green)}.running .table-silhouette{color:var(--premium-amber)}.occupied .table-silhouette{color:var(--premium-red)}.tables-dashboard .table-no{font-size:34px;line-height:1;margin-top:7px;letter-spacing:-.025em}.tables-dashboard .table-name{font-size:9px;margin-top:3px;color:#a4b1c6}.tables-dashboard .table-meta{margin:8px 0 5px;line-height:1.25;color:#7f8da4;font-size:9px;overflow:visible}.meta-row{display:flex;align-items:center;gap:6px;margin:3px 0}.meta-icon{width:12px;color:#9daac0;font-size:10px}.tables-dashboard .table-bill{font-size:9px;color:#dfe7f5}.tables-dashboard .table-total{font-size:17px;margin-top:5px;letter-spacing:.01em}.available-copy{display:flex;flex-direction:column;gap:3px;margin-top:9px}.available-copy strong{color:#e2eee9;font-size:9px}.available-copy span{color:#65758e;font-size:8px}.tables-dashboard .table-action,.tables-dashboard .table-settlement{height:34px;min-height:34px;flex-basis:34px;border-radius:8px;font-size:8.5px;font-weight:900;letter-spacing:.015em}.tables-dashboard .table-action{display:flex;align-items:center;justify-content:center;gap:10px}.tables-dashboard .available .table-action{background:linear-gradient(135deg,#0db570,#10d083);box-shadow:0 7px 18px rgba(8,192,120,.16)}.tables-dashboard .running .table-action{background:linear-gradient(135deg,#bd7900,#f1a900);box-shadow:0 7px 18px rgba(255,178,22,.16)}.tables-dashboard .table-settlement{width:88%;align-self:center;display:flex;align-items:center;justify-content:center;gap:8px;color:#ff9aab;background:linear-gradient(135deg,rgba(125,25,49,.38),rgba(75,17,37,.5));border:1px solid rgba(255,70,100,.35)}.select-card{cursor:pointer}.select-card:focus-visible{outline:3px solid rgba(125,99,255,.65);outline-offset:2px}.select-card.is-filtered{display:none!important}.no-filter-results{padding:30px;text-align:center;color:#75859f;border:1px dashed #263a57;border-radius:14px;background:rgba(9,18,32,.45)}
.tables-dashboard .footer{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:1500px;margin:auto;padding:15px 26px 20px;border-top:1px solid rgba(255,255,255,.04)}.footer-live{display:flex;align-items:center}.footer-live i{width:7px;height:7px;margin-right:7px;border-radius:50%;background:var(--premium-green);box-shadow:0 0 11px rgba(25,207,136,.7)}
.tables-dashboard .occupied-modal-card{border-color:rgba(255,70,100,.5);background:linear-gradient(155deg,#111e33,#080e19);border-radius:18px}.tables-dashboard .occupied-modal-row{background:#0b1728;border-color:#203650}.tables-dashboard .occupied-modal-done{background:linear-gradient(135deg,#6b1734,#8c1d42);color:#ffd9e0}
@media(max-width:1100px){.tables-dashboard .page{padding:20px}.table-tools{grid-template-columns:minmax(220px,1fr) auto}.status-filters{grid-column:1/-1;order:3}.premium-stats .stat{min-height:98px}.tables-dashboard .brand-caption{display:none}}
@media(max-width:900px) and (min-width:761px){.tables-dashboard .tables{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.tables-dashboard .topbar{height:68px;padding:0 14px}.tables-dashboard .brand img{width:135px;height:48px}.tables-dashboard .userbox{gap:7px}.waiter-profile{padding:0 7px}.waiter-profile .user-name{display:none}.connection-pill{padding:0 9px}.logout-btn{padding:0 10px;font-size:9px}.logout-mark{display:none}.tables-dashboard .page{padding:12px 14px 14px}.premium-hero{display:flex;margin:4px 0 12px}.premium-hero .eyebrow,.premium-hero .subtitle,.hero-clock{display:none}.premium-hero .title{font-size:24px;margin:0}.premium-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}.premium-stats .stat{min-height:72px;padding:9px 10px;gap:9px;border-radius:13px}.premium-stats .stat-icon{width:35px;height:35px;flex-basis:35px;font-size:16px}.premium-stats .stat-value{font-size:20px}.premium-stats .stat-label{font-size:7.5px;margin-top:3px}.premium-stats .stat-note{font-size:7px;margin-top:2px}.table-tools{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:8px}.table-search{height:40px}.refresh-tables{height:40px;width:42px;padding:0;font-size:17px}.refresh-tables span{display:none}.status-filters{grid-column:1/-1;display:flex;order:3;padding-bottom:1px}.status-filter{height:34px;padding:0 10px;font-size:8px}.tables-dashboard .tabs{top:0;z-index:52;margin:0 -14px;padding:8px 14px;background:rgba(5,10,19,.98);box-shadow:0 1px 0 rgba(255,255,255,.05)}.tables-dashboard .tab{min-width:150px;height:42px;font-size:10px}.tables-dashboard .floor-head{top:58px;height:38px;margin:0 -14px 8px;padding:0 14px;background:rgba(5,10,19,.975)}.tables-dashboard .legend{gap:7px;font-size:7.5px}.tables-dashboard .floor-name{font-size:10px}.floor-accent{height:19px;width:5px}.tables-dashboard .tables{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tables-dashboard .table,.tables-dashboard .table.occupied,.tables-dashboard .table.occupied.has-preview{height:218px;min-height:218px;padding:10px;border-radius:15px}.tables-dashboard .table-no{font-size:31px;margin-top:5px}.tables-dashboard .table-name{font-size:8.5px}.table-silhouette{width:57px;height:52px;top:55px;right:4px}.table-silhouette .top{left:14px;top:13px;width:31px;height:13px}.table-silhouette .seat{top:16px;width:13px;height:22px;border-width:3px;border-top-width:5px}.tables-dashboard .table-meta{font-size:8px;margin-top:6px;margin-bottom:3px}.tables-dashboard .table-bill{font-size:8px}.tables-dashboard .table-total{font-size:15.5px;margin-top:4px}.tables-dashboard .table-action{height:33px;min-height:33px;flex-basis:33px;font-size:7.7px}.tables-dashboard .table-settlement{height:28px;min-height:28px;flex-basis:28px;width:84%;font-size:6.8px}.tables-dashboard .footer{padding:12px 14px;justify-content:center}.footer-live{display:none}}
@media(max-width:430px){.tables-dashboard .topbar{padding:0 10px}.tables-dashboard .brand img{width:118px}.connection-pill{height:34px;padding:0 7px;font-size:8px}.waiter-profile{height:34px;padding:0 5px}.waiter-avatar{width:23px;height:23px;font-size:8px}.logout-btn{height:34px;padding:0 8px}.tables-dashboard .page{padding-left:10px;padding-right:10px}.premium-stats .stat{padding:8px}.table-tools{gap:6px}.status-filter{padding:0 8px}.tables-dashboard .tabs{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}.tables-dashboard .floor-head{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}.tables-dashboard .legend span{font-size:0}.tables-dashboard .legend i{width:8px;height:8px;margin-right:0}.tables-dashboard .tables{gap:8px}.tables-dashboard .table,.tables-dashboard .table.occupied,.tables-dashboard .table.occupied.has-preview{height:212px;min-height:212px;padding:9px}.tables-dashboard .status{font-size:7px;padding:0 7px}.running-time{font-size:7.5px}.tables-dashboard .table-no{font-size:29px}.tables-dashboard .table-total{font-size:14.5px}.tables-dashboard .table-action{font-size:7px}.tables-dashboard .table-settlement{font-size:6.3px;width:82%}}

/* v13 2026-09-14: mobile overview visible at rest; sticky floor controls engage only after scrolling to them.
   The logo/header itself continues to scroll away on mobile. */
.dashboard-overview{position:relative}
@media(max-width:760px){
  /* ordering.css historically hid .hero/.stats on phones. v13 intentionally restores the approved summary. */
  .tables-dashboard .dashboard-overview{display:block!important;margin:0 0 10px;padding:10px;border:1px solid rgba(77,106,166,.18);border-radius:15px;background:linear-gradient(145deg,rgba(13,27,49,.78),rgba(7,13,24,.55));box-shadow:0 12px 28px rgba(0,0,0,.14)}
  .tables-dashboard .premium-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0 0 10px!important}
  .tables-dashboard .premium-hero>div:first-child{min-width:0}
  .tables-dashboard .premium-hero .eyebrow{display:none!important}
  .tables-dashboard .premium-hero .title{display:block!important;font-size:24px!important;line-height:1.05!important;margin:0!important}
  .tables-dashboard .premium-hero .subtitle{display:block!important;margin-top:4px!important;max-width:230px;color:#8290aa!important;font-size:9px!important;line-height:1.35!important}
  .tables-dashboard .hero-clock{display:grid!important;min-width:112px!important;gap:2px!important;padding:7px 9px!important;border-radius:10px!important;text-align:right!important;box-shadow:none!important}
  .tables-dashboard .hero-clock span{font-size:7px!important;white-space:nowrap}
  .tables-dashboard .hero-clock strong{font-size:12px!important;white-space:nowrap}

  .tables-dashboard .premium-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:0!important}
  .tables-dashboard .premium-stats .stat{display:flex!important;min-width:0!important;min-height:66px!important;padding:8px 9px!important;gap:8px!important;border-radius:12px!important}
  .tables-dashboard .premium-stats .stat-icon{width:32px!important;height:32px!important;flex:0 0 32px!important;font-size:14px!important}
  .tables-dashboard .premium-stats .stat-value{font-size:19px!important;line-height:1!important}
  .tables-dashboard .premium-stats .stat-label{font-size:7px!important;line-height:1.15!important;margin-top:3px!important;white-space:nowrap}
  .tables-dashboard .premium-stats .stat-note{font-size:6.6px!important;line-height:1.2!important;margin-top:2px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* These controls remain in normal document flow until their natural scroll position reaches the viewport. */
  .tables-dashboard .tabs{position:sticky!important;top:0!important;z-index:52!important}
  .tables-dashboard .floor-head{position:sticky!important;top:58px!important;z-index:51!important}
}
@media(max-width:430px){
  .tables-dashboard .dashboard-overview{padding:9px;margin-left:0;margin-right:0}
  .tables-dashboard .premium-hero .title{font-size:22px!important}
  .tables-dashboard .premium-hero .subtitle{font-size:8px!important;max-width:190px}
  .tables-dashboard .hero-clock{min-width:96px!important;padding:6px 7px!important}
  .tables-dashboard .hero-clock span{font-size:6.4px!important}
  .tables-dashboard .hero-clock strong{font-size:11px!important}
  .tables-dashboard .premium-stats{gap:6px!important}
  .tables-dashboard .premium-stats .stat{min-height:62px!important;padding:7px!important;gap:7px!important}
  .tables-dashboard .premium-stats .stat-icon{width:29px!important;height:29px!important;flex-basis:29px!important;font-size:12px!important}
  .tables-dashboard .premium-stats .stat-value{font-size:17px!important}
  .tables-dashboard .premium-stats .stat-label{font-size:6.5px!important}
  .tables-dashboard .premium-stats .stat-note{font-size:6px!important}
}
