:root{--ot-ink:#172b37;--ot-muted:#566675;--ot-line:#d9e1e7;--ot-accent:#f59e0b;--ot-bg:#f4f6f8}
*{box-sizing:border-box}body{overflow-x:hidden}.app-main,.content{min-width:0}.content{max-width:1600px;margin:0 auto;width:100%;padding:clamp(14px,2.3vw,32px)!important}
.card{min-width:0;overflow-wrap:break-word}.grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))!important;gap:14px!important}
.row{display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:flex-end}.row>*{min-width:min(100%,180px);max-width:100%}
.content input:not([type=checkbox]),.content textarea,.content select{max-width:100%;min-height:40px}.content button,.content a.button{min-height:40px}
.table-wrap,.ot-table-scroller{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch;border:1px solid var(--ot-line);border-radius:12px;background:white;margin:12px 0 24px}
.table-wrap table,.ot-table{border-collapse:collapse;width:100%;min-width:640px;font-size:14px}.table-wrap th,.table-wrap td,.ot-table th,.ot-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #e6ebef;vertical-align:top}
.ot-table th{white-space:nowrap;background:#eef2f5;color:#172b37}.ot-table small{display:block;font-size:12px;color:#61717b;margin-top:4px}.ot-table input[type=datetime-local]{width:205px;max-width:100%}.ot-table textarea{width:220px;max-width:100%;display:block}.ot-table label{display:block;font-size:12px;color:#556575;margin-bottom:6px}.ot-table button{margin-top:7px}
.ot-filter,.ot-location{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:12px 0;padding:15px;background:white;border-radius:12px;border:1px solid var(--ot-line)}.ot-filter label,.ot-location label{display:flex;gap:5px;flex-direction:column;font-size:13px;font-weight:700}.ot-location select{min-width:190px}.ot-alert{padding:13px 16px;border-radius:9px;margin:12px 0;font-weight:600}.ot-error{background:#fff1f2;color:#9e2835}.ot-success{background:#e8f7f2;color:#076343}
.ot-subtitle{color:var(--ot-muted)}.ot-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;margin:12px 0 22px}.ot-metric{background:white;padding:16px;border:1px solid var(--ot-line);border-radius:12px}.ot-metric span{font-size:13px;color:var(--ot-muted);display:block}.ot-metric strong{font-size:clamp(21px,2.4vw,30px);display:block;padding-top:5px;color:var(--ot-ink)}
.ot-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:13px}.ot-settings label{display:flex;gap:9px;align-items:start;padding:12px;background:white;border:1px solid var(--ot-line);border-radius:9px}.ot-settings input{min-height:auto!important;margin-top:3px}.ot-settings label span{font-size:13px;color:var(--ot-muted)}
.ot-warning{padding:14px;background:#fffae8;border:1px solid #e5cd85;border-radius:9px}.ot-email{width:100%;min-height:44px}.ot-primary{background:#172b37;color:white;font-weight:700;border-radius:8px;padding:11px 17px}.ot-fine{font-size:12px;color:var(--ot-muted)}
@media(max-width:900px){.sidebar{z-index:200}.topbar-user{display:none}.content{padding:14px!important}.page-heading h1{font-size:clamp(20px,5vw,28px)}.ot-metric strong{font-size:24px}.ot-table{min-width:560px}}
@media(max-width:600px){.content .row>*{flex:1 1 100%;width:100%}.ot-filter>*{flex:1 1 100%}.ot-filter button{width:100%}.ot-table{font-size:13px}.ot-table th,.ot-table td{padding:10px}.ot-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ot-metric{padding:12px}.ot-metric strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:0.01ms!important}}
