/*
 * Brightwater Fittings Co.'s look, on top of Filament's own styles.
 * Plain CSS, loaded after Filament's, so no build step is needed.
 * config/brand.php names this file, the logo and the font.
 */

:root {
    --brand-accent: #1FA6B8;
    --brand-accent-on-dark: #3CC4D6;
    --brand-blue: #0E5A7A;
    --bw-ok: #067647;
    --bw-short: #B42318;
    --bw-card: #FFFFFF;
    --bw-line: rgba(14, 90, 122, 0.14);
}

.dark {
    --bw-ok: #6CE9A6;
    --bw-short: #FDA29B;
    --bw-card: rgba(255, 255, 255, 0.04);
    --bw-line: rgba(255, 255, 255, 0.1);
}

/* The water rule under the top bar. */
.fi-topbar {
    border-bottom: 3px solid var(--brand-accent);
}

.dark .fi-topbar {
    border-bottom-color: var(--brand-accent-on-dark);
}

/* The active menu item carries the same rule on its left edge. */
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    box-shadow: inset 3px 0 0 var(--brand-accent);
}

.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    box-shadow: inset 3px 0 0 var(--brand-accent-on-dark);
}

/* Sign-in page: a water line above the card. */
.fi-simple-main {
    border-top: 4px solid var(--brand-accent);
}

/* The logo: the mark and the name in the system's own font. */
.bw-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    line-height: 1;
    white-space: nowrap;
}

.bw-logo-mark {
    height: 2.1rem;
    width: 2.1rem;
    flex: none;
}

.bw-logo-hex { fill: var(--brand-blue); }
.bw-logo-drop { fill: #FFFFFF; }
.bw-logo-shine { fill: var(--brand-accent); }
.dark .bw-logo-hex { fill: #4FA0BE; }
.dark .bw-logo-drop { fill: #041C28; }
.dark .bw-logo-shine { fill: var(--brand-accent-on-dark); }

.bw-logo-words {
    display: inline-flex;
    flex-direction: column;
    gap: 0.18rem;
}

.bw-logo-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand-blue);
}

.bw-logo-sub {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-accent);
}

.dark .bw-logo-name { color: #F0F7FA; }
.dark .bw-logo-sub { color: var(--brand-accent-on-dark); }

/* The demo's one line: small, clear, on every page. */
.bw-demo-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    line-height: 1.35;
    text-align: center;
    color: #F0F7FA;
    background: #072E40;
}

.bw-demo-strip a {
    color: var(--brand-accent-on-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Banners the kit adds (read-only mode, practice mode). */
.kit-banner {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--brand-accent);
    background: #EAF7F9;
    color: #072E40;
    font-size: 0.875rem;
}

.dark .kit-banner {
    background: rgba(60, 196, 214, 0.1);
    color: #F0F7FA;
    border-left-color: var(--brand-accent-on-dark);
}

/* One-click demo sign-in on the sign-in page. */
.kit-demo-login {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--bw-line);
}

.kit-demo-login h2 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.bw-demo-login-note {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-bottom: 0.75rem;
}

.kit-demo-login ul {
    display: grid;
    gap: 0.5rem;
}

.kit-demo-login button {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid var(--bw-line);
    cursor: pointer;
}

.bw-demo-who {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-blue);
}

.dark .bw-demo-who {
    color: #B5DAE8;
}

.bw-demo-what {
    font-size: 0.78rem;
    opacity: 0.8;
}

.kit-demo-login button:hover,
.kit-demo-login button:focus-visible {
    border-color: var(--brand-accent);
    outline: none;
}

/* Before and after, side by side, in the history and the import. */
.kit-diff {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.kit-diff th,
.kit-diff td {
    padding: 0.375rem 0.5rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--bw-line);
}

.kit-diff td.kit-before,
.kit-before {
    color: #9B2C2C;
}

.kit-diff td.kit-after,
.kit-after {
    color: #22543D;
}

.dark .kit-diff td.kit-before,
.dark .kit-before {
    color: #FEB2B2;
}

.dark .kit-diff td.kit-after,
.dark .kit-after {
    color: #9AE6B4;
}

.kit-diff th {
    font-weight: 600;
}

/* Brightwater's screens. */
.bw-floor {
    display: grid;
    gap: 1rem;
}

.bw-card {
    padding: 1rem 1.25rem;
    border: 1px solid var(--bw-line);
    border-radius: 0.75rem;
    background: var(--bw-card);
}

.bw-card-late {
    border-left: 5px solid var(--bw-short);
}

