/* H4Y shared visual rules. No data, route or action changes. */
:root{--h4y-ink:#30343a;--h4y-muted:#707276;--h4y-line:#dedede;--h4y-surface:#fff;--h4y-ground:#f5f5f5;--h4y-gold:#f7a806;--h4y-tint:#fff6e2}
body{color:var(--h4y-ink)!important;font-family:Metro,Metropolis,Arial,sans-serif!important;background:var(--h4y-ground)!important;font-size:13px;line-height:1.5}
body.embedded{background:transparent!important}
h1,h2,h3{color:var(--h4y-ink)!important;line-height:1.15;letter-spacing:.4px!important}
h1{font-family:Bebas,Arial,sans-serif!important;font-size:32px!important;margin:0 0 10px!important}
h2{font-family:Bebas,Arial,sans-serif!important;font-size:24px!important}
h3{font-family:Metro,Metropolis,Arial,sans-serif!important;font-size:14px!important;font-weight:600}
button,.btn{font-family:Metro,Metropolis,Arial,sans-serif!important;font-size:12px!important;font-weight:600!important;line-height:1.35!important;border-radius:6px!important;border:1px solid var(--h4y-gold)!important;background:white!important;color:var(--h4y-ink)!important;padding:10px 14px;min-height:36px;box-shadow:none!important}
button:not(:disabled):hover,.btn:hover{background:var(--h4y-tint)!important}
button:focus-visible,.btn:focus-visible{outline:2px solid var(--h4y-gold)!important;outline-offset:3px}
button.primary,button.selected,.mock-tabs button[aria-current=page],.module-sidebar button.selected{background:var(--h4y-gold)!important;color:var(--h4y-ink)!important}
.module-sidebar button{font-size:12px!important;text-align:left;line-height:1.4!important;padding:11px!important}
.panel,dialog,.h4y-widget{border-color:var(--h4y-line)!important;border-radius:9px!important;box-shadow:none}
.panel-head,.panelhead,.project-title-row,.heading,.upload-head,.h4y-dashboard-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.panel-head h2,.panelhead h2,.upload-head h2{margin:0!important}
.h4y-actions,.actions,.upload-actions,.gantt-export-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.upload-actions,.gantt-export-actions{justify-content:flex-end}
.mock-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px!important}
input,select,textarea{font-family:Metro,Metropolis,Arial,sans-serif!important;font-size:12px!important;color:var(--h4y-ink)!important;border-color:#d1d1d1!important;border-radius:5px;line-height:1.4}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select{min-height:36px}
textarea{padding:10px;line-height:1.5}
label,.subhead,.filehint,.caption{line-height:1.5}
.subhead,.filehint,.caption,.muted,.footer,.h4y-dash-note,.h4y-dash-row small{color:var(--h4y-muted)!important}
th{background:#f4f4f2!important;color:#626569!important;font-size:11px!important;font-weight:600!important;line-height:1.4}
td{border-color:#e9e9e7!important}
.estimate-master,.work-category,.cc-category{background:#f0f0ed!important}
.estimate-pink,.estimate-yellow{background:#faf9f5!important}
.notice,.note{background:var(--h4y-tint)!important;color:#675b3f!important;border-color:#eadfca!important;line-height:1.6}
.h4y-widget .h4y-widget-head{background:#fff!important;border-bottom:1px solid #e5e5e2!important}
.h4y-widget-head h2{font-size:24px!important}
.h4y-dash-row,.h4y-widget-controls{border-color:#e9e9e7!important}
.h4y-widget-controls{background:#fafaf8!important}
.track{background:#eeeeea!important}.track i{background:#e2b048!important}
/* Semantic controls retain their existing meaning and compact geometry. */
#freeze[data-base-state=editing]{background:#28784a!important;border-color:#28784a!important;color:white!important}
#freeze[data-base-state=locked]{background:#b83434!important;border-color:#b83434!important;color:white!important}
.gantt-drag{min-height:30px!important;width:28px!important;padding:0!important;border:0!important;background:transparent!important;font-size:24px!important;color:#92846b!important}
.task-edit{min-height:0!important;padding:0!important;border:0!important;background:transparent!important;font-size:11px!important;text-align:left}
.h4y-dash-resize{min-height:25px!important;padding:0!important;border:0!important;background:white!important;font-size:19px!important}
#h4y-notification-bell{background:transparent!important;border:0!important;color:white!important}
@media(max-width:700px){h1{font-size:28px!important}h2,.h4y-widget-head h2{font-size:23px!important}.heading,.project-title-row{align-items:flex-start}.heading>.actions,.heading>.gantt-export-actions{width:100%;justify-content:flex-start}.upload-actions button{min-height:40px}.mock-tabs button{min-height:40px!important}}
/* Repeatable action alignment without moving controls or changing listeners. */
.companies-head,.panel-head,.panelhead{justify-content:space-between}
.company-filters{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.company-filters button{margin-left:0}
.h4y-actions:has(#h4y-new-work),.h4y-actions:has(#manual-payment),.h4y-actions:has(#h4y-create-request){justify-content:flex-end}
.workspace-content>button[id*="to-"]{margin:4px 0 14px}
.workspace-content>nav:has(.module-nav-title){display:none}
.h4y-dash-module-menu summary{font-size:12px!important;border-radius:6px!important;border-color:var(--h4y-gold)!important;min-height:36px;padding:10px 14px!important}
.h4y-widget-controls button{padding:5px 8px!important;min-height:28px!important;font-size:11px!important}
.h4y-dash-row button{min-height:30px!important;padding:6px 9px!important;font-size:11px!important}
button[id*="add"],button[id*="new"],button[id*="create"]{background:var(--h4y-gold)!important;color:var(--h4y-ink)!important}
#h4y-dashboard-nav[aria-current=page]{background:var(--h4y-gold)!important}
/* Keep numeric status colors, warning badges and the base red/green untouched. */

.sub button{white-space:nowrap;flex-shrink:0}.h4y-report-favorite-row{display:flex;gap:6px}
