/* Muted slate palette shared by every CRM screen. */
.employee-device-links{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.dictionary-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.dictionary-card{margin-bottom:16px}
.dictionary-card>summary{display:flex;align-items:center;gap:10px;padding:20px 24px;cursor:pointer;font-weight:600}
.dictionary-card>summary::after{content:'⌄';margin-left:auto}
.dictionary-card[open]>summary{border-bottom:1px solid var(--line)}
.dictionary-card[open]>summary::after{content:'⌃'}
.dictionary-card-body{padding:20px 24px}
.dictionary-entries,.dictionary-add{max-width:480px}
.dictionary-entry{display:flex;align-items:center;gap:6px;padding:5px 0;min-height:46px}
.dictionary-entry-label{flex:1;overflow-wrap:anywhere;font-size:.875rem}
.dictionary-entry-actions{display:flex;gap:0}
.dictionary-entry .icon-button{width:30px;height:32px;font-size:1.1rem}
.dictionary-entry .icon-button:disabled{opacity:.3;cursor:default}
.dictionary-add{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.dictionary-add-row{display:flex;align-items:center;gap:10px}
.dictionary-add-row>label{flex:1;min-width:0}
.dictionary-add-row .button{white-space:nowrap}
.equipment-form~.alert[hidden]{display:none}
.employee-list{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.employees-table{min-width:800px;white-space:normal}
.employees-table td,.employees-table th{padding:14px 16px;overflow-wrap:anywhere}
.employees-table td:first-child,.employees-table th:first-child{width:1%;white-space:nowrap;text-align:center}
.employees-table tr{cursor:default}
#employees-panel tr[hidden],#equipment-error[hidden]{display:none}
.equipment-label{display:block;font-size:.875rem;font-weight:600;margin-bottom:8px}
.equipment-picker{flex:1;min-width:0;border:1px solid var(--line);border-radius:7px;background:#f0f3f5;font-size:.8125rem}
.equipment-picker summary{padding:12px;cursor:pointer}
.equipment-options{max-height:180px;overflow:auto;padding:0 12px 12px}
.form-stack .equipment-options label{display:flex;flex-direction:row;align-items:center;font-weight:400;margin-top:8px}
.form-stack .equipment-options input{width:18px;height:18px;flex-shrink:0;padding:0;accent-color:var(--green)}
.equipment-content{padding:24px}
.equipment-actions{display:flex;justify-content:flex-start;margin-bottom:24px}
#equipment-panel{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.equipment-table{min-width:820px;white-space:normal}
.equipment-table th,.equipment-table td{padding:14px 16px;overflow-wrap:anywhere}
.equipment-table th:first-child,.equipment-table td:first-child{width:1%;white-space:nowrap;text-align:center}
.equipment-table th:nth-child(5),.equipment-table td:nth-child(5){width:190px;min-width:190px}
.equipment-table tr{cursor:default}
#equipment-panel tr[hidden]{display:none}
.equipment-form{margin-top:24px}
.secret-error{display:block;color:#803e37;font-size:.75rem;white-space:normal}
.network-left{min-width:0}
.network-wan{margin-bottom:26px}
.client-network-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;padding:27px}
.network-lan,.network-vlan{min-width:0}
.network-address{border:1px solid var(--line);border-radius:10px;margin:0;padding:20px;min-width:0}
.network-address legend{padding:0 8px;color:var(--ink);font-weight:600;font-size:.875rem}
.network-heading{display:flex;justify-content:flex-start;align-items:center;margin-bottom:18px;gap:16px}
.network-list{border:1px solid var(--line);border-radius:10px}
.network-list table{white-space:normal;table-layout:fixed}
.network-list th,.network-list td{padding:14px 16px}
.network-list tr{cursor:default}
.network-name{padding:0;background:transparent;color:#355e77;text-align:left;overflow-wrap:anywhere;font-weight:600}
.network-name:hover{text-decoration:underline}
.network-password-cell label{font-size:0;gap:0}
.network-password-cell .password-input{width:100%}
.network-password-cell input{min-width:0}
.network-empty{color:var(--muted)}
.vlan-form{margin-top:24px}
@media(max-width:1000px){.client-network-grid{grid-template-columns:1fr}}
.client-history .orders-table th,.client-history .orders-table td{padding-left:16px;padding-right:16px}
.client-history .orders-table td:nth-child(2),.client-history .orders-table td:nth-child(3),.client-history .orders-table td:nth-child(4){white-space:normal;overflow-wrap:anywhere}
.client-avatar{overflow:hidden}
.client-avatar img{display:block;width:100%;height:100%;object-fit:contain}
.content:has(.client-back){padding-top:20px}
.client-back{margin-bottom:22px}
.client-logo{padding:0;overflow:hidden;border:1px solid var(--line)}
.client-logo:hover{border-color:var(--green)}
.client-logo img{width:100%;height:100%;object-fit:contain}
.client-tabs{justify-content:flex-start;gap:28px;flex-wrap:wrap}
.client-company-form{padding:27px}
.client-section-empty{padding:32px 27px;color:var(--muted)}
.contact-controls select{min-width:0;flex:1}
.contact-plus{flex:0 0 44px;width:44px;height:44px;padding:0}
.orders-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.orders-filters{display:flex;align-items:center;gap:16px;flex:1;flex-wrap:wrap}
.orders-filters label{display:flex;align-items:center;gap:9px;font-size:.8125rem;color:var(--ink)}
.orders-filters label:last-child{flex:1;min-width:210px;max-width:440px}
.orders-filters input,.orders-filters select{background:#f0f3f5;border:1px solid #b9c7d1;border-radius:7px;color:var(--ink);padding:10px 12px;min-height:44px;font:inherit}
.orders-filters input{width:100%;min-width:0}.orders-filters select{min-width:78px}
.orders-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px;color:var(--muted);font-size:.8125rem}
.orders-pagination>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.orders-pagination .button:disabled{opacity:.45;cursor:default}
#orders-panel tr[hidden]{display:none}
.content:has(.orders-actions),.content:has(.clients-actions){padding-top:24px}
.orders-actions,.clients-actions{display:flex;justify-content:flex-start;margin-bottom:24px}
.clients-heading{justify-content:flex-start;flex-wrap:wrap}
.clients-heading .clients-total{margin-left:auto;font-size:1rem}
.clients-limit{display:flex;align-items:center;gap:9px;font-size:.8125rem}
.clients-limit select{min-height:44px;padding:10px 12px;background:#f0f3f5;border:1px solid #b9c7d1;border-radius:7px;color:var(--ink);font:inherit}
#clients-panel tbody tr{cursor:default}
#clients-panel .client-link{width:fit-content}
.clients-search{width:440px;max-width:100%}
.clients-search input{width:100%;min-height:44px;padding:10px 12px;background:#f0f3f5;border:1px solid #b9c7d1;border-radius:7px;color:var(--ink);font-size:.8125rem}
#clients-panel tr[hidden]{display:none}
.order-scroll .orders-table td:nth-child(5),.order-scroll .orders-table td:nth-child(6),.order-scroll .orders-table td:nth-child(7){text-align:center}
.order-scroll .orders-table th:nth-child(n+5),.order-scroll .orders-table td:nth-child(n+5){width:140px;min-width:140px;white-space:nowrap;padding-left:16px;padding-right:16px}
.order-scroll .orders-table th:nth-child(3),.order-scroll .orders-table td:nth-child(3){width:12%;padding-left:24px;padding-right:24px;text-align:left}
.order-scroll .orders-table th:nth-child(4),.order-scroll .orders-table td:nth-child(4){width:14%;padding-left:24px;padding-right:24px;text-align:left}
.content{max-width:none;padding-left:16px;padding-right:16px}
.topbar,.app-footer{padding-left:16px;padding-right:16px}
:root{color:#293945;background:#dce3e8;--green:#456d83;--ink:#293945;--muted:#5d6e7a;--line:#c4cfd7;--dark:#293642}
.sidebar{background:var(--dark);color:#c4d0d9}
.nav-link.active{background:#3c5364;color:#f0f3f5;box-shadow:none}
.nav-link.active .icon{color:#c6d7e2}
.nav-link:hover,.logout:hover{background:#354b5b;color:#fff}
.workspace-label,.profile{border-color:#485967}
.workspace-mark,.nav-count{background:#435d6e;color:#e1e9ee}
.workspace-label small,.workspace-badge,.nav-label,.version-label,.profile-name small,.logout,.profile>.icon{color:#b6c5cf}
.brand-dot,.heading-dot{color:#b6756d}
.user-avatar{background:#c3d0d9;color:#304959}
.topbar{background:#e7ecf0;border-top-color:#a97069}
.breadcrumbs strong{color:var(--ink)}
.breadcrumbs,.topbar-brand,.eyebrow,.section-tag{color:var(--muted)}
.panel,.stat-card,.knowledge-card,.auth-main,dialog{background:#eaf0f3}
.stat-card:hover,.knowledge-card:hover{border-color:#839ba9;box-shadow:0 4px 14px #263d4c12}
.primary-stat{background:#ccdce5;border-color:#a9bfcc}
.primary-stat strong,.primary-stat .stat-top{color:#314f62}
.stat-top,.stat-bottom,.primary-stat .stat-bottom,.stat-top .icon{color:#506877}
.button{background:var(--green);border-color:var(--green)}
.button:hover{background:#35576c;border-color:#35576c}
.button.secondary{background:#dfe7ed;border-color:#b8c7d1;color:#344e5e}
.button.secondary:hover{background:#d1dde5}
.form-stack input,.form-stack select,.form-stack textarea{background:#f0f3f5;border-color:#b9c7d1;color:var(--ink)}
.form-stack label,.contact-field>label,.invoice-fields legend{color:#344d5e}
input::placeholder,textarea::placeholder{color:#687c89}
.ticket-fields input[type=checkbox]{accent-color:var(--green)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #557f99;outline-offset:3px}
.icon-button:hover,.reveal:hover{background:#d6e1e8}
th,.orders-table th{background:#ccd7df;color:#354a59}
td,.orders-table td{border-color:#ced9e0;color:#344b5b}
tbody tr:hover,.orders-table tr:hover{background:#dce6ed}
.ticket,.tab-links a,.text-link,.back-link,.link-button,.client-link{color:#355e77}
.tab-links .active{color:#263e4f;text-decoration:underline;text-underline-offset:6px}
.due.overdue{background:#e4c8c4;color:#783d36}
.status-active{background:#d2e1eb;color:#34566e}
.status-paused{background:#e7dcc6;color:#735c30}
.status-completed{background:#d5e1d7;color:#42624a}
.invoice-badge{background:#e8d8d5;border-color:#c7a6a0;color:#7d4840}
.invoice-badge.done{background:#d5e1d7;border-color:#acc3b1;color:#42624a}
.count-pill,.client-avatar,.big-avatar,.empty-icon{background:#d7e2e9;color:#4b6475;border-color:#c4d2dc}
.panel-heading p,.table-footer,.subtle-label,.client-link small,.client-info dt,.app-footer,.dialog-intro,.auth-note,.auth-copyright,.empty-state p,.module-empty p,.knowledge-card p,.knowledge-card small,.optional{color:var(--muted)}
.client-info dd,.dictionary-item summary,.dictionary-values>div,.user-management summary{color:#3c5565}
.detail-note{background:#e1e8ed;color:#567080}
.detail-note h3,.detail-note p{color:#5d707c}
.auth-message .eyebrow,.auth-message p,.auth-modules,.auth-bottom,.auth-bottom span{color:#bdcdd7}
.auth-message h1 span{color:#a7c1d1}
.auth-line{background:#607c8d}
dialog::backdrop{background:#1e2d3a99}
.error{background:#eddbd9;border-color:#cfa7a3;color:#803e37}
.success{background:#dce6df;border-color:#afc6b6;color:#3e634a}
.order-scroll .orders-table th:first-child,.order-scroll .orders-table td:first-child{width:1%;white-space:nowrap;padding-left:16px;padding-right:16px}
@media(max-width:580px){.sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr))}.panel-heading{flex-wrap:wrap}.tab-links{padding-bottom:8px}}

.dictionary-edit{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.dictionary-edit input{width:100%;min-width:0;background:#f0f3f5;border:1px solid #b9c7d1;border-radius:4px;padding:8px 10px;color:var(--ink);font:inherit}
.dictionary-drag{cursor:grab;font-size:26px;line-height:1;color:#8196a4;flex-shrink:0}
.dictionary-drag:active{cursor:grabbing}
.dictionary-entry.dragging{opacity:.45;background:#d4e0e8}
.dictionary-feedback{font-size:13px;margin:8px 0;color:var(--muted)}
.dictionary-feedback:empty{display:none}
.employee-dialog{width:900px;max-width:calc(100vw - 32px)}
.employee-dialog .equipment-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px}
.employee-dialog .equipment-form>.dialog-actions{grid-column:1 / -1;margin-top:8px}
.employee-dialog .employee-secret label{display:flex;flex-direction:column;gap:8px}
.employee-dialog .field-help{margin:5px 0 0;font-size:12px}
.employee-dialog .equipment-options{max-height:150px;overflow:auto}
@media(max-width:640px){.employee-dialog .equipment-form{grid-template-columns:1fr}}
.employee-column{display:flex;flex-direction:column;gap:14px;min-width:0}
.dictionary-entry .dictionary-drag{font-size:26px}
.dictionary-drag{touch-action:none;user-select:none}
.ticket-billing-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;min-width:0}
.ticket-billing-fields .invoice-fields{min-width:0}
.ticket-billing-fields .amount-label{min-width:0}
.ticket-billing-fields .amount-label input{width:100%;min-width:0}
#billing-panel .orders-table th:first-child,#billing-panel .orders-table td:first-child{width:1%;white-space:nowrap}
@media(max-width:580px){.ticket-billing-fields{grid-template-columns:1fr}}
.password-history-dialog{width:660px;max-width:calc(100vw - 32px)}
.password-history-dialog th,.password-history-dialog td{padding:12px}
.password-history-dialog .password-input{min-width:170px}
.password-history-link{justify-self:start;align-self:flex-start;text-decoration:underline}
.passwords-table th:nth-last-child(-n+2),.passwords-table td:nth-last-child(-n+2){width:1%;white-space:nowrap;text-align:center}
.password-history-dialog{width:460px;padding:20px}
.password-history-dialog table{table-layout:fixed;white-space:normal}
.password-history-dialog th,.password-history-dialog td{padding:9px 6px;overflow-wrap:anywhere;font-size:12px}
.password-history-dialog th:nth-child(2){width:42%}
.password-history-dialog .password-input{min-width:0;width:100%}
.password-history-dialog .password-input input{min-width:0;width:100%;padding-left:8px}
.settings-tab-content{padding:24px;min-height:160px}
.settings-tab-content>.dictionary-card:first-child{margin-top:0}
.settings-tab-content>.dictionary-card:last-child{margin-bottom:0}
@media(max-width:580px){.settings-tab-content{padding:16px}}
.status.status-in-progress{background:#f1dcc3;color:#81552e}
.status.due-date{display:inline-block;border:1px solid transparent;background:transparent;color:inherit}
.status.due-date.overdue{background:#e4c8c4;border-color:#cda9a3;color:#783d36}
.contact-details-link{text-decoration:none;text-underline-offset:3px;font-weight:400}
.contact-details-dialog{width:380px;max-width:calc(100vw - 32px)}
.contact-details{margin:20px 0 0}
.contact-details dt{font-size:13px;color:var(--muted);margin-top:14px}
.contact-details dd{margin:5px 0 0;overflow-wrap:anywhere}
.client-history .history-orders-table th:nth-child(4),.client-history .history-orders-table td:nth-child(4){width:140px;min-width:140px;white-space:nowrap;padding-left:16px;padding-right:16px;text-align:center}
.client-history .history-orders-table td:nth-child(n+4){white-space:nowrap;text-align:center}
.simple-list tr[hidden]{display:none}
.simple-list th:first-child,.simple-list td:first-child{width:1%;white-space:nowrap}
.simple-list th:last-child,.simple-list td:last-child{width:150px;white-space:nowrap}
.system-parameters{max-width:720px;gap:24px}
.parameter-box{border:1px solid var(--line);border-radius:10px;padding:20px;margin:0}
.parameter-box legend{padding:0 8px;font-weight:600}
.parameter-box input{max-width:240px}
.account-profile{margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.parameter-box .field-help{margin:10px 0 0;line-height:1.5}

.contact-details-link:hover,.anydesk-link,.anydesk-link:hover{text-decoration:none}
.dashboard-intro{margin:0 0 24px;color:var(--muted);font-size:.95rem}
.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.dashboard-grid .dashboard-card{display:block;min-width:0;padding:24px}
.dashboard-card .stat-top h2{font-size:1rem;letter-spacing:0}
.dashboard-card dl{margin:22px 0 0}
.dashboard-card dl>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-top:1px solid var(--line)}
.dashboard-card dt{font-size:.82rem;color:var(--muted)}
.dashboard-card dd{margin:0;font-size:1.4rem;font-weight:600;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;color:var(--ink)}
.dashboard-card dd small{font-size:.7rem;font-weight:500}
@media(max-width:1250px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.dashboard-grid{grid-template-columns:1fr}.dashboard-grid .dashboard-card{padding:20px}.dashboard-card dd{font-size:1.2rem}}

.equipment-owner-options{max-height:180px;overflow:auto;padding:0 12px 12px}.form-stack .equipment-owner-options label{display:flex;flex-direction:row;align-items:center;font-weight:400;margin-top:8px}.form-stack .equipment-owner-options input{width:18px;height:18px;flex-shrink:0;padding:0;accent-color:var(--green)}

.order-scroll .completed-orders-table td:nth-child(n+5){text-align:center}
#billing-panel .billing-amount{text-align:left;white-space:nowrap;font-variant-numeric:tabular-nums}

#equipment-panel .equipment-table{table-layout:auto}
#equipment-panel .equipment-table th:not(:nth-child(3)),
#equipment-panel .equipment-table td:not(:nth-child(3)){width:1%;min-width:0;white-space:nowrap;overflow-wrap:normal}
#equipment-panel .equipment-table th:nth-child(3),
#equipment-panel .equipment-table td:nth-child(3){width:auto;min-width:160px;white-space:normal;overflow-wrap:anywhere}
#equipment-panel .equipment-table td:not(:nth-child(3)) .network-name{white-space:nowrap;overflow-wrap:normal}
#equipment-panel .orders-filters label:has(#equipment-search){flex:0 0 440px;min-width:210px;max-width:100%}
#equipment-panel .orders-filters .equipment-sort-label{flex:0 0 auto;min-width:0;max-width:none}
.secret-copyable{padding-right:44px}.secret-copyable .reveal{right:48px}.secret-copyable .secret-copy{position:absolute;right:0;top:4px}.secret-copy:disabled{opacity:.3;cursor:default}
@media(max-width:580px){#equipment-panel .orders-filters label:has(#equipment-search){flex-basis:100%}}

.knowledge-tags{white-space:normal;overflow-wrap:anywhere}

.equipment-dependent[hidden]{display:none!important}
