/* AHK shared theme. Loaded only when UI_THEME=unified; no classic overrides. */
@font-face {
    font-family: "AHK Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../../fonts/inter/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: "AHK Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../../fonts/inter/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:is(.ahk-ui, .fi-body) {
    --ahk-brand: #ef431f;
    --ahk-brand-soft: #fff1eb;
    --ahk-text: #171717;
    --ahk-muted: #555555;
    --ahk-border: #dedbd9;
    --ahk-surface: #ffffff;
    --ahk-background: #faf9f8;
    --font-family: "AHK Inter", system-ui, sans-serif;
    font-family: var(--font-family) !important;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ahk-text);
    background: var(--ahk-background);
    -webkit-font-smoothing: antialiased;
}
:is(.ahk-ui, .fi-body) :is(input, select, textarea, button) { font-family: inherit; }
.ahk-ui > .min-h-screen { background: var(--ahk-background); }
.ahk-ui nav[x-data], .fi-topbar > nav {
    border-bottom: 3px solid var(--ahk-brand);
    background: white;
    box-shadow: none;
}
.ahk-ui nav .border-indigo-400 { border-color: var(--ahk-brand); color: var(--ahk-text); }
.ahk-ui nav .border-indigo-400:hover { border-color: var(--ahk-brand); }
.ahk-ui nav .border-indigo-400.bg-indigo-50,
.ahk-ui nav .bg-indigo-50 { background: var(--ahk-brand-soft); color: var(--ahk-text); }
.ahk-ui nav a { font-weight: 600; }
.ahk-ui header.bg-white { background: white; box-shadow: none; border-bottom: 1px solid var(--ahk-border); }
.ahk-ui header > div { padding-top: 20px; padding-bottom: 20px; }
.ahk-ui header :is(h1,h2), .fi-header-heading { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; color: var(--ahk-text); }
.ahk-ui main h1 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.ahk-ui main h2 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.ahk-ui main h3, .fi-section-header-heading { font-size: 16px; font-weight: 600; line-height: 1.4; }
.ahk-ui main > .py-12 { padding-top: 24px; padding-bottom: 32px; }
.ahk-ui :is(.bg-white.shadow,.bg-white.shadow-sm,.bg-white.shadow-md):not(header),
.fi-section, .fi-ta-ctn, .fi-simple-main {
    border: 1px solid var(--ahk-border);
    border-radius: 0;
    box-shadow: none;
    background: var(--ahk-surface);
}
.ahk-ui :is(.border.rounded,.border.rounded-lg) { border-color: var(--ahk-border); border-radius: 0; }
.ahk-ui :is(.text-gray-500,.text-gray-600) { color: var(--ahk-muted); }
.ahk-ui label { font-size: 13px; font-weight: 600; color: #303030; }
.ahk-ui label.text-white { color: #fff; }
.ahk-ui :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=submit]):not([type=button]),select,textarea) {
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #bdbdbd;
    border-radius: 0;
    background-color: white;
    color: var(--ahk-text);
    padding-top: 7px;
    padding-bottom: 7px;
    box-shadow: none;
}
.ahk-ui :is(input,select) { min-height: 38px; }
.ahk-ui :is(input[type=checkbox],input[type=radio]) { min-height: 0; }
.ahk-ui textarea { min-height: 90px; }
.ahk-ui :is(input,select,textarea):is(:disabled,[readonly]),
.ahk-ui #order-edit-form :is(input,select,textarea):is(:disabled,[readonly]),
.fi-input-wrp-disabled, .fi-input-wrp:has(input[readonly]), .fi-fo-textarea:has(textarea[readonly]) {
    background-color: #eeeeee !important;
    color: #555555 !important;
    border-color: var(--ahk-border) !important;
    opacity: 1;
    -webkit-text-fill-color: #555555;
}
.ahk-ui :is(input,select,textarea):disabled { cursor: not-allowed; }
.ahk-ui :is(input,select,textarea):focus-visible,
:is(.ahk-ui,.fi-body) :is(button,a):focus-visible {
    outline: 2px solid var(--ahk-brand);
    outline-offset: 3px;
}
.ahk-ui :is(input,select,textarea):focus { border-color: var(--ahk-brand); --tw-ring-color: #ef431f40; }
.ahk-ui :is(input[type=checkbox],input[type=radio]) { color: #171717; accent-color: #171717; }
.ahk-ui :is(button,a,input[type=submit]):is(.bg-gray-800,.bg-gray-900,.bg-blue-500,.bg-blue-600,.bg-indigo-600) {
    background: #171717 !important;
    color: white !important;
    border: 1px solid #171717;
    border-radius: 0;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
}
.ahk-ui :is(button,a,input[type=submit]):is(.bg-gray-800,.bg-gray-900,.bg-blue-500,.bg-blue-600,.bg-indigo-600):hover { background: #353535 !important; }
.ahk-ui :is(button,a):is(.bg-gray-200,.bg-gray-100) { background: white; color: #303030; border: 1px solid #bdbdbd; border-radius: 0; font-weight: 600; }
.ahk-ui :is(button,a).bg-red-600 { border-radius: 0; }
.ahk-ui button:disabled { opacity: .5; cursor: not-allowed; }
.ahk-ui table { font-size: 13px; font-variant-numeric: tabular-nums; }
.ahk-ui thead th, .fi-ta-header-cell { background: #f0efee; color: #555555; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: .02em; }
.ahk-ui table:not(.planning-table) :is(th,td) { padding-top: 12px; padding-bottom: 12px; border-color: var(--ahk-border); }
.ahk-ui table:not(.planning-table) tbody tr:hover { background-color: #faf5f2; }
.ahk-ui .planning-table { font-size: 12px; }
.ahk-ui .planning-table :is(input,select,button) { font-size: 12px; }
.ahk-ui .planning-table select { min-height: 32px; padding-top: 4px; padding-bottom: 4px; }
.ahk-ui .planning-table .planning-driver-select { min-height: 72px; }
.ahk-ui .planning-row-today > td {
    background-color: var(--ahk-brand-soft) !important;
    border-top: 2px solid var(--ahk-brand) !important;
    border-bottom: 2px solid var(--ahk-brand) !important;
}
.ahk-ui .planning-row-today > td:first-child { border-left: 3px solid var(--ahk-brand) !important; }
.ahk-ui .planning-row-today .ring-yellow-400 { --tw-ring-color: var(--ahk-brand); }
.fi-sidebar { background: white; border-right: 1px solid var(--ahk-border); }
.fi-sidebar-item-active > a { background: var(--ahk-brand-soft); border-left: 3px solid var(--ahk-brand); }
.fi-sidebar-item-active .fi-sidebar-item-label { color: var(--ahk-text); }
.fi-btn { border-radius: 0; font-weight: 600; }
.fi-input-wrp { border-radius: 0; }
.fi-input, .fi-select-input { font-size: 14px; }
@media (max-width: 640px) {
    .ahk-ui header :is(h1,h2), .ahk-ui main h1, .fi-header-heading { font-size: 21px; }
    .ahk-ui header > div { padding-top: 16px; padding-bottom: 16px; }
    .ahk-ui main > .py-12 { padding-top: 16px; }
}
/* Industrial AHK identity: opaque working surfaces over a quiet safety-stripe motif.
   Do not clip interactive containers: menus, calendar popovers and focus rings
   must remain visible. Status colors and round radio controls retain meaning. */
:is(.ahk-ui, .fi-body) {
    --ahk-stripes: repeating-linear-gradient(45deg, transparent 0 24px, rgb(0 0 0 / .025) 24px 40px);
    background-image: var(--ahk-stripes);
}
.ahk-ui > .min-h-screen { background-color: var(--ahk-background); background-image: var(--ahk-stripes); }
.ahk-ui :is([class~="rounded"],[class~="rounded-md"],[class~="rounded-lg"],[class~="rounded-xl"],[class~="rounded-2xl"]),
.fi-body :is(.fi-section,.fi-ta-ctn,.fi-simple-main,.fi-btn,.fi-input-wrp,.fi-dropdown-panel,.fi-modal-window,.fi-sidebar-item > a) {
    border-radius: 0;
}
.ahk-ui :is(.bg-white.shadow,.bg-white.shadow-sm,.bg-white.shadow-md):not(header),
.fi-section, .fi-ta-ctn, .fi-simple-main { box-shadow: none; }
.ahk-ui header.bg-white {
    background: transparent;
    border-bottom: 0;
    color: #000000;
}
.ahk-ui header :is(h1,h2) { color: #000000; }
.ahk-ui nav[x-data], .fi-topbar > nav {
    border-bottom-width: 0;
    background-image: repeating-linear-gradient(45deg, #171717 0 8px, #ef431f 8px 16px);
    background-size: 100% 3px;
    background-position: bottom;
    background-repeat: no-repeat;
    padding-bottom: 3px;
}
.ahk-ui :is(button,a,input[type=submit]):is(.bg-gray-800,.bg-gray-900,.bg-blue-500,.bg-blue-600,.bg-indigo-600) {
    border-bottom: 3px solid var(--ahk-brand);
}
.ahk-ui :is(input[type=checkbox]) { border-radius: 0; }
.fi-header-heading { border-left: 4px solid var(--ahk-brand); padding-left: 12px; }
.fi-section-header { border-bottom: 1px solid var(--ahk-border); }
/* A cut corner drawn inside the card rather than clipping its contents. */
.ahk-ui.ahk-guest > .min-h-screen {
    background-color: #101010;
    background-image: repeating-linear-gradient(45deg, transparent 0 24px, rgb(255 255 255 / .025) 24px 40px);
    padding-bottom: 24px;
}
.ahk-ui.ahk-guest .bg-white.shadow-md, .fi-simple-main {
    border-top: 3px solid var(--ahk-brand);
    background-image: linear-gradient(225deg, var(--ahk-brand) 0 10px, transparent 10px);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 20px 20px;
}
@media print {
    :is(.ahk-ui,.fi-body), .ahk-ui > .min-h-screen, .ahk-ui header.bg-white,
    .ahk-ui.ahk-guest .bg-white.shadow-md, .fi-simple-main {
        background: white !important;
        color: black !important;
    }
    .ahk-ui header :is(h1,h2) { color: black; }
    .ahk-ui nav[x-data] { display: none; }
}
