:root{--sidebar:232px}
body{font-size:14px;line-height:1.5}
.sidebar{padding:14px 10px 12px}
.brand{padding:0 8px 14px;font-size:18px}
.brand-mark{width:30px;height:30px;border-radius:8px;margin-right:6px}
.brand-mark i{font-size:15px}
.brand.has-logo{padding:8px 4px 16px}
.brand-logo{max-height:44px;max-width:188px}
.nav-label{margin:8px 10px 4px;font-size:10px}
.nav-link,.nav-group summary{gap:10px;padding:8px 10px;margin:1px 0;border-radius:8px;font-size:14px}
.nav-link.active:before{left:-10px;height:20px;width:3px}
.submenu{margin:2px 0 6px 24px;padding-left:10px}
.submenu a{padding:6px 8px;font-size:13px}
.sidebar-bottom{padding-top:12px}
.help{gap:8px;padding:8px 10px;border-radius:8px;font-size:13px}
.profile{gap:8px;margin-top:12px;padding:12px 4px 0}
.profile>span{width:30px;height:30px;font-size:10px}
.profile b{font-size:12px}
.profile small{font-size:10px}
.topbar{height:64px;padding:0 22px}
.breadcrumb{font-size:14px}
.top-actions{gap:10px}
.global-search{width:220px;height:36px;padding:0 12px;border-radius:8px}
.mode{width:36px;height:36px;border-radius:9px}
.mode i,.menu i{font-size:16px}
.avatar{width:32px;height:32px;font-size:11px}
.avatar-button{display:grid;place-items:center;border:0;padding:0;cursor:pointer;color:var(--blue,#2d62e8);background:#e9edff;font-size:11px;font-weight:800}
.avatar-menu{position:relative}
.avatar-menu-dropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:12;display:none;min-width:220px;padding:8px;border:1px solid #e5eaf5;border-radius:12px;background:#fff;box-shadow:0 16px 32px rgba(40,55,100,.14)}
.avatar-menu.open .avatar-menu-dropdown{display:block}
.avatar-menu-user{padding:8px 10px 10px}
.avatar-menu-user b{display:block;font-size:13px;color:#112247}
.avatar-menu-user small{display:block;margin-top:2px;color:#8290ad;font-size:11px}
.avatar-menu-label{padding:4px 10px 2px;color:#8290ad;font-size:10px;font-weight:700;letter-spacing:.3px;text-transform:uppercase}
.avatar-menu-item{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:#18233d;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer;text-align:left}
.avatar-menu-item:hover,.avatar-menu-item.active{background:#f0f3ff;color:#2d62e8}
.avatar-menu-item i:first-child{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;color:#2d62e8;background:#e9f0ff;font-size:12px}
.avatar-menu-check{margin-left:auto;color:#2d62e8;font-size:14px}
.avatar-menu-item.danger{color:#d64545}
.avatar-menu-item.danger i:first-child{color:#d64545;background:#ffe9eb}
.avatar-menu-item.danger:hover{background:#fff1f1;color:#d64545}
.avatar-menu-divider{height:1px;margin:6px 0;background:#e5eaf5}
.avatar-menu-logout{margin:0}
.dark .avatar-menu-dropdown{background:#182235;border-color:#35435d}
.dark .avatar-menu-user b,.dark .avatar-menu-item{color:#eef3ff}
.dark .avatar-menu-user small,.dark .avatar-menu-label{color:#a9b5cb}
.dark .avatar-menu-item:hover,.dark .avatar-menu-item.active{background:#263653;color:#7ea2ef}
.dark .avatar-menu-divider{background:#35435d}
.dark .avatar-button{background:#202d46;color:#7ea2ef}
.container{padding:16px 20px 20px}
.app-footer{padding:14px 22px;font-size:12px}
.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:12px}
.dashboard-hero h1,.heading h1,.dash-head h1{margin:0;font-size:22px;letter-spacing:-.6px}
.dash-head{margin-bottom:12px}
.dash-head p{margin:4px 0 0;font-size:13px}
.dash-head time{font-size:12px}
.page-menu-button{min-height:34px;padding:0 14px;border-radius:8px;font-size:13px;gap:6px}
.page-menu-button i{font-size:13px}
.page-menu-dropdown{top:40px;min-width:190px;padding:6px;border-radius:10px}
.page-menu-dropdown a,.page-menu-dropdown button{gap:8px;padding:8px 10px;border-radius:7px;font-size:13px}
.page-menu-dropdown i{width:20px;height:20px;font-size:12px}
.button{min-height:34px;padding:0 14px;border-radius:8px;font-size:13px;gap:6px;box-shadow:0 4px 10px #2860de28}
.stats{gap:12px;margin:12px 0 16px}
.stats article{min-height:76px;padding:12px 14px;gap:12px;border-radius:12px}
.stats i,.stats article>i.bi{width:36px;height:36px;border-radius:10px;font-size:16px}
.stats article:after,.chart-card:after,.card:after,.table-card:after,.ticket-bulk:after,.notice:after,.form-section:after,.repair-action-card:after,.account-card:after{width:44px;height:44px;right:-8px;bottom:-12px}
.stats article:after,.chart-card:after,.card:after,.table-card:after,.ticket-bulk:after,.notice:after,.form-section:after,.repair-action-card:after{content:'';position:absolute;border-radius:18px 0 0;background:#e1e2ff;pointer-events:none;z-index:0}
.card-head,.table-wrap,.bars,.line-chart-wrap,.form-grid,.contact-columns,.settings-stack,.ticket-bulk>*{position:relative;z-index:1}
.form-section,.ticket-bulk,.notice,.repair-action-card{position:relative;overflow:hidden}
.stats small,.stats em{font-size:11px}
.stats strong{margin:1px 0;font-size:24px;letter-spacing:-.5px}
.card{padding:16px;border-radius:12px}
.card-head{margin-bottom:12px;gap:10px}
.card h3{font-size:15px}
.table-card .card-head{padding:14px 16px 10px}
.toolbar{margin-bottom:12px;gap:8px}
.toolbar input,.toolbar select,input,select,textarea{height:36px;padding:0 12px;border-radius:8px;font-size:14px}
textarea{height:auto;padding:8px 10px}
.toolbar input,.live-search{max-width:360px}
.live-search input{width:100%}
th,td{padding:9px 12px}
th{font-size:11px}
td{font-size:13px}
td b{font-size:13px}
td small{font-size:11px}
.table-footer{padding:10px 16px;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.pager-size{margin:0}
.pager-size-label{display:inline-flex;align-items:center;gap:8px;color:#8290aa;font-size:12px;font-weight:600}
.pager-size select{height:30px;min-width:84px;padding:0 10px;border:1px solid #dfe5f1;border-radius:8px;background:#fff;color:var(--ink,#112247);font-size:12px;font-weight:700}
.pager-buttons{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.dark .pager-size select{background:#202d46;border-color:#35435d;color:#eef3ff}
.dark .pager-size-label{color:#a9b5cb}
.pager-button{width:26px;height:26px}
.status,.ticket-badge,.movement-status,.direction-tag,.service-status,.device-status,.user-status,.login-status{padding:4px 8px;font-size:11px;min-width:0}
.action-group{border-radius:7px}
.action-btn{width:30px;height:28px}
.action-btn i{font-size:13px}
.ticket-bulk{gap:8px;margin:0 0 12px;padding:8px 10px;border-radius:10px}
.ticket-bulk .button,.ticket-bulk select{min-height:32px;padding:0 12px;font-size:13px}
.check-col{width:34px}
.form-grid{gap:12px;padding:16px}
.form-section>.form-grid,.form-section>.contact-columns{padding-top:16px}
.contact-columns{gap:20px;padding:16px}
.form-grid label,.contact-columns label,.auth-form label,.settings-stack>label,.setting-logo-block,.wa-groups-block,.wa-select-block{font-size:12px}
.form-actions{gap:8px}
.notice{margin-bottom:12px;padding:10px 12px;font-size:13px}
.app-modal-card{padding:20px 18px 16px;border-radius:14px}
.app-modal-card h3{margin:10px 0 6px;font-size:17px}
.app-modal-card p{font-size:13px}
.app-modal-icon{width:42px;height:42px;font-size:18px}
.auth-card{padding:24px 22px}
.auth-card h1{font-size:24px}
.auth-brand{font-size:20px;margin-bottom:16px}
.auth-copy{font-size:13px}
.auth-brand .brand-logo{max-height:32px}
.auth-form .button{min-height:36px}
.settings-stack{gap:14px;padding:16px}
.settings-stack textarea{min-height:160px;padding:10px 12px;font-size:13px}
.setting-hint,.status-note,.wa-select-box small,.wa-select-empty{font-size:12px}
.wa-select-box label{font-size:13px}
.wa-select-box label{padding:8px 10px;margin:0 0 6px}
.bars{height:200px;padding:20px 8% 0}
.bar-group .bar,.bar-group i{width:32px}
.dashboard-grid{gap:12px;margin-bottom:14px}
.dashboard-charts{grid-template-columns:repeat(3,minmax(0,1fr))}
.bars-compact{height:180px;padding:16px 8% 0}
.bar-group .bar.bar-issue{background:linear-gradient(#f87171,#dc2626);box-shadow:0 7px 14px #dc262638}
.bar-group .bar.bar-progress{background:linear-gradient(#fbbf24,#d97706);box-shadow:0 7px 14px #d9770638}
.bar-group .bar.bar-solved{background:linear-gradient(#34d399,#059669);box-shadow:0 7px 14px #05966938}
.line-chart-wrap{position:relative;height:180px;padding:12px 10px 8px;border-bottom:1px solid #e7ecf5;background:repeating-linear-gradient(to top,transparent 0,transparent 34px,#edf1f8 35px)}
.line-chart{display:block;width:100%;height:calc(100% - 28px);overflow:visible}
.line-chart-area{fill:rgba(45,98,232,.12)}
.line-chart-line{fill:none;stroke:#2d62e8;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.line-chart-dot{fill:#2d62e8;stroke:#fff;stroke-width:.6}
.line-chart-labels{display:flex;justify-content:space-between;gap:8px;margin-top:6px;color:#7888af;font-size:10px}
.line-chart-labels span{display:grid;gap:2px;text-align:center}
.line-chart-labels b{color:#102b62;font-size:11px}
.dark .line-chart-wrap{background:repeating-linear-gradient(to top,transparent 0,transparent 34px,#1d2a40 35px);border-color:#2b3850}
.dark .line-chart-area{fill:rgba(126,162,239,.16)}
.dark .line-chart-line{stroke:#7ea2ef}
.dark .line-chart-dot{fill:#7ea2ef;stroke:#182235}
.dark .line-chart-labels,.dark .line-chart-labels b{color:#a9b5cb}
.dark .card:after,.dark .table-card:after,.dark .ticket-bulk:after,.dark .notice:after,.dark .form-section:after,.dark .repair-action-card:after,.dark .stats article:after,.dark .chart-card:after{background:#26314d}
.ticket-template-card textarea{min-height:180px;padding:10px}
@media(max-width:1050px){
  .container,.topbar{padding-left:16px;padding-right:16px}
  .dashboard-charts{grid-template-columns:1fr}
}
@media(max-width:650px){
  .topbar{height:56px}
  .container{padding:14px 12px}
  .dashboard-hero h1,.heading h1,.dash-head h1{font-size:20px}
  .heading{
    display:flex !important;
    justify-content:space-between;
    align-items:center;
    flex-wrap:nowrap;
    gap:10px;
  }
  .heading>div:first-child{min-width:0;flex:1 1 auto}
  .heading h1{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .heading .page-menu,
  .heading>.button{flex:0 0 auto;margin-top:0 !important}
}
