/* K60: aligned fields and clearly editable controls in both themes. */
.v2272-description-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(210px,27%)!important;align-items:stretch!important;gap:12px}
.v2272-description-row>.v2266-case-description,.v2272-description-row>.v2270-case-facts{height:auto!important;min-height:116px!important;margin:0!important;align-self:stretch}
.v2272-description-row>.v2270-case-facts{display:flex!important;flex-direction:column;gap:0!important}
.v2272-description-row>.v2270-case-facts>.kv{flex:1;min-height:116px!important;margin:0!important;height:auto!important;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}
.v2272-description-row .v2266-case-description{max-height:none!important;overflow:visible!important}
.v20-chat-message-head{justify-content:flex-start;gap:8px;flex-wrap:wrap;margin-bottom:5px}
.v20-chat-message-head>.v20-chat-tags{margin-left:auto;justify-content:flex-end}
.v20-chat-message-head>time{margin-left:4px}
.v20-chat-message-head>.btn{padding:2px 7px;min-height:24px;font-size:10px}
.v20-chat-text-wrap textarea{background:#fff2df!important;border:1px solid #c7893f!important;color:#253040!important;box-shadow:inset 3px 0 0 #e18b25}
.v20-chat-text-wrap textarea:focus{border-color:#b86b17!important;box-shadow:0 0 0 3px #edb96b55}
.v20-chat-text-wrap textarea::placeholder{color:#70552f!important}
html[data-zaphi-theme="dark"] .v20-chat-text-wrap textarea{background:#29384a!important;color:#f1f5fb!important;border-color:#7591b5!important;box-shadow:inset 3px 0 0 #b9cbe3}
html[data-zaphi-theme="dark"] .v20-chat-text-wrap textarea::placeholder{color:#c3d0e0!important}
html[data-zaphi-theme="dark"] .v20-chat-text-wrap textarea:focus{box-shadow:0 0 0 3px #88acd855}
.zpr-workspace-folders .v217-file-folder:hover,.v217-case-file[data-zpr-workspace-open]:hover{background:#fff0e0!important;box-shadow:inset 3px 0 #e77924;cursor:pointer}
.v217-case-file[data-zpr-workspace-open]:focus-visible{outline:2px solid #cf671c;outline-offset:-2px}
html[data-zaphi-theme="dark"] .zpr-workspace-folders .v217-file-folder:hover,html[data-zaphi-theme="dark"] .v217-case-file[data-zpr-workspace-open]:hover{background:#374458!important;color:#f2f5f9!important}
.zpr-preview-html{white-space:normal!important}
.zpr-preview-html table{font-size:13px}
.zpr-preview-html th{background:#edf1f5;color:#273344}
html[data-zaphi-theme="dark"] .zpr-preview-html th{background:#324256;color:#edf2f9}
.zaphi-user-list .badge{background:#dceee2!important;color:#1e5934!important;border:1px solid #96bba3}
html[data-zaphi-theme="dark"] .zaphi-user-list .badge{background:#274735!important;color:#dbffe5!important;border-color:#719d7f}
.z302-column-choice{display:flex;align-items:center;gap:4px;cursor:grab}
.z302-column-choice>label{flex:1;min-width:0}
.z302-column-choice>.btn{flex:0 0 26px;padding:2px;min-height:26px;margin:0}
.z302-column-choice>.btn:disabled{opacity:.35}
#v12CaseFilterBar .z301-column-menu{align-self:flex-end;margin-bottom:1px}
#v20SettingsHub{display:grid!important;grid-template-columns:240px minmax(0,1fr);gap:20px;align-items:start}
#v20SettingsHub>.v20-settings-main-tabs{display:flex!important;flex-direction:column;gap:4px;position:sticky;top:14px;margin:0;padding:8px;min-width:0;max-height:calc(100vh - 140px);overflow:auto;border:1px solid var(--color-border,#cbd2dc);border-radius:12px;grid-column:1;grid-row:1}
#v20SettingsHub>.v20-settings-main-tabs>button{text-align:left;white-space:normal;min-height:40px;flex:none;padding:10px 12px;line-height:1.3}
#v20SettingsHub>.v20-settings-main-panel{grid-column:2;grid-row:1;min-width:0;display:none!important}
#v20SettingsHub>.v20-settings-main-panel.active{display:block!important}
#v20SettingsHub [hidden]{display:none!important}
#v20SettingsHub .v20-settings-main-panel>.card{margin-top:0!important}
.z302-settings-subnav{display:grid;gap:2px;padding:0 0 8px 10px;border-left:2px solid #ec9b5d;margin:0 8px 5px}
.z302-settings-subnav>button{border:0!important;box-shadow:none!important;background:transparent!important;color:inherit;text-align:left;padding:8px 10px;font-size:12px;border-radius:6px;cursor:pointer;line-height:1.3}
.z302-settings-subnav>button:hover{background:#f3e4d6!important}
.z302-settings-subnav>button.active{background:#ffe8d3!important;color:#813f0f!important;font-weight:700}
html[data-zaphi-theme="dark"] .z302-settings-subnav>button:hover{background:#334255!important}
html[data-zaphi-theme="dark"] .z302-settings-subnav>button.active{background:#62452f!important;color:#fff1e3!important}
#v218SettingsAuditCard{display:none!important}
.v20-number-range-table small{display:block;font-size:10px;line-height:1.5;white-space:normal;margin-top:5px;color:var(--color-text-muted,#647084)}
.v20-number-range-table td:nth-child(3){min-width:240px}
.v215-wage-row{grid-template-columns:minmax(110px,1.2fr) repeat(4,minmax(100px,1fr)) auto!important;align-items:stretch!important;gap:10px}
.v215-wage-row>label,.v215-wage-row>output{display:flex!important;flex-direction:column;gap:6px;min-width:0;border:1px solid #ccd3dd!important;border-radius:8px;padding:10px!important;margin:0!important;min-height:82px;box-sizing:border-box}
.v215-wage-row>label{background:#fff3e2!important;border-color:#c79551!important}
.v215-wage-row>output{background:#edf1f5!important;color:#344256}
.v215-wage-row>label>span,.v215-wage-row>output>span{display:block;font-size:11px!important;font-weight:600;color:inherit!important;line-height:16px}
.v215-wage-row>label>input,.v215-wage-row>output>strong{height:34px!important;min-height:34px!important;box-sizing:border-box;font-size:14px!important;line-height:20px;padding:6px 8px!important;margin:0}
.v215-wage-row>label>input{background:white!important;color:#273343!important;border:1px solid #bba47d!important;width:100%}
html[data-zaphi-theme="dark"] .v215-wage-row>label{background:#34465a!important;border-color:#7995b7!important;color:#f3f6fb}
html[data-zaphi-theme="dark"] .v215-wage-row>label>input{background:#1c2b3a!important;color:#f3f6fb!important;border-color:#7790af!important}
html[data-zaphi-theme="dark"] .v215-wage-row>output{background:#202a36!important;color:#cbd5e1!important;border-color:#465263!important}
.z302-auto-dunning{margin-bottom:8px;padding:10px;border:1px solid var(--color-border,#ccd3dd);border-radius:8px}
.z302-portal-attachments{display:grid;gap:8px;padding:12px;border:1px solid var(--color-border,#c3cfdb);border-radius:10px}
.z302-portal-attachments>div{display:flex;gap:10px;align-items:center}.z302-portal-attachments>div>span{flex:1;overflow-wrap:anywhere}
@media(max-width:1000px){#v20SettingsHub{grid-template-columns:190px minmax(0,1fr)}.v215-wage-row{grid-template-columns:repeat(2,minmax(100px,1fr))!important}.v215-wage-row>input:first-child{grid-column:1 / -1}}
@media(max-width:720px){#v20SettingsHub{display:block!important}#v20SettingsHub>.v20-settings-main-tabs{position:static;max-height:none;margin-bottom:14px}.v2272-description-row{grid-template-columns:1fr!important}.v20-chat-message-head>strong{flex:1}.v20-chat-message-head>.v20-chat-tags{margin-left:0}.v20-chat-message-head>time{margin-left:auto}}

.v215-wage-row>label{text-align:left!important}

.v2267-phone>a.v2267-call{display:inline;color:inherit;text-decoration:underline}
.v2267-phone:has(>.v2267-call)>span{display:none!important}
