@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
/* ATC modern look (2026-11-14 redesign). Loaded after app.css. The sidebar "Classic look"
   switch disables this whole file (MainLayout.razor), which brings back the old look.
   Dark-mode colour fixes are NOT in here - they stay on in both looks (app.css). */

/* Old Bootstrap buttons + dialog buttons: ATC yellow instead of pure #FFFF00. */
/* Old Bootstrap buttons: ATC yellow (was pure #FFFF00), black on hover. */
.btn-primary {
    color: #020202;
    background-color: #FFC107;
    border-color: #0D0D0D;
    font-weight: 600;
}

    .btn-primary:hover {
        color: #FFC107;
        background-color: black;
    }
body.atc-dark .btn-primary { border-color: #FFC107; }
body.atc-dark .btn-primary:hover { background-color: #000; border-color: #FFC107; }
.mud-message-box .mud-button-text.mud-button-text-primary,
.mud-message-box .mud-button-text.mud-button-text-primary:hover,
.mud-dialog .mud-button-filled.mud-button-filled-primary { background-color: #FFC107 !important; }
.mud-message-box .mud-button-text.mud-button-text-primary:hover,
.mud-dialog .mud-button-filled.mud-button-filled-primary:hover { color: #FFC107 !important; }

.form-control:focus { border-color: #000; box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.28); }

/* Outlined text boxes / dropdowns are white on the grey page, so they read as fields. */
.mud-input.mud-input-outlined { background-color: var(--mud-palette-surface); }

/* Cards: hairline border + softer shadow instead of the heavier default. */
.mud-paper.mud-elevation-1 {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
    border: 1px solid var(--mud-palette-lines-default);
}

/* Buttons: no ALL CAPS shouting, a bit more weight; filled ones lift on hover. */
.mud-button-root.mud-button { text-transform: none; font-weight: 600; letter-spacing: 0.01em; }
.mud-button-filled { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12); transition: transform .12s ease, box-shadow .12s ease, background-color .12s; }
.mud-button-filled:not(.mud-button-disabled):hover { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(16, 24, 40, 0.45); }

/* Text box focus: keep the black border, add a soft ATC-yellow glow. */
.mud-input-outlined:focus-within .mud-input-outlined-border { box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.28); }

/* Tabs: the underline is the logo's yellow-to-orange. */
.mud-tabs .mud-tab-slider { background: linear-gradient(90deg, #F7C600, #EE7D1E) !important; height: 3px !important; border-radius: 3px; }
.mud-tab.mud-tab-active { font-weight: 700; }

/* Table header band. :where() = zero priority, so any page that colours its own
   headers still wins; plain tables just get a light grey band. */
:where(.mud-table-head) :where(.mud-table-cell) { background-color: var(--mud-palette-background-gray); }

/* ===== Finishing pass (2026-11-14) ===== */

/* Numbers line up in columns everywhere (money, hours, counts). */
.mud-table, .mud-data-grid, table, .mud-input-slot { font-variant-numeric: tabular-nums; }

/* Tables: softer card, rounded, header band, gentle row hover. Zero-priority (:where)
   so pages that style their own tables keep their look. */
:where(.mud-table.mud-paper) { border-radius: 12px; overflow: hidden; }
:where(.mud-table-head) :where(.mud-table-cell) {
    font-size: .78rem;
    letter-spacing: .02em;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
:where(.mud-table-body) :where(.mud-table-row) { transition: background-color .12s ease; }
.mud-table-empty-row .mud-table-cell, .mud-table-empty-row td {
    padding: 28px 16px !important;
    color: var(--mud-palette-text-secondary);
    font-style: italic;
}
/* Old Bootstrap tables get the same header band. */
:where(.table) > :where(thead) th { background-color: var(--mud-palette-background-gray); font-weight: 600; font-size: .82rem; border-bottom-width: 1px; }

/* Loading: spinners and "working" bars all use the logo's yellow-to-orange. Only the
   default/primary colours - a page that picked its own colour keeps it. */
.mud-progress-circular.mud-progress-indeterminate.mud-default-text,
.mud-progress-circular.mud-progress-indeterminate.mud-primary-text,
.mud-progress-circular.mud-progress-indeterminate:not([class*="-text"]) { color: #F5A623; }
.mud-progress-linear.mud-progress-indeterminate.mud-progress-linear-color-primary:not(.mud-progress-linear-buffer) .mud-progress-linear-bar {
    background: linear-gradient(90deg, #F7C600, #EE7D1E);
}
.mud-progress-linear.mud-progress-indeterminate.mud-progress-linear-color-primary:not(.mud-progress-linear-buffer)::before {
    background-color: rgba(255, 193, 7, 0.22);
}

/* Dialogs: rounder, title bar separated, blurred backdrop. */
.mud-dialog-container .mud-dialog { border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55); }
.mud-dialog .mud-dialog-title { border-bottom: 1px solid var(--mud-palette-lines-default); font-weight: 700; }
.mud-dialog .mud-dialog-actions { border-top: 1px solid var(--mud-palette-lines-default); padding: 10px 16px; }
.mud-overlay-dialog { backdrop-filter: blur(3px); }

/* Snackbars (the little "Saved" pop-ups): rounded with a lift. */
.mud-snackbar { border-radius: 10px !important; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5) !important; }

/* Alerts: rounded, a coloured edge on the left. */
.mud-alert { border-radius: 10px; }
.mud-alert-text-info, .mud-alert-filled-info { border-left: 4px solid var(--mud-palette-info); }
.mud-alert-text-success, .mud-alert-filled-success { border-left: 4px solid var(--mud-palette-success); }
.mud-alert-text-warning, .mud-alert-filled-warning { border-left: 4px solid var(--mud-palette-warning); }
.mud-alert-text-error, .mud-alert-filled-error { border-left: 4px solid var(--mud-palette-error); }

/* Tabs: hairline under the tab strip. */
.mud-tabs-tabbar { border-bottom: 1px solid var(--mud-palette-lines-default); }

/* Chips a touch rounder and bolder. */
.mud-chip { font-weight: 600; }

/* Cards that are links/buttons lift a little on hover. */
a > .mud-card, .mud-card[style*="cursor:pointer"], .mud-card[style*="cursor: pointer"] { transition: transform .15s ease, box-shadow .15s ease; }
a:hover > .mud-card, .mud-card[style*="cursor:pointer"]:hover, .mud-card[style*="cursor: pointer"]:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(16, 24, 40, .35); }

/* Keyboard focus: a clear yellow ring on buttons/links (mouse clicks unaffected). */
.mud-button-root:focus-visible, .mud-icon-button:focus-visible, a:focus-visible { outline: 2px solid #F5A623; outline-offset: 2px; }

/* Text you highlight with the mouse: ATC yellow. */
::selection { background: rgba(255, 193, 7, 0.35); }

/* Page content fades in on first load. */
/* Opacity ONLY, and no fill-mode: a transform (even a finished one kept by "both") makes .content the frame for position:fixed children, which pinned slide-out drawers (Estimates detail panel) inside the page. */
@keyframes atcFadeIn { from { opacity: 0; } to { opacity: 1; } }
.mud-main-content > .content { animation: atcFadeIn .25s ease; }
@media (prefers-reduced-motion: reduce) {
    .mud-main-content > .content, .mud-button-filled, .mud-card { animation: none !important; transition: none !important; }
}
@media print {
    .mud-main-content > .content { animation: none !important; }
}

/* Thin, quiet scrollbars. */
* { scrollbar-width: thin; scrollbar-color: rgba(100, 110, 125, 0.45) transparent; }

/* ── Standard page header (Components/Shared/AtcPageHeader.razor) ── */
.atc-ph {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    text-align: left;
}
.atc-ph-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    /* the logo's clock face: yellow centre to orange rim, black ring */
    background: radial-gradient(circle at 50% 45%, #F7E93A 0%, #F5A623 62%, #EE7D1E 100%);
    color: #000;
    box-shadow: inset 0 0 0 3px #0b0b0b, 0 6px 16px -6px rgba(238, 125, 30, 0.6);
}
.atc-ph-icon .mud-icon-root { width: 22px; height: 22px; }
.atc-ph-text { flex: 1; min-width: 0; }
.atc-ph-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--atc-ink, #0a1f44);
}
.atc-ph-sub { margin-top: 3px; color: var(--mud-palette-text-secondary); font-size: 0.9rem; line-height: 1.35; }
.atc-ph-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) {
    .atc-ph { flex-wrap: wrap; }
    .atc-ph-actions { width: 100%; }
}

/* Page titles: bold navy with a yellow-to-orange bar */
h3 { font-weight: 600; letter-spacing: -0.01em; color: var(--atc-ink, #0a1f44); }
/* small yellow-to-orange bar under the old-style page titles */
h3::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin: 6px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #F7C600, #EE7D1E);
}
@media print { h3::after { display: none; } }
/* ...but not on h3s that are week labels / side-panel / dialog headings */
.ec-toolbar h3::after, .ms-toolbar h3::after, .ts-toolbar h3::after,
.cr-panel h3::after, .eb-panel h3::after, .home-suggest h3::after,
.mud-dialog h3::after, .mud-drawer h3::after, .mud-popover h3::after { display: none; }
/* In-row section headings (inline margin:0) are not page titles - no bar. */
h3[style*="margin:0"]::after { display: none; }

/* ===== Slick pass (2026-11-14 #2) ===== */

/* Inter: the crisp UI font most modern apps use. Only loads in the new look
   (this whole file, @import included, is off in Classic). */
body, .mud-typography, .mud-input, .mud-input-slot, .mud-button-root, .mud-table-cell,
.mud-chip, .mud-tab, .mud-list-item-text, .mud-select, .mud-snackbar, .mud-tooltip,
.form-control, .form-select, .btn, table {
    font-family: 'Inter', Roboto, 'Segoe UI', Arial, sans-serif;
    font-feature-settings: "cv11", "ss01";
}

/* Page background: a faint warm glow in the top corner instead of flat grey. */
body:not(.atc-dark) .mud-main-content {
    background:
        radial-gradient(1200px 420px at 100% 0%, rgba(255, 193, 7, 0.07), transparent 60%),
        radial-gradient(900px 380px at 0% 0%, rgba(10, 31, 68, 0.05), transparent 60%),
        var(--mud-palette-background);
    background-attachment: fixed;
}

/* Cards and panels: rounder corners, airy shadow. Menus/popups/app bar excluded. */
.mud-paper:not(.mud-popover):not(.mud-appbar):not(.mud-drawer):not(.mud-snackbar):not(.mud-dialog) { border-radius: 12px; }
.mud-paper.mud-elevation-2, .mud-paper.mud-elevation-3, .mud-paper.mud-elevation-4 {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px -12px rgba(16, 24, 40, 0.18);
    border: 1px solid var(--mud-palette-lines-default);
}
.card { border-radius: 12px; }

/* Text boxes and dropdowns: rounded, light grey outline that darkens on hover,
   ATC orange outline + glow when you click in. */
.mud-input.mud-input-outlined { border-radius: 8px; }
.mud-input.mud-input-outlined .mud-input-outlined-border { border-radius: 8px; border-color: rgba(16, 24, 40, 0.18); transition: border-color .12s, box-shadow .12s; }
.mud-input.mud-input-outlined:hover:not(.mud-disabled) .mud-input-outlined-border { border-color: rgba(16, 24, 40, 0.45); }
.mud-input.mud-input-outlined.mud-focused .mud-input-outlined-border,
.mud-input.mud-input-outlined:focus-within .mud-input-outlined-border { border-color: #F5A623 !important; }
.mud-input-control.mud-input-control-focused .mud-input-label { color: #C77700 !important; }
body.atc-dark .mud-input.mud-input-outlined .mud-input-outlined-border { border-color: rgba(255, 255, 255, 0.18); }
body.atc-dark .mud-input-control.mud-input-control-focused .mud-input-label { color: #FFC107 !important; }
.form-control, .form-select { border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: #F5A623; box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.28); }

/* Buttons: rounder. Black buttons get a soft sheen and ATC-yellow text. */
.mud-button-root.mud-button { border-radius: 9px; }
body:not(.atc-dark) .mud-button-filled.mud-button-filled-primary:not(.mud-button-disabled) {
    background: linear-gradient(180deg, #262a33 0%, #0b0d11 100%);
    color: #FFC107;
}
body:not(.atc-dark) .mud-button-filled.mud-button-filled-primary:not(.mud-button-disabled):hover {
    background: linear-gradient(180deg, #30353f 0%, #12151a 100%);
}
.mud-button-outlined { border-width: 1.5px; }
.btn { border-radius: 9px; }

/* Tables: amber-tinted row hover; rows highlighted by a page keep their own colour. */
.mud-table { --mud-palette-table-hover: rgba(255, 193, 7, 0.09); --mud-palette-table-striped: rgba(16, 24, 40, 0.025); }
:where(.mud-table-head) :where(.mud-table-cell) { color: var(--mud-palette-text-secondary); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }

/* Chips: pill-shaped. */
.mud-chip { border-radius: 999px; }

/* Menus and dropdown lists: rounded with a soft drop shadow, amber hover. */
.mud-popover.mud-paper { border-radius: 10px; box-shadow: 0 18px 40px -16px rgba(16, 24, 40, 0.35) !important; border: 1px solid var(--mud-palette-lines-default); }
.mud-popover .mud-list-item:hover { background-color: rgba(255, 193, 7, 0.10); }
.mud-popover .mud-selected-item { background-color: rgba(255, 193, 7, 0.18) !important; }

/* Tooltips: dark rounded pill. */
.mud-tooltip { border-radius: 7px; font-weight: 500; }

/* Switches: ATC yellow when on (default/primary colour only). */
.mud-switch .mud-switch-base.mud-checked.mud-primary-text { color: #FFC107 !important; }
.mud-switch .mud-switch-base.mud-checked.mud-primary-text + .mud-switch-track { background-color: #F5A623 !important; }

/* Page header: icon tile a touch bigger, title tighter, a fine rule underneath. */
.atc-ph { padding-bottom: 14px; border-bottom: 1px solid var(--mud-palette-lines-default); margin-bottom: 18px; }
.atc-ph-title { font-weight: 800; letter-spacing: -0.025em; }
.atc-ph-icon { width: 50px; height: 50px; }
