/* v6.4.24: shared geometry, keyboard focus and responsive spacing. */
:root{--ui-field-gap:16px;--ui-control-gap:8px;--ui-action-gap:12px;--ui-gap:clamp(16px,2vw,24px);--ui-pad:clamp(16px,2.4vw,28px)}
body[data-page],body.app-page,body.workspace-tools{overflow-wrap:break-word}
body[data-page] :is(img,video),body.workspace-tools :is(img,video){max-width:100%;height:auto}
body[data-page] :is(.row>*,.lug-card,.game-card,.section-head>*,.footer-grid>*),body.app-page :is(.card,.kpi-card,.form-grid>*,.header-actions>*){min-width:0}
body[data-page] :is(.lug-card,.access-card,.form-panel){padding:var(--ui-pad)}
body[data-page] .section-head{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:24px}
body[data-page] :is(.page-hero p,.section-head p){margin-bottom:0;line-height:1.75}
body[data-page] .lug-section{padding-block:clamp(36px,5vw,72px)}
body[data-page] .lug-section.tight{padding-block:clamp(24px,3vw,40px)}
body[data-page] :is(.btn,.icon-btn,.nav-link):focus-visible,body.workspace-tools :is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--lug-accent,#009fe8);outline-offset:3px}
body[data-page] :is(.btn,.icon-btn){flex-shrink:0}
body[data-page] textarea{min-height:128px;resize:vertical}
body[data-page] input[type=checkbox],body[data-page] input[type=radio]{min-height:0;width:1.2em;height:1.2em;flex-shrink:0}
html body.app-page .main-content{padding:24px clamp(16px,2.4vw,32px) 40px}
html body.app-page .top-header{gap:20px;margin-bottom:24px;align-items:center}
html body.app-page .page-heading p{font-size:14px;line-height:1.65;margin:8px 0 0}
html body.app-page :is(.card-head,.settings-card){padding:var(--ui-pad)}
html body.app-page .card-head{gap:16px;flex-wrap:wrap;align-items:center}
html body.app-page .card-head :is(h2,h3,p){margin:0}
html body.app-page .card-head p{margin-top:6px}
html body.app-page :is(.filters,.toolbar-actions,.header-actions){gap:12px;flex-wrap:wrap;min-width:0}
html body.app-page .filters :is(input,select){max-width:100%;min-width:0}
html body.app-page .form-grid{gap:18px}
html body.app-page :is(.nav-item.active,.quick-link.workspace-active){background:var(--a-info-bg)!important;box-shadow:inset 3px 0 var(--a-accent)!important;border-radius:10px!important}
html body.app-page .table-wrap{overscroll-behavior-x:contain;scrollbar-gutter:stable}
html body.app-page .table-wrap :is(td,th){vertical-align:top;overflow-wrap:anywhere}
html body.app-page :is(input,textarea,select){max-width:100%}
html body.app-page input[type=checkbox],html body.app-page input[type=radio]{min-height:0;width:20px;height:20px}
html body.app-page .modal-card{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
html body.app-page .modal-card:not(.sm-card){padding:var(--ui-pad)}
html body.app-page :is(.kpi-value,.session-timer,.amount){font-variant-numeric:tabular-nums}
html.workspace-document body{display:flow-root!important}
html.workspace-document :is(.staff-panel,.lug-card,.feature){margin-bottom:20px}
html.workspace-document :is(.actions,.staff-tabs){gap:12px}
html[lang=bn] :is(body[data-page],body.app-page,body.workspace-tools) :is(h1,h2,h3,label,button,a){letter-spacing:0!important;line-height:1.55}
@media(max-width:860px){html body.app-page .main-content{padding:18px 16px calc(88px + env(safe-area-inset-bottom))}html body.app-page .header-actions{width:100%;justify-content:flex-start}html body.app-page .top-header{gap:16px}}
@media(max-width:575px){body[data-page] .section-head{align-items:flex-start}body[data-page] .page-hero{padding-block:32px}html body.app-page .main-content{padding-inline:12px}html body.app-page :is(.filters,.toolbar-actions){width:100%}html body.app-page .filters>*{flex:1 1 140px}html body.app-page .main-content .ps5-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px}body[data-page] .lug-brand.brand{min-width:0}body[data-page] .lug-brand.brand>span{min-width:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}body[data-page] *,body.app-page *,body.workspace-tools *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Value size follows the card width, including dense report columns. */
html body.app-page .kpi-card{container-type:inline-size}
html body.app-page .kpi-card .kpi-value{font-size:clamp(20px,9cqi,30px)!important;overflow-wrap:anywhere!important;min-width:0;max-width:100%}
/* Column toolbars must size their copy by content rather than flex basis. */
@media(max-width:1120px){html body.app-page .view-actionbar .view-hint{flex:0 1 auto;width:100%;max-width:none}html body.app-page .header-actions{justify-content:flex-start!important}html body.app-page .view-actionbar{align-items:stretch}}

/* Keep timing, discounts and deposit lines distinct in the settlement preview. */
html body.app-page #endPreview>span{display:block;line-height:1.65}
html body.app-page #endPreview>small{display:block;margin-top:8px;line-height:1.65}
html body.app-page #endPreview>small:first-child{margin-top:0}

/* Keep compact labels intact without forcing customer names or notes onto one line. */
html body.app-page .table-wrap :is(.btn,.pill,.customer-tier,.request-status,.membership-badge,.amount){white-space:nowrap;overflow-wrap:normal;word-break:normal}
html body.app-page .table-wrap :is(td[data-label="Date"],td[data-label="Time"],td[data-label="Duration"]){white-space:nowrap;overflow-wrap:normal;word-break:normal}
