:root{color:#18212f;background:#f4f7fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;-webkit-text-size-adjust:100%}button,input,select{font:inherit}button{cursor:pointer}.app-shell{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100vh}.reload-status{position:fixed;top:18px;right:18px;z-index:20;max-width:min(360px,calc(100vw - 36px));padding:10px 14px;color:#17324a;background:#fff7d6;border:1px solid #e6c766;border-radius:8px;box-shadow:0 12px 28px #1f2e4324;font-size:13px;font-weight:700}aside{display:flex;flex-direction:column;gap:12px;padding:16px 12px;color:#eef6ff;background:#132235;overflow:visible}.brand{display:grid;align-items:start;gap:6px;min-height:0;padding:0 4px 8px}.brand img{width:128px;max-height:46px;object-fit:contain}.brand strong,.brand span{display:block}.brand span{color:#9fb4ce;font-size:11px}nav{display:grid;gap:3px;position:relative}nav a,.logout,.side-actions button{display:flex;align-items:center;gap:8px;width:100%;min-height:32px;padding:0 9px;color:#d7e6f8;background:transparent;border:1px solid transparent;border-radius:8px;text-align:left;text-decoration:none;font-size:12px}input,select,textarea,button{-webkit-tap-highlight-color:rgba(23,107,135,.18)}.side-actions{display:grid;gap:5px;padding-top:8px;border-top:1px solid #2b4668}.side-actions button{color:#fff;background:#176b87;border-color:#176b87}.side-actions button.danger-action{background:#8f2430;border-color:#a94450}.side-actions button.danger-action:hover{background:#a32030;border-color:#bd5964}.mobile-menu-toggle{display:none}.nav-group{position:relative}.nav-group:after{position:absolute;top:0;left:100%;display:block;width:14px;height:100%;content:""}.nav-group>a{position:relative}.submenu-arrow{margin-left:auto}.submenu{position:absolute;top:0;left:calc(100% + 6px);z-index:30;display:none;min-width:220px;padding:8px;background:#132235;border:1px solid #36587c;border-radius:8px;box-shadow:0 18px 36px #0a142338}.nav-group:hover .submenu{display:grid;gap:6px}.submenu a{min-height:38px}nav a.active,nav a:hover,.logout:hover,.side-actions button:hover{background:#203855;border-color:#36587c}.logout{margin-top:auto}main{display:flex;flex-direction:column;min-width:0;height:100vh;min-height:0;padding:12px 14px;overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.topbar h1{margin:0;font-size:21px;line-height:1.1;letter-spacing:0}.topbar p{margin:2px 0 0;color:#5c6b7d;font-size:12px;line-height:1.2}.toolbar,.form-actions,.row-actions,.dashboard-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.toolbar-field{display:grid;grid-template-columns:auto minmax(170px,220px);align-items:center;gap:6px}.toolbar-field.compact{grid-template-columns:auto minmax(86px,110px)}.toolbar-field span{color:#52647a;font-size:12px;font-weight:700}.hidden-file-input{display:none}.toolbar button,.form-actions button,.login-panel button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:26px;min-height:26px;padding:0 9px;color:#fff;background:#176b87;border:0;border-radius:8px}.form-actions button.secondary{color:#27384d;background:#dfe8f2}.editor,.table-wrap{background:#fff;border:1px solid #dbe4ef;border-radius:8px;box-shadow:0 10px 24px #1f2e430f}.editor{padding:9px;margin-bottom:8px}.compact-editor{padding:9px}.editor-title{display:flex;align-items:center;gap:6px;margin-bottom:7px;font-size:13px;font-weight:700}.form-grid{display:grid;grid-template-columns:repeat(6,minmax(128px,1fr));gap:7px}.compact-editor .form-grid{grid-template-columns:repeat(6,minmax(130px,1fr));gap:6px}.compact-editor label{gap:3px;font-size:12px}.compact-editor input,.compact-editor select{height:26px;min-height:26px;padding:0 8px;border-radius:6px}.compact-editor .check-field{height:26px;min-height:26px;padding:0 7px}label{display:grid;gap:3px;color:#46586d;font-size:12px}input,select{width:100%;height:26px;min-height:26px;padding:0 8px;color:#18212f;background:#fbfdff;border:1px solid #cfd9e6;border-radius:6px;font-size:12px}.password-input{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px}.password-input button{height:26px;min-height:26px;padding:0 8px;color:#176b87;background:#eaf5f8;border:1px solid #cfe5ec;border-radius:6px;font-weight:700}.check-field{grid-template-columns:1fr 24px;align-items:center;gap:6px;height:26px;min-height:26px;align-self:end;padding:0 7px;background:#f8fbff;border:1px solid #dbe4ef;border-radius:6px}.check-field span{line-height:1}.check-field input{justify-self:end;width:14px;height:14px;min-height:14px;margin:0;padding:0}.form-actions{margin-top:8px}.message{color:#176b42;font-weight:700}.summary-panel{display:grid;gap:8px;margin-bottom:8px;min-height:0;overflow:hidden}.summary-controls{max-width:260px}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.usage-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:8px}.summary-card{display:grid;gap:4px;min-height:78px;padding:10px;background:#fff;border:1px solid #dbe4ef;border-radius:8px;box-shadow:0 10px 24px #1f2e430f}.summary-card span{color:#52647a;font-size:12px;font-weight:700}.summary-card strong{color:#17324a;font-size:26px;letter-spacing:0}.usage-card{display:grid;gap:6px;min-height:78px;padding:10px;background:#fff;border:1px solid #dbe4ef;border-radius:8px;box-shadow:0 10px 24px #1f2e430f}.usage-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.usage-head span{color:#52647a;font-size:13px;font-weight:700}.usage-head strong{color:#17324a;font-size:20px;letter-spacing:0}.usage-track{width:100%;height:9px;overflow:hidden;background:#e8eef5;border-radius:999px}.usage-fill{height:100%;background:#176b87;border-radius:inherit;transition:width .18s ease}.usage-card small{color:#52647a;font-weight:700}.dashboard-live{display:grid;gap:8px;min-height:0}.report-panel{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:8px;min-height:0;overflow:hidden}.report-controls{display:flex;gap:8px;max-width:none;flex-wrap:wrap}.report-controls label{min-width:220px}.chart-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:0}.chart-card{display:grid;gap:6px;padding:8px;background:#fff;border:1px solid #dbe4ef;border-radius:8px;box-shadow:0 10px 24px #1f2e430f}.chart-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.chart-legend{display:flex;gap:14px;color:#52647a;font-size:13px;font-weight:700}.chart-legend span{display:inline-flex;align-items:center;gap:6px}.chart-legend i{display:inline-block;width:18px;height:8px;border-radius:999px}.legend-total{background:#9ac2d0}.legend-peak{background:#a32030}.legend-average{background:#f0b429}.chart-wrap{overflow-x:auto}.chart-wrap svg{display:block;min-width:420px;width:100%;max-height:220px}@media(max-width:980px){.chart-stack{grid-template-columns:1fr}.chart-wrap svg{min-width:640px}}.chart-axis{stroke:#b8c7d8;stroke-width:1.2}.chart-grid{stroke:#edf2f7;stroke-width:1}.chart-bar{fill:#9ac2d0}.chart-peak-bar{fill:#a32030}.chart-line{fill:none;stroke:#a32030;stroke-linejoin:round;stroke-width:3}.chart-point{fill:#fff;stroke:#a32030;stroke-width:2}.chart-average-line{stroke:#f0b429;stroke-dasharray:8 6;stroke-linecap:round;stroke-width:3}.chart-label{fill:#52647a;font-size:12px;font-weight:700}.report-table{max-height:none;min-height:0;overflow:auto}.report-table th{height:22px}.section-title{display:flex;align-items:center;gap:8px;color:#263b54;font-weight:800}.dashboard-actions{padding:8px;background:#fff8f8;border:1px solid #efd1d6;border-radius:8px}.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:0 10px;color:#fff;background:#a32030;border:0;border-radius:8px}.table-wrap{flex:1 1 auto;min-height:0;overflow:auto;max-height:none;-webkit-overflow-scrolling:touch}.call-record-table{flex:1 1 auto;max-height:none;min-height:0}.call-record-table table{min-width:1120px}.call-record-table th,.call-record-table td{padding:4px 7px;font-size:12px;line-height:1.15}.call-record-table .sort-header{min-height:18px}.call-record-table .text-button,.call-record-table .icon-button{min-height:24px;padding:0 6px;font-size:12px}table{width:100%;border-collapse:collapse;min-width:780px}th,td{padding:12px 14px;border-bottom:1px solid #edf2f7;text-align:left;font-size:13px;vertical-align:middle}.compact-table th,.compact-table td{padding:4px 7px;font-size:12px;line-height:1.15}.compact-table table{min-width:720px}.compact-table .text-button,.compact-table .icon-button{min-height:24px;padding:0 6px;font-size:12px}.dense-table th,.dense-table td{max-width:220px;padding:3px 6px;font-size:11px;line-height:1.05;white-space:nowrap}.dense-table td{overflow:hidden;text-overflow:ellipsis}.dense-table .text-button,.dense-table .icon-button{min-height:22px;padding:0 5px;font-size:11px}.dense-table .row-actions{gap:4px;white-space:nowrap}.dense-table .row-actions svg{width:13px;height:13px}.live-call-table table{min-width:1160px}.resource-client-trunks th,.resource-client-trunks td{max-width:220px;padding:3px 6px;font-size:11px;line-height:1.05;white-space:nowrap}.resource-client-trunks td{overflow:hidden;text-overflow:ellipsis}.resource-client-trunks .secret-cell{gap:5px}.resource-client-trunks .secret-cell code{min-width:92px;font-size:11px}.resource-client-trunks .text-button,.resource-client-trunks .icon-button{min-height:22px;padding:0 5px;font-size:11px}th{position:sticky;top:0;z-index:1;color:#52647a;background:#f8fbff;font-weight:700;text-transform:capitalize}.sort-header{display:inline-flex;align-items:center;gap:6px;min-height:0;padding:0;color:inherit;background:transparent;border:0;font:inherit;text-transform:inherit}.sort-header span:last-child{color:#176b87;font-size:10px;font-weight:800}.total-row td{position:sticky;top:42px;z-index:1;background:#eef6fb;color:#263b54;font-weight:800}.report-table .total-row td{top:22px;z-index:2;box-shadow:0 1px #d7e5f0}.icon-button{min-height:32px;padding:0 10px;color:#263b54;background:#eef4fb;border:1px solid #d6e0ec;border-radius:8px}.icon-button.danger{color:#9d2332}button:disabled,.icon-button:disabled{cursor:not-allowed;opacity:.5}.pagination-bar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:10px;color:#52647a;font-size:13px;font-weight:700}.text-button{min-height:30px;padding:0 10px;color:#176b87;background:#eaf5f8;border:1px solid #cfe5ec;border-radius:8px;font-weight:700}.secret-cell{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.secret-cell code{min-width:130px;color:#263b54;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:12px}.login-screen{display:grid;place-items:center;min-height:100vh;padding:24px;background:linear-gradient(135deg,#132235,#176b87)}.login-panel{display:grid;gap:14px;width:min(420px,100%);padding:28px;background:#fff;border-radius:8px;box-shadow:0 24px 60px #00000038}.login-panel h1{margin:0;font-size:24px;letter-spacing:0}.login-logo{width:min(260px,100%);height:auto;justify-self:center;object-fit:contain}.error{margin:0;color:#a32030}@media(max-width:1180px){.app-shell{grid-template-columns:210px minmax(0,1fr)}aside{padding:14px 10px}.brand img{width:112px}nav a,.logout,.side-actions button{min-height:30px;padding:0 8px;font-size:11px}.form-grid,.compact-editor .form-grid{grid-template-columns:repeat(3,minmax(130px,1fr))}.toolbar-field{grid-template-columns:auto minmax(130px,180px)}}@media(max-width:900px){.app-shell{grid-template-columns:1fr;min-height:100dvh}aside{position:sticky;top:0;z-index:10;max-height:42dvh;padding:calc(10px + env(safe-area-inset-top)) 10px 10px;overflow:auto;-webkit-overflow-scrolling:touch}.brand{grid-template-columns:auto 1fr;align-items:center;padding-bottom:4px}.brand img{width:96px;max-height:34px}.brand strong{font-size:13px}.brand span{font-size:10px}nav{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}nav.mobile-open{display:grid}.mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:36px;color:#fff;background:#176b87;border:1px solid #2f819b;border-radius:8px;font-size:12px;font-weight:800}nav a,.logout,.side-actions button{min-height:34px;padding:0 8px;font-size:11px}nav a svg,.logout svg,.side-actions button svg{width:15px;height:15px}.submenu{position:static;grid-column:1 / -1;min-width:0;margin-top:6px;box-shadow:none}.nav-group.open .submenu{display:grid;gap:4px}.logout{display:none;margin-top:0}.logout.mobile-open{display:flex}main{height:auto;min-height:58dvh;padding:10px;overflow:visible}.topbar{align-items:stretch;flex-direction:column;gap:8px}.topbar h1{font-size:19px}.toolbar{align-items:stretch}.toolbar-field,.toolbar-field.compact{grid-template-columns:1fr;min-width:min(220px,100%)}.toolbar button,.form-actions button,.danger-button,.icon-button,.text-button{min-height:34px}.form-grid,.compact-editor .form-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}.editor{overflow:visible}.summary-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}.usage-grid{grid-template-columns:1fr}.report-panel{overflow:visible}.report-controls label{min-width:min(220px,100%);flex:1 1 180px}.table-wrap{max-height:62dvh}.call-record-table{max-height:66dvh}.pagination-bar{position:sticky;bottom:0;padding:8px 0;background:#f4f7fb}}@media(max-width:640px){.app-shell{display:block}aside{max-height:46dvh}.brand{grid-template-columns:1fr}.brand img{width:116px}nav{grid-template-columns:1fr 1fr}nav a,.logout,.side-actions button{min-height:36px;font-size:11px}.side-actions{display:none;grid-template-columns:1fr}.side-actions.mobile-open{display:grid}main{padding:8px}.topbar h1{font-size:18px}.toolbar,.form-actions,.dashboard-actions{display:grid;grid-template-columns:1fr;align-items:stretch}.toolbar-field,.toolbar-field.compact{min-width:0}.toolbar button,.form-actions button,.danger-button{width:100%}.form-grid,.compact-editor .form-grid,.summary-grid{grid-template-columns:1fr}.summary-card{min-height:64px}.summary-card strong{font-size:22px}.chart-wrap svg{min-width:560px}.login-screen{align-items:start;padding:calc(18px + env(safe-area-inset-top)) 14px 18px}.login-panel{gap:12px;padding:18px}.login-panel h1{font-size:20px}.login-logo{width:min(220px,100%)}}@media(max-width:420px){nav{grid-template-columns:1fr}aside{max-height:52dvh}.reload-status{top:8px;right:8px;max-width:calc(100vw - 16px)}.table-wrap{max-height:58dvh}.call-record-table{max-height:62dvh}}