.bw-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem 1.5rem;
    margin-bottom: 0.75rem;
}

.bw-empty {
    text-align: center;
    padding: 2.5rem 1rem;
}

.bw-big {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.bw-order-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.bw-order-customer {
    font-size: 1.05rem;
    font-weight: 600;
}

.bw-muted {
    font-size: 0.85rem;
    opacity: 0.72;
}

.bw-note {
    margin-top: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    background: #FEF6E7;
    color: #7A4D00;
    font-size: 0.9rem;
    display: inline-block;
}

.dark .bw-note {
    background: rgba(253, 176, 34, 0.12);
    color: #FEDF89;
}

.bw-tag {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: middle;
    background: rgba(14, 90, 122, 0.1);
    color: var(--brand-blue);
}

.bw-tag-late {
    background: #FEE4E2;
    color: #B42318;
}

.bw-tag-warn {
    background: #FEF0C7;
    color: #93370D;
}

.bw-tag-ok {
    background: #DCFAE6;
    color: #067647;
}

.dark .bw-tag { background: rgba(255, 255, 255, 0.08); color: #B5DAE8; }
.dark .bw-tag-late { background: rgba(240, 68, 56, 0.18); color: #FDA29B; }
.dark .bw-tag-warn { background: rgba(253, 176, 34, 0.16); color: #FEDF89; }
.dark .bw-tag-ok { background: rgba(23, 178, 106, 0.16); color: #75E0A7; }

/* The warehouse pick table: big enough to read on a tablet at arm's length. */
.bw-pick {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.05rem;
}

.bw-pick th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--bw-line);
}

.bw-pick td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--bw-line);
    vertical-align: top;
}

.bw-num {
    text-align: right;
    white-space: nowrap;
}

.bw-bin {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-weight: 700;
    white-space: nowrap;
}

.bw-qty {
    font-size: 1.35rem;
    font-weight: 800;
}

.bw-short {
    color: var(--bw-short);
    font-weight: 700;
}

.bw-ok {
    color: var(--bw-ok);
    font-weight: 700;
}

.bw-ship .fi-btn {
    min-height: 3.25rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 1.1rem;
}

.bw-section-title {
    margin-top: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.bw-next {
    display: grid;
    gap: 0.25rem;
}

.bw-next-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--bw-line);
    border-radius: 0.5rem;
}

.bw-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.bw-email-body {
    white-space: pre-line;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Checking an AI draft: the PDF beside the form on a wide screen. */
.bw-draft {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 1280px) {
    .bw-draft {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: start;
    }

    .bw-draft-pdf {
        position: sticky;
        top: 5rem;
    }
}

.bw-draft-pdf iframe {
    width: 100%;
    height: 80vh;
    min-height: 32rem;
    border: 1px solid var(--bw-line);
    border-radius: 0.5rem;
    background: #FFFFFF;
}

.bw-warnings {
    display: grid;
    gap: 0.35rem;
    padding-left: 1.1rem;
    list-style: disc;
    font-size: 0.9rem;
}

/* Home tiles for Dana, Luis and Maria. */
.bw-today-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 1rem;
    margin-bottom: 0.75rem;
}

.bw-today-head h2 {
    font-size: 1.35rem;
    font-weight: 800;
}

.bw-tiles {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.bw-tile {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--bw-line);
    border-radius: 0.75rem;
    background: var(--bw-card);
    transition: border-color 0.15s;
}

.bw-tile:hover,
.bw-tile:focus-visible {
    border-color: var(--brand-accent);
    outline: none;
}

.bw-tile-label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
}

.bw-tile-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-blue);
}

.dark .bw-tile-value {
    color: #82C0D6;
}

.bw-tile-note {
    font-size: 0.85rem;
    opacity: 0.75;
}

.bw-tile-action {
    margin-top: 0.35rem;
    font-weight: 700;
    color: var(--brand-blue);
}

.dark .bw-tile-action {
    color: var(--brand-accent-on-dark);
}

/* The Monday summary reads like a letter. */
.bw-summary {
    max-width: 46rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* The import's figures. */
.bw-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-bottom: 1rem;
}

.bw-stats > div {
    display: flex;
    flex-direction: column;
}

.bw-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
}

.bw-stat-label {
    font-size: 0.8rem;
    opacity: 0.75;
}

.bw-subhead {
    margin: 1rem 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.bw-example {
    display: inline-block;
    margin: 0 0.75rem 0.15rem 0;
    white-space: nowrap;
}
