/* Built by `python manage.py build_css` from static/css/style.css. Do not edit by hand. */

/* ---- components/palette.css ---- */
/* =======================================
   Palette: the one place where the colours live.
   20 colours only (Anton's pick, Oct 24: deep teal for the whole farm, sky
   blue for broilers, berry for layers; mint, blush and mist added the same
   day as soft accent backgrounds). Every stylesheet, page and chart
   uses these names (var(--cb-...)), never a colour code of its own, and the
   app has the same list (mobile/src/theme.ts). Words are always action,
   ink-soft, brand, broilers-dark, layers-dark, warm-ink or critical (4.5:1
   or more); broilers and warm are for fills, bars and marks.
   Loaded first, so everything after it can use the names.
======================================= */
:root {
    /* The only colours on the site (and in the app, mobile/src/theme.ts).
       Every stylesheet and page uses these names, never its own colour code.
       A new colour is added here only after Anton says yes. */
    --cb-action: #231f20;         /* near-black: the main button and all main words */
    --cb-brand: #08565c;          /* deep teal: links, "where you are" (blue on broiler pages, purple on layer pages) */
    --cb-brand-soft: #e9f4f1;     /* light teal: selected rows, plain notes */
    --cb-broilers: #1f96db;       /* sky blue: broiler card tops, bars, dots (never small words) */
    --cb-broilers-soft: #e7f2ff;  /* light sky behind broiler things */
    --cb-broilers-dark: #0053c0;  /* deep blue: links and "where you are" on broiler pages, 7:1 */
    --cb-layers-dark: #714787;    /* berry: links and "where you are" on layer pages, 7.1:1 */
    --cb-warm: #ffc65c;           /* honey: layer card tops, bars, highlights (dark words on it, never white) */
    --cb-warm-soft: #fff1d6;      /* light honey behind layer and warm things */
    --cb-warm-ink: #9a5b00;       /* words on warm-soft, 4.9:1 */
    --cb-critical: #9b1561;       /* a real problem only, 7.9:1 */
    --cb-critical-soft: #fcecec;
    --cb-good: #1e7b3a;           /* green: an arrow that's good news (Anton, 25 Oct 2026), never words, 5.6:1 */
    --cb-ink-soft: #585858;       /* second line words, 7.1:1 */
    --cb-line-strong: #dcdbdb;    /* input borders, dividers that must show */
    --cb-pill: #f0eae1;           /* grey pill buttons, card and table lines */
    --cb-page: #fbf6f0;           /* cream page */
    --cb-card: #ffffff;           /* cards, tables, inputs */
    /* Soft accent backgrounds (Anton, Oct 24): card tops, tags, highlights,
       empty pages and the start questions. Dark words on them, never white. */
    --cb-mint: #d2f8d5;           /* soft green: done, ready, good news */
    --cb-blush: #ffe6f4;          /* soft pink: friendly highlights */
    --cb-mist: #e2e9ed;           /* soft blue-grey: calm panels and tags */

    /* Type: one ramp for the whole site (and the app, mobile/src/theme.ts).
       12 tiny labels · 14 small text, tables · 16 body · 18 card titles ·
       20 section titles · 24 page titles on phones · 32 page titles.
       Every font-size uses one of these; see them at /demo/. */
    --cb-fs-12: .75rem;
    --cb-fs-14: .875rem;
    --cb-fs-16: 1rem;
    --cb-fs-18: 1.125rem;
    --cb-fs-20: 1.25rem;
    --cb-fs-24: 1.5rem;
    --cb-fs-32: 2rem;
    --cb-lh-tight: 1.2;     /* titles and big numbers */
    --cb-lh: 1.5;           /* everything you read */

    /* Cards: one radius, one padding, a hair of depth */
    --cb-card-pad: 24px;
    --cb-card-gap: 16px;
    --cb-card-shadow: 0 0 0 1px color-mix(in srgb, var(--cb-action) 4%, transparent), 0 1px 2px color-mix(in srgb, var(--cb-action) 5%, transparent);
    --cb-card-shadow-up: 0 0 0 1px color-mix(in srgb, var(--cb-action) 6%, transparent), 0 8px 24px color-mix(in srgb, var(--cb-action) 8%, transparent);

    /* Calendar sign drawn inside date boxes (ink-soft) */
    --cb-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23585858' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E");

    /* Bootstrap follows the palette too (links, text-* and bg-* helpers) */
    --bs-body-color: var(--cb-action);
    --bs-body-color-rgb: 35, 31, 32;
    --bs-secondary-color: var(--cb-ink-soft);
    --bs-border-color: var(--cb-pill);
    --bs-primary: var(--cb-brand);
    --bs-primary-rgb: 8, 86, 92;
    --bs-success: var(--cb-brand);
    --bs-success-rgb: 8, 86, 92;
    --bs-warning: var(--cb-brand);
    --bs-warning-rgb: 8, 86, 92;
    --bs-danger: var(--cb-critical);
    --bs-danger-rgb: 155, 21, 97;
    --bs-info: var(--cb-brand);
    --bs-info-rgb: 8, 86, 92;
    --bs-link-color: var(--cb-brand);
    --bs-link-color-rgb: 8, 86, 92;
    --bs-link-hover-color: var(--cb-brand);
    --bs-link-hover-color-rgb: 8, 86, 92;
}

/* Broiler pages wear sky blue, layer pages berry (base.html sets data-place).
   Everything else, and everything for both, stays deep teal. */
body[data-place="broilers"] { --cb-brand: var(--cb-broilers-dark); --cb-brand-soft: var(--cb-broilers-soft); }
body[data-place="layers"] { --cb-brand: var(--cb-layers-dark); }

.btn-primary {
    --bs-btn-color: var(--cb-card);
    --bs-btn-bg: var(--cb-action);
    --bs-btn-border-color: var(--cb-action);
    --bs-btn-hover-color: var(--cb-card);
    --bs-btn-hover-bg: var(--cb-action);
    --bs-btn-hover-border-color: var(--cb-action);
    --bs-btn-active-color: var(--cb-card);
    --bs-btn-active-bg: var(--cb-action);
    --bs-btn-active-border-color: var(--cb-action);
    --bs-btn-disabled-color: var(--cb-card);
    --bs-btn-disabled-bg: var(--cb-action);
    --bs-btn-disabled-border-color: var(--cb-action);
}
/* Stock alert boxes in the farm's colours too (a real problem stays red). */
.alert-success, .alert-info, .alert-warning, .alert-primary, .alert-secondary, .alert-light {
    --bs-alert-color: var(--cb-brand);
    --bs-alert-bg: var(--cb-brand-soft);
    --bs-alert-border-color: var(--cb-line-strong);
    --bs-alert-link-color: var(--cb-brand);
}
.alert-danger {
    --bs-alert-color: var(--cb-critical);
    --bs-alert-bg: var(--cb-critical-soft);
    --bs-alert-border-color: var(--cb-critical-soft);
}
.btn-outline-primary {
    --bs-btn-color: var(--cb-brand);
    --bs-btn-border-color: var(--cb-brand);
    --bs-btn-hover-bg: var(--cb-brand);
    --bs-btn-hover-border-color: var(--cb-brand);
    --bs-btn-active-bg: var(--cb-brand);
    --bs-btn-active-border-color: var(--cb-brand);
}
.form-check-input:checked { background-color: var(--cb-brand); border-color: var(--cb-brand); }
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--cb-brand);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--cb-brand) 15.0%, transparent);
}

/* No stock blue anywhere: every Bootstrap piece that ships with its own blue
   (ticks, switches, sliders, menus, tabs, page numbers, focus rings) uses the
   farm green instead. */
:focus-visible { outline-color: var(--cb-brand); }
.form-check-input:checked, .form-check-input[type=checkbox]:indeterminate {
    background-color: var(--cb-brand); border-color: var(--cb-brand);
}
.form-switch .form-check-input:focus:not(:checked) {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2313544e'/%3e%3c/svg%3e");
}
.form-range::-webkit-slider-thumb { background-color: var(--cb-brand); }
.form-range::-moz-range-thumb { background-color: var(--cb-brand); }
.form-range:focus::-webkit-slider-thumb, .form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 1px var(--cb-card), 0 0 0 .2rem color-mix(in srgb, var(--cb-brand) 25.0%, transparent);
}
.nav-link:focus-visible, .btn-close:focus, .page-link:focus, .accordion-button:focus {
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--cb-brand) 20.0%, transparent);
}
.accordion-button:not(.collapsed) { color: var(--cb-brand); background-color: var(--cb-brand-soft); }
.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--cb-brand-soft);
    --bs-dropdown-link-active-color: var(--cb-brand);
    --bs-dropdown-link-hover-bg: var(--cb-brand-soft);
}
.nav-pills { --bs-nav-pills-link-active-bg: var(--cb-brand); }
.nav { --bs-nav-link-color: var(--cb-brand); --bs-nav-link-hover-color: var(--cb-brand); }
.pagination {
    --bs-pagination-active-bg: var(--cb-brand);
    --bs-pagination-active-border-color: var(--cb-brand);
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--cb-brand) 20.0%, transparent);
}
.progress, .progress-stacked { --bs-progress-bar-bg: var(--cb-brand); }
.list-group {
    --bs-list-group-active-bg: var(--cb-brand);
    --bs-list-group-active-border-color: var(--cb-brand);
}
.text-primary { color: var(--cb-brand) !important; }
.bg-primary { background-color: var(--cb-brand) !important; }
.border-primary { border-color: var(--cb-brand) !important; }

/* ---- components/header.css ---- */
/* =======================================
   Header Desktop Styling
======================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    height: 60px;
    background-color: var(--cb-card);
    border-bottom: 1px solid var(--cb-pill);
    z-index: 1000;
}

header > div {
    display: flex;
    align-items: center;
}

header > div:nth-child(1) { width: var(--cb-side-w); }
header > div:nth-child(2) { width: 60%; }
header > div:nth-child(3) { width: 23.33%; }

/* =======================================
   Logo
======================================= */

.logo-link {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: var(--cb-fs-18);
    font-weight: 700;
    color: var(--cb-action); 
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-left: 20px;
}
 
.mobile-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: var(--cb-fs-18);
    font-weight: 700;
    color: var(--cb-action); 
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-left: 20px;
    padding: 4px 0;
}

/* =======================================
   Navigation Links
======================================= */

.header-navigation {
    margin-left: 13%;
}

/* =======================================
   Header Right Section (Settings, User Image)
======================================= */

.header-right-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 1em;
}

.user-image {
    position: relative;
    margin-left: 1em;
}

.profile-pic {
    width: 2.4em;
    height: 2.4em;
    border-radius: 50%;
    border: 2px solid var(--cb-brand);
    object-fit: cover;
    cursor: pointer;
}

/* =======================================
   Menu Items Styling
======================================= */

/* Additional Styling for Icons in Menu Items */

/* =======================================
   Header Mobile Styling
======================================= */
/* Style the toggle button container */
.navbar-toggler {
    margin-right: 20px; 
    background-color: transparent; /* No background color */
    border: none; /* Remove border */
    padding: 0;
    display: flex; /* Ensure flex layout */
    flex-direction: column; /* Stack lines vertically */
    justify-content: space-between; /* Even spacing between lines */
    width: 25px; /* Width of the toggle button */
    height: 20px; /* Total height to space out lines */
    outline: none; /* Remove the default focus outline */
    box-shadow: none; /* Remove any potential shadow effects */
}

/* Style each line inside the toggle button */
.line {
    background-color: var(--cb-ink-soft); /* Line color */
    width: 100%; /* Make the lines span full width of the container */
    height: 4px; /* Thickness of each line */
}

/* Remove focus outline when clicked or focused */
.navbar-toggler:focus, 
.navbar-toggler:active {
    outline: none; /* Remove outline */
    box-shadow: none; /* Remove any additional shadow */
}

/* Optional: Add a custom focus effect if needed */
.navbar-toggler:focus-visible {
    border: 2px solid var(--cb-ink-soft); /* Custom focus style (optional) */
    border-radius: 4px; /* Rounded focus border */
}

/* Desktop Header: Show only on larger screens */
header {
    display: flex;
}

@media (max-width: 768px) {
    header {
        display: none; /* Hide desktop header */
    }
}

/* Mobile Header Styling */
.navbar {
    display: none; /* Hidden by default */
}

@media (max-width: 768px) {
    .navbar {
        display: flex; 
        width: 100%;
        background-color: var(--cb-page);
        border-bottom: 1px solid var(--cb-line-strong);
        z-index: 1000;
        position: fixed; /* Makes it sticky */
        top: 0; /* Stick to the top of the viewport */
        left: 0; /* Align to the left */
    }
}

/* Remove bullet points and padding/margin */
.mobile-menu {
    list-style: none; /* Removes bullets */
    padding: 0;
    margin: 0;
    display: flex; /* Flexbox for layout */
    flex-direction: column; /* Stack items vertically */
    align-items: flex-end; /* Align items to the right */
}

/* Style the menu items */
.mobile-menu-item {
    color: var(--cb-ink-soft); /* Set text color */
    font-size: 1.1em; /* Text size */
    text-align: right; /* Align text to the right */
    text-decoration: none; /* Remove underline from links */
    margin: 10px 30px 10px 0; /* Add margin: right 30px */
    display: block; /* Ensure the item spans the full width */
    border-bottom: 1px solid var(--cb-pill); /* Add bottom border */
    padding-bottom: 5px; /* Space between text and border */
    font-weight: 500;
}

/* Hover effect for better usability */
.mobile-menu-item:hover {
    color: var(--cb-action); /* Slightly darker color on hover */
    text-decoration: underline; /* Add underline on hover */
}


/* ---- components/buttons.css ---- */
/* =======================================
   - Buttons
   ======================================= */

/* Shared Button Styles */
button,
.default-button,
.preset-button,
.gray-button,
.black-button,
.red-button {
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    padding: 0.3em 1em;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

/* Shared Button Styles */
.success-button {
    font-family: 'Inter', sans-serif;
    font-size: 0.8em;
    padding: 0.2em 0.9em;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none!important;
    background-color: var(--cb-brand);
    color: white;
    border: 1px solid var(--cb-brand);
}

/* Default Button Styling */
.default-button {
    background-color: var(--cb-brand); 
    color: white;
    border: none;
}

.default-button:hover {
    background-color: var(--cb-brand); 
}

/* Preset Button (Used for Egg Gradin)*/
.preset-button{
    background-color: var(--cb-brand); 
    color: white;
    border: none;
}

/* Full Width Button */

/* Gray Button Styling */
.gray-button {
    background-color: white;
    color: var(--cb-ink-soft);
    border: 1px solid var(--cb-line-strong);
}

.gray-button:hover {
    background-color: var(--cb-page);
}

/* Black Button Styling */
.black-button {
    background-color: var(--cb-action);
    color: var(--cb-card);
    border: 1px solid var(--cb-action);
}

.black-button:hover {
    background-color: var(--cb-action);
    color: var(--cb-card);
}

/* The top bar's Create button is always there, so it stays forest: orange is
   kept for the one main button of the page itself. */
.black-button.cb-create-button, .black-button.cb-create-button:hover {
    background-color: var(--cb-brand);
    border-color: var(--cb-brand);
    color: var(--cb-card);
}
.black-button.cb-create-button:hover { background-color: var(--cb-brand); }

/* Orange Button Styling */

/* Red Button Styling */
.red-button {
    background-color: var(--cb-card);
    color: var(--cb-critical);
    border: 1px solid var(--cb-critical);
}

.red-button:hover {
    background-color: var(--cb-critical);
    color: var(--cb-card);
}

.disable-button {
    background-color: transparent;
    color: var(--cb-critical);
    border: none;
}

.disable-button:hover {
    background-color: var(--cb-critical);
    color: var(--cb-card);
}

.edit-button {
    background-color: var(--cb-pill);
    color: var(--cb-ink-soft);
    border: none;
}

.edit-button:hover {
    background-color: var(--cb-line-strong);
    color: var(--cb-action);
}

.print-button {
    background-color: var(--cb-pill);
    color: var(--cb-ink-soft);
    border: none;
}

.print-button:hover {
    background-color: var(--cb-line-strong);
    color: var(--cb-action);
}

.delete-button {
    background-color: var(--cb-pill);
    color: var(--cb-ink-soft);
    border: none;
}

.delete-button:hover {
    background-color: var(--cb-critical);
    color: var(--cb-card);
}

.disabled-button {
    background-color: var(--cb-pill);
    color: var(--cb-ink-soft);
    border: none;
}

.disabled-button:hover {
    background-color: var(--cb-pill);
    color: var(--cb-ink-soft);
}

/* Disabled Button (looks inactive, no hover) */
.disabled-button,
.disabled-button:hover,
.disabled-button:focus {
    background-color: var(--cb-pill);   /* same gray as other utility buttons */
    color: var(--cb-ink-soft)!important;              /* lighter text for “disabled” feel */
    border: none!important;
    cursor: not-allowed!important;         /* show disabled cursor */
    pointer-events: none!important;        /* prevent clicks */
}

/* Ghost Button Styling */

/* Plus Button Styling */

/* Gender Button Styling */

/* Blog Article - Top CTA */

/* Blog Article - Bottom CTA */

/* mini circular “?” icon inside table header */
  .info-icon{
    width:18px;
    height:18px;
    padding:0;
    margin-left:4px;              /* small gap after “HDEP target” text */
    border:1px solid var(--cb-line-strong);
    border-radius:50%;
    background:var(--cb-card);
    color:var(--cb-ink-soft);
    font-size:var(--cb-fs-12);
    font-weight:600;
    line-height:16px;             /* vertically centres the ? */
    text-align:center;
    cursor:pointer;
    transition:background .2s, color .2s, border .2s;
  }
  .info-icon:hover{
    background:var(--cb-brand);           /* dark circle */
    color:var(--cb-card);                   /* white “?” */
    border-color:var(--cb-brand);
  }
  .info-icon:focus{
    outline:none;
    box-shadow:0 0 0 2px color-mix(in srgb, var(--cb-action) 25.0%, transparent);
  }
/* ---- components/tiles.css ---- */
/* =======================================
   - General Styles
   NOTE:
   If you are looking for the reports tile,
   check the file report.css
======================================= */

.tile {
    border-radius: 0.6em; /* Rounded corners */
    border: 1px solid var(--cb-pill); /* Light gray border */
    margin: 0.8em; /* Margin around each tile */
    padding: 10px; /* Consistent padding for all tiles */
    box-sizing: border-box;
    background-color: var(--cb-card); /* White background */
}

.max-width { max-width: 1100px; }
.max-width-settings { max-width: 1000px; }
.min-height { min-height: 550px; }

.tile-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tile-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1em;
    padding-right: 1em;
    margin-top: auto;
}

.settings-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1em;
    margin-top: auto;
    align-items: center;
}

/* =======================================
   - Tile Layout Sets
======================================= */

/* Tile Edit: used in Edit, for example edit deaths */
/* One short form in a white card on the left, like every other form page (no big empty card around it) */
.tile:has(> .min-height > .tile-edit-parent) { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.min-height:has(> .tile-edit-parent) { min-height: 0 !important; }
.tile-edit-parent { display: block; }

.tile-edit {
    width: 100%;
    max-width: 560px;
    margin: 0;
    padding: 28px;
}

/* Set 1: Full-Width Tile */
.tile-set-one { width: calc(100% - 1.6em); }

/* Set 2: 4/5 + 1/5 Structure */
.tile-set-two .tile-main { width: 80%; }
.tile-set-two .tile-side { width: 20%; }

/* Set 2b: 30 + 70 Structure */
.tile-set-two-b .tile-side { width: 30%;}
.tile-set-two-b .tile-main { width: 70%; }
.tile-set-two-b .tile-main h2 {
    font-size: 1em;
    font-weight: 600;
    margin-left: 15px;
    margin-top: 10px;
}

/* Set 3: 3/5 + 2/5 Structure */
.tile-set-three .tile-main { width: 60%; }
.tile-set-three .tile-side { width: 40%; }

/* Set 4: 3/5 + 1/5 + 1/5 Structure */
.tile-set-four .tile-main { width: 70%; }


/* ---- components/elements.css ---- */
/* =======================================
   - Icon Styles
   ======================================= */

/* The app's own line icons ({% icon "name" %}, static/images/icons/svg/).
   They take the colour of the text around them. */
.cb-svg {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    vertical-align: -0.25em;
}

/* Default icon styles */
.cb-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    color: var(--cb-brand);
}

.main-sidebar .nav-link:hover .cb-icon,
.main-sidebar .nav-link.active .cb-icon { color: var(--cb-brand); }

/* An icon sitting in a heading or a line of text */
.cb-inline-icon { margin-right: .3em; }

/* =======================================
   - Checkboxes Styles
   ======================================= */

/* =======================================
   Label Styles
======================================= */

/* Small and Medium Labels */
.label-small {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    border-radius: 8px;
}

.label-small {
    font-size: var(--cb-fs-12);
    padding: 0.1em 0.7em;
}

/* Existing Label Colors */
.label-orange { background-color: var(--cb-brand-soft); color: var(--cb-brand); }
.label-green  { background-color: var(--cb-brand-soft); color: var(--cb-brand); }
.label-gray   { background-color: var(--cb-pill); color: var(--cb-ink-soft); }
.label-red    { background-color: var(--cb-critical-soft); color: var(--cb-critical); }
.label-blue   { background-color: var(--cb-brand-soft); color: var(--cb-brand); }   /* paused: farm green, no blue */

/* Broilers and layers tags: the same two colours as the buttons, bars and
   charts everywhere (terracotta for broilers, green for layers), as a soft
   pill with a dot so they read at a glance without shouting. */
.label-broilers, .label-layers {
    gap: 0.4em;
    border-radius: 999px;
    padding: 0.2em 0.75em 0.2em 0.6em;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid transparent;
}
.label-broilers::before, .label-layers::before {
    content: "";
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}
.label-broilers { background-color: var(--cb-broilers-soft); color: var(--cb-brand); border-color: transparent; }
.label-layers   { background-color: var(--cb-warm-soft); color: var(--cb-warm-ink); border-color: transparent; }

/* A “Yellow” style (similar to .cb-card--yellow) */

/* A “Lime” style (similar to .cb-card--lime) */

/* A light green style (similar to .cb-card--green / “Pullet”) */

/* A light blue/teal style (similar to .cb-card--blue / “Laying”) */

/* =======================================
   Labels Used in Measurement Units
======================================= */
.measurement-unit {
    font-size: var(--cb-fs-14);
    padding: 1px 10px;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, background-color 0.3s, font-weight 0.3s;
    position: relative;
    z-index: 1;
    color: var(--cb-ink-soft); /* Default unselected color */
    font-weight: 400; /* Default unselected weight */
}

/* Selected State */
.measurement-unit.selected {
    color: white !important; /* Ensure text turns white */
    font-weight: 700 !important; /* Bold text when selected */
}

/* Background for Selected State */
.measurement-unit.selected::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cb-brand);
    border-radius: 4px;
    z-index: -1;
}

/* Unselected State */
.measurement-unit.unselected {
    background-color: transparent;
    color: var(--cb-ink-soft);
    font-weight: 400;
}

/* Hidden Radio Buttons */
.hidden-radio {
    display: none;
}

/* Clickable Labels */
.unit-label {
    cursor: pointer;
}

/* ── stage-label colours: use the darker/hover tone of the cb-cards ── */


/* ---- components/typography.css ---- */
/* =======================================
   Typography and Global Colors
======================================= */

/* =======================================
   Typography and Global Colors
   (text + background helper utilities)
======================================= */

/* ---------- Text Colors ---------- */
.gc-accent       { color:var(--cb-brand); }
.gc-blue         { color:var(--cb-brand); }
.gc-pale-red          { color:var(--cb-critical); }
.gc-black        { color:var(--cb-action); }
.gc-green        { color:var(--cb-good); }   /* a change that is good news (green arrow), Anton 25 Oct 2026 */
.gc-gray         { color:var(--cb-ink-soft); }
.gc-light-gray   { color:var(--cb-line-strong); }

/* project-specific */

/* ---------- Background Colors ---------- */
.bg-accent       { background-color:var(--cb-brand); }
.bg-black        { background-color:var(--cb-action); }
.bg-light-gray   { background-color:var(--cb-line-strong); }

/* project-specific */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--cb-action);
    text-decoration: none;
    padding: 0;
}

h1 {
    font-size: var(--cb-fs-24);
}

h2 {
    font-size: var(--cb-fs-14);
}

/* Text Elements */
body, a, span, div, p {
    font-family: "Inter", sans-serif;
    color: var(--cb-ink-soft);
    text-decoration: none;
    font-weight: 400;
}

p, span {
    font-size: var(--cb-fs-14);
}

p a { color: var(--cb-ink-soft); }
p i { margin-right: 5px; color: var(--cb-ink-soft); }
p:hover i { color: var(--cb-brand); }

/* Page Titles */
.page-title {
    font-size: 0.8em;
    font-weight: 700;
}

.page-subtitle {
    font-size: 0.8em;
    font-weight: 400;
}

/* Font Weights */
.weight-600 { font-weight: 600; }
.weight-700 { font-weight: 700; }

/* Alert Messages */
.alert-message,
.success-message {
    font-size: var(--cb-fs-14);
    line-height: 20px;
    border-radius: 5px;
    padding: 0.4em;
    text-align: center;
    min-height: 20px;
    width: 100%;
    border: none;
}

.alert-message {
    background-color: var(--cb-brand-soft);
    color: var(--cb-brand);
}

.success-message {
    background-color: var(--cb-brand-soft); 
    color: var(--cb-brand);
    position: relative; 
    padding: 1rem;      
  }
  
  .success-message .close-message {
    position: absolute;
    top: 8px;           /* adjust for desired spacing from top */
    right: 8px;         /* adjust for desired spacing from right */
    width: 28px;
    height: 28px;
    border: none;
    background-color: var(--cb-brand-soft);
    color: var(--cb-brand);
    font-size: var(--cb-fs-20);
    line-height: 24px; /* keeps text centered vertically */
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ---- components/sidebar.css ---- */
/* =======================================
   Sidebar
======================================= */

/* One width for the sidebar, the header's logo space and the page's left edge */
:root { --cb-side-w: clamp(220px, 19vw, 320px); }

/* Main Sidebar Container */
.main-sidebar {
    position: fixed;
    top: 60px; /* Positioned below the header */
    left: 0;
    width: var(--cb-side-w); /* never so narrow the labels get cut */
    height: calc(100vh - 60px); /* Full height minus header height */
    padding: 0;
    margin: 0;
    background-color: var(--cb-page); /* Consistent sidebar background */
    /* Bottom links sit under the menu; on short screens the sidebar scrolls
       instead of the bottom links covering the last menu items. */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none; /* still scrolls with the wheel or a finger, but no grey bar */
}
.main-sidebar::-webkit-scrollbar { display: none; }

/* Sidebar Navigation Links */
.main-sidebar .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9em; 
    font-weight: 500;
    color: var(--cb-ink-soft);
    padding: 10px 20px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 5px; /* Rounded corners for all links */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Remove bullets from sidebar lists */
.main-sidebar ul {
    list-style-type: none;
    padding-left: 0;
}

/* Link Hover & Active State */
.main-sidebar .nav-link:hover,
.main-sidebar .nav-link.active {
    background-color: var(--cb-brand-soft); /* Background on hover and active */
    color: var(--cb-action); /* Text color change on hover and active */
    border-radius: 5px;
}

/* Sidebar Icons */
.main-sidebar .nav-link i {
    font-size: 1.2em;
    margin-right: 10px;
    color: inherit; /* Inherit link color */
}

/* Back Home Link Styling */
.main-sidebar .nav-link.back-home-link {
    font-size: 0.8em; /* Smaller font for back home link */
}

.main-sidebar .nav-link.back-home-link i {
    font-size: 0.8em; /* Smaller icon for back home link */
}

/* Submenu Container - Initially hidden with transition */

/* Active submenu with dynamic max-height set in JavaScript */

/* Submenu Links */

/* Submenu Hover & Active State */

/* Sidebar Bottom Items - Sticks items to the bottom */

/* =======================================
   Settings Sidebar
======================================= */

/* Settings Sidebar Container */
.settings-sidebar {
    left: 0;
    padding: 0;
    margin: 0;
}

/* Sidebar Title */
nav h3 {
    font-size: 1em;
    font-weight: 700;
    margin: 20px;
    color: var(--cb-action);
}

/* Sidebar Navigation Links */
.settings-sidebar .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--cb-ink-soft);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 5px;
    /* no fade: the current page's pill would flash half-coloured as each page opens */
}

/* Remove bullets from sidebar lists */
.settings-sidebar ul {
    list-style: none;
    padding-left: 0;
}

/* Link Hover & Active State */
.settings-sidebar .nav-link:hover,
.settings-sidebar .nav-link.active {
    background-color: var(--cb-pill);
    color: var(--cb-action);
}

/* Sidebar Icons: one fixed-width column, so every label starts in line */
.settings-sidebar .nav-link i {
    font-size: 1.05em;
    width: 1.25em;
    text-align: center;
    flex-shrink: 0;
    margin-right: 12px;
    color: var(--cb-ink-soft);
}
.settings-sidebar .nav-link:hover i,
.settings-sidebar .nav-link.active i {
    color: var(--cb-brand);
}
.settings-sidebar .nav-link.active {
    background-color: var(--cb-brand-soft);
    color: var(--cb-brand);
    font-weight: 600;
}

/* Small group names (You, Farm, Egg layers...) between the links */
.settings-sidebar .settings-group {
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cb-ink-soft);
    padding: 14px 20px 4px;
}
.settings-sidebar .settings-group:first-child {
    padding-top: 4px;
}

/* Sidebar Icons (SVG Version) */
.settings-sidebar .nav-link svg {
    width: 1.2em; /* Optional: Adjust SVG size */
    height: 1.2em; /* Optional: Adjust SVG size */
    margin-right: 10px; /* Add space between SVG icon and text */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Back Home Link Styling */
.settings-sidebar .nav-link.back-home-link {
    font-size: 0.8em;
}

.settings-sidebar .nav-link.back-home-link i {
    font-size: 0.8em;
}

/* Submenu Container - Initially hidden */

/* Active submenu */

/* Submenu Links */

/* Submenu Hover & Active State */

/* Sidebar Bottom Items */


/* ---- components/dropdown.css ---- */
/* =======================================
   Universal Dropdown Menu Styling
======================================= */

.create-menu,
.user-image {
    position: relative; /* Aligns the dropdown relative to the button */
}

/* Universal Dropdown Menu Styling */
.ud-menu {
    display: none; /* Hidden initially */
    position: absolute;
    background-color: var(--cb-card);
    border: 1px solid var(--cb-line-strong);
    list-style: none;
    margin-top: 5px;
    padding: 8px 0; /* Consistent padding */
    right: 0; /* Aligns the right side of the dropdown to the button */
    top: 100%;
    box-shadow: 0px 4px 8px color-mix(in srgb, var(--cb-action) 10.0%, transparent);
    border-radius: 5px;
    z-index: 1000;
}

/* Show dropdown when 'show' class is added */
.ud-menu.show {
    display: block;
}

/* Dropdown Widths */

.ud-menu-m {
    width: 150px !important;     
}

.ud-menu-l {
    width: 200px !important;     
}

/* Dropdown Items Styling */
.ud-menu-item {
    font-size: var(--cb-fs-14);
    margin: 0;
    text-align: left;
    width: 100%;
}

.ud-menu-item a {
    display: block;
    padding: 0.5em 1em; /* Adds padding within the link */
    color: var(--cb-action);
    text-decoration: none;
    width: 100%;
}

.ud-menu-item a:hover {
    background-color: var(--cb-brand-soft);
}

/* A menu row that changes something is a small form: its button looks like the links */
.ud-menu-item form { margin: 0; }
.ud-menu-button {
    display: block;
    width: 100%;
    padding: 0.5em 1em;
    border: 0;
    background: none;
    color: var(--cb-action);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.ud-menu-button:hover { background-color: var(--cb-brand-soft); }

/* ======================================================================
   CHART-DROPDOWN MODULE
====================================================================== */

/* Positioning context (optional, but handy if the button itself doesn’t have
   `position:relative`) */
   .chart-dropdown {
    position: relative;
  }
  
  /* ── Toggle button chevron rotation ─────────────────────────────────── */
  .chart-dropdown-toggle .icon-chevron {
    transition: transform 0.15s ease;
  }
  .chart-dropdown-toggle.is-open .icon-chevron {
    transform: rotate(180deg);
  }
  
  /* ── Menu container ─────────────────────────────────────────────────── */
  .chart-dropdown-menu {
    display: none;                    /* shown/hidden by JS */
    position: absolute;
    right: 0;
    top: 100%;                        /* drops below the button */
    margin-top: .25rem;               /* 4 px gap */
    background: var(--cb-card);
    border: 1px solid var(--cb-pill);
    border-radius: .375rem;           /* 6 px */
    box-shadow: 0 4px 12px color-mix(in srgb, var(--cb-action) 8.0%, transparent);
    min-width: 14rem;                 /* default 224 px */
    z-index: 50;
    padding: .25rem 0;                /* vertical breathing room */
  }
  .chart-dropdown-menu.show {
    display: block;
  }
  /* A button on the left of its row (Home's "Monthly Sales"): the menu
     opens straight under it, lined up with the button's left edge. */
  .report-sf-cell.chart-dropdown:first-child .chart-dropdown-menu {
    left: 0;
    right: auto;
  }
  
  /* ── List structure ─────────────────────────────────────────────────── */
  .chart-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .chart-dropdown-item a {
    display: block;
    padding: .5rem 1rem;
    font-size: var(--cb-fs-14);               /* 14 px */
    color: var(--cb-action);
    text-decoration: none;
    white-space: nowrap;
  }
  .chart-dropdown-item a:hover {
    background: var(--cb-page);
  }
  
  /* Divider line inside the menu */
  .chart-dropdown-menu .divider {
    height: 1px;
    margin: .25rem 0;
    background: var(--cb-pill);
  }
  
  /* ── Embedded custom-range form (datepicker → Apply) ────────────────── */
  .chart-dropdown-menu .custom-range-form {
    display: grid;
    gap: .25rem;
    padding: .5rem 1rem;
  }
  .chart-dropdown-menu .custom-range-form input[type="date"],
  .chart-dropdown-menu .custom-range-form input.cb-date-box {
    padding: .25rem .5rem;
    font-size: var(--cb-fs-14);
  }
  
  /* ── S / M / L width modifiers (optional) ───────────────────────────── */

/* The Test fill button (DEBUG only): purple so nobody forgets to remove it before launch. */
.cb-test-fill { list-style: none; }
.cb-test-fill button {
    display: block;
    width: 100%;
    padding: 0.5em 1em;
    border: 0;
    background: var(--cb-ink-soft);
    color: var(--cb-card);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.cb-test-fill button:hover { background: var(--cb-ink-soft); }
.cb-test-fill-list { margin: 0 0 1rem; padding: 0; border-radius: 10px; overflow: hidden; max-width: 320px; }
.cb-test-fill-list .cb-test-fill { font-size: var(--cb-fs-16); }
.cb-test-fill-list button { padding: 0.8em 1em; }

/* ---- components/forms.css ---- */
/* =======================================
Global Form Style
======================================= */

.global-form {
  width: 100%;
  margin: 0 auto;
  background-color: var(--cb-card); /* Form background color */
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-family: 'Inter', sans-serif;
}

/* Input Fields */
.global-form input[type="text"],
.global-form input[type="email"],
.global-form input[type="number"],
.global-form input[type="date"],
.global-form input[type="password"],
.global-form select,
.global-form textarea {
  width: 100%;
  padding: 0.5em;
  font-size: var(--cb-fs-14);
  font-weight: 500;
  color: var(--cb-ink-soft);
  background-color: var(--cb-card);
  border: 1px solid var(--cb-pill);
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* Focus and Hover Styling for All Input Types Except Inactive */
.global-form input[type="text"]:not(.inactive-input):focus,
.global-form input[type="text"]:not(.inactive-input):hover,
.global-form input[type="email"]:not(.inactive-input):focus,
.global-form input[type="email"]:not(.inactive-input):hover,
.global-form input[type="number"]:not(.inactive-input):focus,
.global-form input[type="number"]:not(.inactive-input):hover,
.global-form input[type="date"]:not(.inactive-input):focus,
.global-form input[type="date"]:not(.inactive-input):hover,
.global-form input[type="password"]:not(.inactive-input):focus,
.global-form input[type="password"]:not(.inactive-input):hover,
.global-form select:not(.inactive-input):focus,
.global-form select:not(.inactive-input):hover,
.global-form textarea:not(.inactive-input):focus,
.global-form textarea:not(.inactive-input):hover {
  border-color: var(--cb-brand);
  box-shadow: 0 0 5px color-mix(in srgb, var(--cb-brand) 30.0%, transparent);
  outline: none;
}

/* Inactive Input Styling */
.global-form .inactive-input {
  background-color: var(--cb-pill) !important;
  color: var(--cb-brand-soft);
  border-color: var(--cb-line-strong);
  box-shadow: none !important; /* Disable shadow for inactive inputs */
}

/* Placeholder Styling for Inactive Input */
.global-form .inactive-input::placeholder {
  color: var(--cb-ink-soft) !important;
  opacity: 1 !important;
}

/* Specific Selector for Password Field */
.global-form input[type="password"] {
  color: var(--cb-ink-soft);
  background-color: var(--cb-card);
  border: 1px solid var(--cb-pill);
}

/* Custom Dropdown Arrow for Select */
.global-form select {
  appearance: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="20" viewBox="0 0 24 24"><path fill="%234B5675" d="M7 10l5 5 5-5z"/></svg>'); /* Custom down arrow */
  background-repeat: no-repeat;
  background-position: right 5px center;
}

/* Placeholder Styling */
.global-form input::placeholder,
.global-form textarea::placeholder,
.global-form input[type="date"]::placeholder {
  color: var(--cb-ink-soft);
  font-weight: 400;
  opacity: 1;
  font-size: var(--cb-fs-14);
}

/* Form Row for Grouped Fields */
.global-form .form-row {
  display: flex;
  justify-content: space-between;
  gap: 1em;
}

/* Specific width styles for form groups within form rows */
.global-form .form-row.two-column .form-group {
  width: 49%;
}

.global-form .form-row.three-column .form-group {
  width: 33%;
}

.form-m {
  max-width: 500px;
}

.global-form label {
  font-family: 'Inter', sans-serif;
  font-size: var(--cb-fs-14);
  margin: 5px 0 5px 5px;
  background-color: var(--cb-pill); 
  color: var(--cb-ink-soft);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  border-radius: 4px;
  padding: 0 10px;
}

.form-control-inline {
  text-align: left; 
}

.form-check-label {
  margin-bottom: 0; 
}

.readonly {
  background-color: var(--cb-pill); /* Match inactive inputs */
  border: 1px solid var(--cb-pill);
  color: var(--cb-ink-soft);
}

/* =======================================
Create Form Style
======================================= */

.create-form {
  padding: 80px;
}

.create-form h2 {
  margin: 30px 0 -8px 0!important;
  width: 100%;
}

.form-spacing {
  margin: 20px auto;
}

.input-spacing {
  margin: 10px 0;
}

.create-button-spacing {
  margin: 30px 0;
}

/* -------------------------------------------------------
   1) New Global Form
   ------------------------------------------------------- */
   .cb-wrapper {
    width: 100%;
    max-width: 660px; /* Increased from 520px to 720px */
    margin: 0.5rem auto;
    padding: 2rem 4rem;
    background-color: var(--cb-card);
    border-radius: 0.475rem;
    border: 1px solid var(--cb-pill); /* New border */
  }
  
  .cb-title {
    font-size: var(--cb-fs-20);
    font-weight: 600;
    color: var(--cb-action);
    width: 100%;
    max-width: 660px; /* Increased from 520px to 720px */
    margin: 0 auto;
    padding: 0;
  }
  
  .cb-subtitle {
    font-size: var(--cb-fs-14);
    line-height: 20px;
    border-radius: 5px;
    text-align: left;
    min-height: 20px;
    width: 100%;
    border: none;
    background-color: var(--cb-brand-soft);
    color: var(--cb-brand);
    position: relative;
    padding: 1rem;
    margin-bottom: 10px;
  }

  .cb-subtitle a {
    color: var(--cb-brand);
    text-decoration: underline;
    font-weight: 600;
  }

  .cb-subtitle-orange {
    font-size: var(--cb-fs-14);
    line-height: 20px;
    border-radius: 5px;
    text-align: left;
    min-height: 20px;
    width: 100%;
    border: none;
    background-color: var(--cb-brand-soft);
    color: var(--cb-brand);
    position: relative;
    padding: 1rem;
    margin-bottom: 10px;
  }
  
  .cb-subtitle-orange a {
    color: var(--cb-brand);
    text-decoration: underline;
    font-weight: 600;
  }

  .cb-subtitle-red {
    font-size: var(--cb-fs-14);
    line-height: 20px;
    border-radius: 5px;
    text-align: left;
    min-height: 20px;
    width: 100%;
    border: none;
    background-color: var(--cb-critical-soft);
    color: var(--cb-critical);
    position: relative;
    padding: 1rem;
    margin-bottom: 10px;
  }
  
  .cb-subtitle-red a {
    color: var(--cb-critical);
    text-decoration: underline;
    font-weight: 600;
  }
  
  .cb-form {
    display: block;
  }
  
  /* Input Group + Label */
  .cb-input-group {
    margin-bottom: 1.25rem;
  }

  /* The labels inside the card */
.cb-label { 
  font-size: var(--cb-fs-14)!important;
  color: var(--cb-action);
  font-weight: 600;
  border-radius: 4px;
  padding: 0.2em 0.5em;
  margin: 0 0.2em;
  display: inline-block;
}

  .cb-required-asterisk {
    color: var(--cb-critical);
    margin-left: 2px;
    font-weight: 700;
    font-size: var(--cb-fs-16);
  }
  
  /* Link styling for "Add +" */
  .cb-add-link a {
    color: var(--cb-brand);
    text-decoration: none;
  }
  
  /* Reusable input & textarea styling for all types of inputs */
  .cb-form input[type="text"],
  .cb-form input[type="email"],
  .cb-form input[type="password"],
  .cb-form input[type="tel"],
  .cb-form input[type="number"],
  .cb-form input[type="search"],
  .cb-form input[type="url"],
  .cb-form select,
  .cb-form textarea {
    width: 100%;
    font-size: var(--cb-fs-16);
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 0.475rem;
    background-color: var(--cb-page);
    color: var(--cb-ink-soft);
    outline: none;
  }
  
  /* Placeholder color for text inputs and textarea */
  .cb-form input::placeholder,
  .cb-form textarea::placeholder {
    color: var(--cb-ink-soft);
  }
  
  /* Layout Row/Col for multi-column arrangement */
  .cb-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .cb-col {
    flex: 1 1 0;
  }
  
  /* Switches */
  .cb-switch-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  .cb-switch-text-block {
    font-size: var(--cb-fs-14);
    color: var(--cb-action);
  }
  .cb-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
  }
  .cb-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .cb-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    background-color: var(--cb-line-strong);
    cursor: pointer;
    transition: 0.4s;
  }
  .cb-slider:before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--cb-card);
    border-radius: 50%;
    transition: 0.4s;
  }
  .cb-switch input:checked + .cb-slider {
    background-color: var(--cb-brand);
  }
  .cb-switch input:checked + .cb-slider:before {
    transform: translateX(20px);
  }

  /* =======================================================
   Broilers & Layers switches — compact size (30 × 15)
   ======================================================= */

/* ❶ Base sizing/position */
.cb-switch-broilers,
.cb-switch-layers {
  position: relative;
  display: inline-block;
  width: 30px;   /* narrower track */
  height: 15px;  /* slimmer height */
}

/* ❷ Hide the native checkbox */
.cb-switch-broilers input,
.cb-switch-layers input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* ❸ Track & knob (grey when OFF) */
.cb-slider-broilers,
.cb-slider-layers {
  position: absolute;
  inset: 0;
  border-radius: 15px;          /* match new height */
  background-color: var(--cb-line-strong);
  cursor: pointer;
  transition: 0.4s;
}
.cb-slider-broilers::before,
.cb-slider-layers::before {
  content: "";
  position: absolute;
  height: 11px;                 /* knob = track height − 4 px */
  width:  11px;
  left: 2px;                    /* 2 px side margin */
  bottom: 2px;
  background-color: var(--cb-card);
  border-radius: 50%;
  transition: 0.4s;
}

/* ❹ “ON” colours */
.cb-switch-broilers input:checked + .cb-slider-broilers {
  background-color: var(--cb-broilers);
}
.cb-switch-layers  input:checked + .cb-slider-layers  {
  background-color: var(--cb-warm);
}

/* ❺ Knob slide distance (≈½ track width) */
.cb-switch-broilers input:checked + .cb-slider-broilers::before,
.cb-switch-layers  input:checked + .cb-slider-layers::before {
  transform: translateX(15px);
}

/* =======================================================
   Forecast / Actual switches — compact size (30 × 15)
   ======================================================= */

/* ❶ Base sizing/position */
.cb-switch-forecast,
.cb-switch-actual-l {
  position: relative;
  display: inline-block;
  width: 30px;   /* same narrow track */
  height: 15px;  /* same slim height */
}

/* ❷ Hide the native checkbox */
.cb-switch-forecast input,
.cb-switch-actual-l input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* ❸ Track & knob (grey when OFF) */
.cb-slider-forecast,
.cb-slider-actual-l {
  position: absolute;
  inset: 0;
  border-radius: 15px;
  background-color: var(--cb-line-strong);
  cursor: pointer;
  transition: 0.4s;
}
.cb-slider-forecast::before,
.cb-slider-actual-l::before {
  content: "";
  position: absolute;
  height: 11px;
  width: 11px;
  left: 2px;
  bottom: 2px;
  background-color: var(--cb-card);
  border-radius: 50%;
  transition: 0.4s;
}

/* ❹ “ON” colours */
.cb-switch-forecast input:checked + .cb-slider-forecast {
  background-color: var(--cb-warm);          /* amber */
}
.cb-switch-actual-l input:checked + .cb-slider-actual-l {
  background-color: var(--cb-warm);          /* layers actual */
}

/* ❺ Knob slide distance (≈½ track width) */
.cb-switch-forecast input:checked + .cb-slider-forecast::before,
.cb-switch-actual-l input:checked + .cb-slider-actual-l::before {
  transform: translateX(15px);
}

  /* Notifications / checkboxes */

  .cb-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--cb-brand);
    cursor: pointer;
  }
  
  /* Form actions (buttons on the right) */
  .cb-form-actions {
    text-align: right;
    margin-top: 1rem;
  }

  /* -------------------------------------------------------
     2) CUSTOMIZE FLATPICKR
     ------------------------------------------------------- */
  /* The site's own calendar, on every date box: a calm white card in the
     farm's colours, round days, the picked day in deep green. */
  .flatpickr-calendar {
    font-family: inherit;
    background: var(--cb-card);
    border: 1px solid var(--cb-pill) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--cb-action) 12.0%, transparent), 0 2px 6px color-mix(in srgb, var(--cb-action) 6.0%, transparent) !important;
    padding: 8px 8px 10px;
    width: auto !important;
  }
  .flatpickr-calendar::before,
  .flatpickr-calendar::after { display: none !important; }  /* no little arrow */
  .flatpickr-calendar.open { margin-top: 6px; }
  .flatpickr-calendar.arrowBottom.open { margin-top: -6px; }

  /* Month bar: the month and year in the middle, round arrows either side */
  .flatpickr-months {
    position: relative;
    align-items: center;
    background: transparent;
    padding: 2px 0 6px;
  }
  .flatpickr-months .flatpickr-month {
    height: 40px;
    background: transparent;
    color: var(--cb-action);
    fill: var(--cb-action);
  }
  .flatpickr-current-month {
    left: 0;
    width: 100%;
    padding-top: 6px;
    font-size: var(--cb-fs-16) !important;
    font-weight: 700 !important;
    color: var(--cb-action) !important;
  }
  .flatpickr-current-month .flatpickr-monthDropdown-months,
  .flatpickr-current-month input.cur-year {
    font-weight: 700 !important;
    font-size: var(--cb-fs-16) !important;
    color: var(--cb-action) !important;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 4px 6px;
    margin: 0;
    appearance: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
  }
  .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
  .flatpickr-current-month input.cur-year:hover,
  .flatpickr-current-month .numInputWrapper:hover {
    background: var(--cb-brand-soft);
  }
  .flatpickr-current-month .numInputWrapper { width: 7ch; border-radius: 8px; }
  .flatpickr-current-month .numInputWrapper span.arrowUp,
  .flatpickr-current-month .numInputWrapper span.arrowDown { display: none; }
  /* Form rules give boxes a tall height; the calendar's month and year must stay small */
  .flatpickr-calendar select.flatpickr-monthDropdown-months,
  .flatpickr-calendar input.cur-year {
    height: auto !important;
    min-height: 0 !important;
    width: auto;
  }
  .flatpickr-months .flatpickr-prev-month,
  .flatpickr-months .flatpickr-next-month {
    top: 6px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--cb-ink-soft);
    fill: var(--cb-ink-soft);
  }
  .flatpickr-months .flatpickr-prev-month { left: 4px; }
  .flatpickr-months .flatpickr-next-month { right: 4px; }
  .flatpickr-months .flatpickr-prev-month svg,
  .flatpickr-months .flatpickr-next-month svg { width: 12px; height: 12px; }
  .flatpickr-months .flatpickr-prev-month:hover,
  .flatpickr-months .flatpickr-next-month:hover {
    background: var(--cb-brand-soft);
    color: var(--cb-brand);
  }
  .flatpickr-months .flatpickr-prev-month:hover svg,
  .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--cb-brand); }

  /* Day names: small and quiet */
  .flatpickr-weekdays { background: transparent; height: 30px; }
  span.flatpickr-weekday {
    background: transparent;
    color: var(--cb-ink-soft);
    font-size: var(--cb-fs-12);
    font-weight: 600;
  }

  /* Days: round, with a little air between them */
  .flatpickr-days { border: none !important; width: auto !important; }
  .flatpickr-days .dayContainer {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    gap: 2px 0;
  }
  .flatpickr-day {
    max-width: 38px;
    height: 38px;
    line-height: 38px;
    margin: 0 1px;
    border: 1px solid transparent !important;
    border-radius: 50% !important;
    color: var(--cb-action);
    font-size: var(--cb-fs-14);
  }
  .flatpickr-day:hover,
  .flatpickr-day:focus {
    background: var(--cb-brand-soft);
    color: var(--cb-brand);
  }
  .flatpickr-day.prevMonthDay,
  .flatpickr-day.nextMonthDay { color: var(--cb-ink-soft); }
  /* Today: a green ring, so it never looks picked */
  .flatpickr-calendar .flatpickr-day.today {
    border-color: var(--cb-line-strong) !important;
    background: transparent;
    color: var(--cb-brand);
    font-weight: 700;
  }
  .flatpickr-calendar .flatpickr-day.today:hover { background: var(--cb-brand-soft); }
  /* The picked day uses the brand colour, not the browser's blue */
  .flatpickr-calendar .flatpickr-day.selected,
  .flatpickr-calendar .flatpickr-day.selected:hover,
  .flatpickr-calendar .flatpickr-day.selected:focus,
  .flatpickr-calendar .flatpickr-day.startRange,
  .flatpickr-calendar .flatpickr-day.endRange,
  .flatpickr-calendar .flatpickr-day.startRange:hover,
  .flatpickr-calendar .flatpickr-day.endRange:hover {
    border-color: var(--cb-brand) !important;
    background: var(--cb-brand);
    color: var(--cb-card);
    font-weight: 700;
  }
  .flatpickr-day.inRange {
    background: var(--cb-brand-soft);
    box-shadow: none;
    color: var(--cb-action);
  }
  .flatpickr-day.flatpickr-disabled,
  .flatpickr-day.flatpickr-disabled:hover,
  .flatpickr-day.disabled,
  .flatpickr-day.disabled:hover {
    background: transparent;
    color: var(--cb-line-strong);
    cursor: not-allowed;
  }

  .cb-cal-foot {
    display: flex;
    justify-content: space-between;
    padding: 8px 6px 0;
    margin-top: 6px;
    border-top: 1px solid var(--cb-pill);
  }
  .cb-cal-foot button {
    background: none;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--cb-brand);
    font-weight: 600;
    font-size: var(--cb-fs-14);
    cursor: pointer;
  }
  .cb-cal-foot button:hover { background: var(--cb-brand-soft); }
  .cb-cal-foot button:only-child { margin-left: auto; }

  /* The date box itself: a calendar sign on the right, like the browser's */
  input.cb-date-box,
  input.flatpickr-input[type="text"] {
    background-image: var(--cb-icon-calendar);
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 40px !important;
    cursor: pointer;
  }

/* -------------------------------------------------------
   3) INACTIVE CLASS
   ------------------------------------------------------- */
/* For debugging: highlight disabled fields in red */
.inactive-input {
  background-color: var(--cb-pill)!important;
  border: none!important;
  color: var(--cb-action)!important; /* or var(--cb-line-strong), if you prefer a lighter text color */
} 

.cb-row.cb-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center; /* Add this line */
}

/* This align the checkbox to the input only when there is an input */
.cb-input-checkbox {
  margin-top: 24px;
  width: 18px;
    height: 18px;
    accent-color: var(--cb-brand);
    cursor: pointer;
}

/* New broiler batch: the tick box sits next to its own name, above the number */
.cb-sex-option .cb-col { flex: 1 1 100%; }
.cb-sex-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.cb-sex-choice .cb-input-checkbox { margin-top: 0; flex: 0 0 auto; }
.cb-sex-choice .cb-label { margin-bottom: 0; cursor: pointer; }

/* -------------------------------------------------------
   SELECT2 MULTI-SELECT to match .cb-form styling
   ------------------------------------------------------- */

/* Force container to be full-width */
.select2-container {
  width: 100% !important;
}

/* Mimic your .cb-form inputs: same padding, background, font size, etc. */
.select2-container--default .select2-selection--multiple {
  background-color: var(--cb-page)!important;
  border: none!important;                 /* No border */
  border-radius: 0.475rem;
  padding: 0.7rem 1rem;        /* Same as your .cb-form inputs */
  font-size: var(--cb-fs-16);
  color: var(--cb-ink-soft)!important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  box-sizing: border-box;
  min-height: auto;
}

/* No outline on focus */
.select2-container--default.select2-container--focus .select2-selection--multiple {
  box-shadow: none;
  border: none;
}

/* Color each "tag" differently based on class */
.select2-container--default .select2-selection__choice {
  border: none!important; 
  border-radius: 0.25rem;
  margin: 4px 4px 0 0;
  padding: 0rem 0.6rem 0.1rem 1.4rem!important;
  font-size: var(--cb-fs-14);
  display: inline-flex;
  align-items: center;
  color: var(--cb-action); /* dark words: the leaf and honey fills are light */
}

/* Leaf green for broilers */
.select2-container--default .select2-selection__choice.broiler-choice {
  background-color: var(--cb-broilers)!important;
}

/* Honey for layers */
.select2-container--default .select2-selection__choice.layer-choice {
  background-color: var(--cb-warm)!important;
}

/* The small “x” remove icon */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--cb-card)!important;
  margin-right: 4px;
}

/* Remove hover effect on the "x" remove icon */
.select2-container--default .select2-selection__choice__remove:hover {
  background-color: transparent !important;
  color: inherit !important; /* or var(--cb-card), if you prefer */
  cursor: pointer;          /* still keep the pointer if you want */
  box-shadow: none !important;
  text-decoration: none !important; 
}

/* The text input inside the multi-select (where the user types) */
.select2-container--default .select2-search--inline .select2-search__field {
  background: transparent;
  border: none;
  outline: none;
  margin: 0;
  padding: 0; /* We rely on the parent container’s padding */
  font-size: var(--cb-fs-16);
  color: var(--cb-ink-soft);
  box-shadow: none;
}
/* Select2 4.1 types into a textarea: keep it one line, not a form textarea */
.select2-container .select2-search--inline textarea.select2-search__field {
  height: 1.75rem !important; min-height: 0 !important; border: 0 !important;
  resize: none; padding: 0 !important; margin: 0; background: transparent; box-shadow: none;
}

/* -------------------------------------------------------
   4)  CUSTOM-RANGE DATE-PICKER INPUTS (Used in Homepage / charts)
   ------------------------------------------------------- */

/* Give the two dropdown-range inputs the same look
   as the rest of your .cb-form fields                   */
   .custom-range-form .cb-text-input,
   .flatpickr-input.cb-text-input {      /* altInput safety */
     width: 100%;
     font-size: var(--cb-fs-16);
     padding: 0.7rem 1rem;
     border: none;
     border-radius: 0.475rem;
     background-color: var(--cb-page);
     color: var(--cb-ink-soft);
     outline: none;
     box-sizing: border-box;
   }
   
   /* Placeholder colour (keeps it consistent) */
   .custom-range-form .cb-text-input::placeholder {
     color: var(--cb-ink-soft);
   }
   
   /* Focus / hover states (match your other inputs) */
   .custom-range-form .cb-text-input:focus,
   .custom-range-form .cb-text-input:hover,
   .flatpickr-input.cb-text-input:focus,
   .flatpickr-input.cb-text-input:hover {
     border: none;
   }
   
/* ---------------------------------------------------------------------------
   Drop-down lists in the farm's colours, everywhere. Browsers that let the
   open list be styled get a white rounded card with light-green rows instead
   of the computer's blue highlight; older browsers keep their own list.
--------------------------------------------------------------------------- */
@supports (appearance: base-select) {
  select:not([multiple]):not([size]):not(.flatpickr-monthDropdown-months),
  select:not([multiple]):not([size]):not(.flatpickr-monthDropdown-months)::picker(select) {
    appearance: base-select;
  }
  select:not([multiple]):not([size]):not(.flatpickr-monthDropdown-months) {
    display: inline-flex;
    align-items: center;
    background-image: none;
  }
  select:not([multiple]):not([size]):not(.flatpickr-monthDropdown-months)::picker-icon {
    color: var(--cb-ink-soft);
    margin-left: auto;
    padding-left: .5rem;
    transition: rotate .2s ease;
  }
  select:open::picker-icon { rotate: 180deg; }
  ::picker(select) {
    border: 1px solid var(--cb-pill);
    border-radius: 12px;
    padding: 6px;
    margin-block: 4px;
    background: var(--cb-card);
    color: var(--cb-action);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--cb-action) 14.0%, transparent);
    max-height: min(22rem, 60vh);
  }
  select option {
    padding: .55rem .75rem;
    border-radius: 8px;
    font-size: var(--cb-fs-16);
    gap: .5rem;
  }
  select option:hover,
  select option:focus-visible {
    background: var(--cb-brand-soft);
    color: var(--cb-brand);
    outline: none;
  }
  select option:checked {
    background: var(--cb-brand-soft);
    color: var(--cb-brand);
    font-weight: 600;
  }
  select option::checkmark { color: var(--cb-brand); }
  select option:disabled { color: var(--cb-ink-soft); background: none; }
}
select option:checked { background-color: var(--cb-brand-soft); color: var(--cb-brand); }

/* The search-as-you-type lists (customer and batch pickers on the order forms) */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--cb-brand-soft);
  color: var(--cb-brand);
}
.select2-container--default .select2-results__option--selected,
.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: var(--cb-brand-soft);
  color: var(--cb-brand);
  font-weight: 600;
}
.select2-dropdown {
  border-color: var(--cb-pill);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--cb-action) 14.0%, transparent);
}
.select2-results__option { padding: .5rem .75rem; }
.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default.select2-container--open .select2-selection,
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--cb-brand);
  outline: none;
}

/* "Type to find" above a long drop-down list (static/js/global/forms.js) */
.cb-select-find {
  display: block; width: 100%; min-height: 40px; margin: 0 0 .4rem; padding: 0 1rem;
  border: 0; border-radius: 999px; background: var(--cb-pill); color: var(--cb-action); font-size: var(--cb-fs-16);
}
.cb-select-find:focus { outline: 2px solid var(--cb-brand-soft); }

/* The broilers and layers order forms: their paired fields sit side by side, so the page stays short. */
@media (min-width: 641px) {
  .cb-form.cb-order-form .cb-row.cb-input-group {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 16px; align-items: start;
  }
}

/* Under a setting that can't change any more (units, currency) */
.cb-locked-note { margin: .4rem 0 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); line-height: 1.4; }
.cb-locked-note a { color: var(--cb-brand); font-weight: 600; }

/* ---- components/global.css ---- */
/* Global Styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--cb-page);
}

/* Containers */
.container-fluid {
    display: flex;
    padding: 0;
    margin: 0;
    height: 100%; 
}

.content-area {
    margin-top: 80px;
    margin-left: 0; 
    width: 100%;
}

/* .content-area sits flush-left by default.
   When .container-fluid HAS .sidebar we re-add
   the historic 13 % offset to keep content clear
   of the fixed sidebar. (:has() needs Chrome/Edge/
   Safari 15.4+; older Firefox will ignore it.) */
.container-fluid:has(.sidebar) .content-area { margin-left: var(--cb-side-w); }
@media (min-width: 769px) { .container-fluid:has(.sidebar) .content-area { padding-right: 24px; } } /* a gutter on the right, like the left */

.content-area-blog {
    margin-top: 80px;
    width: 100%;
}

/* Hide on Mobile */
@media (max-width: 768px) {
    .content-area-blog {
        margin-top: 5rem; /* Eliminates Margin top on mobile */
    }
}


/* ---- components/order.css ---- */


/* Subtotal row */

/* Taxes row */

/* Total row */
.total-row td {
    color: var(--cb-ink-soft);
    text-align: right;
    padding-right: 15px;
}

/* Align the last td to the left for all these rows */
.total-row td:last-child {
    text-align: left;
    padding-left: 15px;
    padding-right: 0;
}

/* ---- components/pagination.css ---- */
/* =======================================
   - Pagination Styling
   ======================================= */

/* Pagination container aligned to the bottom center */
.pagination-container {
    display: flex;
    justify-content: center;
}

/* Pagination styling */
.pagination {
    display: inline-block;
    font-size: var(--cb-fs-12);
    bottom: 0;           
    display: flex;
}

.pagination-container {
    margin-top: auto; 
    display: flex;
    justify-content: center;
    background-color: var(--cb-card); 
}

.pagination a, .pagination button {
    color: var(--cb-card);
    height: 20px;
    padding: 1px 10px;
    text-decoration: none;
    margin: 0 4px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    background-color: var(--cb-brand);
}

/* Active page link styling */
.pagination a.active {
    background-color: var(--cb-brand);
    color: white;
}

/* Disabled button styling */
.pagination button:disabled {
    color: var(--cb-ink-soft);
    padding: 1px 10px;
    height: 20px;
    text-decoration: none;
    margin: 0 4px;
    border-radius: 5px;
    border: 1px solid var(--cb-pill);
    cursor: pointer;
    text-align: center;
    display: inline-block;
    background-color: var(--cb-page);
}


/* ---- components/tables.css ---- */
/* =======================================
   - Universal Table Styling
   ======================================= */

   table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--cb-card);
    border-radius: 10px;
    table-layout: fixed;
}

table thead tr {
    background-color: var(--cb-page);
    color: var(--cb-action);
    text-align: center;
    font-weight: normal;
}

table thead th {
    color: var(--cb-ink-soft);
    font-weight: 600;
    font-size: var(--cb-fs-14);
}

table th,
table td {
    padding: 12px 15px;
    text-align: center;
    height: 30px; /* Set a fixed height for each row */
    overflow: hidden; /* Prevents content from expanding row height */
    white-space: nowrap; /* Prevents text wrapping */
    overflow: hidden;
}

table tbody td {
    color: var(--cb-action);
    font-size: var(--cb-fs-14);
    border-top: 1px solid var(--cb-pill);
}

/* Adding side borders between cells */
table tbody tr td:not(:first-child),
table thead th:not(:first-child) {
    border-left: 1px solid var(--cb-pill);
}

table tbody tr td:not(:last-child),
table thead th:not(:last-child) {
    border-right: 1px solid var(--cb-pill);
}

/* Row hover effect */
table tbody tr:hover {
    background-color: var(--cb-page);
    cursor: default;
}

/* Table head title and subtitle styles */
.th-title {
    color: var(--cb-ink-soft);
    font-weight: 600;
    font-size: var(--cb-fs-14);
    display: block;
    margin: 0;
    line-height: 1.1; /* Tighter line-height for reduced space */
}

/* Used for the weeks after the active weeks in broilers batch */

/* Override for .clickable-table */
.clickable-table tbody tr:hover {
    /* Keep your desired background color */
    background-color: var(--cb-page) !important;
    /* Show pointer cursor for clickable row */
    cursor: pointer !important;
}

/* =======================================
   - Monthly Grid Table (Used in Layers batch)
   ======================================= */

/* Monthly grid table occupies full available space */

/* Monthly grid cells */

/* Remove borders for last row and column cells to align with styling */

/* Remove top border from the first row */

/* Remove left border from the first column */

/* Make the entire cell clickable and remove double hover */

/* Hover effect for clickable cells only */

/* Remove row hover effect to prevent double hover */


/* ---- components/single_page.css ---- */
.page-body {
    margin: 0 auto;
}

.page-body-settings {
    width: 1000; /* Set your object width */
    margin: 0 auto; /* Center the object horizontally */
    position: relative; /* Positioning context for transform */
    transform: translateX(-13%); /* Shift the object 13% to the left */
}

.page-title-container {
    display: flex;
    align-items: center;
    margin-left: 0.5em;
    align-items: flex-end;
}

.page-title-container h1 {
    margin: 0 0 -2px 0;
    padding: 0;
}

.page-title-container span {
    margin-right: 5px;
}

.page-title-container .back-arrow, .back-arrow {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    text-decoration: none;
}

/* Back arrow icon styling */
.back-arrow-icon {
    font-size: var(--cb-fs-16);
    color: var(--cb-ink-soft);
    padding: 0.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-arrow-icon:hover {
    background-color: var(--cb-pill);
}

.page-title {
    margin: -2px 0 0 -5px;
}

.page-subtitle {
    font-weight: normal;
    margin-left: 34px;
}

.page-heading {
    display: flex;
    width: 98%;
    margin: 0 auto;
    align-items: flex-end;
}

.page-heading .left-section {
    width: 60%;
    box-sizing: border-box; 
}

.page-heading .right-section {
    width: 40%;
    box-sizing: border-box; 
}

/* A list page's buttons ("Create Vaccination"), on the right of its title */
.cb-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .6rem;
    margin-left: auto;
    align-self: center;
    position: relative;
    top: .6rem; /* level with the title, which sits a little low */
}

.address {
    margin-left: 20px;
    margin-top: 0;
}

.page-icon {
    background: none;
    border: none;
}

.page-icon img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 0.15em 0.2em;
    justify-content: center;
    align-items: center;
}

.page-icon img:hover {
    background-color: var(--cb-pill);
    border-radius: 5px;
}

/* Icons container */
.icons-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px; /* Space between icons */
}

/* Dropdown Menu Styling */
.icon-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-list {
    list-style: none;
    padding: 8px 16px;
}

.dropdown-list a {
    text-decoration: none;
    color: var(--cb-action);
    display: block;
}

.dropdown-list a:hover {
    background-color: var(--cb-page);
    color: var(--cb-action);
    border-radius: 4px;
}

/* =======================================
   - Main Tile / Header Tile
   ======================================= */

.mt-header-tile {
    display: flex;
}

.mt-header-tile-section {
    padding: 0;
}

.mt-header-tile-left {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mt-header-tile-left p {
    margin-top: 10px;
}

.mt-header-tile-middle,
.mt-header-tile-right {
    width: 40%;
    padding: 0;
    text-align: center;
}

.mt-header-tile-middle {
    border-left: 1px solid var(--cb-pill);
    border-right: 1px solid var(--cb-pill);
}

.mt-header-tile-middle h2,
.mt-header-tile-right h2 {
    margin-bottom: 0px;
}

/* =======================================
   - Main Tile / Body Tile
   ======================================= */

.mt-body-tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 300px;
    position: relative;
    padding: 1em;
    border: 1px solid var(--cb-pill); /* Light gray border */
    background-color: var(--cb-card);
    margin-bottom: 1em;
}

.mt-body-tile h2 {
    margin-left: 15px;
}

.mt-body-tile-details {
    border: 1px solid var(--cb-pill);
    padding: 10px;
}

/* =======================================
   - Main Tile / Note Tile
   ======================================= */

   .mt-note-tile {
    padding: 1em;
    border: 1px solid var(--cb-pill); /* Light gray border */
    background-color: var(--cb-card);
    margin-bottom: 1em;
}

.mt-note-tile h2 {
    margin-left: 15px;
}

/* =======================================
   - Side Tile (st-)
   ======================================= */

.st-header {
    margin-top: 20px;
    margin-left: 20px;
}

.st-header p,
.st-body p,
.st-bottom p {
    line-height: 0px;
    padding: 0px;
}

.st-header span,
.st-body span,
.st-bottom span {
    margin-right: 10px;
}

.st-body {
    margin-left: 20px;
}

.st-bottom {
    margin-left: 20px;
}

/* The town line sits close under the street line (and only there: alone, it would cover the name). */

.white {
    color: var(--cb-card);
}

.st-header i,
.st-body i,
.st-bottom i {
    margin-right: 10px;
    padding-right: 10px;
}

.st-hr {
    width: 90%;
    margin: 15px auto;
    color: var(--cb-card);
}

/* =======================================
   Simple detail card (one record, e.g. a vaccination):
   a few facts in a grid, then the buttons. Phones: one column.
======================================= */
.cb-detail {
  background: var(--cb-card);
  border: 1px solid var(--cb-pill);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 1rem;
}
.cb-detail-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cb-pill);
}
.cb-detail-actions form { margin: 0; }
@media (max-width: 640px) {
  .cb-detail { padding: 1.25rem; }
  .cb-detail-actions > * { flex: 1 1 100%; text-align: center; }
  .cb-detail-actions .black-button, .cb-detail-actions .gray-button { width: 100%; }
}

/* A supplier: the call / email / website buttons sit under the title */

/* Detail cards with a small heading (employee page: Pay, Payslips, Details) */
.cb-detail-title { font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); margin: 0 0 1.1rem; }
.cb-employee .cb-detail + .cb-detail { margin-top: 1rem; }

/* New payslip: period stepper, hour boxes with the rate under each, live estimate */
.cb-period { display: flex; align-items: center; gap: 1rem; }
.cb-period-step {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--cb-line-strong);
  font-size: var(--cb-fs-24); line-height: 1; color: var(--cb-action); text-decoration: none; background: var(--cb-card);
}
.cb-period-step:hover { background: var(--cb-page); text-decoration: none; color: var(--cb-action); }
.cb-period-dates { flex: 1; text-align: center; }
.cb-period-dates strong { display: block; font-size: var(--cb-fs-18); }
.cb-period-dates small { color: var(--cb-ink-soft); }
.cb-period-dates small a, .cb-payslip-new .cb-rate-hint a { color: var(--cb-brand); font-weight: 600; }
.cb-hours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.cb-hours-grid .form-group { margin: 0; }
.cb-rate-hint { display: block; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin-top: .3rem; }
.cb-estimate-rows { margin: 0; }
.cb-estimate-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--cb-pill); }
.cb-estimate-rows dt { font-weight: 500; color: var(--cb-ink-soft); }
.cb-estimate-rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.cb-estimate-rows .cb-estimate-total { border-bottom: 0; padding-top: .7rem; }
.cb-estimate-rows .cb-estimate-total dt, .cb-estimate-rows .cb-estimate-total dd { color: var(--cb-action); font-weight: 700; font-size: var(--cb-fs-18); }
.cb-payslip-new .cb-detail + .cb-detail { margin-top: 1rem; }
.cb-payslip-new .global-form { background: none; border: 0; box-shadow: none; padding: 0; max-width: none; }

/* Thank-you page after paying */
.cb-thanks {
  max-width: 560px; margin: 2rem auto; padding: 2.25rem 2rem; text-align: center;
  background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: 20px;
}
.cb-thanks h1 { font-size: var(--cb-fs-24); font-weight: 700; margin: 0 0 .5rem; color: var(--cb-action); }
.cb-thanks-mark {
  width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cb-brand-soft); color: var(--cb-brand); font-size: var(--cb-fs-32); font-weight: 700;
  border: 2px solid var(--cb-broilers);
}
.cb-thanks-lead { color: var(--cb-ink-soft); font-size: var(--cb-fs-16); margin: 0 0 1.5rem; }
.cb-thanks-facts { text-align: left; margin: 0 0 1rem; border-top: 1px solid var(--cb-pill); }
.cb-thanks-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--cb-pill); }
.cb-thanks-facts dt { font-weight: 500; color: var(--cb-ink-soft); }
.cb-thanks-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.cb-thanks-note { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin: 0 0 1.5rem; }
.cb-thanks-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 640px) {
  .cb-thanks { padding: 1.75rem 1.25rem; margin: 1rem auto; }
  .cb-thanks-actions > * { flex: 1 1 100%; }
}

/* Trash: one card per kind of thing, a Recover button on each row */
.cb-trash-group { background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: 16px; padding: 1.1rem 1.25rem; margin-top: 1rem; }
.cb-trash-title { font-size: var(--cb-fs-16); font-weight: 700; margin: 0 0 .4rem; color: var(--cb-action); }
.cb-trash-title span { color: var(--cb-ink-soft); font-weight: 500; margin-left: .25rem; }
.cb-trash-list { list-style: none; margin: 0; padding: 0; }
.cb-trash-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--cb-pill); }
.cb-trash-row:first-child { border-top: 0; }
.cb-trash-row form { margin: 0; flex: 0 0 auto; }
.cb-trash-text { min-width: 0; }
.cb-trash-text a, .cb-trash-text strong { display: block; color: var(--cb-brand); font-weight: 600; overflow-wrap: anywhere; }
.cb-trash-text small { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin-top: .2rem; }
.cb-trash-help { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin: 1.25rem 0 0; }
.cb-trash-empty .cb-thanks-mark { border-color: var(--cb-line-strong); background: var(--cb-page); color: var(--cb-ink-soft); }

/* Egg units and prices (settings): pack cards, then one price grid */
.cb-egg-lead { color: var(--cb-ink-soft); margin: .25rem 0 1.5rem; }
.cb-egg-step { font-size: var(--cb-fs-16); font-weight: 700; margin: 1.5rem 0 .25rem; color: var(--cb-action); }
.cb-egg-hint { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin: 0 0 .9rem; }
.cb-egg-hint a { color: var(--cb-brand); font-weight: 600; }
.cb-egg-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.global-form label.cb-egg-pack {
  position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .6rem; margin: 0;
  padding: 1rem; border: 1.5px solid var(--cb-line-strong); border-radius: 14px; background: var(--cb-card); cursor: pointer;
  font-size: var(--cb-fs-16); color: var(--cb-action);
}
.global-form label.cb-egg-pack:has(> input:checked) { border-color: var(--cb-brand); background: var(--cb-brand-soft); }
.global-form .cb-egg-pack > input[type="radio"] { position: absolute; top: 1rem; right: 1rem; accent-color: var(--cb-brand); width: 18px; height: 18px; margin: 0; }
.cb-egg-pack-name { font-weight: 700; color: var(--cb-action); padding-right: 1.5rem; }
.cb-egg-pack-count { display: flex; align-items: center; gap: .4rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.global-form .cb-egg-pack-count input[type="number"] { flex: 0 0 auto; min-height: 0; width: 5.5rem; padding: .45rem .6rem; border: 1px solid var(--cb-line-strong); border-radius: 8px; font-size: var(--cb-fs-16); background: var(--cb-card); }
.cb-egg-pack-count input:disabled { background: var(--cb-page); color: var(--cb-ink-soft); }
.global-form label.cb-egg-count { align-items: flex-start; margin: 1rem 0 0; }
.global-form .cb-egg-count input { flex: 0 0 auto; margin-top: .15rem; }
.cb-egg-count small { display: block; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); font-weight: 400; }
.cb-egg-prices { overflow-x: auto; border: 1px solid var(--cb-pill); border-radius: 14px; }
.cb-egg-prices table { width: 100%; border-collapse: collapse; min-width: 480px; }
.cb-egg-prices th, .cb-egg-prices td { padding: .55rem .6rem; border-bottom: 1px solid var(--cb-pill); text-align: left; }
.cb-egg-prices thead th { background: var(--cb-page); font-size: var(--cb-fs-14); text-transform: uppercase; letter-spacing: .04em; color: var(--cb-ink-soft); }
.cb-egg-prices tbody tr:last-child > * { border-bottom: 0; }
.cb-egg-prices tbody th { font-weight: 600; white-space: nowrap; color: var(--cb-action); }
.cb-egg-prices tbody th small { display: block; font-weight: 400; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-egg-prices td input { width: 100%; min-width: 80px; padding: .45rem .6rem; }

/* Forecast pop-up: the figure so far under a forecast line */
.cb-forecast-sub { display: block; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); font-weight: 400; }

/* "Feed isn't counted yet": a batch with no feed table */
.cb-feed-hint { margin-bottom: 12px; }
.cb-feed-hint a { font-weight: 600; }

/* Clients list: the person under the company name */
.cb-client-person { display: block; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }

/* ---- components/list.css ---- */
.list-title-container {
    margin-bottom: -15px;
}

.list-title-container h1 span {
    margin-left: 25px;
}

/* =======================================
   - List Tile / Header Tile
   ======================================= */

   .lt-header-tile {
    display: flex;
}

/* =======================================
   - Horizontal Navigation Styling
   ======================================= */
.status-nav ul {
    list-style-type: none;
    display: flex;
    padding: 0;
    margin: 0 0 0 10px;
    flex-wrap: nowrap;
}

.status-nav ul li {
    font-size: var(--cb-fs-14);
    margin-right: 5px;
}

.status-nav .nav-link {
    text-decoration: none;
    padding: 0.3em 0.5em;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.status-nav .nav-link:hover {
    background-color: var(--cb-pill);
}

.status-nav .nav-link.active {
    background-color: var(--cb-brand);
    color: var(--cb-card);
}

/* =======================================
   - Search Bar Styling
   ======================================= */

.search-input {
    padding: 0.3em 1em;
    border: 1px solid var(--cb-line-strong);
    border-radius: 20px; /* More rounded corners */
    font-size: var(--cb-fs-14);
    flex: 1; /* Full width for the input */
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--cb-brand);
}

.search-button {
    background-color: transparent;
    border: none;
    color: var(--cb-brand);
    cursor: pointer;
    font-size: var(--cb-fs-16);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.search-button:hover {
    color: var(--cb-brand);
}

/* =======================================
   - List Page Header Styling
   ======================================= */

/* Styling for the 'Sort By' link */

/* Hover effect for the 'Sort By' link */

/* Active state styling for the 'Sort By' link */


/* ---- components/blog.css ---- */
/* =======================================
   - Header Navigation menu
   ======================================= */

/* ======== article‑blog block (hero) ======== */
.ab-head{
    display:flex;
    flex-wrap:wrap;
    width:100%;
    background:var(--cb-brand-soft);    
    padding:4rem 6%;
    box-sizing:border-box;
}
.ab-head-left{
    flex:1 1 420px; 
    max-width:700px;
    margin-right:4%;
    display:flex;
    flex-direction:column;
    gap:2rem;
}
.ab-head-left-t,
.ab-head-left-b{
    min-height:100px;
}
.ab-head-right{
    flex:1 1 380px;
    display:flex;
    flex-direction:column; /* stack image + date */
    align-items:center;
    justify-content:center;
    gap:1rem;
}
.ab-head-right img{
    width:100%;
    height:auto;
    max-width:560px;
}

/* ---------- UPDATED DATE TWEAKS ---------- */
.article-sub-right{         /* push the whole block to the right */
    align-self:flex-end;
}
.article-sub-right p{       /* smaller & lighter text, right‑aligned */
    margin:0;
    font-size:var(--cb-fs-14);    /* ≈ 13px, a couple of px smaller */
    font-weight:500;        /* less bold */
    text-align:right;
}
/* ---------------------------------------- */

.blog-menu {
    display: flex; /* Aligns items horizontally */
    gap: 20px; /* Space between each item */
    list-style: none;
    margin: 0;
    padding: 0;
}
 
.blog-menu li {
    display: inline;
}

.blog-menu a {
    text-decoration: none;
    color: var(--cb-action);
    padding: 10px 15px;
    transition: color 0.3s;
    font-size: var(--cb-fs-14);
    font-weight: 500;
}

.blog-menu a:hover {
    color: var(--cb-brand); 
}

.edit-article {
    width: 55%;
    margin: 0 auto;
    text-align: right;
}

.edit-article a {
    display: inline-block; 
    border: none;
    padding: 0px 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    border-radius: 5px;
    background-color: var(--cb-pill);
    color: var(--cb-ink-soft);
    margin: 0 3px;
    cursor: pointer;
}

.edit-article a:hover {
    background-color: var(--cb-brand-soft);
}

/* =======================================
   - Blog Title / Subtitle
   ======================================= */
.breadcrumb {
    font-size: var(--cb-fs-16);
    font-weight: 900;
    margin-bottom: 10px;
    display: flex;
    margin: 0 30px 30px 30px;
}

.breadcrumb a {
    color: var(--cb-brand);
    text-decoration: none;
    margin-right: 5px;
    font-weight: 600;
}

.breadcrumb span {
    margin: 0 5px;
    font-weight: 600;
}

.breadcrumb span:last-child {
    font-weight: 600;
    color: var(--cb-action);
}

.article-title {
    font-size: var(--cb-fs-32); 
    font-weight: 700;
    line-height: 2.7rem; 
    color: var(--cb-action);
    letter-spacing: 0.05rem; 
    word-spacing: 0.2rem; 
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .article-title {
        font-size: var(--cb-fs-32); 
        font-weight: 700; /* Slightly lighter font weight */
        line-height: 2.5rem; /* 40px = 40/16 */
        margin: 2rem auto 0 auto; /* 15px = 15/16 */
        letter-spacing: 0.03125rem; /* 0.5px = 0.5/16 */
        word-spacing: 0.125rem; /* 2px = 2/16 */
    }

    .desktop-render {
        display: none; /* Hide on mobile */
    }

    .mobile-render {
        display: block; /* Show on mobile */
        height: 20px;
        margin: 1em;
    }
}

.article-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-sub-left {
    flex: 1;
}

.article-sub-mobile {
    font-size: var(--cb-fs-14);
    font-weight: 500;
    color: var(--cb-action);
    text-align: right;
}

.blog-hr {
    border: solid 2px var(--cb-brand);
    width: 94.5%;
    margin: 20px auto;
}

.blog-hr-mobile {
    border: solid 1px var(--cb-brand);
    margin: 2rem auto 0.5rem auto;
}

/* =======================================
   - Blog Body
   ======================================= */

.article-body {
    width: 700px;
    margin: 50px auto;
}

.article-body p {
    font-size: 1.12em;
    line-height: 2em;
    color: var(--cb-action);
    margin-bottom: 30px;
}

.article-body a {
    text-decoration: none;
    color: var(--cb-brand);
    font-weight: 600;
    transition: color 0.3s;
}

.article-body a:hover {
    color: var(--cb-brand);
}

.article-body img {
    width: 100%;
    display: block; 
    margin: 30px auto; 
}

.article-body h2 {
    font-size: 2em;
    line-height: 1.4em;
    letter-spacing: 1px;
    color: var(--cb-action);
    font-weight: 700;
    margin: 40px auto 0 auto;
}

.article-body h3 {
    font-size: 1.6em;
    line-height: 1.4em;
    letter-spacing: 0.5px;
    color: var(--cb-action);
    font-weight: 600;
    margin-top: 30px;
}

.article-body ul {
    margin-left: 20px;
    padding-left: 20px;
    list-style-type: disc;
    color: var(--cb-action);
}

.article-body li {
    font-size: 1.1em;
    line-height: 1.8em;
    margin-bottom: 20px;
    color: var(--cb-action);
}

/* =======================================
   - Article CTA End
   ======================================= */
   .article-cta-end {
    background-color: var(--cb-brand-soft);
    border-radius: 0.625rem; /* 10px = 10/16 */
    height: 16.25rem; /* 260px = 260/16 */
    width: 65%;
    margin: 1.875rem auto; /* 30px = 30/16 */
    display: flex;
    padding: 1.875rem; /* 30px = 30/16 */
}

.article-cta-end-left {
    width: 30%;
    border-radius: 0.625rem 0 0 0.625rem; /* 10px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-cta-end-left img {
    width: 10.625rem; /* 170px = 170/16 */
    height: 14.375rem; /* 230px = 230/16 */
}

.article-cta-end-right {
    width: 70%;
    border-radius: 0 0.625rem 0.625rem 0; /* 10px */
    padding: 1.25rem; /* 20px = 20/16 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Overline Styling */
.article-cta-end-overline {
    font-size: var(--cb-fs-16);
    font-weight: 600;
    margin-bottom: 0.5rem; /* 8px */
    text-transform: uppercase;
    display: block;
    color: var(--cb-action);
}

/* Title Styling */
.article-cta-end-title {
    font-size: var(--cb-fs-24); /* 1.5em = 1.5rem */
    font-weight: 700;
    margin-bottom: 0.625rem; /* 10px */
    color: var(--cb-action);
}

/* Body Text Styling */
.article-cta-end-body {
    font-size: var(--cb-fs-16);
    line-height: 1.6;
    margin-bottom: 0.9375rem; /* 15px */
    color: var(--cb-action);
}

/* =======================================
   - Editor
   ======================================= */

   .blog-editor {
    background-color: var(--cb-page);
    padding: 5px;
    width: 99%;
    margin: 0 auto;
}

.blog-editor button {
    border: none;
    padding: 0px 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    border-radius: 5px;
    background-color: var(--cb-pill);
    color: var(--cb-ink-soft);
    margin: 0 3px;
    cursor: pointer;
    text-decoration: none; /* Ensure label text is not underlined */
}

.blog-editor button:hover {
    background-color: var(--cb-brand-soft);
}

.editor-button {
    font-size: var(--cb-fs-14);
    border: none;
    padding: 0px 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    border-radius: 5px;
    background-color: var(--cb-pill);
    color: var(--cb-ink-soft);
    margin: 0 3px;
    cursor: pointer;
    text-decoration: none; /* Ensure label text is not underlined */
}

.editor-button:hover {
    background-color: var(--cb-brand-soft);
}

#id_mirror_content {
    border: 1px solid var(--cb-line-strong);
    padding: 10px;
    min-height: 200px;
    max-height: 700px; /* Set max height */
    overflow-y: auto; /* Enable vertical scrolling */
    margin-top: 10px; /* Optional spacing between toolbar and content */
    border-radius: 5px;
    background-color: var(--cb-card);
}

#id_mirror_content img {
    width: 200px;
    height: auto;
}

#id_mirror_content p {
    font-size: var(--cb-fs-16);
    color: var(--cb-action);
}

#id_mirror_content a {
    font-size: var(--cb-fs-16);
    color: var(--cb-brand);
    font-weight: 500;
}

#id_mirror_content h2 {
    font-size: var(--cb-fs-20);
    color: var(--cb-action);
}

#id_mirror_content h3 {
    font-size: var(--cb-fs-18);
    color: var(--cb-action);
}

#id_mirror_content h4 {
    font-size: var(--cb-fs-16);
    color: var(--cb-action);
}

/* =======================================
   Blog Article - Desktop
======================================= */
.desktop-render {
    display: block; /* Visible on desktops */
}

/* =======================================
   Blog Article - Mobile
======================================= */
.mobile-render {
    display: none; /* Hidden by default */
}

.article-body-mobile {
    margin: 4rem auto; 
}

.article-body-mobile p {
    font-size: var(--cb-fs-18); /* Matches 1.12em */
    line-height: 2rem; /* Matches 2em */
    color: var(--cb-action);
    margin-bottom: 1.875rem;
    font-weight: 300;
}

.article-body-mobile a {
    text-decoration: none;
    color: var(--cb-brand);
    font-weight: 500;
    transition: color 0.3s;
}

.article-body-mobile a:hover {
    color: var(--cb-brand);
}

.article-body-mobile img {
    width: 100%;
    height: auto;
    display: block; 
    margin: 0.2rem auto; 
}

.article-body-mobile h2 {
    font-size: var(--cb-fs-24); /* Matches 2em */
    line-height: 1.2;
    letter-spacing: 0.06rem; 
    color: var(--cb-action);
    font-weight: 600;
    margin: 1rem auto 0.5rem auto; /* 40px = 40/16 */
}

.article-body-mobile h3 {
    font-size: var(--cb-fs-20); /* Matches 1.6em */
    line-height: 1.4;
    letter-spacing: 0.03125rem; /* 0.5px = 0.5/16 */
    color: var(--cb-action);
    font-weight: 500;
    margin-top: 1.875rem; /* 30px = 30/16 */
}

.article-body-mobile ul {
    margin-left: 1.25rem; /* 20px = 20/16 */
    padding-left: 1.25rem; /* 20px = 20/16 */
    list-style-type: disc;
    color: var(--cb-action);
}

.article-body-mobile li {
    font-size: var(--cb-fs-18); /* Matches 1.1em */
    line-height: 1.8rem; /* Matches 1.8em */
    margin-bottom: 1.25rem; /* 20px = 20/16 */
    color: var(--cb-action);
}

.cta-mobile {
    width: 100%; 
    margin: 0 auto; 
    background-color: var(--cb-brand-soft); 
    border-radius: 0.4rem; 
    padding: 2rem; 
    display: flex;
    flex-direction: column; 
    text-align: left; 
}

.cta-mobile-link {
    display: block;
    text-decoration: none; 
    color: inherit; 
}

.cta-mobile img {
    width: 100%; /* Full width for image */
    margin-bottom: 1rem; /* Space below the image */
}

.cta-mobile-overline {
    font-size: var(--cb-fs-16);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--cb-action);
}

.cta-mobile-title {
    font-size: var(--cb-fs-32);
    font-weight: 800;
    margin-bottom: 1rem; 
    color: var(--cb-action);
}

.cta-mobile-body {
    font-size: var(--cb-fs-18);
    line-height: 1.6;
    margin-bottom: 1.5rem; /* Space below the body text */
    color: var(--cb-action);
}

.cta-mobile-button {
    background-color: var(--cb-brand);
    color: var(--cb-card);
    font-size: var(--cb-fs-16);
    font-weight: 600;
    padding: 0.75rem 1.5rem; /* Padding for the button */
    border: none;
    border-radius: 0.625rem; /* Rounded corners for button */
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.cta-mobile-button:hover {
    background-color: var(--cb-brand); /* Darker shade for hover effect */
}

/* =======================================
   Blog Article - Responsive Styles
======================================= */
/* Media Query for Mobile */
@media (max-width: 768px) {
    .desktop-render {
        display: none; /* Hide on mobile */
    }

    .mobile-render {
        display: block; /* Show on mobile */
        height: 20px;
        margin: 1em;
    }
}

/* =======================================
   Blog Tiles
======================================= */
.tile-blog {
    max-width: 1160px; 
    border-radius: 0.6em;
    border: 1px solid var(--cb-pill);
    padding: 30px;
    box-sizing: border-box;
    background-color: var(--cb-card);
    border-radius: 0.6em; 
    margin: 20px auto;
}

.blog-tile-container {
    display: flex;
    justify-content: space-between;
}

.blog-tile-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.blog-tile-category-title {
    border-bottom: solid 3px var(--cb-brand);
    margin: 80px 0 0 0;
    font-size: var(--cb-fs-16);
    font-weight: 600;
    text-transform: uppercase;
}

.blog-tile-quarter {
    width: 23.5%;
    height: auto;
    box-sizing: border-box;
    margin-top: 10px;
    gap: 20px;
}

.blog-tile-quarter img{
    width: 100%;
}

.blog-tile-quarter h3{
    margin: 20px 0;
    color: var(--cb-action);
    font-weight: 600;
    font-size: var(--cb-fs-16);
}

.blog-tile-quarter a{
    color: var(--cb-action);
    font-weight: 600;
    font-size: var(--cb-fs-16);
}

.blog-tile-quarter a:hover{
    text-decoration: underline;
}

.blog-tile-quarter p{
    color: var(--cb-action);
    font-size: var(--cb-fs-14);
}

.blog-tile-quarter span{
    color: var(--cb-ink-soft);
    font-size: var(--cb-fs-14);
}
/* =======================================
   Blog Set Three (Top Page)
======================================= */
.blog-tile-set-three .blog-tile-main {
    width: 57%;
    height: 550px;
    margin-right: 20px;
}

/* Top half containing the image */
.main-tile-half-top {
    height: 50%;
    box-sizing: border-box;
    display: block;
    overflow: hidden; /* Ensures image cropping */
}

.main-tile-half-top img {
    width: 100%; /* Ensures full width */
    height: 100%; /* Ensures full height */
    object-fit: cover; /* Crops the image to cover the div */
}

/* Bottom half */
.main-tile-half-bottom {
    height: 50%;
    box-sizing: border-box;
    background-color: var(--cb-brand-soft);
    text-align: left;
    color: var(--cb-action);
}

.main-tile-half-bottom h2 {
    font-size: var(--cb-fs-32);
    font-weight: 600;
    padding: 20px 30px 10px 30px;
    line-height: 40px;
    color: var(--cb-action);
}

.main-tile-half-bottom h2 a{
    font-weight: 700;
    color: var(--cb-action);
}

.main-tile-half-bottom h2 a:hover{
    text-decoration: underline;
}

.main-tile-half-bottom p {
    font-size: var(--cb-fs-16);
    padding: 10px 30px 30px 30px;
    line-height: 25px;
    color: var(--cb-action);
}

.main-tile-half-bottom span {
    font-size: var(--cb-fs-14);
    padding: 10px 30px;
    color: var(--cb-ink-soft);
}

.blog-tile-set-three .blog-tile-side {
    width: 43%;
    height: 550px;
    display: flex; /* Flexbox for vertical stacking */
    flex-direction: column; /* Stack items vertically */
    gap: 0; /* No gap between elements */
}

/* Top tile (5% height) */
.features-tile-top {
    height: 5%;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    line-height: normal;
    border-bottom: 3px solid var(--cb-brand);
    font-weight: 600;
    color: var(--cb-action);
    font-size: var(--cb-fs-16);
}

/* Bottom tiles (19% height each) */
.features-tile-bottom {
    height: 19%;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    border-bottom: 2px solid var(--cb-pill);
}

.features-tile-bottom h3 {
    padding: 10px 0 0 0;
    font-size: var(--cb-fs-16);
    line-height: 25px;
    margin: 0;
}

.features-tile-bottom a {
    color: var(--cb-action);
    font-weight: 700;
}

.features-tile-bottom a:hover {
    text-decoration: underline;
}

.features-tile-bottom span {
    font-size: var(--cb-fs-14);
    color: var(--cb-ink-soft);
}

.features-tile-bottom:last-child {
    border-bottom: none;
}

/* =======================================
   Blog Set Two (Body)
======================================= */
.blog-set-two-main-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.blog-set-two-left-section {
    width: 75%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-set-two-right-section {
    width: 25%;
    box-sizing: border-box;
    margin-left: 30px;
}

.blog-set-two-cta {
    margin-top: 10px;
    width: 100%;
    height: 96%;
    background-color: var(--cb-brand-soft);
}

.blog-set-two-top-row, .blog-set-two-bottom-row {
    display: flex;
    gap: 10px;
}

.blog-set-two-top-left, .blog-set-two-top-right, .blog-set-two-bottom-left, .blog-set-two-bottom-right {
    width: 50%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--cb-pill);
}

/* Title (h3) styling */
.blog-set-two-top-left h3,
.blog-set-two-top-right h3,
.blog-set-two-bottom-left h3,
.blog-set-two-bottom-right h3 {
    margin: 20px 0 10px 0;
    color: var(--cb-action);
    font-weight: 600;
    font-size: var(--cb-fs-16);
}

/* Description (p) styling */
.blog-set-two-top-left p,
.blog-set-two-top-right p,
.blog-set-two-bottom-left p,
.blog-set-two-bottom-right p {
    color: var(--cb-action);
    font-size: var(--cb-fs-14);
}

/* Subtitle (span) styling */
.blog-set-two-top-left span,
.blog-set-two-top-right span,
.blog-set-two-bottom-left span,
.blog-set-two-bottom-right span {
    color: var(--cb-ink-soft);
    font-size: var(--cb-fs-14);
    display: block; 
    text-align: right;
    margin-right: 20px; 
    margin-bottom: 6px;
}

/* Title (link) styling */
.blog-set-two-top-left a,
.blog-set-two-top-right a,
.blog-set-two-bottom-left a,
.blog-set-two-bottom-right a {
    color: var(--cb-action);
    font-weight: 600;
    font-size: var(--cb-fs-16);
}

.blog-set-two-top-left a:hover,
.blog-set-two-top-right a:hover,
.blog-set-two-bottom-left a:hover,
.blog-set-two-bottom-right a:hover {
    text-decoration: underline;
}

/* =======================================
   Blog Set One (Body)
======================================= */
.blog-set-one-main-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Left Section (25% width) */
.blog-set-one-left-section {
    width: 25%; /* Adjusted to 25% */
    box-sizing: border-box;
}

/* Right Section (75% width) */
.blog-set-one-right-section {
    width: 75%; /* Adjusted to 75% */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Rows within the Right Section */
.blog-set-one-top-row,
.blog-set-one-bottom-row {
    display: flex;
    gap: 10px;
}

/* Tiles in the Rows */
.blog-set-one-top-left,
.blog-set-one-top-right,
.blog-set-one-bottom-left,
.blog-set-one-bottom-right {
    width: 50%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px; /* Fixed height */
    padding: 10px;
    border-bottom: 2px solid var(--cb-pill);
}

/* Shared Title (h3) styling */
.blog-set-one-top-left h3,
.blog-set-one-top-right h3,
.blog-set-one-bottom-left h3,
.blog-set-one-bottom-right h3 {
    margin: 0 0 10px;
    color: var(--cb-action);
    font-weight: 600;
    font-size: var(--cb-fs-16);
}

/* Shared Link (a) styling */
.blog-set-one-top-left a,
.blog-set-one-top-right a,
.blog-set-one-bottom-left a,
.blog-set-one-bottom-right a {
    color: var(--cb-action);
    font-weight: 600;
    font-size: var(--cb-fs-16);
    text-decoration: none; /* No underline by default */
    border-bottom: 1px solid transparent; /* Invisible underline */
    transition: border-color 0.2s ease-in-out; /* Smooth underline transition */
}

.blog-set-one-top-left a:hover,
.blog-set-one-top-right a:hover,
.blog-set-one-bottom-left a:hover,
.blog-set-one-bottom-right a:hover {
    text-decoration: underline;
}

/* Shared Description (p) styling */
.blog-set-one-top-left p,
.blog-set-one-top-right p,
.blog-set-one-bottom-left p,
.blog-set-one-bottom-right p {
    color: var(--cb-action);
    font-size: var(--cb-fs-14);
    margin: 0 0 5px;
    line-height: 1.5; /* Improves readability */
}

/* Shared Subtitle (span) styling */
.blog-set-one-top-left span,
.blog-set-one-top-right span,
.blog-set-one-bottom-left span,
.blog-set-one-bottom-right span {
    color: var(--cb-ink-soft);
    font-size: var(--cb-fs-14);
    text-align: right;
    display: block; /* Ensures the subtitle is on a new line */
    margin-top: auto; /* Pushes it to the bottom of the tile */
}

.blog-set-one-cta {
    margin-top: 10px;
    width: 100%;
    height: 98%;
    background-color: var(--cb-brand-soft);
}

/* =======================================
   Blog Set Four (Body Page)
======================================= */

.blog-tile-container-set-four {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.blog-tile-set-four .set-four-tile-main {
    width: 50%; /* Adjusted width for the main section */
    margin-right: 20px;
}

/* Top half containing the image */
.set-four-tile-main .set-four-half-top {
    height: 60%;
    box-sizing: border-box;
    display: block;
    overflow: hidden; /* Ensures image cropping */
}

.set-four-tile-main .set-four-half-top img {
    width: 100%; /* Ensures full width */
    height: 100%; /* Ensures full height */
    object-fit: cover; 
    margin-top: 14px;
}

/* Bottom half */
.set-four-tile-main .set-four-half-bottom {
    height: 40%;
    box-sizing: border-box;
    text-align: left;
    color: var(--cb-action);
}

.set-four-tile-main .set-four-half-bottom h2 {
    font-size: var(--cb-fs-18);
    font-weight: 600;
    line-height: 40px;
    color: var(--cb-action);
}

.set-four-tile-main .set-four-half-bottom h2 a {
    font-weight: 600;
    color: var(--cb-action);
}

.set-four-tile-main .set-four-half-bottom h2 a:hover {
    text-decoration: underline;
}

.set-four-tile-main .set-four-half-bottom p {
    font-size: var(--cb-fs-14);
    line-height: 25px;
    color: var(--cb-action);
}

.set-four-tile-main .set-four-half-bottom span {
    font-size: var(--cb-fs-14);
    color: var(--cb-ink-soft);
}

/* Side Tiles */
.blog-tile-set-four .blog-tile-side {
    width: 50%; /* Adjusted width for the side section */
    height: auto;
    display: flex; /* Flexbox for vertical stacking */
    flex-direction: column; /* Stack items vertically */
    gap: 0; /* No gap between elements */
}

/* Bottom tiles (20% height each) */
.features-tile-bottom {
    height: 20%; /* Each div now takes 20% height */
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    border-bottom: 2px solid var(--cb-pill); /* Add border between tiles */
}

.features-tile-bottom h3 {
    padding: 10px 0 0 0;
    font-size: var(--cb-fs-16);
    line-height: 25px;
    margin: 0;
}

.features-tile-bottom a {
    color: var(--cb-action);
    font-weight: 700;
}

.features-tile-bottom a:hover {
    text-decoration: underline;
}

.features-tile-bottom span {
    font-size: var(--cb-fs-14);
    color: var(--cb-ink-soft);
}

/* Remove border from the last tile */
.features-tile-bottom:last-child {
    border-bottom: none;
}

/* =======================================
   Blog Set five (Body Page)
======================================= */

.blog-tile-container-set-five {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.blog-tile-set-five .set-five-tile-main {
    width: 50%; 
}

/* Top half containing the image */
.set-five-tile-main .set-five-half-top {
    height: 60%;
    box-sizing: border-box;
    display: block;
    overflow: hidden; /* Ensures image cropping */
}

.set-five-tile-main .set-five-half-top img {
    width: 100%; /* Ensures full width */
    height: 100%; /* Ensures full height */
    object-fit: cover; 
    margin-top: 14px;
}

/* Bottom half */
.set-five-tile-main .set-five-half-bottom {
    height: 40%;
    box-sizing: border-box;
    text-align: left;
    color: var(--cb-action);
}

.set-five-tile-main .set-five-half-bottom h2 {
    font-size: var(--cb-fs-18);
    font-weight: 600;
    line-height: 40px;
    color: var(--cb-action);
}

.set-five-tile-main .set-five-half-bottom h2 a {
    font-weight: 600;
    color: var(--cb-action);
}

.set-five-tile-main .set-five-half-bottom h2 a:hover {
    text-decoration: underline;
}

.set-five-tile-main .set-five-half-bottom p {
    font-size: var(--cb-fs-14);
    line-height: 25px;
    color: var(--cb-action);
}

.set-five-tile-main .set-five-half-bottom span {
    font-size: var(--cb-fs-14);
    color: var(--cb-ink-soft);
}

/* Side Tiles */
.blog-tile-set-five .blog-tile-side {
    width: 50%; /* Adjusted width for the side section */
    height: auto;
    display: flex; /* Flexbox for vertical stacking */
    flex-direction: column; /* Stack items vertically */
    gap: 0; /* No gap between elements */
}

/* Bottom tiles (20% height each) */
.features-tile-five-bottom {
    height: 20%; /* Each div now takes 20% height */
    width: 90%;
    box-sizing: border-box;
    text-align: left;
    border-bottom: 2px solid var(--cb-pill); /* Add border between tiles */
}

.features-tile-five-bottom h3 {
    padding: 10px 0 0 0;
    font-size: var(--cb-fs-16);
    line-height: 25px;
    margin: 0;
}

.features-tile-five-bottom a {
    color: var(--cb-action);
    font-weight: 700;
}

.features-tile-five-bottom a:hover {
    text-decoration: underline;
}

.features-tile-five-bottom span {
    font-size: var(--cb-fs-14);
    color: var(--cb-ink-soft);
}

/* Remove border from the last tile */
.features-tile-five-bottom:last-child {
    border-bottom: none;
}

/* =======================================
   Blog Homepage Mobile Styles
======================================= */
.tile-mobile-blog {
    padding: 1.5rem;
}

/* Post Card One */
.post-card-one {
    width: 100%;
    height: 26rem; /* Total height */
    display: flex;
    flex-direction: column; /* Stack child elements vertically */
}

.post-card-one .inner-div {
    width: 100%;
    height: 50%; /* Each div takes half of the parent's height */
    display: block; /* Ensure proper layout */
}

.inner-div.one img {
    width: 100%;
    height: 100%; /* Ensures the image fits its container */
    object-fit: cover; /* Maintains aspect ratio and covers the space */
}

.inner-div.two {
    background-color: var(--cb-brand-soft);
    padding: 1rem;
}

.inner-div.two h3 {
    font-size: var(--cb-fs-24);
    font-weight: 600;
    color: var(--cb-action);
    line-height: 2rem;
}

.inner-div.two p {
    font-size: var(--cb-fs-14);
    color: var(--cb-action);
    margin: 1rem 0;
}

.inner-div.two span {
    font-size: var(--cb-fs-14);
    color: var(--cb-ink-soft);
}

/* Post Card Two */

/* Post Card three */

/* =======================================
   - Article Blog
   ======================================= */

   /* =======================================
   Blog Summary Box (Key Takeaways)
======================================= */


/* ---- components/modal.css ---- */
/* =======================================
   Pop-ups (every Bootstrap modal on the site)
   One calm look: a white card with soft corners, a clear title,
   a round close button, roomy content and full-width fields.
   ======================================= */
.modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 60px color-mix(in srgb, var(--cb-action) 22.0%, transparent);
    font-family: 'Inter', sans-serif;
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;           /* a calendar may hang below the card */
}
.modal-backdrop.show { opacity: .45; }

.modal-dialog {
    top: 10%; /* Center vertically (adjust as needed) */
    left: -3%; /* Center horizontally (adjust as needed) */
}

/* ---------- Header: the title, with a round close button ---------- */
.modal-header {
    background-color: var(--cb-card);
    padding: 1.25rem 4rem 1.1rem 1.75rem;
    border-bottom: 1px solid var(--cb-pill);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    position: relative;
}
.modal-title,
.modal-title span {
    font-size: var(--cb-fs-18);
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
    color: var(--cb-action);
}

.modal-header .btn-close {
    position: absolute;
    top: 50%;
    right: 1.1rem;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 1px solid var(--cb-pill);
    border-radius: 50%;
    background: var(--cb-card) none;        /* no Bootstrap X picture: the span is the X */
    color: var(--cb-ink-soft);
    opacity: 1;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.modal-header .btn-close:empty::before {   /* close buttons written without an x inside */
    content: "\00d7";
    font-size: var(--cb-fs-20);
    line-height: 1;
    margin-top: -2px;
}
.modal-header .btn-close:hover { background: var(--cb-page); color: var(--cb-action); }
.modal-header .btn-close span {
    font-size: var(--cb-fs-20);
    line-height: 1;
    margin-top: -2px;             /* the x sits a little low in the font */
    color: inherit;
    font-weight: 400;
}
.modal.fade .btn-close:focus,
.modal.fade .btn-close:active,
.modal.fade .btn-close:visited {
    outline: none;
    box-shadow: none;
}
.modal.fade .btn-close:focus-visible { outline: 3px solid var(--cb-line-strong); outline-offset: 2px; }

/* ---------- Body ---------- */
.modal-body {
    padding: 1.5rem 1.75rem 1.75rem;
}
.modal-body p {
    padding: 0;
    color: var(--cb-ink-soft);
    font-size: var(--cb-fs-16);
    line-height: 1.6;
    margin: 0 0 1rem;
}
.modal-body p:last-child { margin-bottom: 0; }
.modal-body h3,
.modal-body h4 {
    font-size: var(--cb-fs-16);
    font-weight: 700;
    color: var(--cb-action);
    margin: 1.25rem 0 .35rem;
    padding: 0;
}
.modal-body strong { color: var(--cb-action); }

/* Info pop-ups ("Do I need egg grading?"): each heading gets a small
   orange bar, and its words sit in line with it */
.modal-body h3 {
    border-left: 3px solid var(--cb-action);
    padding-left: .75rem;
    margin-top: 1.4rem;
}
.modal-body h3 + p { padding-left: calc(.75rem + 3px); }

/* Forms inside a pop-up: no second card inside the card, fields full width */
.modal-body > .tile,
.modal-body > div > .tile {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
.modal-body form.global-form {
    max-width: none !important;
    margin: 0 !important;
}
.modal-body form.global-form > p { margin-left: 0 !important; }
.modal-body .form-group { margin-bottom: 1rem; }
.modal-body label {
    display: block;
    font-weight: 600;
    font-size: var(--cb-fs-14);
    color: var(--cb-action);
    margin-bottom: .35rem;
}
.modal-body .form-control,
.modal-body .form-group > input:not([type="checkbox"]):not([type="radio"]),
.modal-body .form-group > select {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid var(--cb-line-strong);
    font-size: var(--cb-fs-16);
}
/* The one button at the bottom of a pop-up form: full width, easy to hit */
.modal-body form.global-form button[type="submit"] {
    width: 100% !important;
    min-height: 48px;
    margin: .5rem 0 0 !important;
    border-radius: 12px;
    font-weight: 700;
}
.modal-body form.global-form button[type="submit"]:only-child { display: block; }

/* The calendar opened from a date box in a pop-up sits under that box */
.modal-body .flatpickr-wrapper { display: block; width: 100%; }
.modal-body .flatpickr-calendar.static { top: calc(100% + 4px); z-index: 20; }

/* ---------- Footer ---------- */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: 1rem 1.75rem;
    background-color: var(--cb-card);
    border-top: 1px solid var(--cb-pill);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* =======================================
   - Modal Table (div-based)
   ======================================= */
.modal-table {
    display: table;
    width: 100%;
    background-color: var(--cb-card);
    border-radius: 10px;
    table-layout: fixed;
}

/* Table Row - Header */
.modal-table-header-row {
    display: table-row;
    background-color: var(--cb-page);
    color: var(--cb-action);
    font-weight: normal;
}

/* Header Cell */
.modal-table-header-cell {
    display: table-cell;
    font-size: var(--cb-fs-14);
    font-weight: 600;
    vertical-align: middle;
    padding: 12px 15px;
    height: 30px;
    white-space: nowrap;
    color: var(--cb-ink-soft);
}

/* Table Row - Body */
.modal-table-row {
    display: table-row;
}

/* Body Cell */
.modal-table-cell {
    display: table-cell;
    font-size: var(--cb-fs-14);
    vertical-align: middle;
    padding: 12px 15px;
    height: 30px;
    white-space: nowrap;
    color: var(--cb-action);
    border-top: 1px solid var(--cb-pill); /* separate each row from the previous */
}

/* Insert a left vertical border on each body cell AFTER the first */
.modal-table-cell + .modal-table-cell {
    border-left: 1px solid var(--cb-pill);
}

/* Row hover effect */
.modal-table-row:hover {
    background-color: var(--cb-page);
    cursor: default;
}

/* =======================================
   Column-specific widths & alignment
   ======================================= */
.col-1 {
    width: 25%;
    text-align: left;
}

.col-2 {
    width: 15%;
    text-align: center;
}

.col-3 {
    width: 25%;
    text-align: left;
}

.col-4 {
    width: 15%;
    text-align: left;
}

.col-5 {
    text-align: left;
}



/* =======================================
   Addition for the Modal + Toggle
   ======================================= */

/* 1) Table scaffold (sticky header, subtle lines) */
.modtog-checkbox-table{
  width:100%;
  border-collapse:collapse;
}
.modtog-checkbox-table thead th{
  position:sticky;top:0;
  background:var(--cb-page);
  font-weight:600;
  padding:.75rem 1.25rem;
  border-bottom:1px solid var(--cb-pill);
  text-align:left;
}
.modtog-checkbox-table tbody td{
  padding:.75rem 1.25rem;
  border-top:1px solid var(--cb-pill);
  text-align:left;
}

/* 2) Toggle + label inline, gap 0.5 rem */
.modtog-switch-flex{
  display:flex;
  align-items:center;
  gap:.5rem;
  justify-content:flex-start;
}

/* optional – prevent selection highlight on label text */
.modtog-text-box{ user-select:none; }
/* Old pop-ups asked for a coloured header or a grey footer: keep them white */
.modal-header.bg-accent, .modal-footer.bg-light-gray { background-color: var(--cb-card); }

/* =======================================
   Info pop-ups (templates/includes/info_modal.html): one look for every
   "what is this?" pop-up (Anton, 25 Oct 2026: short lines, not walls of
   text). A one-line meaning, an example number to see at a glance, short
   sections of points, and a small note at the end.
   ======================================= */
.cb-info-modal .modal-dialog { top: auto; left: auto; max-width: 520px; margin-left: auto; margin-right: auto; padding: 0 16px; }
.cb-info-modal .modal-content { width: 100%; }
.cb-info-modal .modal-body { padding: 1.25rem 1.75rem 1.5rem; }
.cb-info-modal .modal-header,
.cb-info-modal .modal-footer { padding-left: 1.75rem; padding-right: 1.75rem; }  /* title, words and button on one line */
.cb-info-modal .modal-header { padding-right: 4rem; }
.cb-info-body p { color: var(--cb-action); }

/* The meaning, in one sentence */
.cb-info-body .cb-info-lead { font-size: var(--cb-fs-16); line-height: 1.5; margin: 0 0 1rem; color: var(--cb-action); }

/* An example to see at a glance: the big number, and what it means */
.cb-info-figure {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--cb-page);
    border-radius: 12px;
    padding: .9rem 1.1rem;
    margin: 0 0 1.25rem;
}
.cb-info-figure strong { font-size: var(--cb-fs-32); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--cb-action); white-space: nowrap; }
.cb-info-figure span { font-size: var(--cb-fs-14); line-height: 1.4; color: var(--cb-ink-soft); }

/* A short section: a small heading, then one idea per line */
.cb-info-section { border-top: 1px solid var(--cb-pill); padding: 1rem 0 .5rem; }
.cb-info-body .cb-info-section h3 {
    font-size: var(--cb-fs-12);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cb-ink-soft);
    border: 0;
    padding: 0;
    margin: 0 0 .6rem;
}
.cb-info-points { list-style: none; margin: 0; padding: 0; }
.cb-info-points li {
    position: relative;
    padding-left: 1.15rem;
    margin: 0 0 .5rem;
    font-size: var(--cb-fs-16);
    line-height: 1.45;
    color: var(--cb-action);
}
.cb-info-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cb-line-strong);
}
.cb-info-points li b { font-weight: 700; }

/* Two ways to go (egg grading): one under the other, each with who it suits */
.cb-info-choices { display: grid; gap: .6rem; margin: 0 0 1rem; }
.cb-info-choice { border: 1px solid var(--cb-pill); border-radius: 12px; padding: .85rem 1rem; }
.cb-info-body .cb-info-choice h3 { font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); border: 0; padding: 0; margin: 0 0 .2rem; }
.cb-info-body .cb-info-choice p { font-size: var(--cb-fs-14); line-height: 1.45; margin: 0; padding: 0; }
.cb-info-body .cb-info-choice .cb-info-good { color: var(--cb-brand); font-weight: 600; margin-top: .3rem; }

/* The small note at the end */
.cb-info-body .cb-info-note {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    background: var(--cb-page);
    border-radius: 10px;
    padding: .75rem .9rem;
    margin: .5rem 0 0;
    font-size: var(--cb-fs-14);
    line-height: 1.45;
    color: var(--cb-ink-soft);
}
.cb-info-note i { margin-top: .2em; color: var(--cb-ink-soft); }

.cb-info-modal .modal-footer .black-button { text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 576px) {
    .cb-info-modal .modal-dialog { padding: 0 8px; }
    .cb-info-modal .modal-body { padding: 1rem 1.1rem 1.25rem; }
    .cb-info-modal .modal-header { padding-left: 1.1rem; }
    .cb-info-modal .modal-footer { padding-left: 1.1rem; padding-right: 1.1rem; }
    .cb-info-figure strong { font-size: var(--cb-fs-24); }
}

/* Every box in a pop-up takes the pop-up's width, so nothing is cut off
   ("Enter di" in the discount box). Anton, 25 Oct 2026. */
.modal .modal-body.cb-form > .cb-input-group, .modal .modal-body .cb-form > .cb-input-group, .modal .modal-body .cb-input-group { width: 100%; }
.modal .modal-body .cb-text-input, .modal .modal-body select.cb-text-input { width: 100%; max-width: none; }

/* A short list of names and values inside an info pop-up (egg prices). */
.cb-info-list { margin: 0 0 1rem; border-top: 1px solid var(--cb-pill); }
.cb-info-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--cb-pill); }

/* The feed table value pop-up: one column, the box full width. */
.cb-ft-modal .cb-form, .cb-page-form .modal .cb-form { display: block; }

/* "It's booked for 30 Oct. When did it go out?" on Mark as fulfilled */
.cb-booked-choice { border: 0; margin: 1rem 0 0; padding: 0; }
.cb-booked-choice legend { font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-action); margin-bottom: .5rem; }
.cb-booked-choice label { display: flex; align-items: center; gap: .5rem; min-height: 40px; cursor: pointer; }
.cb-booked-choice input { width: 18px; height: 18px; accent-color: var(--cb-action); margin: 0; }

/* ---- components/pro-modal.css ---- */
/* The "Try Pro" / "Upgrade" pop-up (templates/main/partials/_pro_modal.html). */
.cb-pro .modal-dialog.cb-pro-dialog { max-width: 960px; width: calc(100% - 2rem); margin-left: auto; margin-right: auto; top: auto; left: auto; }
.cb-pro .modal-content.cb-pro-content {
  position: relative; width: 100%; border: 0; border-radius: 20px; overflow: hidden;
  padding: 0;   /* the green picture side reaches the window's edges (other pop-ups have a small inner gap) */
  box-shadow: 0 24px 60px color-mix(in srgb, var(--cb-action) 25.0%, transparent); background: var(--cb-card);
}
.cb-pro-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid var(--cb-pill); background: color-mix(in srgb, var(--cb-card) 90.0%, transparent); color: var(--cb-action); cursor: pointer;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--cb-action) 8.0%, transparent); transition: background .15s;
}
.cb-pro-close svg { width: 1rem; height: 1rem; display: block; }
.cb-pro-close:hover { background: var(--cb-card); }
.cb-pro-row { display: flex; min-height: 560px; }

/* Left: the words and buttons */
.cb-pro-main { flex: 1 1 54%; padding: 2.75rem 2.5rem 2.25rem; display: flex; flex-direction: column; }
.cb-pro-step { display: flex; flex-direction: column; flex: 1; }
.cb-pro-step[hidden] { display: none; }
.cb-pro-kicker {
  align-self: flex-start; padding: .3rem .75rem; border-radius: 999px; font-size: var(--cb-fs-14); font-weight: 700;
  background: var(--cb-brand-soft); color: var(--cb-brand); border: 1px solid var(--cb-line-strong);
}
.cb-pro-title { font-size: var(--cb-fs-32); line-height: 1.2; font-weight: 800; color: var(--cb-action); margin: .9rem 0 .5rem; letter-spacing: -.01em; }
.cb-pro-lead { color: var(--cb-ink-soft); font-size: var(--cb-fs-16); margin: 0 0 1.5rem; }

.cb-pro-features { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 1rem; }
.cb-pro-features li { display: flex; gap: .9rem; align-items: flex-start; }
.cb-pro-feature-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--cb-brand-soft); color: var(--cb-brand);
}
.cb-pro-feature-icon .cb-svg { width: 1.35rem; height: 1.35rem; }
.cb-pro-features strong { display: block; color: var(--cb-action); font-size: var(--cb-fs-16); }
.cb-pro-features div > span { display: block; color: var(--cb-ink-soft); font-size: var(--cb-fs-16); line-height: 1.4; margin-top: .1rem; }

.cb-pro-btn {
  margin-top: auto; width: 100%; padding: .85rem 1rem; border: 0; border-radius: 12px;
  background: var(--cb-brand); color: var(--cb-card); font-size: var(--cb-fs-16); font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--cb-brand) 25.0%, transparent); transition: background .15s, transform .15s;
}
.cb-pro-btn:hover { background: var(--cb-brand); transform: translateY(-1px); }
.cb-pro-fine { margin: .75rem 0 0; text-align: center; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-pro-fine strong { color: var(--cb-action); }

.cb-pro-back { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--cb-brand); font-weight: 600; cursor: pointer; }
.cb-pro-back + .cb-pro-title { margin-top: .6rem; }
.cb-pro-checks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .3rem; color: var(--cb-ink-soft); }
.cb-pro-checks li::before { content: "\2713"; color: var(--cb-brand); font-weight: 700; margin-right: .5rem; }

/* Plan cards: tap one to choose it */
.cb-pro-plans { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1.1rem; }
.cb-pro-plan { margin: 0; cursor: pointer; }
.cb-pro-plan input { position: absolute; opacity: 0; pointer-events: none; }
.cb-pro-plan-card {
  position: relative; display: flex; flex-direction: column; gap: .15rem; height: 100%;
  padding: 1rem 1rem .9rem; border-radius: 14px; border: 2px solid var(--cb-pill); background: var(--cb-card);
  transition: border-color .15s, box-shadow .15s;
}
.cb-pro-plan:hover .cb-pro-plan-card { border-color: var(--cb-line-strong); }
.cb-pro-plan input:checked + .cb-pro-plan-card { border-color: var(--cb-brand); box-shadow: 0 0 0 4px var(--cb-brand-soft); }
.cb-pro-plan input:focus-visible + .cb-pro-plan-card { outline: 3px solid var(--cb-line-strong); outline-offset: 2px; }
.cb-pro-plan-card::after {
  content: ""; position: absolute; top: .9rem; right: .9rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  border: 2px solid var(--cb-line-strong); background: var(--cb-card);
}
.cb-pro-plan input:checked + .cb-pro-plan-card::after { border: 5px solid var(--cb-brand); }
.cb-pro-plan-badge {
  position: absolute; top: -.7rem; left: 1rem; padding: .15rem .6rem; border-radius: 999px;
  background: var(--cb-brand); color: var(--cb-card); font-size: var(--cb-fs-12); font-weight: 700;
}
.cb-pro-plan-name { font-weight: 700; color: var(--cb-action); }
.cb-pro-plan-price { font-size: var(--cb-fs-24); font-weight: 800; color: var(--cb-action); }
.cb-pro-plan-price small { font-size: var(--cb-fs-14); font-weight: 500; color: var(--cb-ink-soft); margin-left: .15rem; }
.cb-pro-plan-note { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }

.cb-pro-summary { margin: 0 0 1.25rem; padding: .8rem 1rem; border-radius: 12px; background: var(--cb-page); border: 1px solid var(--cb-pill); }
.cb-pro-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.cb-pro-summary dt { font-weight: 500; color: var(--cb-ink-soft); }
.cb-pro-summary dd { margin: 0; white-space: nowrap; font-weight: 700; color: var(--cb-action); }
.cb-pro-summary .cb-pro-free { color: var(--cb-brand); }
.cb-pro-secure { font-size: var(--cb-fs-14); }

/* Right: the picture, on a soft brand background with three small notes */
.cb-pro-art {
  flex: 1 1 46%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.25rem;
  padding: 2.5rem 2rem; background: linear-gradient(160deg, var(--cb-brand-soft) 0%, var(--cb-broilers-soft) 100%);
}
.cb-pro-art-inner { position: relative; width: 100%; max-width: 330px; }
.cb-pro-art-inner img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--cb-brand) 25.0%, transparent); background: var(--cb-card);
}
.cb-pro-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .45rem .75rem; border-radius: 999px; background: var(--cb-card); color: var(--cb-action);
  font-size: var(--cb-fs-14); font-weight: 600; box-shadow: 0 8px 20px color-mix(in srgb, var(--cb-action) 14.0%, transparent);
}
.cb-pro-chip .cb-svg { width: 1rem; height: 1rem; color: var(--cb-brand); }
.cb-pro-chip-1 { top: 8%; left: -12%; }
.cb-pro-chip-2 { top: 46%; right: -14%; }
.cb-pro-chip-3 { bottom: 6%; left: -6%; }
.cb-pro-art-line { margin: 0; font-weight: 700; color: var(--cb-brand); text-align: center; }

@media (max-width: 860px) {
  .cb-pro .modal-dialog.cb-pro-dialog { width: calc(100% - 1rem); margin: .5rem auto; }
  .cb-pro-row { flex-direction: column; min-height: 0; }
  .cb-pro-art { display: none; }
  .cb-pro-main { padding: 2.25rem 1.25rem 1.5rem; }
  .cb-pro-title { font-size: var(--cb-fs-24); padding-right: 2rem; }
  .cb-pro-btn { margin-top: .5rem; }
}
@media (max-width: 420px) {
  .cb-pro-plans { grid-template-columns: 1fr; }
}

/* ---- components/charts.css ---- */
/* ======================================================================
   GLOBAL CHART STYLES – chart.css
   Shared by every tile-set.  Only set-specific overrides belong elsewhere.
====================================================================== */

/* ───────────────────────────────────────────────────────────────
   CHART COLOUR UTILITIES
   Follow typogrhapy.css + some extra colours for the pie chart
   ----------------------------------------------------------------
   Usage:
       <span class="chart-col-3">Pink metric</span>
       <span class="chart-col-broiler">Broiler metric</span>
   ────────────────────────────────────────────────────────────── */

/* #1  Cyan blue  */      /* #2  Teal green */      /* #3  Soft pink  */      /* #4  Warm orange*/      /* #5  Mint aqua  */      /* #6  Pale aqua  */      /* #7  Deep teal  */      /* #8  Magenta    */      
/* Broiler terracotta */      /* Layers green   */      
/* ----------------------------------------------------------------------
   Chart wrapper
---------------------------------------------------------------------- */
.report-chart {
    width: 100%;
    min-height: 10.25rem;   /* inherits the global default */
    height: auto;
    position: relative;
    flex: 1 1 auto;
    background: transparent;
    border: none;
    border-radius: .625rem;
}

/* sales / snapshot charts that use the sf helper --------------------- */
.report-sf-chart {
    flex: 1 1 auto;
    min-height: 10.25rem;
    background: transparent; 
    border: none;
}

/* ----------------------------------------------------------------------
   Legend
---------------------------------------------------------------------- */
.report-legend {
  display: flex;
  gap: 1rem;
  font-size: var(--cb-fs-12);
  margin-top: .625rem;
  justify-content: flex-end;
}

.report-legend__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--cb-fs-12);
  white-space: nowrap;
}

.report-legend__swatch {
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
}

.report-legend__swatch--grey              { background: var(--cb-line-strong); }
.report-legend__swatch--teal              { background: var(--cb-brand); }
.report-legend__swatch--broilers_active   { background: var(--cb-broilers); }
.report-legend__swatch--broilers_previous { background: var(--cb-line-strong); }
.report-legend__swatch--layers_active     { background: var(--cb-warm); }
.report-legend__swatch--layers_previous   { background: var(--cb-line-strong); }

/* ----------------------------------------------------------------------
   Number fade-in
---------------------------------------------------------------------- */
.fade-metric      { opacity: 0; transition: opacity .25s ease; }
.fade-metric.show { opacity: 1; }

/* ----------------------------------------------------------------------
   Progress bar
---------------------------------------------------------------------- */
.progress-bar {
  width: 100%;
  height: 1rem;
  background: var(--cb-pill);
  border-radius: .25rem;
  overflow: hidden;
  position: relative;
}

.progress-bar__fill {
  height: 100%;
  background: var(--cb-brand);
  width: var(--p);
  transition: width .4s ease;
}

.report-metric-row--with-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.report-metric-row__days {
  flex: 0 0 40%;
  margin: 0;
}

.report-metric-row--with-bar .progress-bar {
  flex: 1;
  margin: 0;
}

/* ----------------------------------------------------------------------
   Red–green bar
---------------------------------------------------------------------- */

/* ----------------------------------------------------------------------
   Alignment helper for left-aligned metric
---------------------------------------------------------------------- */

/* ----------------------------------------------------------------------
   Colour utilities
---------------------------------------------------------------------- */

/* ------------------------------------------------------------------
   Override placeholder styling for live charts
   ------------------------------------------------------------------ */
.report-chart.report-sf-chart,
.report-three-fifths .report-chart {
  /* let it stretch */
  flex: 1 1 auto;

  /* match the surrounding card */
  min-height: 16.5rem;         /* same as .report-sf-chart earlier */
  background: transparent;
  border: none;
}

/* make sure the parent tile is a flex column (already in your code,
   but include here in case it was removed later) */
.report-three-fifths {
  display: flex;
  flex-direction: column;
}


/* ---- components/homepage.css ---- */


/*******************************************
 * MODALS
 *******************************************/
/* Overlay (hidden by default) */

/* Main container for each modal */

/* Two columns: left & right */

/* Full-width button inside modal */

/* Right column background image settings */

/* Distinct background images per modal */

/* Close icon (X) */


/* ---- components/cards.css ---- */
/****************************************************
  "CB Cards" - Reusable card styles for ChickenBudget
  Classes:
    .cb-card
      - base card style
    .cb-card--yellow, .cb-card--lime, .cb-card--green,
      .cb-card--blue, .cb-card--gray
      - color variants
    .cb-card__header, .cb-card__body
      - sub-elements
    .cb-label
      - for small labels inside the card
****************************************************/

/* Base card style */
.cb-card {
  display: block;
  width: calc(100% - 0.4rem);
  height: calc(100% - 0.4rem);
  margin: 0.2rem;
  border: 1px solid var(--cb-card); /* baseline: no visible border */
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: var(--cb-action);
  box-sizing: border-box;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

/* Sub-elements */

/*
  -------------------------------------------------
  Color Variants
  default = lighter shade
  hover   = normal/darker shade + inset border
  -------------------------------------------------
*/

/* YELLOW */

/* LIME */

/* GREEN */

/* BLUE */

/* GRAY */

/*
=======================================================
NEW: Darker Label Classes (use these outside a .cb-card)
E.g., <span class="cb-label cb-label-darker--yellow">
      or    .cb-label-darker--lime, etc.
=======================================================
*/


/* ---- components/reports.css ---- */
/* ==========================================================================
   REPORT TILE SYSTEM – Re‑usable, self‑contained component library
   --------------------------------------------------------------------------
   0.  Global wrapper (right‑hand buffer)
   1.  Core helpers & container
   2.  Tile component (+ sub‑elements)
   3.  Tile‑set grid wrappers (per‑set width rules)
   4.  Mixed ⅔ + ⅓ layout helpers (set‑two) + mirrored ⅓ + ⅔ (set‑three)
   ========================================================================== */

/* **********************************************************************
   0. GLOBAL WRAPPER  (keeps tiles aligned with header avatar)
   ********************************************************************* */
   .report-tiles-wrapper {
    padding-right: 4rem; /* match header user‑image gap */
}

/* **********************************************************************
   1. CORE HELPERS
   ********************************************************************* */
.report-tile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;            /* uniform gutters on all sides */
    padding: 10px;        /* identical outer gutter */
    margin-top: 0;        /* prevent doubled vertical space between sets */
    align-items: stretch; /* every tile shares the tallest height (per row) */
    box-sizing: border-box;
}

/* **********************************************************************
   2. REPORT TILE  (card)
   ********************************************************************* */
.report-tile {
    box-sizing: border-box;
    width: 100%;
    /* → removed default 21 rem max‑width cap */
    padding: .9rem 1.1rem;        /* was 1.1rem 1.4rem */
    background: var(--cb-card);
    border: 1px solid var(--cb-pill);
    border-radius: .75rem;
    box-shadow: 0 1px 3px color-mix(in srgb, var(--cb-action) 6.0%, transparent);

    font-family: inherit;
    color: var(--cb-action);
    line-height: 1.35;

    display: flex;
    flex-direction: column;
    height: 100%;                 /* stretch to match siblings */
}

/* --- Header --------------------------------------------------------- */
.report-tile__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: .5rem;
}
.report-tile__title {
    font-size: var(--cb-fs-14);
    font-weight: 700;
    margin: 0;
    padding-bottom: 2px;
    border-bottom: 1px dotted var(--cb-line-strong);
    display: inline-block;
    color: inherit;
}

/* --- Metric row ------------------------------------------------------ */
.report-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: .25rem 0 1rem;
}
.report-tile__metric {
    font-size: var(--cb-fs-24);
    font-weight: 700;
    color: var(--cb-action);
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}
.report-tile__delta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: var(--cb-fs-18);
    font-weight: 700;
}

/* --- Breakdown list -------------------------------------------------- */
.report-breakdown { margin-bottom: 1.25rem; } /* slightly tighter */
.report-breakdown__row {
    display: flex;
    align-items: center;
    margin: .3125rem 0;
    font-size: var(--cb-fs-14);
}
.report-breakdown__label { flex: 1; }
.report-breakdown__value {
    width: 6rem;
    text-align: right;
    font-weight: 500!important;
}
.report-breakdown__delta {
    width: 5rem;
    text-align: right;
    font-weight: 600;
}

/* --- Section heading ------------------------------------------------- */
.report-section-title {
    font-size: var(--cb-fs-12);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--cb-action);
    margin: 0 0 .5rem;
}

/* --- Chart placeholder ---------------------------------------------- */
.report-chart {
    width: 100%;
    height: 10.25rem;
    background: var(--cb-page);
    border: 1px solid var(--cb-pill);
    border-radius: .625rem;
    position: relative;
}

/* --- Legend ---------------------------------------------------------- */
.report-legend {
    display: flex;
    gap: 1rem;
    font-size: var(--cb-fs-12);
    margin-top: 10px;           
    justify-content: flex-end;
}
.report-legend__item {
    font-size: var(--cb-fs-12);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}
.report-legend__swatch {
    width: .625rem;
    height: .625rem;
    border-radius: 50%;
}
.report-legend__swatch--grey { background: var(--cb-line-strong); }
.report-legend__swatch--teal { background: var(--cb-brand); }

/* **********************************************************************
   3. TILE‑SET LAYOUTS
   ********************************************************************* */

/* --- 3‑across -------------------------------------------------------- */
.report-set-one .report-tile {
    /* 2 gaps × 10px = 20px */
    flex: 0 0 calc((100% - 20px) / 3);
    max-width: calc((100% - 20px) / 3);
    min-height: 18rem;
}

/* --- 4‑across -------------------------------------------------------- */
.report-set-four .report-tile {
    /* 3 gaps × 10px = 30px */
    flex: 0 0 calc((100% - 30px) / 4);
    max-width: calc((100% - 30px) / 4);
}

/* **********************************************************************
   4.  TILE‑SET TWO  (⅔ + ⅓)
   ********************************************************************* */

/* Lift any width cap in this mixed layout */

/* Ratio helpers ------------------------------------------------------ */
.report-two-thirds { flex: 0 0 66.666%; }
.report-one-third  { flex: 0 0 33.333%; min-height: 100%; } /* grow to match row */

/* Calculated widths so a single 10px gap = perfect 100% row ---------- */

/* **********************************************************************
   5.  TILE‑SET THREE  (⅓ + ⅔) — mirrored order of set‑two
   ********************************************************************* */

/* Same: no width cap */
.report-set-three .report-tile {
    max-width: none;
}

/* First tile ⅓ width, second tile ⅔ width ---------------------------- */
.report-set-three .report-one-third {
    flex: 0 0 calc((100% - 20px) / 3);
    max-width: calc((100% - 20px) / 3);
    min-height: 21.5rem;
}
.report-set-three .report-two-thirds {
    flex: 0 0 calc(100% - 10px - ((100% - 20px) / 3));
    max-width: calc(100% - 10px - ((100% - 20px) / 3));
}

/* **********************************************************************
   TILE-SET FOUR
********************************************************************* */

.report-set-four .report-tile{max-width:none}

/* big tile (3-fifths) */
.report-set-four .report-three-fifths{
  flex:0 0 calc((100% - 20px)/5*3);
  max-width:calc((100% - 20px)/5*3);
  display:flex;
  flex-direction:column;
  min-height:100%;
}

/* two side columns */
.report-set-four .report-column{
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:0 0 calc((100% - 20px)/5);
  max-width:calc((100% - 20px)/5);
  min-height:100%;
}
.report-set-four .report-column .report-tile{flex:1 1 0}
.report-set-four .report-column .report-chart,
.report-set-four .report-column .report-legend{display:none}

/* ── top bar ───────────────────────────────────────────────────────── */

.report-sf-row{display:flex;margin-bottom:.75rem}
.report-sf-cell{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:flex-end;
  padding:0 1.25rem;
}
.report-sf-cell:first-child{align-items:flex-start;padding-left:0}

/* labels, values, deltas */
.report-sf-label{
  font-size:var(--cb-fs-14);
  font-weight:600;
  color:var(--cb-ink-soft);
  display:flex;
  align-items:center;
  gap:.35rem;
}
.report-sf-value-row{display:flex;align-items:center;gap:.35rem}
.report-sf-value{
  font-size:var(--cb-fs-24);
  font-weight:700;
  color:var(--cb-action);
  white-space:nowrap;
}
.report-sf-delta{font-size:var(--cb-fs-14);font-weight:700}
/* "2 to deliver · €900" under the sales figure: sold, not handed over yet */
.report-sf-sub{font-size:var(--cb-fs-14);font-weight:600;color:var(--cb-ink-soft);text-decoration:none;white-space:nowrap}
.report-sf-sub:hover{color:var(--cb-action);text-decoration:underline}
.report-sf-sub:empty{display:none}

/* The four figures share the big tile's width, which the sidebar narrows.
   Let them shrink a little and wrap to a second line instead of spilling
   over the next tile (the Layers switch used to land on "Total Orders"). */
.report-set-four .report-three-fifths{min-width:0;container-type:inline-size}
.report-sf-row{flex-wrap:wrap;row-gap:.75rem}
.report-sf-cell{min-width:0}
.report-sf-value-row{flex-wrap:wrap;column-gap:.35rem;row-gap:0}
.report-sf-delta{white-space:nowrap}
.report-sf-value{font-size:clamp(1.15rem, 1.3vw, 1.5rem)}
/* Not room for all four on one line: the period menu goes on top and the
   three figures share the line below. */
@container (max-width: 900px){
  .report-sf-cell:first-child{flex:0 0 100%}
  .report-sf-cell{flex:1 1 0;padding:0 .75rem}
  .report-sf-cell:nth-child(2){align-items:flex-start;padding-left:0}
}

/* The narrow side tiles: when the money figure and its change don't fit
   side by side, the change drops under the figure instead of spilling out. */
.report-set-four .report-column{min-width:0}
.report-set-four .report-column .report-tile{min-width:0;container-type:inline-size}
.report-set-four .report-column .report-metric-row{flex-wrap:wrap;column-gap:.5rem;row-gap:.15rem}
.report-set-four .report-column .report-tile__metric{flex-shrink:1;font-size:clamp(1.15rem, 1.3vw, 1.5rem)}
@container (max-width: 220px){
  .report-set-four .report-column .report-tile__delta{font-size:var(--cb-fs-16)}
}

/* Tablets and small laptops: not enough room for three columns next to the
   sidebar, so the sales tile takes the full width and the four small tiles
   sit two by two underneath. */
@media (min-width: 769px) and (max-width: 1199px){
  .report-set-four{flex-wrap:wrap}
  .report-set-four .report-three-fifths{flex:0 0 100%;max-width:100%}
  .report-set-four .report-column{flex:1 1 calc(50% - 5px);max-width:calc(50% - 5px)}
}

/* custom swatch colours */

/* chart */
.report-sf-chart{flex: 1 1 auto; min-height: 17rem; background:none;border:none}

/* ──────────────────────────────────────────────────────────────────
   6. REPORT-BREAKDOWN – no verticals, dashed row separators, 
   used in broilers report feed left tile for example
   ----------------------------------------------------------------*/

/* base row style */
.report-breakdown__row {
    display: flex;
    align-items: center;
    margin: .3125rem 0;
    font-size: var(--cb-fs-14);
    border-bottom: 1px dashed var(--cb-pill);            /* new horizontal divider */
}
.report-breakdown__row:last-child { border-bottom: 0; }

/* optional heading tweaks */

/* column widths (unchanged) */

/* simple left padding to keep a little breathing-room, no border-left */

/* The padding counts inside the column's width, so a row of columns adding
   up to 100% stays inside the tile (the Cost column used to stick out). */
.report-breakdown__row > [class*="report-breakdown__col-"] { box-sizing: border-box; min-width: 0; }

/* Chart boxes that were never built (several labour report tiles) stay hidden,
   with their heading and legend, instead of showing an empty grey box */
.report-chart:empty,
.report-section-title:has(+ .report-chart:empty),
.report-chart:empty + .report-legend { display: none; }

/* ---- components/pages.css ---- */
/* Shared Full-Width Wrapper */
.tile-wrapper {
    width: 100%; /* Full width of the page */
    box-sizing: border-box;
}

/* =======================================
- DESKTOP TILES
======================================= */

/* =======================================
- Hero-tile
======================================= */
.hero-tile-wrapper {
    width: 100%; /* Full width of the page */
    box-sizing: border-box;
    background-color: var(--cb-brand);
}

.hero-tile {
    display: flex; /* Flexbox for two equal sections */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    max-width: 1200px; /* Constrain content width */
    height: 58vh; /* Full height of the hero section */
    margin: 0 auto; /* Center hero-tile horizontally */
    box-sizing: border-box;
}

/* Left Section */
.ht-left {
    width: 40%; /* Half width */
    padding: 20px; /* Add spacing */
    color: var(--cb-card); /* White font color */
    text-align: left; /* Align text to the left */
    box-sizing: border-box;
}

.hero-tile-solutions {
    display: flex;
    align-items: flex-end; 
    justify-content: space-between; 
    max-width: 1200px; 
    height: 58vh; 
    margin: 0 auto; 
    box-sizing: border-box;
    position: relative; 
}

.ht-left-solutions {
    padding: 20px;
    background-color: var(--cb-brand); /* Green background */
    color: var(--cb-card); /* White font color */
    text-align: left; /* Align text to the left */
    box-sizing: border-box;
    position: absolute; /* Positioning the green box */
    bottom: -10vh; /* Adjusted to move the box further down */
    left: 10em; 
}

.ht-left h2{
    margin-bottom: 15px;
    color: var(--cb-card);
    font-size: 2.5em;
    font-weight: 700;
}

.ht-left p {
    margin-bottom: 15px; 
    color: var(--cb-card);
    font-weight: 400;
    font-size: 1.1em;
}

/* Right Section */
.ht-right {
    width: 50%; /* Half width */
    padding: 20px; /* Add spacing */
    box-sizing: border-box;
}

/* Right Section */
.ht-right img {
    width: 550px; /* Ensures the image fills the container */
    height: 450px; /* Ensures the image fills the container */
    object-fit: cover;
    border-radius: 35px;
    border: solid 15px var(--cb-brand);
    box-shadow: 0 4px 8px color-mix(in srgb, var(--cb-action) 10.0%, transparent);
    overflow: hidden; /
}

/* =======================================
- Sub-hero Tile
======================================= */
/* Shared Full-Width Wrapper */

/* Sub-hero heading */

/* =======================================
- Industries Tile
======================================= */

.industry-tile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px 60px 10px;
    box-sizing: border-box;
    text-align: center;
}

/* Header */

/* Card Wrapper */

/* Row of Cards */

/* Individual Card */
.it-card {
    text-decoration: none;
    flex: 1;
    box-sizing: border-box;
    min-width: 250px;
    max-width: calc(25% - 20px); /* Ensure 4 cards per row */
    text-align: left;
    border: 1px solid var(--cb-pill);
    background-color: var(--cb-card);
    border-radius: 15px;
    height: 410px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */

.it-card img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-top-left-radius: 15px; /* Round top-left corner */
    border-top-right-radius: 15px; /* Round top-right corner */
    border-bottom-left-radius: 0; /* Ensure bottom-left is square */
    border-bottom-right-radius: 0; /* Ensure bottom-right is square */
    object-fit: cover; /* Optional: ensures proper scaling for images */
}

.it-card h3 {
    padding: 0 10px;
    color: var(--cb-action);
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 0px;
    text-decoration: none;
}

.it-card span {
    font-size: 0.8em;
    margin-left: 0.8em;
    font-weight: 500;
    text-decoration: none;
}

.it-card ul {
    padding: 10px 15px 0 30px;
    list-style-type: disc;
    color: var(--cb-action);
    font-size: 0.90em;
    text-decoration: none;
}

.it-card ul li {
    margin-bottom: 5px;
    text-decoration: none;
}

.it-card ul li::marker {
    color: var(--cb-brand);
}

/* =======================================
- Industries Tile Two (Styled Layout)
======================================= */
.industry_tile_two {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Space between image and text */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 60px 0;
}

/* Image Section */
.itt-image {
    flex: 1 1 40%; /* Image takes about 40% of the container */
    text-align: center;
}

.itt-image img {
    width: 100%;
    max-width: 300px; /* Set a max width */
    height: auto;
    border-radius: 140px; /* Rounded corners */
}

/* Text Section */
.itt-text {
    flex: 1 1 55%; /* Text takes about 55% of the container */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.itt-card {
    background-color: var(--cb-card); /* White background for cards */
    padding: 20px 30px; /* Add spacing */
    border: 1px solid var(--cb-pill);
}

.itt-card h3 {
    margin: 0 0 10px;
    font-size: var(--cb-fs-20);
    font-weight: 700;
    color: var(--cb-action); /* Darker text for headings */
}

.itt-card p {
    margin: 10px 0;
    font-size: var(--cb-fs-16);
    line-height: 1.6;
    color: var(--cb-ink-soft); /* Slightly lighter text for description */
}

/* =======================================
- Bottom Sub Tile
======================================= */

/* =======================================
- CTA Tile
======================================= */
.tile-wrapper-cta {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--cb-brand);
    padding: 50px 0; /* Top and bottom padding for spacing */
}

/* Headline & Subtext */
.cta-heading {
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: center;
    padding: 0 20px;
}

.cta-heading h2 {
    font-size: var(--cb-fs-32);
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--cb-card);
}

.cta-heading p {
    font-size: var(--cb-fs-18);
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
    color: var(--cb-card);
    text-align: left;
}

/* =======================================
- Case Study Tile
======================================= */
.tile-wrapper-case-study {
    width: 100%; /* Full width of the page */
    background-color: var(--cb-page)!important;
    box-sizing: border-box;
}

.case-study-tile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 80px 0;
}

/* Header Section */
.cs-header {
    text-align: center;
    margin-bottom: 30px;
}

.cs-header h2 {
    color: var(--cb-action);
    margin: 0;
    padding: 40px 0 10px 0;
    font-size: 2em;
    font-weight: 600;
}

.cs-header p {
    width: 60%;
    color: var(--cb-action);
    margin: 0 auto;
    padding: 10px 0;
    font-size: 1,1em;
}

/* Card Wrapper */
.cs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Row of Cards */
.cs-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Individual Card */
.cs-card {
    flex: 1;
    padding: 30px 50px;
    border: 1px solid var(--cb-pill); 
    box-sizing: border-box;
    border-radius: 25px;
    min-width: 250px;
    text-align: left;
    background-color: var(--cb-brand-soft);
    transition: all 0.3s ease-in-out;
}

.cs-card:hover {
    border: 1px solid var(--cb-brand-soft); 
    box-shadow: 0 4px 10px color-mix(in srgb, var(--cb-critical-soft) 80.0%, transparent); 
    cursor: default;
}

.cs-card h3 {
    margin: 0 0 10px;
    color: var(--cb-action);
    font-size: 1.2em;
    font-weight: 600;
}

.cs-card ul {
    list-style: none; /* Remove default bullets */
    margin: 0;
    padding-left: 0; /* Remove padding */
}

.cs-card ul li {
    margin-bottom: 10px; /* Space between items */
    padding-bottom: 10px; /* Space above the border */
    border-bottom: 1px solid var(--cb-brand-soft); /* Purple bottom border */
    line-height: 1.4; /* Clean spacing */
}

/* =======================================
- Service Tile
======================================= */
.tile-wrapper-services {
    width: 100%; /* Full width of the page */
    box-sizing: border-box;
    background-color: var(--cb-brand-soft);
}

.service-tile {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

/* Header */
.st-header-page {
    width: 45%;
    margin-bottom: 30px;
}

.st-header-page h2 {
    text-align: left;
    margin-left: 30px;
    color: var(--cb-action);
    font-size: 2em;
    font-weight: 600;
}

/* Cards Wrapper */
.st-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Row */
.st-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.st-card-link a {
    width: 100%;
    text-decoration: none;
}

.st-card-link {
    width: 100%;
    text-decoration: none;
}

/* Card */
.st-card {
    flex: 1;
    padding: 30px;
    box-sizing: border-box;
    text-align: left;
    background-color: var(--cb-card);
    border-radius: 25px;
    border: 1px solid var(--cb-pill);
    transition: all 0.3s ease-in-out;
    color: var(--cb-action);
}

.st-card:hover {
    border: 1px solid var(--cb-brand-soft); 
    box-shadow: 0 4px 10px color-mix(in srgb, var(--cb-critical-soft) 80.0%, transparent);
}

.st-card img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.st-card h3 {
    margin: 0 0 10px;
    font-size: 1.4em;
    font-weight: 600;
}

.st-card p {
    margin: 0;
    font-size: var(--cb-fs-14);
    font-size: 1em;
}

/* =======================================
- MOBILE TILES
======================================= */

/* =======================================
- Bottom Sub Tile Mobile
======================================= */

/* =======================================
- Case Study Tile Mobile (Used in Industries)
======================================= */
.cs-tile-wrapper-mob {
    width: 100%; /* Full width of the page */
    background-color: var(--cb-page);
    box-sizing: border-box;
}

.case-study-tile-mob {
    text-align: center;
    padding: 20px;
    overflow: hidden; 
}

.csm-header h2 {
    font-size: 2.1em;
    font-weight: 700;
    margin-top: 20px;
    text-align: left;
    color: var(--cb-action);
}

.csm-header p {
    font-size: 1.3em;
    font-weight: 400;
    text-align: left;
    color: var(--cb-action);
}

/* Headline & Subtext */
.cta-heading-mob {
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: left;
    padding: 0 20px;
}

.cta-heading-mob h2 {
    font-size: var(--cb-fs-32);
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--cb-card);
}

.cta-heading-mob p {
    font-size: var(--cb-fs-20);
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
    color: var(--cb-card);
    text-align: left;
}

/* =======================================
- Industry Tile Mobile
======================================= */
.industry-tile-mob {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    gap: 20px; /* Add spacing between sections */
    text-align: center; /* Center-align content for readability */
    padding: 20px;
    box-sizing: border-box;
}

/* Image Section */
.itt-image-mob {
    width: 100%; /* Full width for the image section */
    text-align: center;
}

.itt-image-mob img {
    width: 70%; /* Ensure image scales properly */
    height: auto; /* Maintain aspect ratio */
    border-radius: 200px; /* Add slight rounding to match style */
}

/* Text Section */
.itt-text-mob {
    display: flex;
    flex-direction: column; /* Stack cards vertically */
    gap: 20px; /* Space between cards */
}

/* Individual Cards */
.itt-card-mob {
    padding: 20px;
    border:1px solid var(--cb-pill);
    background-color: var(--cb-card);
}

.itt-card-mob h3 {
    font-size: var(--cb-fs-24); 
    margin-bottom: 20px;
    font-weight: 600;
    text-align: left;
    color: var(--cb-action);
}

.itt-card-mob p {
    font-size: var(--cb-fs-18); 
    margin-bottom: 10px;
    font-weight: 400;
    text-align: left;
    color: var(--cb-action);
}

/* =======================================
- Service Tile Mobile
======================================= */

/* Header */

  
/* =======================================
- Hero-tile Mob
======================================= */
.hero-tile-wrapper-mob {
    position: relative;
}

.mob-hero-img {
    width: 100%;
    height: auto; 
    display: flex; /* Ensures proper alignment */
    justify-content: center; /* Centers the image horizontally */
    align-items: center; /* Centers the image vertically */
    overflow: hidden; /* Ensures no scrollbars appear */
    background-color: var(--cb-action); /* Optional: Set a background color for padding areas */
}

.mob-hero-img img {
    width: 100%;
    height: auto; 
    object-fit: contain; /* Ensures the image is fully visible while maintaining proportions */
    display: block;
}

.hero-tile-mob {
    align-items: left; /* Center content vertically */
    height: 57vh; /* Full height of the hero section */
    box-sizing: border-box;
    padding: 20px;
    background-color: var(--cb-brand);
    position: relative;
}

.hero-tile-mob-content {
    border-radius: 35px;
    border: solid 15px var(--cb-brand);
    box-shadow: 0 4px 8px color-mix(in srgb, var(--cb-action) 10.0%, transparent);
    background-color: var(--cb-card);
    margin-top: -100px;
    padding: 15px 15px 0px 15px;
    height: 60vh;
    max-height: 60vh;
}

.hero-tile-mob-content h1 {
    color: var(--cb-action);
    font-weight: 700;
    font-size: 2.2em;
    margin-top: 10px;
}

.hero-tile-mob-content p {
    color: var(--cb-action);
    font-weight: 500;
    font-size: 1.2em;
    line-height: 1.3em;
}

.hero-tile-mob-content button {
    margin: 30px auto;
}

/* =======================================
   - solutions_template.html
   ======================================= */
.solutions-tile-wrap {
    max-width: 100%;
    background-color: var(--cb-page);
    font-family: "Inter", sans-serif;
}

.solutions-tile {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 10px 20px 10px;
    text-align: left;
    background-color: var(--cb-page);
    font-family: "Inter", sans-serif;
}

.solutions-tile h2 {
    font-size: 2.3em !important;
    font-weight: 700;
    color: var(--cb-action);
    margin-bottom: 10px;
    font-family: "Inter", sans-serif;
}

.solutions-tile h1 {
    font-size: 1.8em !important;
    font-weight: 700;
    color: var(--cb-action);
    margin-bottom: 10px;
    font-family: "Inter", sans-serif;
}

.solutions-tile p {
    font-size: 1.1em;
    font-weight: 400;
    color: var(--cb-action);
    margin: 20px auto;
    font-family: "Inter", sans-serif;
}

/* ---------- Lists inside the Solutions tile ---------- */
.solutions-tile ul,
.solutions-tile-two ul {
    padding-left: 1.2em;               /* keeps default spacing tidy */
    list-style-type: disc;
    font-family: "Inter", sans-serif;
}

.solutions-tile ul li,
.solutions-tile-two ul li {
    font-size: 1.1em;
    font-weight: 400;
    color: var(--cb-action);
    margin: 6px 0;
    font-family: "Inter", sans-serif;
}

/* bullet colour matches existing accent */
.solutions-tile ul li::marker,
.solutions-tile-two ul li::marker {
    color: var(--cb-brand);                    /* same accent as other lists */
}

.solutions-tile-two {
    width: 780px;
    margin: 0 auto;
    display: flex;
    align-items: center;   /* Align items vertically */
    gap: 20px;
    font-family: "Inter", sans-serif;
}

.stt-left {
    flex: 0 0 25%;         /* Default width of 25% */
}

.stt-right {
    flex: 0 0 70%;         /* Default width of 70% */
}

.stt-right h4,
.stt-left h4 {
    font-size: 1.7em;
    font-weight: 600;
    color: var(--cb-action);
    font-family: "Inter", sans-serif;
}

.solutions-tile-wrap h3 {
    font-size: 1.7em;
    font-weight: 600;
    color: var(--cb-action);
    width: 780px;
    margin: 0 auto;
    font-family: "Inter", sans-serif;
}

.stt-right p,
.stt-left p {
    font-size: 1.1em;
    font-weight: 400;
    color: var(--cb-action);
    margin: 20px auto;
    font-family: "Inter", sans-serif;
}

.stt-img {
    width: 100%;
    display: block;
    height: auto;
}

.stt-divider {
    height: 40px;
}

.solutions-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: "Inter", sans-serif;
}

.solutions-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* ---------- Page Body (white) ---------- */
.page-body-mob {
    background-color: var(--cb-card);
    width: 100%;
    padding: 0 20px;
    color: var(--cb-action);
    font-family: "Inter", sans-serif;
}

.page-body-mob h2 {
    font-size: 1.9em;
    font-weight: 700;
    color: var(--cb-action);
    margin-top: 20px;
    font-family: "Inter", sans-serif;
}

.page-body-mob h3 {
    padding-top: 20px;
    font-size: 1.6em;
    font-weight: 700;
    color: var(--cb-action);
    font-family: "Inter", sans-serif;
}

.page-body-mob p {
    font-size: 1.12em;
    color: var(--cb-action);
    margin: 0 0 20px 0;
    font-family: "Inter", sans-serif;
}

.page-body-mob ul {
    margin-top: 20px;
    padding-left: 1.2em;
    list-style-type: disc;
    font-family: "Inter", sans-serif;
}

.page-body-mob ul li {
    font-size: 1.12em;
    color: var(--cb-action);
    margin: 10px;
    font-family: "Inter", sans-serif;
}

/* Bullet Colour */
.page-body-mob ul li::marker {
    color: var(--cb-brand);
}

/* ---------- Service Body (light-gray) ---------- */
.service-body-mob {
    background-color: var(--cb-page);
    width: 100%;
    padding: 60px 20px 20px;
    color: var(--cb-action);
    font-family: "Inter", sans-serif;
}

.service-body-mob h2 {
    font-size: 1.9em;
    font-weight: 700;
    color: var(--cb-action);
    padding-top: 20px;
    font-family: "Inter", sans-serif;
}

.service-body-mob h3 {
    padding-top: 20px;
    font-size: 1.6em;
    font-weight: 700;
    color: var(--cb-action);
    font-family: "Inter", sans-serif;
}

.service-body-mob p {
    font-size: 1.12em;
    color: var(--cb-action);
    margin: 0 0 20px 0;
    font-family: "Inter", sans-serif;
}

.service-body-mob ul {
    margin-top: 20px;
    padding-left: 1.2em;
    list-style-type: disc;
    font-family: "Inter", sans-serif;
}

.service-body-mob ul li {
    font-size: 1.12em;
    color: var(--cb-action);
    margin: 10px;
    font-family: "Inter", sans-serif;
}

/* Bullet Colour */
.service-body-mob ul li::marker {
    color: var(--cb-brand);
}

/* ---------- Ordered lists (lower-alpha) ---------- */
/* Solutions tiles */
.solutions-tile ol,
.solutions-tile-two ol {
    padding-left: 1.2em;          /* keep alignment tidy */
    list-style-type: lower-alpha; /* ensures a, b, c … even if type omitted */
    font-family: "Inter", sans-serif;
}

.solutions-tile ol li,
.solutions-tile-two ol li {
    font-size: 1.1em;
    font-weight: 400;
    color: var(--cb-action);
    margin: 6px 0;
    font-family: "Inter", sans-serif;
}

/* Accent colour for letter markers */
.solutions-tile ol li::marker,
.solutions-tile-two ol li::marker {
    color: var(--cb-brand);               /* same green accent */
    font-weight: 600;             /* optional: emphasise marker */
}

/* Page / Service body sections */
.page-body-mob ol,
.service-body-mob ol {
    padding-left: 1.2em;
    list-style-type: lower-alpha;
    font-family: "Inter", sans-serif;
}

.page-body-mob ol li,
.service-body-mob ol li {
    font-size: 1.12em;
    color: var(--cb-action);
    margin: 10px;
    font-family: "Inter", sans-serif;
}

.page-body-mob ol li::marker,
.service-body-mob ol li::marker {
    color: var(--cb-brand);
}

/* Contact page */


/* ---- components/inventory.css ---- */
/* =======================================
   Inventory (inventory_management)
======================================= */
.inv { max-width: 44rem; margin: 0 auto; padding: 1rem 1rem 4rem; }
.inv-msg { padding: .75rem 1rem; border-radius: .5rem; margin: 0 0 .75rem; background: var(--cb-brand-soft); color: var(--cb-brand); font-weight: 500; }
.inv-msg.error { background: var(--cb-critical-soft); color: var(--cb-critical); }
.inv-card { background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: .75rem; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.inv-card h1 { font-size: var(--cb-fs-20); margin: 0; }
.inv-card h2 { font-size: var(--cb-fs-16); margin: 0 0 .5rem; }
.inv-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.inv-sub { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.inv-big { font-size: var(--cb-fs-32); font-weight: 700; color: var(--cb-action); margin: .75rem 0 .25rem; line-height: 1.1; }
.inv-big span { font-size: var(--cb-fs-16); font-weight: 500; color: var(--cb-ink-soft); }
.inv-warn { background: var(--cb-brand-soft); color: var(--cb-brand); border-radius: .5rem; padding: .6rem .8rem; margin: .5rem 0; font-weight: 500; }
.inv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; margin: .75rem 0 0; }
.inv-facts dt { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); font-weight: 500; }
.inv-facts dd { margin: 0; font-weight: 600; color: var(--cb-action); }

.inv-pill { display: inline-block; white-space: nowrap; font-size: var(--cb-fs-12); font-weight: 600; padding: .2rem .6rem; border-radius: 1rem; background: var(--cb-brand-soft); color: var(--cb-brand); }
.inv-pill.inv-low, .inv-pill.inv-expiring { background: var(--cb-brand-soft); color: var(--cb-brand); }
.inv-pill.inv-out, .inv-pill.inv-expired { background: var(--cb-critical-soft); color: var(--cb-critical); }

.inv-moves { display: grid; gap: .6rem; margin-bottom: 1rem; }
.inv-move { background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: .75rem; overflow: hidden; }
.inv-move summary { list-style: none; cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; font-size: var(--cb-fs-16); min-height: 3rem; display: flex; align-items: center; }
.inv-move summary::-webkit-details-marker { display: none; }
.inv-move summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; margin-right: .6rem; border-radius: 50%; background: var(--cb-page); font-weight: 700; }
.inv-move[open] summary::before { content: "–"; }
.inv-move-received summary { color: var(--cb-brand); }
.inv-move-used summary { color: var(--cb-brand); }
.inv-move-counted summary { color: var(--cb-action); }
.inv-move form { padding: 0 1.1rem 1.1rem; }
.inv-help { display: block; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin: .25rem 0 .75rem; }
.inv-help-block { margin-top: -.75rem; margin-bottom: 1.25rem; }
.inv-form input[type="date"], .inv-form input.cb-date-box { width: 100%; font-size: var(--cb-fs-16); padding: .7rem 1rem; border: none; border-radius: .475rem; background-color: var(--cb-page); color: var(--cb-action); min-height: 2.75rem; }
.inv-form .errorlist { color: var(--cb-critical); list-style: none; padding: 0; margin: .25rem 0 0; font-size: var(--cb-fs-14); }
.inv-save { width: 100%; min-height: 3rem; }
.inv-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inv-actions .black-button, .inv-actions .gray-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.inv-history { list-style: none; padding: 0; margin: 0; }
.inv-history li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--cb-pill); }
.inv-history li:first-child { border-top: 0; }
.inv-kind-received { color: var(--cb-brand); }
.inv-kind-used { color: var(--cb-brand); }
.inv-remove { background: none; border: 1px solid var(--cb-pill); border-radius: .4rem; padding: .35rem .7rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }

.inv-narrow { display: none; }

.inv-empty { max-width: 760px; margin: 0 auto; text-align: center; padding: 2.5rem 1rem 2rem; }
.inv-empty-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 1rem;
    border-radius: 20px; background: var(--cb-brand-soft); color: var(--cb-brand); font-size: var(--cb-fs-24);
}
.inv-empty h2 { margin: 0 0 .5rem; font-size: var(--cb-fs-20); color: var(--cb-action); }
.inv-empty > p { margin: 0 auto 1.5rem; max-width: 520px; color: var(--cb-ink-soft); line-height: 1.55; }
.inv-empty-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.inv-empty-pick {
    display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.1rem .75rem;
    border: 1px solid var(--cb-pill); border-radius: 16px; background: var(--cb-card); color: var(--cb-action); text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.inv-empty-pick i { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: .25rem;
    border-radius: 50%; background: var(--cb-brand-soft); color: var(--cb-brand); font-size: var(--cb-fs-18); }
.inv-empty-pick strong { font-size: var(--cb-fs-16); }
.inv-empty-pick span { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.inv-empty-pick:hover { border-color: var(--cb-brand); box-shadow: 0 6px 18px color-mix(in srgb, var(--cb-brand) 10.0%, transparent); transform: translateY(-1px); color: var(--cb-action); }
.inv-empty .inv-empty-note { margin: 1.25rem 0 0; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
@media (max-width: 768px) { .inv-empty-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Home page: items that need attention */

@media (max-width: 768px) {
    .inv-facts { grid-template-columns: 1fr 1fr; }
    .inv-card-head { flex-wrap: wrap; }
    .inv-wide { display: none !important; }
    .inv-narrow { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .3rem; }
}

/* Add a stock item: simple by default, the rest folded under "More details" */
.inv-more { margin: .5rem 0 1rem; border: 1px solid var(--cb-pill); border-radius: 14px; padding: 0 1rem; background: var(--cb-page); }
.inv-more[open] { padding-bottom: 1rem; background: transparent; }
.inv-more summary { cursor: pointer; padding: .9rem 0; font-weight: 600; color: var(--cb-action); list-style: none; }
.inv-more summary::-webkit-details-marker { display: none; }
.inv-more summary::before { content: "+"; display: inline-block; width: 1.2rem; color: var(--cb-brand); font-weight: 700; }
.inv-more[open] summary::before { content: "\2212"; }
.inv-more summary span { margin-left: .35rem; font-weight: 400; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }

/* ---- components/messages.css ---- */
/* Notes shown at the top of a page after an action, e.g. "Invalid email or password". */
.site-messages { position: relative; z-index: 2; max-width: 720px; margin: 1rem auto 0; padding: 0 1rem; }
.site-message {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem 1rem; margin-bottom: .5rem; border-radius: 8px;
  font-size: var(--cb-fs-16); line-height: 1.4;
  background: var(--cb-brand-soft); color: var(--cb-brand); border: 1px solid var(--cb-line-strong);
}
.site-message span { flex: 1; color: inherit; font-size: inherit; }
.site-message a { color: inherit; font-weight: 600; text-decoration: underline; }
.site-message.success { background: var(--cb-brand-soft); color: var(--cb-brand); border-color: var(--cb-brand-soft); }
.site-message.error { background: var(--cb-critical-soft); color: var(--cb-critical); border-color: var(--cb-critical-soft); }
.site-message.warning { background: var(--cb-brand-soft); color: var(--cb-brand); border-color: var(--cb-brand-soft); }
.site-message-close {
  border: none; background: none; color: inherit; font-size: var(--cb-fs-20); line-height: 1;
  padding: 0 .25rem; cursor: pointer; opacity: .7;
}
.site-message-close:hover { opacity: 1; }

/* October refresh: notes slide up as small cards at the bottom of the screen
   (above the phone tabs), instead of a coloured bar across the page. */
.site-messages {
  position: fixed; z-index: 1080; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: min(560px, calc(100% - 2rem)); max-width: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .5rem; pointer-events: none;
}
.site-message, .site-message.success, .site-message.error, .site-message.warning, .site-message.info {
  pointer-events: auto; align-items: center; margin: 0; padding: .85rem 1rem; border: 0; border-radius: 14px;
  background: var(--cb-action); color: var(--cb-card); box-shadow: 0 12px 32px color-mix(in srgb, var(--cb-action) 22.0%, transparent);
  animation: cb-toast-in .25s ease-out;
}
.site-message::before {
  content: "i"; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 50%; background: color-mix(in srgb, var(--cb-card) 16.0%, transparent); font-weight: 700; font-size: var(--cb-fs-14);
}
.site-message.success::before { content: "\2713"; background: var(--cb-brand); }
.site-message.warning::before { content: "!"; background: var(--cb-brand); }
.site-message.error::before { content: "!"; background: var(--cb-critical); }
.site-message a { color: var(--cb-card); }
.site-message.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes cb-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 768px) { .site-messages { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .site-message { animation: none; } }

/* ---- components/alerts.css ---- */
/* The To do list (alerts app), its Settings switches and the header count. */
.cb-todo-page { padding-top: 1.5rem; max-width: 880px; }
.cb-todo-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.cb-todo-head .gray-button { margin-left: auto; }
.cb-todo-title { font-size: var(--cb-fs-32); font-weight: 700; color: var(--cb-action); margin: 0; }
.cb-todo-back { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--cb-pill); color: var(--cb-action); text-decoration: none; font-size: var(--cb-fs-20); }

/* Add a job: one line, an optional day, Add */
.cb-todo-add { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.cb-todo-add .cb-todo-line { flex: 1; min-width: 0; }
.cb-todo-add input { border-radius: 999px; border: 1px solid var(--cb-pill); background: var(--cb-card); padding: .6rem 1rem; color: var(--cb-action); }
.cb-todo-add input:not(.cb-todo-line) { flex: 0 0 10rem; width: 10rem; }

/* The list: one white card per group, a row per job */
.cb-todo-group { margin-bottom: 1.25rem; }
.cb-todo-group-title { font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); margin: 0 0 .5rem; }
.cb-todo-group-title.is-overdue { color: var(--cb-critical); }
.cb-todo-list { list-style: none; margin: 0; padding: 0 1.1rem; background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: 18px; }
.cb-todo { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--cb-pill); }
.cb-todo:last-child { border-bottom: 0; }
.cb-todo form { margin: 0; flex-shrink: 0; }
.cb-todo-tick {
  display: block; width: 1.6rem; height: 1.6rem; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid var(--cb-line-strong); background: var(--cb-card);
}
.cb-todo.is-overdue .cb-todo-tick { border-color: var(--cb-critical); }
.cb-todo-tick:hover, .cb-todo-tick:focus-visible { background: var(--cb-action); border-color: var(--cb-action); }
.cb-todo-text { flex: 1; min-width: 0; text-decoration: none; color: var(--cb-action); }
.cb-todo-text strong { display: block; font-size: var(--cb-fs-16); font-weight: 600; color: var(--cb-action); }
.cb-todo-text small { display: block; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin-top: .1rem; }
a.cb-todo-text:hover strong { text-decoration: underline; }
.cb-todo.is-overdue .cb-todo-text strong { color: var(--cb-critical); }
.cb-todo-day { flex-shrink: 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-todo.is-overdue .cb-todo-day { color: var(--cb-critical); }
.cb-todo-empty { color: var(--cb-ink-soft); margin: 1rem 0; }

/* Settings: a switch per job */
.cb-todo-settings ul { list-style: none; margin: 0; padding: 0; }
.cb-todo-settings li { padding: .8rem 0; border-bottom: 1px solid var(--cb-pill); }
.cb-todo-settings li:last-child { border-bottom: 0; }
.cb-switch-row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin: 0; cursor: pointer; }
.cb-switch-text strong { display: block; color: var(--cb-action); }
.cb-switch-text span { display: block; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin-top: .1rem; }
/* input.cb-switch only: forms also have <label class="cb-switch"> with a
   slider inside, which these rules gave a second knob */
input.cb-switch {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; position: relative; cursor: pointer;
  width: 2.9rem; height: 1.7rem; border-radius: 999px; background: var(--cb-line-strong); transition: background .15s;
}
input.cb-switch::after {
  content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--cb-card); box-shadow: 0 1px 2px color-mix(in srgb, var(--cb-action) 20.0%, transparent); transition: transform .15s;
}
input.cb-switch:checked { background: var(--cb-brand); }
input.cb-switch:checked::after { transform: translateX(1.2rem); }
input.cb-switch:focus-visible { outline: 3px solid var(--cb-line-strong); outline-offset: 2px; }

/* Bell in the header, with the number of open alerts */
.cb-bell { position: relative; display: inline-flex; align-items: center; color: var(--cb-ink-soft); margin-right: 1em; text-decoration: none; }
.cb-bell .cb-svg { width: 1.35rem; height: 1.35rem; }
.cb-bell:hover { color: var(--cb-brand); }
.cb-bell-count {
  position: absolute; top: -.45rem; right: -.6rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem;
  border-radius: 999px; background: var(--cb-critical); color: var(--cb-card); font-size: var(--cb-fs-12); font-weight: 700;
  line-height: 1.15rem; text-align: center;
}
.navbar .cb-bell { margin: 0 1.1rem 0 auto; }

/* Home page box */

@media (max-width: 768px) {
  .cb-todo-add { flex-wrap: wrap; }
  .cb-todo-add .cb-todo-line { flex-basis: 100%; }
  .cb-todo-add input:not(.cb-todo-line) { flex: 1 1 0; min-width: 0; width: auto; }
}


/* ---- components/reports-simple.css ---- */
/* Sales, health and equipment reports: tiles, simple bars and tables. */
.cb-rpt { padding-top: 1.5rem; }
.cb-rpt-title { font-size: var(--cb-fs-32); font-weight: 700; color: var(--cb-action); margin: 0 0 .5rem; }
.cb-rpt-intro { max-width: 760px; color: var(--cb-ink-soft); margin: 0 0 1rem; }
.cb-rpt-showing { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin: 0 0 1rem; }

.cb-rpt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.cb-rpt-tile { padding: 1rem 1.1rem; border-radius: .75rem; background: var(--cb-card); border: 1px solid var(--cb-pill); display: flex; flex-direction: column; gap: .2rem; }
.cb-rpt-tile > span { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); font-weight: 600; }
.cb-rpt-tile strong { font-size: var(--cb-fs-24); color: var(--cb-action); }
.cb-rpt-tile.is-warning { background: var(--cb-brand-soft); border-color: var(--cb-brand-soft); }
.cb-rpt-tile small { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
a.cb-rpt-tile-link { text-decoration: none; color: inherit; }
a.cb-rpt-tile-link:hover { border-color: var(--cb-line-strong); }
.cb-rpt-change { font-size: var(--cb-fs-14); font-weight: 600; }
.cb-rpt-change.is-good { color: var(--cb-good); }
.cb-rpt-change.is-bad { color: var(--cb-critical); }
.cb-rpt-change.is-flat { color: var(--cb-ink-soft); }
.cb-rpt-arrow { display: inline-flex; align-items: center; justify-content: center; width: 1.35em; height: 1.35em; margin-left: .45rem; border-radius: 50%; vertical-align: middle; }
.cb-rpt-arrow svg { width: .75em; height: .75em; }
.cb-rpt-arrow.is-up { color: var(--cb-good); background: color-mix(in srgb, var(--cb-good) 12%, transparent); }
.cb-rpt-arrow.is-down { color: var(--cb-critical); background: var(--cb-critical-soft); }
.cb-rpt-change .cb-rpt-arrow { margin: 0 .1rem 0 0; color: inherit; background: none; }

.cb-rpt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.cb-rpt-card { padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: .75rem; background: var(--cb-card); border: 1px solid var(--cb-pill); overflow-x: auto; }
.cb-rpt-card.is-warning { background: var(--cb-brand-soft); border-color: var(--cb-brand-soft); }
.cb-rpt-card h2 { font-size: var(--cb-fs-16); margin: 0 0 .6rem; color: var(--cb-action); }
.cb-rpt-note { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin: 0 0 .6rem; }
.cb-rpt-empty { padding: 1rem 1.1rem; border-radius: .75rem; background: var(--cb-page); border: 1px solid var(--cb-pill); color: var(--cb-ink-soft); margin-bottom: 1rem; }

.cb-rpt .cb-rpt-table { display: table; width: 100%; table-layout: auto; border-collapse: collapse; font-size: var(--cb-fs-16); }
.cb-rpt .cb-rpt-table th, .cb-rpt .cb-rpt-table td { white-space: normal; height: auto; overflow: visible; }
.cb-rpt .cb-rpt-table td:first-child, .cb-rpt .cb-rpt-table th:first-child { text-align: left; }
.cb-rpt-table th { text-align: left; color: var(--cb-ink-soft); font-weight: 600; font-size: var(--cb-fs-14); padding: .4rem .5rem; border-bottom: 1px solid var(--cb-pill); }
.cb-rpt-table td { padding: .5rem; border-bottom: 1px solid var(--cb-pill); color: var(--cb-action); }
.cb-rpt-table tr.is-bad td { color: var(--cb-critical); font-weight: 600; }
.cb-rpt-table tr.is-total td { font-weight: 700; border-top: 1px solid var(--cb-line-strong); }
.cb-rpt-table a { color: var(--cb-brand); font-weight: 600; }
.cb-rpt-owed { color: var(--cb-critical); font-weight: 600; }

.cb-rpt-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.cb-rpt-bars li { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .6rem; align-items: center; font-size: var(--cb-fs-14); }
.cb-rpt-bar-label { color: var(--cb-ink-soft); }
.cb-rpt-bar { height: .9rem; border-radius: 999px; background: var(--cb-page); overflow: hidden; }
.cb-rpt-bar > span { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: var(--cb-brand); }
.cb-rpt-bar-value { font-weight: 600; color: var(--cb-action); white-space: nowrap; }

@media (max-width: 768px) {
  .cb-rpt-tiles { grid-template-columns: 1fr 1fr; }
  .cb-rpt-tile strong { font-size: var(--cb-fs-20); }
  .cb-rpt-tiles > .cb-rpt-tile-link:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cb-rpt-grid { grid-template-columns: 1fr; }
  .cb-rpt-bars li { grid-template-columns: 5rem 1fr auto; }
  .cb-rpt .cb-rpt-table th, .cb-rpt .cb-rpt-table td { padding: .5rem .4rem; font-size: var(--cb-fs-14); }
}
.cb-rpt-intro a, .cb-rpt-empty a { color: var(--cb-brand); font-weight: 600; }

/* Report top: title and dates on the left, the date range button on the right */
.cb-rpt-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.cb-rpt-head .cb-rpt-title { margin: 0; }
.cb-rpt-head .cb-rpt-showing { margin: .2rem 0 0; }
.cb-rpt-range { position: relative; }
.cb-rpt-range summary {
  display: inline-flex; align-items: center; gap: .45rem; list-style: none; cursor: pointer;
  min-height: 40px; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--cb-pill);
  font-weight: 600; color: var(--cb-action); white-space: nowrap;
}
.cb-rpt-range summary::-webkit-details-marker { display: none; }
.cb-rpt-range summary:hover, .cb-rpt-range[open] summary { background: var(--cb-line-strong); }
.cb-rpt-range-caret { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
/* A short menu: one plain line per period, the picked one bold with a tick */
.cb-rpt-range-panel {
  position: absolute; right: 0; top: calc(100% + .4rem); z-index: 1050; width: 248px; max-width: calc(100vw - 2rem);
  padding: .4rem; border: 0; border-radius: 16px; background: var(--cb-card); box-shadow: 0 12px 32px color-mix(in srgb, var(--cb-action) 14.0%, transparent);
}
.cb-rpt-range-choices { display: flex; flex-direction: column; }
.cb-rpt-range-choices a {
  display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 .75rem;
  border-radius: 10px; color: var(--cb-action); text-decoration: none; font-weight: 500;
}
.cb-rpt-range-choices a:hover { background: var(--cb-page); color: var(--cb-action); text-decoration: none; }
.cb-rpt-range-choices a.is-active { font-weight: 700; }
.cb-rpt-range-choices a.is-active::after { content: "\2713"; color: var(--cb-brand); font-weight: 700; }
.cb-rpt-range-custom { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-top: .35rem; padding: .6rem .35rem .25rem; border-top: 1px solid var(--cb-pill); }
.cb-rpt-range-custom label { display: flex; flex-direction: column; gap: .2rem; margin: 0; font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-ink-soft); }
.cb-rpt-range-custom input { width: 100%; min-width: 0; min-height: 36px; padding: 0 .5rem; border: 0; border-radius: 10px; background: var(--cb-page); font-size: var(--cb-fs-14); color: var(--cb-action); }
.cb-rpt-range-custom button { grid-column: 1 / -1; min-height: 40px !important; }
.cb-rpt-about { margin-top: 1.5rem; }
@media (max-width: 768px) {
  /* On a phone the panel spans the page width under the title */
  .cb-rpt-head { position: relative; }
  .cb-rpt-range { position: static; }
  .cb-rpt-range-panel { left: 0; right: 0; width: auto; max-width: none; top: 100%; }
}

/* Batch report: name and status, the period, then the five main numbers */
.cb-batch-head, .cb-batch-kpis, .cb-batch-section { margin-left: 10px; margin-right: calc(4rem + 10px); }
.cb-batch-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; padding-top: 1.25rem; margin-bottom: 1rem; }
.cb-batch-kicker { font-size: var(--cb-fs-14); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cb-ink-soft); }
.cb-batch-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .15rem 0 .25rem; font-size: var(--cb-fs-32); font-weight: 700; color: var(--cb-action); }
.cb-batch-status { padding: .2rem .65rem; border-radius: 999px; font-size: var(--cb-fs-14); font-weight: 700; background: var(--cb-page); color: var(--cb-ink-soft); border: 1px solid var(--cb-pill); }
.cb-batch-status.is-active { background: var(--cb-brand-soft); color: var(--cb-brand); border-color: var(--cb-line-strong); }
.cb-batch-status.is-on-hold { background: var(--cb-brand-soft); color: var(--cb-brand); border-color: transparent; }
.cb-batch-meta { margin: 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-batch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cb-batch-actions .chart-dropdown { position: relative; }
.cb-batch-actions .chart-dropdown-menu { right: 0; left: auto; }
.cb-batch-actions .cb-view-switch { margin: 0; }
.cb-batch-print { display: inline-flex; align-items: center; gap: .4rem; }
.cb-batch-print .cb-svg { width: 1rem; height: 1rem; }
.cb-batch-kpis { margin-bottom: .5rem; }
.cb-rpt-tile.is-loss strong { color: var(--cb-critical); }
.cb-batch-section { margin-top: 1.25rem; margin-bottom: -.25rem; font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); }

/* Flock: the chart and the flock card side by side */

/* The Flock card next to the chart: the grow-out and the birds alive as two
   labelled bars, then four small facts in a 2 x 2 grid */
.cb-flock-card .report-tile__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cb-flock-kind { padding: 2px 10px; border-radius: 999px; background: var(--cb-pill); font-size: var(--cb-fs-12); font-weight: 600; color: var(--cb-ink-soft); }
.cb-flock-block { padding: 14px 0; border-bottom: 1px solid var(--cb-pill); }
.cb-flock-block:first-of-type { padding-top: 4px; }
.cb-flock-big { margin: 0 0 8px; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-flock-big strong { font-size: var(--cb-fs-24); font-weight: 700; letter-spacing: -.02em; color: var(--cb-action); margin-right: 2px; }
.cb-flock-bar { height: 8px; border-radius: 4px; background: var(--cb-pill); overflow: hidden; }
.cb-flock-bar span { display: block; height: 100%; border-radius: 4px; background: var(--cb-broilers); }
.cb-flock-bar.is-alive { background: color-mix(in srgb, var(--cb-critical) 22%, var(--cb-pill)); }
.cb-flock-small { margin: 6px 0 0; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-flock-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.cb-flock-facts > div { padding: 10px 12px; border-radius: 12px; background: var(--cb-page); }
.cb-flock-facts dt { font-size: var(--cb-fs-12); font-weight: 600; color: var(--cb-ink-soft); }
.cb-flock-facts dd { margin: 2px 0 0; font-size: var(--cb-fs-16); font-weight: 600; color: var(--cb-action); }
@media (max-width: 768px) {
  .cb-batch-head, .cb-batch-kpis, .cb-batch-section { margin-left: .75rem; margin-right: .75rem; }
}

/* One batch's report page (broilers and layers): the same white cards as the
   other reports. Cards sit in rows of 2 or 3; each has a title line (with a
   link or two small pill switches on the right), one big number, then a calm
   list or table. Numbers line up on the right. */
.cb-batch-page { margin: 0 calc(4rem + 10px) 4rem 10px; }
.cb-batch-page.cb-rpt { padding-top: 0; }
.cb-batch-page [hidden] { display: none !important; }
.cb-batch-page .cb-batch-head, .cb-batch-page .cb-batch-kpis, .cb-batch-page .cb-batch-section { margin-left: 0; margin-right: 0; }
.cb-batch-page .cb-batch-section { margin: 28px 0 12px; font-size: var(--cb-fs-20); letter-spacing: -.01em; }
.cb-batch-page .cb-show-more { margin: 24px 0 0; }
.cb-br-row { display: grid; gap: 16px; margin-bottom: 16px; }
.cb-br-row.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* A row of up to three cards: the cards shown share the whole row, so two
   cards (or one) never leave an empty gap on the right (copy 170) */
.cb-br-row.is-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.cb-br-row.is-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.cb-br-row.is-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.cb-br-row > .cb-rpt-card { margin: 0; min-width: 0; }
/* Health cards: the cards shown share the row, so with "Show more" off the
   one card is wide enough for its Cost column (five-farmer audit P2-17) */
.cb-br-row.is-3.is-fit { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.cb-br-card { display: flex; flex-direction: column; }
.cb-br-stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.cb-br-stack > .cb-rpt-card { margin: 0; }
.cb-br-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.cb-br-head h2, .cb-br-head h3 { margin: 0 !important; font-size: var(--cb-fs-18); font-weight: 700; color: var(--cb-action); }
.cb-br-link { font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-ink-soft); text-decoration: none; white-space: nowrap; background: none; border: 0; padding: 0; cursor: pointer; }
.cb-br-link:hover { color: var(--cb-action); text-decoration: underline; text-underline-offset: 3px; }
.cb-br-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 14px; }
.cb-br-big strong { font-size: var(--cb-fs-24); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--cb-action); font-variant-numeric: tabular-nums; }
.cb-br-big.is-loss strong { color: var(--cb-critical); }
.cb-br-big small { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-br-chg { font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb-br-chg.gc-green, .cb-br-chg.is-good { color: var(--cb-good); }
.cb-br-chg.gc-pale-red, .cb-br-chg.is-bad { color: var(--cb-critical); }
/* Good news green, bad news red, each in a small soft pill so the eye finds it (Anton, tf 11). */
.cb-br-chg.gc-green, .cb-br-chg.is-good, .cb-br-chg.gc-pale-red, .cb-br-chg.is-bad { display: inline-block; padding: 1px 8px; border-radius: 999px; line-height: 1.5; }
.cb-br-chg.gc-green, .cb-br-chg.is-good { background: color-mix(in srgb, var(--cb-good) 11%, transparent); }
.cb-br-chg.gc-pale-red, .cb-br-chg.is-bad { background: color-mix(in srgb, var(--cb-critical) 10%, transparent); }
/* label on the left, number on the right, optional change after it */
.cb-br-list { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
.cb-br-list.is-two { grid-template-columns: minmax(0, 1fr) auto; }
.cb-br-list > div { display: contents; }
.cb-br-list dt, .cb-br-list dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--cb-page); font-size: var(--cb-fs-16); }
.cb-br-list > div:first-child > * { border-top: 0; }
.cb-br-list dt { color: var(--cb-ink-soft); font-weight: 500; min-width: 0; }
.cb-br-list dd { padding-left: 16px; color: var(--cb-action); font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb-br-list dd.cb-br-chg { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-br-list dd.cb-br-chg.gc-green { color: var(--cb-good); }
.cb-br-list dd.cb-br-chg.gc-pale-red { color: var(--cb-critical); }
.cb-br-list .is-sub dt { padding-left: 14px; }
.cb-br-list .is-sub dt, .cb-br-list .is-sub dd { font-size: var(--cb-fs-14); }
.cb-br-list .is-total dt, .cb-br-list .is-total dd { color: var(--cb-action); font-weight: 700; }
.cb-br-list a { color: var(--cb-action); text-decoration: underline; text-underline-offset: 3px; }
/* tables: words on the left never wrap, numbers on the right */
.cb-rpt .cb-br-table { display: table; width: 100%; table-layout: auto; border-collapse: collapse; background: none; }
.cb-rpt .cb-br-table th, .cb-rpt .cb-br-table td { height: auto; overflow: visible; white-space: normal; text-align: left; border-left: 0 !important; border-right: 0 !important; }
.cb-rpt .cb-br-table th { padding: 8px 12px; font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-ink-soft); white-space: nowrap; }
.cb-rpt .cb-br-table td { padding: 11px 12px; font-size: var(--cb-fs-16); border-top: 0; border-bottom: 1px solid var(--cb-page); color: var(--cb-action); vertical-align: middle; }
.cb-rpt .cb-br-table tbody tr:last-child td { border-bottom: 0; }
.cb-rpt .cb-br-table tbody tr:hover { background: none; }
.cb-rpt .cb-br-table td:first-child { white-space: nowrap; font-weight: 500; }
.cb-rpt .cb-br-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb-rpt .cb-br-table td.n { font-weight: 600; }
.cb-br-table td a { color: var(--cb-action); text-decoration: underline; text-underline-offset: 3px; }
.cb-br-table .cb-br-sub { display: block; font-size: var(--cb-fs-12); font-weight: 400; color: var(--cb-ink-soft); }
.cb-rpt .cb-br-table td.cb-br-none { color: var(--cb-ink-soft); font-weight: 400; text-align: center; padding: 18px 12px; }
.cb-br-scroll { overflow-x: auto; }
.cb-br-narrow { display: none; }
.cb-rpt .cb-br-row.is-3 .cb-br-table th, .cb-rpt .cb-br-row.is-3 .cb-br-table td { padding-left: 8px; padding-right: 8px; }
.cb-br-note { margin: 12px 0 0; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-br-note a { color: var(--cb-action); font-weight: 600; }
.cb-br-subhead { margin: 18px 0 8px; font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-ink-soft); }
.cb-br-form .form-control, .cb-br-form .form-select { width: 100%; max-width: none; }
.cb-br-form .cb-input-group { margin-bottom: 12px; }
.cb-form.cb-br-form > .cb-input-group { width: 100% !important; }
/* charts: a fixed height, and a quiet note when there is nothing to draw */
.cb-br-chart { position: relative; height: 260px; }
.cb-br-chart.is-fill { flex: 1 1 auto; height: auto; min-height: 260px; }
.cb-br-chart.is-fill canvas { position: absolute; inset: 0; }
.cb-br-chart canvas { width: 100% !important; height: 100% !important; }
.cb-br-empty { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 120px; padding: 16px; border-radius: var(--cb-radius-sm); background: var(--cb-page); color: var(--cb-ink-soft); font-size: var(--cb-fs-14); text-align: center; }
.cb-br-card .report-legend { margin-top: 10px; }
/* two small pill switches: grey when off, black when on, with the line's colour dot */
.cb-br-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cb-br-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; margin: 0; padding: 0 14px; border-radius: 999px; background: var(--cb-pill); color: var(--cb-action); font-size: var(--cb-fs-14); font-weight: 600; cursor: pointer; user-select: none; }
.cb-br-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cb-br-pill:has(input:checked) { background: var(--cb-action); color: var(--cb-card); }
.cb-br-pill:has(input:focus-visible) { outline: 2px solid var(--cb-action); outline-offset: 2px; }
.cb-br-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cb-line-strong); flex: none; }
.cb-br-dot.is-expected { background: var(--cb-warm); }
.cb-br-dot.is-recorded { background: var(--cb-broilers); }
body[data-place=layers] .cb-br-dot.is-recorded { background: var(--cb-brand); }
/* a few small facts in a 2 x 2 grid (flock cards) */
.cb-br-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.cb-br-facts > div { padding: 10px 12px; border-radius: 12px; background: var(--cb-page); min-width: 0; }
.cb-br-facts dt { font-size: var(--cb-fs-12); font-weight: 600; color: var(--cb-ink-soft); }
.cb-br-facts dd { margin: 2px 0 0; font-size: var(--cb-fs-16); font-weight: 600; color: var(--cb-action); }
.cb-batch-page .cb-flock-bar span { background: var(--cb-brand); }
@media (max-width: 1100px) {
  .cb-br-row.is-2-1, .cb-br-row.is-1-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .cb-batch-page { margin: 0 .75rem 3rem; }
  .cb-br-row.is-2, .cb-br-row.is-3 { grid-template-columns: minmax(0, 1fr); }
  .cb-br-chart, .cb-br-chart.is-fill { height: 220px; min-height: 0; flex: none; }
  .cb-rpt .cb-br-table th, .cb-rpt .cb-br-table td { padding-left: 6px; padding-right: 6px; font-size: var(--cb-fs-14); }
  .cb-rpt .cb-br-table td:first-child { white-space: normal; min-width: 6.5rem; }
  .cb-br-wide { display: none; }
  .cb-br-narrow { display: inline; }
  .cb-rpt .cb-br-table th:first-child, .cb-rpt .cb-br-table td:first-child { padding-left: 0; }
}

/* Make your own report */
.cr-pick { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.cr-pick label { display: grid; gap: .3rem; font-weight: 600; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); flex: 1 1 14rem; }
.cr-pick select { font: inherit; font-weight: 400; color: var(--cb-action); border: 1px solid var(--cb-line-strong); border-radius: 10px;
  padding: .6rem .75rem; min-height: 44px; background: var(--cb-card); }
.cr-total { display: flex; flex-direction: column; gap: .15rem; margin-bottom: 1rem; }
.cr-total span { color: var(--cb-ink-soft); font-weight: 600; font-size: var(--cb-fs-14); }
.cr-total strong { font-size: var(--cb-fs-32); color: var(--cb-action); }
.cr-total small { color: var(--cb-ink-soft); }
.cr-bar-cell { width: 40%; }
.cr-bar { display: block; height: 10px; border-radius: 999px; background: var(--cb-pill); overflow: hidden; }
.cr-bar > span { display: block; height: 100%; background: var(--cb-brand); border-radius: 999px; }
@media (max-width: 600px) {
  .cr-bar-cell, .cr-bar-head { display: none; }
}
.cb-labor-head { padding: 0; align-items: center; }

/* Analytics, most important first and biggest (Anton, 25 Oct 2026): the first tile is the answer,
   twice as wide with a bigger number; the rest follow, then the cards with the details. */
.cb-rpt-tiles:has(> .is-hero) { grid-template-columns: minmax(0, 2fr); grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
@media (max-width: 1100px) { .cb-rpt-tiles:has(> .is-hero) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; } .cb-rpt-tiles .cb-rpt-tile.is-hero { grid-column: 1 / -1; } }
.cb-rpt-tile.is-hero strong { font-size: var(--cb-fs-32); line-height: var(--cb-lh-tight); }
.cb-rpt-tile .cb-br-chg { align-self: flex-start; margin-top: .25rem; }
.cb-labor-actions { display: flex; align-items: center; gap: .5rem; }
/* Health: a small bar beside each flock's share of deaths, full at 10 %; red past the 5 % line. */
.cb-rpt-share { display: inline-flex; align-items: center; gap: 8px; }
.cb-rpt-share-bar { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: var(--cb-pill); overflow: hidden; }
.cb-rpt-share-bar > span { display: block; height: 100%; max-width: 100%; background: var(--cb-brand); border-radius: 3px; }
tr.is-bad .cb-rpt-share-bar > span { background: var(--cb-critical); }

/* Eggs on hand: more on orders than laid (to-fix tf 10). */
.cb-br-note.is-bad { color: var(--cb-critical); font-weight: 600; }
@media (max-width: 560px) {
  /* Health cards on a phone: tighter cells so the Cost column fits */
  .cb-rpt .cb-br-row.is-fit .cb-br-table th, .cb-rpt .cb-br-row.is-fit .cb-br-table td { padding-left: 5px; padding-right: 5px; font-size: var(--cb-fs-14); }
}
/* Write off eggs on the layer flock page, under the six weeks (copy 170) */
.cb-wo-card { max-width: 460px; margin: 24px 0 0; }
/* The eggs chart's target line in the key: a short dashed line, not a dot */
.report-legend__swatch.is-target { width: 1rem; height: 0; border-radius: 0; background: none; }
/* Whole-batch deaths on the broiler report: only "well above normal" in colour */
.cb-tone-high { color: var(--cb-critical); }

/* ---- components/budgets.css ---- */
/* Budget and cash-flow pages (they also use the report styles in reports-simple.css). */

.cb-budget-quick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.cb-budget-quick button, .cb-budget-save {
  padding: .5rem 1rem; border-radius: .5rem; border: 1px solid var(--cb-brand); background: var(--cb-brand); color: var(--cb-card); font-weight: 600;
}
.cb-budget-quick button.is-plain { background: var(--cb-card); color: var(--cb-brand); }
.cb-budget-save { margin-top: .9rem; }
.cb-budget .cb-budget-table input { width: 100%; max-width: 9rem; padding: .4rem .5rem; border: 1px solid var(--cb-line-strong); border-radius: .4rem; text-align: right; }
.cb-budget .cb-budget-table tr.cb-budget-group td { background: var(--cb-page); color: var(--cb-ink-soft); font-weight: 700; font-size: var(--cb-fs-14); text-transform: uppercase; letter-spacing: .03em; }
.cb-budget .cb-budget-table tr.is-bad td { color: var(--cb-action); font-weight: 400; }
.cb-budget .cb-budget-table tr.is-bad small { color: var(--cb-critical); font-weight: 600; }
.cb-budget-bar { display: block; margin-bottom: .2rem; }
.cb-budget tr.is-near .cb-budget-bar > span { background: var(--cb-brand); }
.cb-budget tr.is-bad .cb-budget-bar > span { background: var(--cb-critical); }
.cb-budget tr small { color: var(--cb-ink-soft); }

/* Budget top: title on the left; the month and Cash flow on the right */
.cb-budget-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.cb-budget-head .cb-rpt-title { margin: 0; }
.cb-budget-head-right { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.cb-budget-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--cb-line-strong); border-radius: .6rem; background: var(--cb-card); overflow: hidden; }
.cb-budget-stepper a { display: flex; align-items: center; justify-content: center; width: 2.4rem; color: var(--cb-action); font-size: var(--cb-fs-20); text-decoration: none; }
.cb-budget-stepper a:hover { background: var(--cb-page); }
.cb-budget-head-right .gray-button { align-self: stretch; display: inline-flex; align-items: center; }
.cb-budget-stepper strong { display: flex; align-items: center; min-width: 9.5rem; justify-content: center; padding: .45rem .5rem; border-left: 1px solid var(--cb-pill); border-right: 1px solid var(--cb-pill); color: var(--cb-action); font-weight: 600; }
.cb-budget-start { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: .75rem; background: var(--cb-brand-soft); border: 1px solid var(--cb-line-strong); }
.cb-budget-start strong { display: block; color: var(--cb-action); }
.cb-budget-start span { color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.cb-budget-start .cb-budget-quick { margin-top: 0; }
@media (max-width: 768px) {
  .cb-budget-head-right { width: 100%; flex-wrap: nowrap; }
  .cb-budget-stepper { flex: 1; }
  .cb-budget-stepper strong { flex: 1; min-width: 0; }
  .cb-budget-head-right .gray-button { min-height: 0; white-space: nowrap; }
  .cb-budget-quick, .cb-budget-quick button { width: 100%; }
}

/* Cash flow, October refresh: start with today's money, then three numbers, then the months */
.cf-page .cb-rpt-card { border-radius: 18px; }
.cf-start { padding: 1.5rem; text-align: left; }
.cf-step { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: var(--cb-warm-soft); color: var(--cb-action); font-size: var(--cb-fs-14); font-weight: 700; }
.cf-start h2 { margin: .6rem 0 .25rem; font-size: var(--cb-fs-20); }
.cf-start p { margin: 0 0 1rem; color: var(--cb-ink-soft); }
.cf-amount { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cf-amount span { font-weight: 700; color: var(--cb-ink-soft); }
.cf-amount input { width: 14rem; max-width: 100%; min-height: 46px; padding: 0 .9rem; border: 1px solid var(--cb-line-strong); border-radius: 12px; font-size: var(--cb-fs-18); }
.cf-amount button { min-height: 46px; padding: 0 1.4rem; border: 0; border-radius: 999px; background: var(--cb-action); color: var(--cb-card); font-weight: 700; }
.cf-update label { display: block; margin-bottom: .5rem; font-weight: 600; }
.cf-update small { display: block; margin-top: .5rem; color: var(--cb-ink-soft); }
.cf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.cf-stat { position: relative; padding: 1rem 1.2rem; border: 1px solid var(--cb-pill); border-radius: 18px; background: var(--cb-card); }
.cf-stat span { display: block; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cf-stat strong { display: block; margin-top: .2rem; font-size: var(--cb-fs-24); color: var(--cb-action); }
.cf-stat small { color: var(--cb-ink-soft); }
.cf-stat small.cf-old { color: var(--cb-critical); font-weight: 600; }
.cf-stat.is-bad strong { color: var(--cb-critical); }
.cf-change { position: absolute; top: .9rem; right: 1rem; border: 0; background: none; color: var(--cb-brand); font-weight: 600; font-size: var(--cb-fs-14); cursor: pointer; }
.cf-alert { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--cb-brand-soft); border: 1px solid var(--cb-brand-soft); }
.cf-alert i { margin-top: .2rem; color: var(--cb-brand); font-size: var(--cb-fs-18); }
.cf-alert h2 { margin: 0 0 .2rem; font-size: var(--cb-fs-16); color: var(--cb-action); }
.cf-alert p { margin: 0; color: var(--cb-action); }
.cf-alert a { color: var(--cb-action); font-weight: 600; }
.cf-alert.is-good { background: var(--cb-brand-soft); border-color: var(--cb-line-strong); }
.cf-alert.is-good i { color: var(--cb-brand); }
.cf-months h2 { margin-bottom: .75rem; }
.cf-head, .cf-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: .75rem; align-items: center; }
.cf-head { padding: 0 .9rem .4rem; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); font-weight: 600; }
.cf-head span:not(:first-child), .cf-in, .cf-out { text-align: right; }
.cf-row { padding: .8rem .9rem; border-radius: 12px; }
.cf-row:nth-child(odd) { background: var(--cb-page); }
.cf-month small { display: block; color: var(--cb-ink-soft); font-size: var(--cb-fs-12); }
.cf-in { color: var(--cb-brand); font-weight: 600; }
.cf-out { color: var(--cb-ink-soft); }
.cf-left { display: flex; align-items: center; gap: .6rem; justify-content: flex-end; }
.cf-left strong { min-width: 6.5rem; text-align: right; }
.cf-bar { flex: 0 0 70px; height: 8px; border-radius: 999px; background: var(--cb-pill); overflow: hidden; }
.cf-bar span { display: block; height: 100%; border-radius: 999px; background: var(--cb-brand); }
.cf-row.is-bad .cf-left strong { color: var(--cb-critical); }
.cf-row.is-bad .cf-bar span { background: var(--cb-critical); }
.cf-label { display: none; }
@media (max-width: 768px) {
    .cf-stats { grid-template-columns: 1fr 1fr; }
    .cf-stats .cf-stat:first-child { grid-column: 1 / -1; }
    .cf-head { display: none; }
    .cf-row { grid-template-columns: 1fr 1fr; row-gap: .35rem; }
    .cf-month { grid-column: 1 / -1; }
    .cf-in, .cf-out { text-align: left; }
    .cf-left { grid-column: 1 / -1; justify-content: space-between; }
    .cf-label { display: block; font-size: var(--cb-fs-12); color: var(--cb-ink-soft); font-weight: 400; }
    .cf-left .cf-label { display: none; }
}
.cb-budget .cb-budget-table small.cb-budget-sub, .cb-budget .cb-budget-table tr.is-bad small.cb-budget-sub { display: block; color: var(--cb-ink-soft); font-weight: 400; font-size: var(--cb-fs-14); line-height: 1.3; margin-top: .15rem; }

/* ---- components/help.css ---- */
/* Help and guides: the Documentation list, guide pages and the round "?" link. */
.cb-help-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; margin-left: .5rem; vertical-align: middle;
  border-radius: 999px; border: 2px solid var(--cb-brand); color: var(--cb-brand); background: var(--cb-card);
  font-size: var(--cb-fs-16); font-weight: 700; line-height: 1; text-decoration: none;
}
.cb-help-link:hover, .cb-help-link:focus { background: var(--cb-brand); color: var(--cb-card); }
.cb-help-link--inline { width: 1.3rem; height: 1.3rem; margin: 0 .1rem; font-size: var(--cb-fs-14); }

.cb-docs { max-width: 1040px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.cb-docs-head { max-width: 680px; margin: 0 0 2rem; }
.cb-docs h1 { font-size: var(--cb-fs-32); line-height: var(--cb-lh-tight); font-weight: 800; margin: 0 0 .6rem; color: var(--cb-action); }
.cb-docs-intro { color: var(--cb-ink-soft); font-size: var(--cb-fs-16); line-height: var(--cb-lh); margin: 0 0 1.25rem; }
.cb-docs-intro a { color: var(--cb-brand); font-weight: 600; }
.cb-docs-search { display: block; margin: 0; }
.cb-docs-search input {
  width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--cb-line-strong);
  background: var(--cb-card); font: inherit; font-size: var(--cb-fs-16); color: var(--cb-action);
}
.cb-docs-search input:focus { outline: none; border-color: var(--cb-brand); box-shadow: 0 0 0 4px var(--cb-brand-soft); }
.cb-docs-group { margin-bottom: 2rem; }
.cb-docs-group h2 { display: flex; align-items: center; gap: .5rem; font-size: var(--cb-fs-20); font-weight: 700; color: var(--cb-action); margin: 0 0 .8rem; }
.cb-docs-count { padding: .05rem .55rem; border-radius: 999px; background: var(--cb-pill); color: var(--cb-ink-soft); font-size: var(--cb-fs-14); font-weight: 600; }
.cb-docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--cb-card-gap); }
.cb-docs-card {
  display: flex; flex-direction: column; padding: 1.1rem 1.2rem 1rem; border-radius: 16px;
  background: var(--cb-card); box-shadow: var(--cb-card-shadow); color: inherit; text-decoration: none; transition: box-shadow .15s;
}
.cb-docs-card[hidden], .cb-docs-group[hidden] { display: none; }
.cb-docs-card:hover, .cb-docs-card:focus { box-shadow: var(--cb-card-shadow-up); color: inherit; }
.cb-docs-card h3 { margin: 0 0 .35rem; font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); }
.cb-docs-card p { margin: 0 0 .9rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); line-height: var(--cb-lh); }
.cb-docs-read { margin-top: auto; color: var(--cb-brand); font-size: var(--cb-fs-14); font-weight: 600; }
.cb-docs-empty { color: var(--cb-ink-soft); }
.cb-docs-empty a { color: var(--cb-brand); font-weight: 600; }

/* One guide */
.cb-docs-crumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-docs-crumbs a { color: var(--cb-brand); font-weight: 600; text-decoration: none; }
.cb-docs-guide-head { max-width: 720px; margin-bottom: 1.25rem; }
.cb-docs-guide {
  padding: var(--cb-card-pad); border-radius: 16px; background: var(--cb-card); box-shadow: var(--cb-card-shadow);
}
.cb-docs-guide > * { max-width: 720px; }
.cb-docs-nextprev { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cb-card-gap); margin-top: var(--cb-card-gap); }
.cb-docs-step {
  display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; border-radius: 16px;
  background: var(--cb-card); box-shadow: var(--cb-card-shadow); color: var(--cb-action); text-decoration: none;
}
.cb-docs-step:hover, .cb-docs-step:focus { box-shadow: var(--cb-card-shadow-up); color: var(--cb-action); }
.cb-docs-step small { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-docs-step strong { font-size: var(--cb-fs-16); }
.cb-docs-step.is-next { text-align: right; }
.cb-docs-back { margin-top: 1.25rem; color: var(--cb-ink-soft); }
.cb-docs-back a { color: var(--cb-brand); font-weight: 600; text-decoration: none; }
@media (max-width: 600px) {
  .cb-docs { padding-top: 1.25rem; }
  .cb-docs h1 { font-size: var(--cb-fs-24); }
  .cb-docs-guide { padding: 1.1rem; }
  .cb-docs-nextprev { grid-template-columns: 1fr; }
  .cb-docs-step.is-next { text-align: left; }
}

/* The words of a guide: on its page and in the help panel */
.cb-guide-body { font-size: var(--cb-fs-16); line-height: 1.6; color: var(--cb-action); overflow-wrap: anywhere; }
.cb-guide-body p { margin: 0 0 .9rem; color: var(--cb-action); }
.cb-guide-body h2 { font-size: var(--cb-fs-20); font-weight: 700; line-height: var(--cb-lh-tight); margin: 1.6rem 0 .7rem; }
.cb-guide-body h3 { font-size: var(--cb-fs-18); font-weight: 700; margin: 1.3rem 0 .5rem; }
.cb-guide-body > :first-child { margin-top: 0; }
.cb-guide-body ul, .cb-guide-body ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.cb-guide-body li { margin-bottom: .45rem; }
.cb-guide-body li ul { margin: .45rem 0 0; }
.cb-guide-body a { color: var(--cb-brand); font-weight: 600; }
.cb-guide-body img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--cb-pill); }
.cb-guide-steps li::marker { font-weight: 700; color: var(--cb-brand); }
.cb-guide-tip {
  margin: 1rem 0; padding: .8rem 1rem; border-left: 4px solid var(--cb-brand); border-radius: .4rem;
  background: var(--cb-brand-soft); color: var(--cb-action); line-height: var(--cb-lh);
}
.cb-guide-warn { border-left-color: var(--cb-warm); background: var(--cb-warm-soft); }
.cb-guide-shot { margin: 1rem 0 1.5rem; }
.cb-guide-shot figcaption { margin-top: .35rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-guide-label { padding: 0 .35rem; border-radius: .3rem; background: var(--cb-pill); font-weight: 600; white-space: nowrap; }

/* Email invoice page */
.cb-email-form { max-width: 640px; }
.cb-email-form label { display: block; margin: 1rem 0 .3rem; font-weight: 600; color: var(--cb-action); }
.cb-email-form input[type=text], .cb-email-form textarea {
  width: 100%; padding: .55rem .7rem; border: 1px solid var(--cb-line-strong); border-radius: .45rem; font: inherit; font-size: var(--cb-fs-16);
}
.cb-email-form small { display: block; margin-top: .3rem; color: var(--cb-ink-soft); }
.cb-email-form .cb-email-check { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.cb-email-error { margin-top: .3rem; color: var(--cb-critical); font-weight: 600; }
.cb-email-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.cb-email-actions a { color: var(--cb-brand); font-weight: 600; }
.cb-email-actions button { padding: .6rem 1.3rem; border: none; border-radius: .5rem; background: var(--cb-brand); color: var(--cb-card); font-weight: 600; font-size: var(--cb-fs-16); }
.cb-invoice-sent { display: block; margin-top: .2rem; font-size: var(--cb-fs-12); color: var(--cb-ink-soft); }

/* Help panel: a guide opened beside the page from the round "?" */
.cb-help-panel { position: fixed; inset: 0; z-index: 2000; }
.cb-help-panel[hidden] { display: none; }
.cb-help-panel-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--cb-action) 35.0%, transparent); opacity: 0; transition: opacity .2s; }
.cb-help-panel-sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); display: flex; flex-direction: column;
  background: var(--cb-card); box-shadow: -12px 0 40px color-mix(in srgb, var(--cb-action) 18.0%, transparent); transform: translateX(100%); transition: transform .2s ease-out;
}
.cb-help-panel.is-open .cb-help-panel-backdrop { opacity: 1; }
.cb-help-panel.is-open .cb-help-panel-sheet { transform: none; }
.cb-help-panel-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; border-bottom: 1px solid var(--cb-pill); }
.cb-help-panel-kicker { padding: .2rem .7rem; border-radius: 999px; font-size: var(--cb-fs-14); font-weight: 700; background: var(--cb-brand-soft); color: var(--cb-brand); }
.cb-help-panel-close { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%; background: var(--cb-page); color: var(--cb-action); font-size: var(--cb-fs-24); line-height: 1; cursor: pointer; }
.cb-help-panel-close:hover { background: var(--cb-pill); }
.cb-help-panel-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem 2rem; outline: none; }
.cb-help-panel-title { font-size: var(--cb-fs-24); font-weight: 800; line-height: 1.25; color: var(--cb-action); margin: 0 0 1rem; }
.cb-help-panel-foot { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-top: 1px solid var(--cb-pill); }
.cb-help-panel-foot a { color: var(--cb-brand); font-weight: 600; text-decoration: none; }
body.cb-help-panel-on { overflow: hidden; }
@media (max-width: 600px) {
  .cb-help-panel-sheet { top: auto; height: 88vh; width: 100%; border-radius: 18px 18px 0 0; transform: translateY(100%); }
}

/* ---- components/staff-hours.css ---- */
/* Staff hours page (/hr/employees/hours/) and the note on payslip forms */
.cb-hours-back { margin: -.5rem 0 1rem; }
.cb-hours-back a { color: var(--cb-brand); font-weight: 600; }
.cb-hours-scroll { overflow-x: auto; }
.cb-hours-table { min-width: 640px; }
.cb-hours-table th, .cb-hours-table td { text-align: center; vertical-align: top; }
.cb-hours-table th:first-child, .cb-hours-table td:first-child { text-align: left; }
.cb-hours-table th small { display: block; font-weight: 400; color: var(--cb-ink-soft); font-size: var(--cb-fs-12); }
.cb-hours-table th.is-weekend, .cb-hours-table td.is-weekend { background: var(--cb-page); }
.cb-hours-table th.is-today { color: var(--cb-brand); }
.cb-hours-table td.is-today input { border-color: var(--cb-brand); }
.cb-hours-table input { width: 3.6rem; padding: .35rem .3rem; border: 1px solid var(--cb-line-strong); border-radius: .4rem; text-align: center; }
.cb-hours-table input.is-error { border-color: var(--cb-critical); background: var(--cb-critical-soft); }
.cb-hours-error { display: block; color: var(--cb-critical); font-size: var(--cb-fs-12); max-width: 6rem; margin: .2rem auto 0; }
.cb-hours-name a { color: var(--cb-action); font-weight: 600; text-decoration: none; }
.cb-hours-name small { display: block; }
.cb-hours-name small a { color: var(--cb-brand); font-weight: 400; }
.cb-hours-total { font-weight: 700; }
.cb-hours-table tfoot td { font-weight: 600; color: var(--cb-ink-soft); border-top: 2px solid var(--cb-pill); }
.cb-hours-note { background: var(--cb-broilers-soft); color: var(--cb-brand); border-radius: .5rem; padding: .6rem .8rem; margin: 0 0 1rem; }
.cb-hours-note a { color: var(--cb-brand); font-weight: 600; text-decoration: underline; }
/* keep names in view while scrolling the days sideways on a phone */
.cb-hours-table th:first-child, .cb-hours-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--cb-card); }
.cb-hours-table thead th:first-child { background: var(--cb-page); }

/* Staff rota (/hr/employees/rota/) and the shift form */
.cb-rota-table td { padding: .35rem .3rem; }
.cb-rota-cell { display: flex; flex-direction: column; justify-content: center; min-height: 3rem; min-width: 5.2rem; padding: .3rem; border: 1px dashed var(--cb-line-strong); border-radius: .45rem; color: var(--cb-ink-soft); text-decoration: none; font-size: var(--cb-fs-18); }
.cb-rota-cell:hover { border-color: var(--cb-brand); color: var(--cb-brand); }
.cb-rota-cell.has-shift { border: 1px solid var(--cb-line-strong); background: var(--cb-brand-soft); color: var(--cb-action); font-size: var(--cb-fs-14); }
.cb-rota-cell.has-shift strong { white-space: nowrap; }
.cb-rota-cell.has-shift small { color: var(--cb-ink-soft); font-size: var(--cb-fs-12); line-height: 1.2; margin-top: .1rem; }
.cb-rota-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.cb-rota-actions form { margin: 0; }
.cb-budget-save.is-plain { background: var(--cb-card); color: var(--cb-brand); }
.cb-hours-fill { margin: 0 0 1rem; }
.cb-shift-times { display: flex; gap: 1rem; flex-wrap: wrap; }
.cb-shift-form input[type=time] { padding: .5rem .6rem; border: 1px solid var(--cb-line-strong); border-radius: .45rem; font-size: var(--cb-fs-16); }
.cb-shift-repeat { margin-top: 1rem; border: none; padding: 0; }
.cb-shift-repeat legend { font-size: var(--cb-fs-16); font-weight: 600; color: var(--cb-action); margin-bottom: .2rem; }
.cb-shift-repeat .cb-email-check { margin: .35rem 1rem .35rem 0; display: inline-flex; }
.cb-shift-delete { max-width: 640px; margin-top: 1rem; text-align: right; }
.cb-shift-delete button { background: none; border: none; color: var(--cb-critical); font-weight: 600; text-decoration: underline; }

@media print {
  .cb-rota .cb-rota-actions, .cb-rota .cb-hours-back, .cb-rota .cb-rpt-intro, .cb-rota .cb-rpt-note, .cb-rota .cb-help-link,
  .main-sidebar, header, footer, .cb-bottom-nav { display: none !important; }
  .cb-rota-cell { border: none !important; background: none !important; }
  .cb-rota-cell:not(.has-shift) { visibility: hidden; }
  .cb-hours-table { min-width: 0; }
}
.cb-hours-fill { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; }
.cb-hours-fill .cb-budget-save { margin: 0; }
.cb-hours-fill small { color: var(--cb-ink-soft); }
.cb-hours-fill small a { color: var(--cb-brand); }

/* ---- components/getting-started.css ---- */
/* Home page "Getting started" checklist for new farms. */
.cb-start { width: 98.3%; margin: 0 auto 1rem; box-sizing: border-box; padding: 1rem 1.1rem; border-radius: .75rem; background: var(--cb-card); border: 1px solid var(--cb-pill); color: var(--cb-action); }

.cb-start-steps { list-style: none; margin: 0; padding: 0; }

.cb-visually-hidden { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---- components/show-more.css ---- */
/* "Show more": the tick boxes at the bottom of a page (main/extras.py) ---- */
.cb-show-more{margin:1.5rem 0 2rem;border:1px solid var(--cb-pill);border-radius:.75rem;background:var(--cb-card);padding:.25rem 1rem}
.cb-show-more summary{cursor:pointer;font-weight:600;font-size:var(--cb-fs-14);color:var(--cb-action);padding:.6rem 0;list-style:none}
.cb-show-more summary::-webkit-details-marker{display:none}
.cb-show-more summary::after{content:" +";}
.cb-show-more[open] summary::after{content:" \2212";}
.cb-show-more p{color:var(--cb-ink-soft);font-size:var(--cb-fs-14);margin:.1rem 0 .6rem}
.cb-show-more__item{display:flex;gap:.65rem;align-items:flex-start;padding:.55rem 0;border-top:1px solid var(--cb-pill);cursor:pointer;margin:0}
.cb-show-more__item input{width:1.2rem;height:1.2rem;margin-top:.15rem;flex:none;accent-color:var(--cb-brand)}
.cb-show-more__item span{color:var(--cb-action)}
.cb-show-more__item small{display:block;color:var(--cb-ink-soft);font-size:var(--cb-fs-14)}
.cb-show-more__problem{color:var(--cb-critical) !important}

/* Home: with the broiler and layer split hidden, the total sits next to the menu. */
body:not(.x-home-split) .report-sf-cell:nth-child(2){flex:0 1 auto;align-items:flex-start}

/* Home: with the Orders column hidden, the sales tile takes its place. */
@media (min-width: 1200px){
  body:not(.x-home-orders) .report-set-four .report-three-fifths.cb-wide-alone{
    flex:0 0 calc((100% - 10px)/5*4);max-width:calc((100% - 10px)/5*4)}
}
@media (min-width: 769px) and (max-width: 1199px){
  body:not(.x-home-orders) .report-set-four .report-column{flex:1 1 100%;max-width:100%;flex-direction:row}
}

/* Batch report: tiles left on their own share the row. */
@media (min-width: 769px){
  body:not(.x-report-health-more) .cb-share-health,
  body:not(.x-report-sales-more) .cb-share-sales{flex:1 1 0 !important;max-width:none !important}
}

/* Layer report: Sales streams and Health & medication share a column; with
   both hidden the column goes and Net profit takes its place. */

@media (min-width: 1200px){
  body:not(.x-report-costs):not(.x-report-health-more) .report-three-fifths.cb-wide-profit{
    flex:0 0 calc((100% - 10px)/5*4);max-width:calc((100% - 10px)/5*4)}
}
/* Layer report: without the feed table, the flock tiles share the row. */


/* ---- components/weight-target.css ---- */
/* Weight against target on the broiler batch page -------------------- */
.cb-weight-target{padding:12px 16px}
.cb-weight-target__title{font-size:var(--cb-fs-16);font-weight:600;margin:0 0 8px}
.cb-weight-target__list{list-style:none;margin:0;padding:0}
.cb-weight-target__line{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:6px 0;border-top:1px solid var(--cb-pill)}
.cb-weight-target__line:first-child{border-top:0}
.cb-weight-target__who{color:var(--cb-ink-soft);min-width:9rem}
.cb-weight-target__verdict{font-weight:600;border-radius:999px;padding:1px 10px;font-size:var(--cb-fs-14)}
.is-on_target .cb-weight-target__verdict,.is-ahead .cb-weight-target__verdict{background:var(--cb-broilers-soft);color:var(--cb-brand)}
.is-behind .cb-weight-target__verdict{background:var(--cb-brand-soft);color:var(--cb-brand)}
.is-check_units .cb-weight-target__verdict,.is-no_target .cb-weight-target__verdict{color:var(--cb-ink-soft);font-weight:400;padding:0}

/* ---- components/hubs.css ---- */
/* ==========================================================================
   The four places (Home, Flock, Sales, Money) and "Do more", the same as
   the phone app: a big title top left, at most one orange button top
   right, then rows of icon + name + one plain line + arrow.
   ========================================================================== */

.cb-hub { max-width: 860px; margin: 0 0 0 .75rem; padding: 0 0 2rem; }
.cb-hub-narrow { max-width: 640px; }
.cb-hub-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .5rem 0 1.25rem; }
.cb-hub-head h1 { margin: 0; font-size: var(--cb-fs-32); font-weight: 700; letter-spacing: -.02em; color: var(--cb-action); }
.cb-hub-intro { margin: -.5rem 0 1.25rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.cb-hub-note { margin: .6rem .25rem 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }

/* The one orange button */
.cb-hub-button, .cb-pill {
    display: inline-flex; align-items: center; gap: .4rem; min-height: var(--cb-tap); padding: 0 1.25rem;
    border-radius: 999px; background: var(--cb-action); color: var(--cb-card) !important;
    font-size: var(--cb-fs-16); font-weight: 700; text-decoration: none; white-space: nowrap; border: 0;
}
.cb-hub-button:hover, .cb-pill:hover { background: var(--cb-action); text-decoration: none; }

.cb-hub-group { margin-bottom: 1.75rem; }
.cb-hub-group-head { display: flex; align-items: baseline; justify-content: space-between; }
.cb-hub-group-title { margin: 0 .25rem .6rem; font-size: var(--cb-fs-20); font-weight: 700; letter-spacing: -.01em; color: var(--cb-action); }
.cb-see-all { margin-right: .25rem; font-size: var(--cb-fs-16); font-weight: 600; color: var(--cb-brand); text-decoration: underline; }

/* Rows: one card with dividers (like phone settings) */
.cb-items { list-style: none; margin: 0; padding: 0; background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: var(--cb-radius); overflow: hidden; }
.cb-items > li + li { border-top: 1px solid var(--cb-pill); }
.cb-item {
    display: flex; align-items: center; gap: .9rem; min-height: 4.25rem; padding: .7rem 1rem;
    color: var(--cb-action); text-decoration: none;
}
.cb-item:hover { background: var(--cb-page); color: var(--cb-action); text-decoration: none; }
.cb-item-icon {
    position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--cb-brand-soft); color: var(--cb-brand);
}
.cb-item-icon .cb-svg { width: 1.35rem; height: 1.35rem; }
.cb-item-icon.is-sale { background: var(--cb-brand-soft); color: var(--cb-brand); }
.cb-item-icon.is-expense { background: var(--cb-warm-soft); color: var(--cb-brand); }
.cb-initials { font-size: var(--cb-fs-16); font-weight: 700; }
.cb-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cb-item-text strong { font-size: var(--cb-fs-16); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-item-text small { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-item-text strong.cb-item-wrap { white-space: normal; }
.cb-item-amount { flex-shrink: 0; font-size: var(--cb-fs-16); font-weight: 700; }
.cb-item-arrow {
    flex-shrink: 0; width: 8px; height: 8px; margin: 0 .25rem 0 .1rem;
    border-right: 2px solid var(--cb-ink-soft); border-top: 2px solid var(--cb-ink-soft); transform: rotate(45deg);
}
.cb-item-dot { flex-shrink: 0; width: .85rem; height: .85rem; margin: 0 .4rem 0 .3rem; border-radius: 50%; }
.cb-item-dot.is-broilers { background: var(--cb-broilers); }
.cb-item-dot.is-layers { background: var(--cb-warm); }

/* "Do more": each row its own card; not set up yet = dashed with a + */
.cb-items-cards { background: none; border: 0; border-radius: 0; overflow: visible; display: grid; gap: .6rem; }
.cb-items-cards > li + li { border-top: 0; }
.cb-items-cards .cb-item { background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: var(--cb-radius); }
.cb-items-cards .cb-item-icon { width: 3.25rem; height: 3.25rem; }
.cb-items-cards .cb-item-icon .cb-svg { width: 1.5rem; height: 1.5rem; }
.cb-item.is-dashed { background: var(--cb-page); border: 1.5px dashed var(--cb-line-strong); }
.cb-item.is-dashed .cb-item-icon { background: var(--cb-card); border: 1px solid var(--cb-line-strong); }
.cb-item-plus {
    position: absolute; right: -3px; bottom: -3px; width: 1.3rem; height: 1.3rem; border-radius: 50%;
    background: var(--cb-action); color: var(--cb-card); border: 2px solid var(--cb-card);
    font-size: var(--cb-fs-14); font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.cb-item-new { color: var(--cb-brand); font-weight: 600; }
@media (min-width: 992px) {
    .cb-hub:not(.cb-hub-narrow) .cb-items-cards { grid-template-columns: 1fr 1fr; }
}

/* Money: profit, hidden with the eye button */
.cb-profit-head { display: flex; align-items: center; gap: .5rem; }
.cb-profit-label { font-size: var(--cb-fs-16); color: var(--cb-ink-soft); }
.cb-eye {
    display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
    border-radius: 50%; border: 0; background: var(--cb-brand-soft); color: var(--cb-brand); cursor: pointer;
}
.cb-eye:hover { background: var(--cb-line-strong); }
.cb-eye svg { width: 20px; height: 20px; flex-shrink: 0; }
.cb-eye .cb-eye-shut, .cb-money-hidden .cb-eye .cb-eye-open { display: none; }
.cb-money-hidden .cb-eye .cb-eye-shut { display: block; }
.cb-profit { margin: .1rem 0 .15rem; font-size: 2.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; color: var(--cb-action); }
.cb-profit.is-loss, .is-loss { color: var(--cb-critical); }
.is-gain { color: var(--cb-brand); }
.cb-money-hidden .cb-secret { filter: blur(9px); user-select: none; }
.cb-money-hidden .cb-profit.cb-secret, .cb-money-hidden .cb-secret.is-loss, .cb-money-hidden .cb-secret.is-gain { color: var(--cb-action); }

.cb-money-card { margin-bottom: 1.75rem; padding: 1.25rem; background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: var(--cb-radius); }
.cb-money-split { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--cb-pill); }
.cb-money-split span { display: block; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-money-split strong { font-size: var(--cb-fs-20); font-weight: 700; color: var(--cb-action); }

/* Batch cards: side by side, sliding sideways when there are more */
.cb-batch-scroller {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 2rem) / 3));
    gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    contain: inline-size;   /* never widen the page: the cards slide instead */ padding-bottom: .4rem; scrollbar-width: thin;
}
.cb-batch-card {
    scroll-snap-align: start; display: flex; flex-direction: column; background: var(--cb-card);
    border: 1px solid var(--cb-pill); border-radius: calc(var(--cb-radius) + 4px); overflow: hidden;
    color: var(--cb-action); text-decoration: none;
}
.cb-batch-card:hover { border-color: var(--cb-line-strong); color: var(--cb-action); text-decoration: none; }
.cb-batch-band { display: flex; justify-content: space-between; padding: .6rem 1.1rem; font-size: var(--cb-fs-16); font-weight: 700; }
.cb-batch-band span + span { font-weight: 600; }
.is-broilers .cb-batch-band { background: var(--cb-broilers-soft); color: var(--cb-brand); }
.is-layers .cb-batch-band { background: var(--cb-warm-soft); color: var(--cb-warm-ink); }
.cb-batch-body { display: flex; flex-direction: column; padding: 1rem 1.1rem 1.1rem; }
.cb-batch-name { font-size: var(--cb-fs-24); font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-batch-line { margin-top: .15rem; color: var(--cb-action); font-size: var(--cb-fs-16); }
.cb-batch-bar { display: block; height: 8px; margin: .75rem 0 .9rem; border-radius: 4px; background: var(--cb-pill); overflow: hidden; }
.cb-batch-bar span { display: block; height: 100%; background: var(--cb-broilers); border-radius: 4px; }

.cb-batch-money { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-batch-money strong { font-size: var(--cb-fs-20); font-weight: 700; }
.cb-batch-body small { margin-top: .1rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-batch-start {
    align-items: center; justify-content: center; gap: .35rem; min-height: 12rem; padding: 1.25rem;
    background: var(--cb-page); border: 1.5px dashed var(--cb-line-strong); text-align: center;
}
.cb-batch-start small { color: var(--cb-ink-soft); font-size: var(--cb-fs-16); max-width: 15rem; }
.cb-batch-plus {
    display: flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
    background: var(--cb-action); color: var(--cb-card); font-size: var(--cb-fs-32); font-weight: 600; line-height: 1;
}
.cb-batch-dots { display: flex; justify-content: center; gap: 8px; min-height: 8px; margin-top: .6rem; }
.cb-batch-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--cb-line-strong); transition: width .2s; }
.cb-batch-dots span.is-on { width: 20px; background: var(--cb-brand); }

/* Home */
.cb-home { width: 98.3%; margin: 0 auto; padding-bottom: 1rem; }
.cb-home .cb-profit { font-size: 3rem; }

.cb-pills { display: flex; gap: .6rem; margin: 0 0 2rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
.cb-pills::-webkit-scrollbar { display: none; }
.cb-pill.is-soft { background: var(--cb-pill); color: var(--cb-action) !important; }
.cb-pill.is-soft:hover { background: var(--cb-line-strong); }
.cb-pill .cb-svg { width: 1.15rem; height: 1.15rem; }

.cb-item-icon.is-urgent { background: var(--cb-critical-soft); color: var(--cb-critical); }
.cb-item-icon.is-warning { background: var(--cb-brand-soft); color: var(--cb-brand); }

@media (max-width: 768px) {
    .cb-hub { margin: 0; padding-left: 1rem; padding-right: 1rem; }
    .cb-home { width: auto; padding-left: 1rem; padding-right: 1rem; }
    .cb-hub-head h1 { font-size: var(--cb-fs-32); }
    .cb-home .cb-profit { font-size: 2.5rem; }
    .cb-pills { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
    /* One card and a peek of the next */
    .cb-batch-scroller {
        grid-auto-columns: calc(100% - 2.25rem); margin: 0 -1rem; padding: 0 1rem .2rem;
        scroll-padding: 0 1rem; scrollbar-width: none;
    }
    .cb-batch-scroller::-webkit-scrollbar { display: none; }
}

/* Sidebar: the four places with their pages always showing, then "Do more" */
.main-sidebar .cb-side .nav-link { margin: 0 14px 4px; padding: 12px 18px; font-size: var(--cb-fs-18); border-radius: 999px; }
.main-sidebar .cb-side .nav-link .cb-icon, .main-sidebar .cb-side .nav-link .cb-svg { width: 22px; height: 22px; }
.main-sidebar .cb-side .nav-link.is-current { background: var(--cb-brand-soft); color: var(--cb-brand); font-weight: 700; }
.main-sidebar .cb-side-sub { margin: 0 0 .6rem; }

.cb-bottom-nav .cb-tab-plus {
    display: flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
    border: 2px solid currentColor; font-size: var(--cb-fs-18); font-weight: 700; line-height: 1;
}

/* Sales helpers: a customer row with buttons to call, text or email them */
.cb-reach { padding-bottom: .8rem; }
.cb-reach .cb-item { padding-bottom: .35rem; }
.cb-reach-buttons { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1rem 0 4.65rem; }
.cb-reach-button {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px;
    background: var(--cb-card); border: 1px solid var(--cb-line-strong); color: var(--cb-action) !important;
    font-size: var(--cb-fs-16); font-weight: 600; text-decoration: none; cursor: pointer;
}
.cb-reach-button:hover { background: var(--cb-page); text-decoration: none; }
.cb-reach-none { margin: 0; padding: 0 1rem 0 4.65rem; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-reminder { margin: 0 1rem .6rem 4.65rem; font-size: var(--cb-fs-16); color: var(--cb-ink-soft); }
.cb-reminder summary { cursor: pointer; color: var(--cb-brand); font-weight: 600; min-height: 2rem; }
.cb-reminder p { margin: .4rem 0 0; padding: .7rem .85rem; border-radius: var(--cb-radius-sm); background: var(--cb-page); color: var(--cb-action); }
.cb-initials.is-star { background: var(--cb-warm-soft); color: var(--cb-brand); font-size: var(--cb-fs-20); }
.cb-hub-empty { padding: 1.5rem 1.25rem; background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: var(--cb-radius); }
.cb-hub-empty strong { display: block; font-size: var(--cb-fs-18); color: var(--cb-action); }
.cb-hub-empty p { margin: .3rem 0 0; color: var(--cb-ink-soft); }
@media (max-width: 768px) {
    .cb-reach-buttons, .cb-reach-none { padding-left: 1rem; }
    .cb-reminder { margin-left: 1rem; }
}

.cb-eye .cb-svg { width: 20px; height: 20px; }

/* Batch cards like jars: a coloured band set inside the card, the batch
   name with an arrow, and the profit in a soft pill at the bottom. */
.cb-batch-card:not(.cb-batch-start) { padding: 8px; border: 0; }
.cb-batch-band { align-items: center; min-height: 3.4rem; padding: .5rem 1rem; border-radius: 18px; }
.cb-batch-band > span:first-child { font-weight: 700; }
.cb-batch-band-icon { width: 26px; height: 26px; }
.cb-batch-card .cb-batch-body { flex: 1; padding: .9rem .75rem .5rem; }
.cb-batch-name { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cb-batch-chev {
    flex: none; width: 10px; height: 10px; margin-right: .35rem;
    border-right: 2px solid var(--cb-ink-soft); border-top: 2px solid var(--cb-ink-soft); transform: rotate(45deg);
}

.cb-batch-card .cb-batch-money {
    align-self: flex-start; align-items: center; gap: .6rem; margin-top: .5rem; padding: .45rem 1rem;
    border-radius: 999px; background: var(--cb-page);
}

/* Home proportions on wide screens: one calm column in the middle, a modest
   total with round buttons beside it, roomy pills and big rounded batch
   cards, two and a bit side by side (the next one peeks in, so it's clear
   they slide). */
@media (min-width: 769px) {
    .cb-home-page { max-width: 1168px; margin: 0 auto; padding: 0 1.5rem; }
    .cb-home-page .success-message { width: auto !important; }
    .cb-home-page .report-tiles-wrapper { padding-right: 0; }
    .cb-home-page .report-tile-container { padding: 0; }
    .cb-home { width: auto; margin: 0; padding: .75rem 0 1.5rem; }
    .cb-home-batches { container-type: inline-size; }
    .cb-home .cb-profit-label { font-size: var(--cb-fs-18); }
    .cb-home .cb-profit { font-size: var(--cb-fs-32); font-weight: 650; letter-spacing: -.02em; }
    .cb-home .cb-eye { width: 2.75rem; height: 2.75rem; }

    .cb-home .cb-pills { gap: .9rem; margin-bottom: 2.75rem; }
    .cb-home .cb-pill { min-height: 3rem; padding: 0 1.5rem; font-size: var(--cb-fs-18); }
    .cb-home .cb-hub-group { margin-bottom: 2.75rem; }
    .cb-home .cb-hub-group-title { font-size: var(--cb-fs-24); margin-bottom: 1.1rem; }
    .cb-home .cb-batch-scroller { grid-auto-columns: clamp(280px, calc((100cqi - 3.5rem) / 2.5), 440px); gap: 1.75rem; }
    .cb-home .cb-batch-card { border-radius: 30px; min-height: 21rem; }
    .cb-home .cb-batch-card:not(.cb-batch-start) { padding: 10px; }
    .cb-home .cb-batch-band { min-height: 4.4rem; padding: .5rem 1.4rem; border-radius: 22px; font-size: var(--cb-fs-16); }
    .cb-home .cb-batch-band-icon { width: 30px; height: 30px; }
    .cb-home .cb-batch-card .cb-batch-body { padding: 1.2rem 1rem .6rem; }
    .cb-home .cb-batch-name { font-size: var(--cb-fs-32); }
    .cb-home .cb-batch-line { font-size: var(--cb-fs-18); margin-top: .45rem; }
    .cb-home .cb-batch-bar { margin: 1.1rem 0 0; }
    .cb-home .cb-batch-money { font-size: var(--cb-fs-16); padding: .6rem 1.1rem; }
    .cb-home .cb-batch-money strong { font-size: var(--cb-fs-20); }
    .cb-home .cb-batch-start { border-radius: 30px; }
    .cb-home .cb-items { border-radius: 22px; }
    .cb-home .cb-item { min-height: 4.75rem; padding: .85rem 1.25rem; }
}

/* Home without a money total: a calm hello, the day, and one feed line */
.cb-home-head { padding-bottom: .5rem; }
.cb-home-date { margin: 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.cb-home-hello { margin: .1rem 0 1.1rem; font-size: var(--cb-fs-32); font-weight: 700; letter-spacing: -.02em; color: var(--cb-action); }
.cb-home-feed {
    display: inline-flex; align-items: center; gap: .5rem; margin: -.75rem 0 1.5rem; padding: .5rem 1rem;
    border-radius: 999px; background: var(--cb-brand-soft); color: var(--cb-brand); font-weight: 600; text-decoration: none;
}
.cb-home-feed:hover { text-decoration: none; background: var(--cb-line-strong); color: var(--cb-brand); }
.cb-home-feed .cb-svg { width: 1.15rem; height: 1.15rem; }
.cb-home-feed.is-low { background: var(--cb-warm-soft); color: var(--cb-action); }
.cb-home-feed.is-low .cb-svg { color: var(--cb-brand); }

/* A new farm: one thing to do */
.cb-home-empty {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem;
    max-width: 34rem; margin: 1rem auto 3rem; padding: 2.5rem 1.5rem; background: var(--cb-card);
    border: 1px solid var(--cb-pill); border-radius: 30px;
}
.cb-home-empty h2 { margin: .4rem 0 0; font-size: var(--cb-fs-24); font-weight: 700; color: var(--cb-action); }
.cb-home-empty p { margin: 0 0 .6rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.cb-home-empty-button { min-height: 3.25rem; padding: 0 1.8rem; font-size: var(--cb-fs-18); }

@media (min-width: 1100px) {

    .cb-home-page { max-width: 1280px; }

}
.cb-hub-group-head .cb-eye { width: 2.5rem; height: 2.5rem; align-self: center; }
.cb-hub-group-link { color: var(--cb-brand); font-weight: 600; text-decoration: none; }
.cb-hub-group-link:hover { text-decoration: underline; }

.cb-home-box { padding: 1.2rem 1.25rem; background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: 22px; }
.cb-home-box-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.cb-home-box-head h2 { margin: 0; font-size: var(--cb-fs-20); font-weight: 700; color: var(--cb-action); }
.cb-home-box-head a { color: var(--cb-brand); font-weight: 600; font-size: var(--cb-fs-16); text-decoration: none; }
.cb-home-box-note { margin: .4rem 0 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.cb-home-box-note a { color: var(--cb-brand); font-weight: 600; }

.cb-quick { padding: .8rem 0 .9rem; border-top: 1px solid var(--cb-pill); }
.cb-quick:first-of-type { border-top: 0; padding-top: .2rem; }
.cb-quick-name { display: flex; align-items: center; gap: .2rem; margin: 0 0 .55rem; font-size: var(--cb-fs-16); }
.cb-quick-name .cb-item-dot { margin-left: 0; }
.cb-quick-done { margin-left: auto; padding: .1rem .6rem; border-radius: 999px; background: var(--cb-brand-soft); color: var(--cb-brand); font-size: var(--cb-fs-14); font-weight: 600; }
.cb-quick-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.cb-quick-field { display: flex; flex-direction: column; gap: .25rem; margin: 0; font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-ink-soft); }
.cb-quick-field input {
    width: 100%; min-width: 0; min-height: 2.75rem; padding: .4rem .6rem; font-size: var(--cb-fs-16); color: var(--cb-action);
    border: 1px solid var(--cb-line-strong); border-radius: 12px; background: var(--cb-card);
}
.cb-quick-step { display: flex; gap: .3rem; }
.cb-quick-step input { text-align: center; padding: .4rem .2rem; }
.cb-quick-step button {
    flex: none; width: 2.5rem; min-height: 2.75rem; border: 1px solid var(--cb-line-strong); border-radius: 12px;
    background: var(--cb-page); color: var(--cb-action); font-size: var(--cb-fs-20); font-weight: 600; line-height: 1; cursor: pointer;
}
.cb-quick-save {
    width: 100%; min-height: 2.9rem; margin-top: .7rem; border: 0; border-radius: 999px;
    background: var(--cb-action); color: var(--cb-card); font-weight: 700; font-size: var(--cb-fs-16); cursor: pointer;
}
.cb-quick-save:hover { background: var(--cb-action); }

.cb-home-orders { list-style: none; margin: 0; padding: 0; }
.cb-home-orders li + li { border-top: 1px solid var(--cb-pill); }
.cb-home-orders a { display: flex; justify-content: space-between; gap: .75rem; padding: .7rem 0; color: var(--cb-action); text-decoration: none; }
.cb-home-orders a:hover strong:first-child { text-decoration: underline; }
.cb-home-order-text, .cb-home-order-end { display: flex; flex-direction: column; min-width: 0; }
.cb-home-order-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-home-order-end { align-items: flex-end; flex: none; }
.cb-home-orders small { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-home-order-state.is-owed { color: var(--cb-brand); font-weight: 600; }

/* Batch cards: two or three numbers under the progress bar, and the medicine wait */
.cb-batch-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: .9rem 0 .2rem; }
.cb-batch-stats > span { display: flex; flex-direction: column; min-width: 0; }
.cb-batch-stats small { margin: 0 !important; font-size: var(--cb-fs-14) !important; color: var(--cb-ink-soft); }
.cb-batch-stats strong { font-size: var(--cb-fs-18); font-weight: 700; color: var(--cb-action); }
.cb-batch-weight.is-behind { color: var(--cb-brand); }
.cb-batch-wait {
    display: flex; align-items: center; gap: .4rem; margin-top: .6rem; padding: .4rem .75rem; border-radius: 12px;
    background: var(--cb-warm-soft); color: var(--cb-action); font-size: var(--cb-fs-16); font-weight: 600;
}
.cb-batch-wait .cb-svg { flex: none; width: 1.05rem; height: 1.05rem; color: var(--cb-brand); }
.cb-batch-card .cb-batch-money { margin-top: auto; }
.cb-batch-card .cb-batch-stats, .cb-batch-card .cb-batch-wait { margin-bottom: .8rem; }
.cb-batch-stats + .cb-batch-wait { margin-top: 0; }

/* A batch's page while a medicine's wait is still running */
.cb-sell-wait {
    display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 1rem; padding: .8rem 1.1rem; border-radius: 16px;
    background: var(--cb-warm-soft); color: var(--cb-action); font-size: var(--cb-fs-16);
}
.cb-sell-wait .cb-svg { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; color: var(--cb-brand); }
.cb-sell-wait a { color: var(--cb-brand); font-weight: 600; }

/* The sales chart on the Money page: the page is narrower than Home was, so
   the chart takes the whole width and the small tiles sit in a row under it. */
.cb-money-chart .report-tiles-wrapper { padding-right: 0; }
.cb-money-chart .report-tile-container { padding: 0; }
.cb-money-chart .report-set-four .report-three-fifths, .cb-money-chart .report-set-four .report-three-fifths.cb-wide-alone { flex: 1 1 100% !important; max-width: 100% !important; }
.cb-money-chart .report-set-four .report-column { flex: 1 1 calc(50% - 5px) !important; max-width: none !important; min-width: 0; flex-direction: column !important; }
.cb-money-chart .report-set-four .report-column .report-tile { flex: 1 1 auto; }

/* The design pages (/demo/ and /demo/home/, laptop only) */
.cb-demo { max-width: 1180px; margin: 0 auto; padding: 1rem 1.5rem 4rem; }
.cb-demo-head h1 { margin: .1rem 0 .4rem; font-size: var(--cb-fs-32); font-weight: 700; letter-spacing: -.02em; color: var(--cb-action); }
.cb-demo-head > p { color: var(--cb-ink-soft); font-size: var(--cb-fs-16); margin: 0; }
.cb-demo-kicker { text-transform: uppercase; letter-spacing: .05em; font-size: var(--cb-fs-14) !important; font-weight: 700; color: var(--cb-brand) !important; }
.cb-demo-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 2rem; }
.cb-demo-nav a {
    padding: .45rem .95rem; border-radius: 999px; background: var(--cb-card); border: 1px solid var(--cb-pill);
    color: var(--cb-action); font-weight: 600; font-size: var(--cb-fs-16); text-decoration: none;
}
.cb-demo-nav a:hover, .cb-demo-nav a.is-main { background: var(--cb-brand); border-color: var(--cb-brand); color: var(--cb-card); }
.cb-demo-piece { margin-bottom: 2.75rem; scroll-margin-top: 5rem; }
.cb-demo-piece > h2 { display: flex; align-items: center; gap: .7rem; margin: 0 0 .3rem; font-size: var(--cb-fs-20); font-weight: 700; color: var(--cb-action); }
.cb-demo-piece > h2 span {
    display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
    background: var(--cb-brand); color: var(--cb-card); font-size: var(--cb-fs-16);
}
.cb-demo-note { margin: 0 0 .8rem; color: var(--cb-ink-soft); }
/* The two "everything" demo pages: a little room under each letter, open menus, a print sheet */
.cb-demo-all .cb-demo-piece > h2 { margin-bottom: .9rem; }
.cb-demo-menus { align-items: flex-start; gap: 1.5rem; }
.cb-demo-menus .ud-menu { position: static !important; display: block !important; }
.cb-demo-all .site-messages { position: static; transform: none; width: auto; max-width: 560px; margin: 1rem 0; }
.cb-demo-sheet { width: 100%; height: 720px; border: 0; border-radius: 24px; background: var(--cb-card); }
.cb-demo-frame {
    padding: 1.4rem; margin-bottom: .8rem; border-radius: 24px; background: var(--cb-page);
    border: 1.5px dashed var(--cb-line-strong);
}
.cb-demo-frame.cb-home, .cb-demo-frame.cb-home-page { width: auto; max-width: none; margin-left: 0; margin-right: 0; }
.cb-demo-frame .cb-home-batches { container-type: inline-size; }
.cb-demo-frame .cb-batch-scroller { grid-auto-columns: clamp(280px, calc((100cqi - 3.5rem) / 2.5), 400px); gap: 1.25rem; }
.cb-demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.cb-demo-row .cb-home-feed { margin: 0; }
.cb-demo-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.5rem; }
@media (min-width: 1000px) { .cb-demo-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.cb-demo-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.cb-demo-swatch { display: flex; flex-direction: column; gap: .4rem; }
.cb-demo-swatch span { height: 3.5rem; border-radius: 14px; border: 1px solid var(--cb-pill); }
.cb-demo-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; }
.cb-demo-swatch code { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); background: none; }
.cb-demo-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; align-items: end; }
.cb-demo-form > label:not(.cb-quick-field) { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; color: var(--cb-action); margin: 0; }
.cb-demo-form select { min-height: 2.75rem; }

/* The menu, clean and calm: white with one thin line, the logo on top, six
   places with a line icon each, a soft pill behind the one you're in. Flock,
   Sales, Money and More open with their arrow; only the one you're in starts
   open. The top bar keeps just a few round buttons and pills and your initials. */
@media (min-width: 769px) {
    .main-sidebar.cb-side-clean {
        top: 0; height: 100vh; z-index: 1001; padding: 15px 0 1rem;
        background: var(--cb-card); border-right: 1px solid var(--cb-pill);
    }
    /* The top bar is the page itself: same colour, no line */
    body:has(.cb-side-clean) header { background: var(--cb-page); border-bottom-color: transparent; }
    header > div:nth-child(2) { width: auto; flex: 1; }
    header > div:nth-child(3) { width: auto; }
    .header-right-section { gap: .6rem; margin-right: 2rem; }
    .header-right-section > *, .header-right-section > .gray-button { margin: 0 !important; }
    header .cb-bell {
        width: 42px; height: 42px; justify-content: center; border-radius: 50%;
        background: var(--cb-page); color: var(--cb-action);
    }
    header .cb-bell:hover { background: var(--cb-brand-soft); color: var(--cb-brand); }
    header .cb-bell .cb-bell-count { top: -3px; right: -3px; }
    header .cb-create-button, .header-right-section > .gray-button {
        min-height: 42px; padding: 0 1.2rem; border-radius: 999px; font-weight: 700; font-size: var(--cb-fs-16);
    }
    .header-right-section > .gray-button { background: var(--cb-brand-soft); color: var(--cb-brand); border: 0; }
}
.main-sidebar .cb-side-logo {
    display: flex; align-items: center; gap: .65rem; margin: 0 28px 1.9rem; min-height: 30px;
    color: var(--cb-brand); font-size: var(--cb-fs-20); font-weight: 800; letter-spacing: -.02em; text-decoration: none;
}
.main-sidebar .cb-side-logo:hover { color: var(--cb-action); }
.main-sidebar .cb-side-logo .logo-text {
    margin: 0; font-family: 'Inter', sans-serif; font-size: var(--cb-fs-20); font-weight: 700; color: var(--cb-action);
    text-transform: uppercase; letter-spacing: -0.05em;
}
.main-sidebar.cb-side-clean .cb-side .nav-link {
    gap: .9rem; margin: 0 14px 4px; padding: 11px 18px; border-radius: 999px;
    font-size: var(--cb-fs-16); font-weight: 500; color: var(--cb-action);
}
.main-sidebar.cb-side-clean .nav-link .cb-icon { margin: 0; color: var(--cb-ink-soft); }
.main-sidebar.cb-side-clean .nav-link:hover { background: var(--cb-page); color: var(--cb-action); }
.main-sidebar.cb-side-clean .nav-link.is-current { background: var(--cb-brand-soft); color: var(--cb-brand); font-weight: 700; }
.main-sidebar.cb-side-clean .nav-link.is-current .cb-icon { color: var(--cb-brand); }
.cb-side-group > summary { position: relative; display: block; list-style: none; cursor: pointer; }
.cb-side-group > summary::-webkit-details-marker { display: none; }
.main-sidebar.cb-side-clean .cb-side-group > summary.nav-link { position: relative; padding-right: 56px; cursor: pointer; }
.main-sidebar.cb-side-clean .cb-side-sub { margin: 0 0 .5rem; }
/* Your initials (or picture) and name: opens your menu */
header .cb-me {
    display: flex; align-items: center; gap: .6rem; padding: 0; border: 0; background: none;
    color: var(--cb-action); font-weight: 600; font-size: var(--cb-fs-16); cursor: pointer;
}
.cb-me-initials {
    display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
    background: var(--cb-page); color: var(--cb-action); font-weight: 700; font-size: var(--cb-fs-16); letter-spacing: .02em;
}
.cb-me .profile-pic { width: 42px; height: 42px; border: 0; }
.cb-me:hover .cb-me-initials { background: var(--cb-brand-soft); color: var(--cb-brand); }
/* Things to check: their number sits on the initials (the menu has the link) */
header .cb-me { position: relative; }
header .cb-me .cb-bell-count { top: -2px; right: -4px; }
/* On a wide screen the four places sit in a centred column with room either side */
@media (min-width: 992px) { .cb-hub { margin-left: auto; margin-right: auto; } }
/* "+" and your initials with your first name sit at the bottom of the sidebar;
   both menus open upwards. Pages without a sidebar keep them at the top right. */
@media (min-width: 769px) {
    .main-sidebar.cb-side-clean { display: flex; flex-direction: column; overflow-y: auto; }
}
.cb-me-menu { display: flex; align-items: center; gap: .6rem; }
/* With a sidebar: "+" at the top right (after "Try Pro"), the initials at the sidebar's foot. */
body:has(.cb-me-menu.is-side) header .cb-me-menu.is-head .user-image,
.cb-me-menu.is-side .create-menu { display: none; }
header .cb-me-menu .cb-create-button.cb-plus-button { padding: 0 !important; }
.cb-me-pic { position: relative; display: inline-flex; }
.cb-me-pic .cb-bell-count { top: -2px; right: -4px; }
.cb-me-menu.is-side { flex-direction: column; align-items: stretch; gap: .5rem; margin-top: auto; padding: 1.25rem 14px 0; }
.cb-me-menu.is-side .cb-create-button {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px;
    margin-left: 7px; padding: 0; border-radius: 50% !important; font-size: var(--cb-fs-24); font-weight: 500 !important; line-height: 1;
}
.cb-me-menu.is-side .cb-me {
    display: flex; align-items: center; gap: .9rem; width: 100%; padding: 4px 18px 4px 7px; border: 0; border-radius: 999px;
    background: none; color: var(--cb-action); font-size: var(--cb-fs-16); font-weight: 600; text-align: left; cursor: pointer;
}
.cb-me-menu.is-side .cb-me:hover { background: var(--cb-page); }
.cb-me-menu.is-side .cb-me-initials { width: 44px; height: 44px; }
.cb-me-menu.is-side .ud-menu { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; width: 220px !important; }
.cb-me-menu .user-image { margin-left: 0; }
.cb-me-menu.is-side .cb-me-name { font-size: var(--cb-fs-16); font-weight: 600; color: var(--cb-action); }

/* A page's main "new" button as a round black + (Orders, Sales). */
.cb-plus-button {
    display: inline-flex !important; align-items: center; justify-content: center; width: 44px !important; height: 44px !important;
    min-width: 0 !important; min-height: 44px; padding: 0 !important; border-radius: 50% !important;
    font-size: var(--cb-fs-24) !important; font-weight: 500 !important; line-height: 1;
}

/* ---- /demo/: logo options in the style of the farm drawings (laptop only) ---- */
.cb-logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1200px) { .cb-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cb-logo-grid { grid-template-columns: 1fr; } }
.cb-logo-option { margin: 0; padding: 18px !important; display: flex; flex-direction: column; gap: 10px; }
.cb-logo-option figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.cb-logo-option figcaption span { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-logo-stage { overflow: hidden; min-height: 92px; display: flex; align-items: center; padding: 16px 18px; border-radius: 16px; color: var(--cb-action); }
.cb-logo-stage.is-page { background: var(--cb-page); }
.cb-logo-stage.is-card { background: var(--cb-card); border: 1px solid var(--cb-pill); }
.cb-logo-stage.is-band { background: var(--cb-brand); color: var(--cb-card); }
.cb-logo-stage.is-band img { filter: invert(1); }
.cb-logo-stage.is-small { min-height: 56px; padding: 10px 14px; font-size: 13px; }
.cb-logo, .cb-logo * { color: inherit !important; }
.cb-logo { display: inline-flex; align-items: center; gap: .7em; font-size: 16px; line-height: 1; }
.cb-logo-stage.is-small .cb-logo { font-size: 12px; }
.cb-logo.is-now { font-family: 'Inter', sans-serif; font-size: 1.25em; font-weight: 700; letter-spacing: -.05em; }
.cb-logo-words { display: flex; flex-direction: column; gap: .3em; white-space: nowrap; }
.cb-logo-words strong { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 1.45em; letter-spacing: -.01em; }
.cb-logo-words small { font-family: Georgia, 'Times New Roman', serif; font-size: .62em; text-transform: uppercase; letter-spacing: .28em; opacity: .8; }
.cb-logo.is-seal strong { text-transform: uppercase; letter-spacing: .06em; font-size: 1.2em; }
.cb-logo-ring { flex: none; width: 3.6em; height: 3.6em; border-radius: 50%; border: 3px double currentColor; display: grid; place-items: center; overflow: hidden; padding: .45em; }
.cb-logo-ring img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.cb-logo.is-rooster img { height: 3.2em; width: auto; }
.cb-logo.is-rooster strong { font-style: italic; font-size: 1.6em; }
.cb-logo.is-label { flex-direction: column; gap: .3em; padding: .55em 1.2em; border: 3px double currentColor; border-radius: 4px; }
.cb-logo.is-label strong { font-family: Georgia, 'Times New Roman', serif; text-transform: uppercase; letter-spacing: .32em; font-size: 1.05em; margin-right: -.32em; }
.cb-logo-rule { display: block; width: 100%; height: 1px; background: currentColor; opacity: .7; position: relative; }
.cb-logo-rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: .45em; height: .45em; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.cb-logo-stage.is-page .cb-logo-rule::after, .cb-logo-stage.is-card .cb-logo-rule::after { box-shadow: 0 0 0 .25em var(--cb-card); }
.cb-logo-stage.is-page .cb-logo-rule::after { box-shadow: 0 0 0 .25em var(--cb-page); }
.cb-logo-stage.is-band .cb-logo-rule::after { box-shadow: 0 0 0 .25em var(--cb-brand); }

/* ---- Home: Getting started (templates/main/hubs/_home_setup.html) ---- */
.cb-home-setup { margin: 0 0 24px; padding: 20px 22px; border-radius: 20px; background: var(--cb-card); box-shadow: var(--cb-card-shadow); }
.cb-home-setup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cb-home-setup-head h2 { margin: 0; font-size: var(--cb-fs-20) !important; font-weight: 700; color: var(--cb-action); }
.cb-home-setup-head p { margin: .15rem 0 0; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-home-setup-head form { margin: 0; }
.cb-home-setup-hide { border: 0; background: none; padding: .25rem; color: var(--cb-ink-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cb-home-setup-bar { height: 6px; margin: 12px 0 8px; border-radius: 999px; background: var(--cb-pill); overflow: hidden; }
.cb-home-setup-bar span { display: block; height: 100%; border-radius: inherit; background: var(--cb-brand); }
.cb-home-setup-steps { list-style: none; margin: 0; padding: 0; }
.cb-home-setup-steps li { display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-top: 1px solid var(--cb-pill); }
.cb-home-setup-steps li:first-child { border-top: 0; }
.cb-home-setup-steps li.is-next { margin: 4px -8px; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--cb-mist); }
.cb-home-setup-steps li.is-next + li { border-top: 0; }
.cb-home-setup-tick { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cb-pill); font-size: var(--cb-fs-14); font-weight: 700; color: var(--cb-action); }
.is-done .cb-home-setup-tick { background: var(--cb-mint); }
.is-next .cb-home-setup-tick { background: var(--cb-action); color: var(--cb-card); }
.cb-home-setup-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.cb-home-setup-text strong { font-size: var(--cb-fs-16); font-weight: 600; color: var(--cb-action); }
.is-done .cb-home-setup-text strong { color: var(--cb-ink-soft); font-weight: 400; text-decoration: line-through; }
.cb-home-setup-text span { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-home-setup-go { flex: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cb-home-setup-go a { min-height: 38px; padding: 0 1rem; display: inline-flex; align-items: center; border-radius: 999px; font-size: var(--cb-fs-14); text-decoration: none; }
.cb-home-setup-steps li:not(.is-next) .cb-home-setup-go { display: none; }
@media (max-width: 640px) {
    .cb-home-setup { padding: 16px; }
    .cb-home-setup-steps li.is-next { flex-wrap: wrap; }
    .cb-home-setup-steps li.is-next .cb-home-setup-go { width: 100%; justify-content: flex-start; padding-left: 44px; }
}

/* Home batch card: no feed table yet, so feed costs nothing (P2-13) */
.cb-bcard-hint { display: block; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin-top: .35rem; }

/* ---- components/forms-modern.css ---- */
/* =======================================
   Add / edit forms: white fields with a
   clear border and a focus ring, plain labels above them, the form in one
   card with full-width dividers, and the buttons in a footer bar.
   On phones theme.css takes over (it comes later).
======================================= */

/* The "cb" forms (Create Employee, Create Vaccination, New order...) */
.cb-title { max-width: 760px; margin: 1.25rem auto .9rem; font-size: var(--cb-fs-24); font-weight: 700; letter-spacing: -.01em; color: var(--cb-action); }
.cb-wrapper {
  max-width: 760px; margin: 0 auto 2rem; padding: 1.75rem 2rem;
  border: 1px solid var(--cb-pill); border-radius: 12px; box-shadow: var(--cb-shadow); background: var(--cb-card);
}
/* A form page's title line sits right above its card, same width */
.cb-page-head.is-form-head { max-width: 760px; margin-left: auto; margin-right: auto; align-items: center; }
.cb-page-head.is-form-head > h1 { flex: 1 1 0; min-width: 0; }
.cb-wrapper hr { margin: 1.5rem -2rem; border: 0; border-top: 1px solid var(--cb-pill); opacity: 1; }
.cb-wrapper hr.my-4 { margin: 1.5rem -2rem !important; }
.cb-input-group { margin-bottom: 1.1rem; }
.cb-form .cb-label, .cb-form .cb-input-group > label {
  display: block; margin: 0 0 .4rem; padding: 0; font-size: var(--cb-fs-14) !important; font-weight: 600; color: var(--cb-action); background: none;
}

.cb-form input[type="text"], .cb-form input[type="email"], .cb-form input[type="password"],
.cb-form input[type="tel"], .cb-form input[type="number"], .cb-form input[type="search"],
.cb-form input[type="url"], .cb-form input[type="date"], .cb-form select, .cb-form textarea,
.cb-wrapper .cb-text-input {
  width: 100%; min-height: 42px; padding: .55rem .8rem; border: 1px solid var(--cb-line-strong); border-radius: 8px;
  background-color: var(--cb-card); color: var(--cb-action); font-size: var(--cb-fs-16); box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.cb-form textarea { min-height: 6rem; }
.cb-form input:hover, .cb-form select:hover, .cb-form textarea:hover { border-color: var(--cb-ink-soft); }
.cb-form input:focus, .cb-form select:focus, .cb-form textarea:focus, .cb-wrapper .cb-text-input:focus {
  border-color: var(--cb-brand); box-shadow: 0 0 0 3px var(--cb-brand-soft); outline: none;
}
.cb-form input::placeholder, .cb-form textarea::placeholder { color: var(--cb-ink-soft); }
.cb-form .inactive-input, .cb-form input:disabled { background-color: var(--cb-page) !important; border: 1px dashed var(--cb-line-strong) !important; color: var(--cb-ink-soft) !important; }
.cb-wrapper .select2-container--default .select2-selection--multiple { background-color: var(--cb-card) !important; border: 1px solid var(--cb-line-strong) !important; border-radius: 8px; padding: .4rem .6rem; }

/* Notes inside a form: quiet boxes, not loud ones */
.cb-subtitle, .cb-subtitle-orange, .cb-subtitle-red { box-sizing: border-box; border-radius: 8px; padding: .75rem 1rem; font-size: var(--cb-fs-14); line-height: 1.45; }
.cb-switch input:checked + .cb-slider { background-color: var(--cb-brand); }

/* The buttons: a footer bar along the bottom of the card */
.cb-wrapper .cb-form-actions {
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .6rem;
  margin: 1.75rem -2rem -1.75rem; padding: 1rem 2rem;
  border-top: 1px solid var(--cb-pill); background: var(--cb-page); border-radius: 0 0 12px 12px;
}

/* The older "global" forms (settings, wages, capex, feed tables...) */
.global-form label:not(.unit-label):not(.measurement-unit):not(.form-check-label):not(.cb-switch):not(.btn) {
  display: block; margin: 0 0 .4rem; padding: 0; background: none; border-radius: 0;
  font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-action);
}
.global-form input[type="text"], .global-form input[type="email"], .global-form input[type="number"],
.global-form input[type="date"], .global-form input[type="password"], .global-form input[type="tel"],
.global-form select, .global-form textarea {
  min-height: 42px; padding: .55rem .8rem; border: 1px solid var(--cb-line-strong); border-radius: 8px;
  color: var(--cb-action); font-weight: 400; font-size: var(--cb-fs-16);
}
.global-form select { padding-right: 2rem; background-position: right .5rem center; }
.global-form input[type="text"]:not(.inactive-input):hover, .global-form input[type="email"]:not(.inactive-input):hover,
.global-form input[type="number"]:not(.inactive-input):hover, .global-form input[type="date"]:not(.inactive-input):hover,
.global-form input[type="password"]:not(.inactive-input):hover, .global-form select:not(.inactive-input):hover,
.global-form textarea:not(.inactive-input):hover { border-color: var(--cb-ink-soft); box-shadow: none; }
.global-form input[type="text"]:not(.inactive-input):focus, .global-form input[type="email"]:not(.inactive-input):focus,
.global-form input[type="number"]:not(.inactive-input):focus, .global-form input[type="date"]:not(.inactive-input):focus,
.global-form input[type="password"]:not(.inactive-input):focus, .global-form select:not(.inactive-input):focus,
.global-form textarea:not(.inactive-input):focus { border-color: var(--cb-brand); box-shadow: 0 0 0 3px var(--cb-brand-soft); }
.global-form input::placeholder, .global-form textarea::placeholder { color: var(--cb-ink-soft); }
.global-form .inactive-input { background-color: var(--cb-page) !important; color: var(--cb-ink-soft); border: 1px dashed var(--cb-line-strong); }

/* A form split into parts: a small heading and a line of help for each */
.cb-form-section { margin: 0 0 1rem; font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); }
.cb-form-hint { margin: -.6rem 0 1rem; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }

/* Two or three choices side by side, one lit (Male / Female / Straight run) */
.cb-segmented { display: inline-flex; padding: 3px; margin-bottom: 1rem; border-radius: 10px; background: var(--cb-page); border: 1px solid var(--cb-pill); }
.cb-segmented button {
  border: 0; background: none; padding: .45rem 1rem; border-radius: 8px;
  font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-ink-soft); cursor: pointer;
}
.cb-segmented button[aria-pressed="true"] { background: var(--cb-card); color: var(--cb-action); box-shadow: 0 1px 2px color-mix(in srgb, var(--cb-action) 12.0%, transparent); }

/* Feed table forms: the day-by-day table and its value pop-up */
.cb-ft-none { margin: .55rem 0 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-ft-none a { color: var(--cb-brand); font-weight: 600; }
.cb-ft-table { border: 1px solid var(--cb-pill); border-radius: 10px; overflow: hidden; }
.cb-ft-table table { width: 100%; border-collapse: collapse; margin: 0; }
.cb-ft-table th { padding: .6rem .8rem; background: var(--cb-page); font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-ink-soft); text-align: left; }
.cb-ft-table td { padding: .35rem .8rem; border-top: 1px solid var(--cb-pill); height: auto; }
.cb-ft-table td:first-child, .cb-ft-table th:first-child { width: 4.5rem; color: var(--cb-ink-soft); }
.cb-ft-table .editable-cell input { min-height: 36px; }
.cb-ft-add { margin-top: .75rem; }
.cb-ft-modal { padding: .25rem .5rem .5rem; }
.cb-ft-question { margin: 0 0 1rem; color: var(--cb-action); }
.cb-ft-units { display: flex; justify-content: flex-end; gap: .25rem; margin: -.25rem 0 1rem; }
.cb-ft-modal-save { display: flex; justify-content: flex-end; }

@media (max-width: 768px) {
  /* The card has 1rem of padding on a phone, so the lines and footer reach its edges with 1rem */
  .cb-wrapper hr, .cb-wrapper hr.my-4 { margin: 1.25rem -1rem !important; }
  .cb-wrapper .cb-form-actions { margin: 1.5rem -1rem -1.25rem; padding: 1rem; flex-direction: column-reverse; }
  .cb-wrapper .cb-form-actions > * { width: 100%; text-align: center; justify-content: center; }
  .cb-ft-table td, .cb-ft-table th { padding-left: .5rem; padding-right: .5rem; }
}

/* Form pages on a computer: two short fields per line (first and last name,
   email and mobile...), so a form fits on one screen. Long things (notes,
   tick boxes, headings, lines, tables) keep the whole width. Phones keep one
   field per line. */
@media (min-width: 992px) {
    .cb-page-form .cb-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
    .cb-page-form .cb-form > * { grid-column: 1 / -1; }
    .cb-page-form .cb-form > .cb-input-group:not(.cb-row):not(:has(textarea, input[type="checkbox"], input[type="radio"], input[type="file"], table, .cb-switch-wrapper)) { grid-column: auto; }
    .cb-page-form .cb-form .cb-row.cb-input-group { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 20px; align-items: start; }
}

/* ---- components/mobile.css ---- */
/* =======================================
   Phones (768px and narrower)
   The desktop sidebar is hidden; the top bar's menu and the bottom bar
   take its place, and pages use the full width.
======================================= */
.cb-bottom-nav { display: none; }
/* Same as Bootstrap's rule, kept here so a closed menu stays hidden even if
   Bootstrap's styles didn't load (offline, slow connection). */
.collapse:not(.show) { display: none; }

/* "Install the app" prompt (static/js/pwa.js) */
.cb-install {
    position: fixed; left: .75rem; right: .75rem; bottom: 4.5rem; z-index: 1003;
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
    max-width: 30rem; margin: 0 auto; padding: .85rem 1rem;
    background: var(--cb-action); color: var(--cb-card); border-radius: .75rem; box-shadow: 0 8px 24px color-mix(in srgb, var(--cb-action) 20.0%, transparent);
}
.cb-install img { border-radius: .5rem; background: var(--cb-card); }
.cb-install-text { flex: 1 1 12rem; font-size: var(--cb-fs-16); line-height: 1.35; color: var(--cb-card); }
.cb-install-actions { display: flex; gap: .5rem; margin-left: auto; }
.cb-install button { min-height: 2.5rem; padding: 0 1rem; border-radius: .5rem; font-weight: 700; border: 1px solid var(--cb-card); }
.cb-install-go { background: var(--cb-brand); border-color: var(--cb-brand) !important; color: var(--cb-card); }
.cb-install-close { background: transparent; color: var(--cb-card); }
@media (min-width: 769px) { .cb-install { bottom: 1rem; } }

@media (max-width: 768px) {
    .main-sidebar, aside.sidebar { display: none !important; }
    .container-fluid:has(.sidebar) .content-area,
    .content-area { margin-left: 0; margin-top: 4.5rem; padding-bottom: 5.5rem; }
    /* Without this, one wide item (a carousel, a long word) stretches the whole
       page past the screen edge, and iPhones then show it cut off. */
    .content-area, .content-area-blog { min-width: 0; }
    /* Sign in / Sign up: the hen picture took a third of the card; keep the form. */
    
    /* Full-screen, scrollable menu from the top bar's ☰ button */
    .navbar .navbar-collapse { position: fixed; top: 3.5rem; left: 0; right: 0; bottom: 0; background: var(--cb-card); overflow-y: auto; z-index: 1001; }
    .cb-mobile-menu { display: block; padding: .5rem 1rem 6rem; }
    .cb-mobile-menu li { list-style: none; }
    .cb-mobile-menu .mobile-menu-item { display: block; padding: .85rem .25rem; font-size: var(--cb-fs-16); color: var(--cb-action); text-decoration: none; border-bottom: 1px solid var(--cb-pill); }

    /* Bottom bar with big tap targets */
    .cb-bottom-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1002;
        background: var(--cb-card); border-top: 1px solid var(--cb-pill);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .cb-bottom-nav a, .cb-bottom-nav button {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
        min-height: 3.5rem; font-size: var(--cb-fs-12); font-weight: 600; color: var(--cb-ink-soft);
        text-decoration: none; background: none; border: 0; gap: .1rem;
    }
    .cb-bottom-nav .cb-svg { width: 1.5rem; height: 1.5rem; }
    .cb-bottom-nav .is-active { color: var(--cb-brand); }

    /* Forms and tables everywhere: comfortable on a phone */
    /* Under 16px, iPhones zoom in when a field is tapped and stay zoomed, so the
       page looks cut off. Form styles elsewhere set 14-15px, hence !important. */
    input, select, textarea, .select2-selection { font-size: var(--cb-fs-16) !important; }
    .global-form input, .global-form select, .global-form textarea { min-height: 2.75rem; }
    .black-button, .gray-button, .preset-button { min-height: 2.75rem; }
    table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table.cb-order-sums { display: table; } /* two short columns: always the full width */
    .page-body.max-width, .max-width { max-width: 100%; padding-left: .75rem; padding-right: .75rem; }
    .page-heading { flex-wrap: wrap; gap: .5rem; }
    .page-heading .left-section, .page-heading .right-section { width: 100%; }
    .tile-main { flex-direction: column; }
    /* auto rather than 100%, so the tile's own side margins don't push it off the screen */
    .tile-side { width: auto !important; align-self: stretch; }
    .modal-dialog { margin: .5rem; left: 0; }  /* the desktop nudge pushed pop-ups off the phone's left edge */

    /* Add / edit forms: use the screen width */
    .cb-title { padding: 0 1rem; }
    .cb-wrapper { padding: 1.25rem 1rem; border-radius: .75rem; }
    .cb-row:not(.cb-rows > .cb-row) { flex-direction: column; gap: 0; }
    .cb-row > .cb-col { flex: none; width: 100%; }
    .cb-row > .cb-col + .cb-col { margin-top: 1.25rem; }
    .cb-form .cb-row.cb-input-group:not(.cb-rows > .cb-row) { gap: 1.25rem; } /* .cb-form zeroes the col margin above */

    /* List pages: stack the filter tabs, search box and sort link */
    .lt-header-tile { flex-direction: column; gap: .5rem; }
    .lt-header-tile > [class*="-tile-section"] { width: 100% !important; border: 0 !important; }
    .status-nav ul { flex-wrap: wrap; justify-content: center; gap: .25rem; margin: 0; }
    .search-input { flex: 1; min-width: 0; width: auto; }
    .tile { min-width: 0; max-width: 100%; }
    /* Settings pages: drop the desktop nudge to the left that cut off their left edge */
    .page-body-settings { transform: none; }
    .page-body-settings .tile-container > .tile { width: auto !important; margin-left: .75rem; margin-right: .75rem; }
    /* The settings menu becomes two columns of buttons, so the page itself is not pushed far down */
    .settings-sidebar ul { margin-bottom: .25rem; }
    .settings-sidebar ul + ul { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
    .settings-sidebar ul + ul .nav-link { padding: 8px 10px; border-radius: .5rem; background: var(--cb-page); font-size: .85em; line-height: 1.25; height: 100%; }
    .settings-sidebar .nav-link.back-home-link { padding: 4px 10px; }
    /* Detail pages: label-and-value lines (Phone, Email, Website) stack instead of squeezing into one row */

    /* Layer flock timeline: two periods per row, in date order, instead of a table cut off at the side */

    /* Side boxes on detail pages (address, employment): a long line wraps instead of
       printing over the next one (their line height is 0 on desktop) */
    .st-body p, .st-bottom p { line-height: 1.35; margin-bottom: .6rem; }
    .st-body p > span, .st-bottom p > span { overflow-wrap: anywhere; }
    .st-body p.flex-row, .st-bottom p.flex-row { display: flex; align-items: flex-start; }
    .st-body p.flex-row > span:first-child, .st-bottom p.flex-row > span:first-child { flex: 0 0 auto; }
    .st-body p.flex-row > span + span, .st-bottom p.flex-row > span + span { min-width: 0; }
    /* One-day edit pages (deaths, weight, hatch date): the form uses the full width */
    .tile-edit-parent { height: auto; display: block; }
    .tile-edit { width: auto; padding: 1.25rem 1rem; }
    /* Profile photo: the text sits beside the picture and the button goes underneath */

    /* List titles line up with the tiles under them */
    .list-title-container h1 span.page-title { margin-left: 0; }
    /* Vaccines list: tabs, search and the Preload button go on their own lines */
                        /* Budget: the planned amount box is wide enough for 16000 */
    .cb-budget .cb-budget-table th, .cb-budget .cb-budget-table td { padding-left: .35rem; padding-right: .35rem; }
    .cb-budget .cb-budget-table input { min-width: 4.75rem; padding: .4rem .35rem; }

    /* Dashboard and report tiles: two numbers per row instead of five */
    .report-sf-row { flex-wrap: wrap; row-gap: .75rem; }
    /* !important beats the inline widths some report pages set on these cells */
    .report-sf-cell { flex: 1 1 45% !important; min-width: 0; align-items: flex-start; padding: 0 .5rem 0 0; margin-left: 0 !important; text-align: left !important; }
    .report-sf-cell:first-child { flex: 0 0 100% !important; }
    .report-sf-value-row { justify-content: flex-start !important; }
    .report-sf-value { font-size: var(--cb-fs-20); white-space: normal; }
    .report-tiles-wrapper { padding-right: 0; }
    .report-tile-container > .report-tile,
    .report-tile-container > .report-column { flex: 1 1 100% !important; max-width: 100% !important; min-width: 0; }
    /* Small tiles stacked in a column (labour report: Saturday hours, sick leave...) keep their own height */
    .report-column { min-height: 0 !important; height: auto !important; }
    .report-column > .report-tile { flex: 0 0 auto !important; height: auto !important; }

    /* Home page: the round shortcut buttons wrap in a taller dark tile */
                    
    /* Free-trial / upgrade pop-up: fit the screen, one column, scroll inside */
                        .report-tile, .report-sf-chart { min-width: 0; max-width: 100%; }

    /* Page titles: smaller, wrap neatly, and the line under them starts at
       the left edge instead of floating in the middle. */
    .page-heading { width: 100%; padding: 0 .75rem; box-sizing: border-box; }
    .page-title-container { margin-left: 0; flex-wrap: wrap; align-items: center; }
    .page-title-container h1 { font-size: var(--cb-fs-20); line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .35rem; }
    .page-subtitle { margin-left: 0; display: block; font-size: var(--cb-fs-14); }
    .page-heading .right-section { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-start; }

    /* Report tables inside tiles: a little smaller, and a number stays on
       one line with its unit and its arrow ("3468.14 kg", "↓ 15.5 %"). */
    .report-breakdown { font-size: var(--cb-fs-14); }
    .report-breakdown__row > [class*="report-breakdown__col-"] { padding-left: 4px; }
    .report-breakdown__value, .report-breakdown__delta { white-space: nowrap; }

    /* Tiles keep their desktop height (550px) only where there's room;
       on a phone that left a screen of empty space under short lists. */
    .min-height { min-height: 0; }
    .report-tile { min-height: 0 !important; }

    /* Detail pages (a batch's costs, an order, a client...): the main
       column and the side column stack instead of squeezing side by side,
       and their small label/amount tables use the full width. */
    .tile-container { flex-direction: column; gap: .75rem; }
    .tile-container > .tile-main,
.tile-container > .tile-side { width: auto !important; max-width: 100%; align-self: stretch; }
    .mt-body-tile table, .mt-body-tile-details table, .tile-side table { display: table; width: 100%; }
    .mt-body-tile th:first-child, .mt-body-tile td:first-child,
    .mt-body-tile-details th:first-child, .mt-body-tile-details td:first-child { position: static; }
    .mt-header-tile { flex-wrap: wrap; }
    /* Their labels wrap onto a second line instead of being cut off
       ("Delivery Cost (Edit"), and the amounts stay on one line. */
    .mt-body-tile td, .mt-body-tile-details td, .tile-side td { white-space: normal; overflow: visible; height: auto; padding: 10px 8px; }
    .mt-body-tile td.text-right, .mt-body-tile-details td.text-right { white-space: nowrap; }
    .mt-body-tile, .mt-body-tile-details { padding: .6rem; }

    /* Action buttons at the bottom of a page: full width, one under the other */
    .tile-buttons { flex-direction: column-reverse; align-items: stretch; padding: 0 .75rem; gap: .6rem; }
    .tile-buttons > a, .tile-buttons > button, .tile-buttons > form > button { width: 100%; text-align: center; justify-content: center; }
    /* A list page's buttons sit in a row under its title */
    .cb-page-actions { width: 100%; margin: 0 0 .25rem; top: 0; }
    .cb-page-actions > a { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; text-align: center; }

    /* Page numbers wrap onto a second line and are big enough to tap */
    .pagination { flex-wrap: wrap; justify-content: center; row-gap: .5rem; max-width: 100%; }
    .pagination a, .pagination button { height: auto; min-width: 2.25rem; padding: .45rem .6rem; margin: 0 3px; text-align: center; font-size: var(--cb-fs-14); }

    /* Tables that scroll sideways keep their first column (the row names)
       in view. */
    table th:first-child, table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--cb-card); }
    table thead th:first-child { background: inherit; }
}

/* Phone: tick boxes and the links in tables big enough for a thumb
   (all-farmers audit AF-12: tick boxes were 13-19 px, batch and order links 17-20 px tall). */
@media (max-width: 768px) {
    main :not([class*="cb-switch"]):not(.form-switch) > input[type="checkbox"],
    main :not([class*="cb-switch"]):not(.form-switch) > input[type="radio"] { min-width: 24px; min-height: 24px; accent-color: var(--cb-brand); }
    main td > a, main td > strong > a, main li > a:only-child { display: inline-block; padding-block: .5rem; }
}

/* ---- components/theme.css ---- */
/* =======================================
   Friendly phone design
   One calm look for the phone: a light grey page, white cards with soft edges, one clear main
   button per screen in the brand teal (the app icon's colour), big tap
   targets and plain text. Loaded last, so it sits on top of the older
   page styles. Colours come from palette.css.
======================================= */
:root {
    /* Colours live in palette.css; these are the shapes. */
    --cb-radius: 14px;
    --cb-radius-sm: 10px;
    --cb-shadow: 0 1px 2px color-mix(in srgb, var(--cb-action) 5.0%, transparent), 0 1px 3px color-mix(in srgb, var(--cb-action) 4.0%, transparent);
    --cb-tap: 48px;               /* smallest comfortable thing to tap */
}

.cb-top-signin { display: none; }

@media (max-width: 768px) {
    html, body { background: var(--cb-page); }
    body { color: var(--cb-action); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }

    /* ---------- Top bar ---------- */
    .navbar {
        height: 56px; padding: 0 .5rem 0 1rem; flex-wrap: nowrap; align-items: center;
        /* Solid white: a blur here would trap the full-screen "More" menu inside the bar. */
        background: var(--cb-card);
        border-bottom: 1px solid var(--cb-pill);
    }
    .navbar .logo-link { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; margin-right: auto; }
    .mobile-logo-text { margin: 0; padding: 0; font-size: var(--cb-fs-18); font-weight: 700; text-transform: uppercase; letter-spacing: -.05em; color: var(--cb-action); }
    .navbar .cb-bell {
        margin: 0 4px 0 0; width: var(--cb-tap); height: var(--cb-tap); justify-content: center; border-radius: 50%; color: var(--cb-action);
    }
    .navbar .cb-bell .cb-svg { width: 1.5rem; height: 1.5rem; }
    .navbar .cb-bell-count { top: 4px; left: 24px; right: auto; border: 2px solid var(--cb-card); box-sizing: content-box; }
    .navbar-toggler { margin: 0; width: var(--cb-tap); height: var(--cb-tap); padding: 16px 13px; border-radius: 50%; }
    .navbar-toggler .line { height: 2px; border-radius: 2px; background: var(--cb-action); }
    /* Signed in, the bottom bar's "More" opens the same menu, so the top bar stays simple. */
    .navbar.is-signed-in .navbar-toggler { display: none; }
    .cb-top-signin {
        display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; margin-right: .25rem;
        border-radius: 999px; background: var(--cb-brand); color: var(--cb-card) !important; font-weight: 600; font-size: var(--cb-fs-16); text-decoration: none;
    }

    .container-fluid:has(.sidebar) .content-area,
    .content-area { margin-top: 56px; padding-top: .75rem; padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }

    /* ---------- "More" menu: grouped lists, like phone settings ---------- */
    .navbar .navbar-collapse { top: 56px; background: var(--cb-page); }
    .cb-mobile-menu { padding: .5rem 1rem calc(7rem + env(safe-area-inset-bottom)); align-items: stretch; }
    .cb-mobile-menu .mobile-menu-item {
        position: relative; display: flex; align-items: center; min-height: 52px; margin: 0; padding: .75rem 2.25rem .75rem 1rem;
        background: var(--cb-card); border: 0; border-bottom: 1px solid var(--cb-pill);
        font-size: var(--cb-fs-16); font-weight: 500; text-align: left; color: var(--cb-action);
    }
    .cb-mobile-menu .mobile-menu-item::after {
        content: ""; position: absolute; right: 1.1rem; top: 50%; width: 8px; height: 8px; margin-top: -5px;
        border-right: 2px solid var(--cb-line-strong); border-top: 2px solid var(--cb-line-strong); transform: rotate(45deg);
    }
    .cb-mobile-menu .mobile-menu-item:hover, .cb-mobile-menu .mobile-menu-item:active { text-decoration: none; background: var(--cb-page); color: var(--cb-action); }
    /* Round the first and last row of each group */
    .cb-mobile-menu > li:first-child .mobile-menu-item { border-top-left-radius: var(--cb-radius-sm); border-top-right-radius: var(--cb-radius-sm); }
    .cb-mobile-menu > li:last-child .mobile-menu-item { border-bottom: 0; border-bottom-left-radius: var(--cb-radius-sm); border-bottom-right-radius: var(--cb-radius-sm); }

    /* ---------- Bottom bar ---------- */
    .cb-bottom-nav {
        background: color-mix(in srgb, var(--cb-card) 95.0%, transparent);
        -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
        border-top: 1px solid var(--cb-pill);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .cb-bottom-nav a, .cb-bottom-nav button {
        min-height: 52px; gap: 2px; font-size: var(--cb-fs-12); font-weight: 600; color: var(--cb-ink-soft); letter-spacing: .01em;
    }
    .cb-tab-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 30px; border-radius: 999px; transition: background-color .15s ease; }
    .cb-bottom-nav .cb-svg { width: 1.45rem; height: 1.45rem; }
    .cb-bottom-nav .is-active { color: var(--cb-brand); }
    .cb-bottom-nav .is-active .cb-tab-icon { background: var(--cb-brand-soft); }
    .cb-bottom-nav button[aria-expanded="true"] { color: var(--cb-brand); }
    .cb-bottom-nav button[aria-expanded="true"] .cb-tab-icon { background: var(--cb-brand-soft); }
    /* While the menu is open, only "More" is lit */
    .cb-bottom-nav:has(button[aria-expanded="true"]) a.is-active { color: var(--cb-ink-soft); }
    .cb-bottom-nav:has(button[aria-expanded="true"]) a.is-active .cb-tab-icon { background: none; }

    /* ---------- Buttons ---------- */
    .black-button, .today-save {
        min-height: var(--cb-tap); border-radius: var(--cb-radius-sm);
        background: var(--cb-action); border-color: var(--cb-action); color: var(--cb-card); font-weight: 600;
    }
    .black-button:hover, .today-save:hover { background: var(--cb-action); border-color: var(--cb-action); color: var(--cb-card); }
    .gray-button { min-height: 44px; border-radius: var(--cb-radius-sm); font-weight: 600; }
    a.gc-blue, .gc-blue { color: var(--cb-brand); font-weight: 600; }
    input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cb-brand) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cb-brand) 18.0%, transparent) !important; }

    /* ---------- Cards ---------- */
    .report-tile, .today-card, .tile, .cb-start {
        border: 1px solid var(--cb-pill); border-radius: var(--cb-radius); box-shadow: var(--cb-shadow); background: var(--cb-card);
    }
    .report-tile-container { padding: 0 1rem; gap: .75rem; margin-bottom: .75rem; }
    .report-tiles-wrapper { padding: 0; }

    .cb-view-switch { background: var(--cb-pill); border: 0; padding: 3px; }
    .cb-view-switch button { min-height: 36px; padding: 0 1.1rem; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
    .cb-view-switch button.is-on { background: var(--cb-card); color: var(--cb-action); box-shadow: 0 1px 3px color-mix(in srgb, var(--cb-action) 12.0%, transparent); }

    /* Number tiles: label small and grey, number big and dark */
    .report-sf-label, .report-tile h3 { color: var(--cb-ink-soft); text-decoration: none; border-bottom: 0; }
    .report-sf-value { font-size: var(--cb-fs-24); font-weight: 700; letter-spacing: -.02em; color: var(--cb-action); }
    .report-sf-sub { display: inline-flex; margin-top: .35rem; padding: .2rem .6rem; border-radius: 999px; background: var(--cb-brand-soft); color: var(--cb-brand); font-size: var(--cb-fs-14); font-weight: 600; text-decoration: none; }
    .report-sf-sub:empty { display: none; }
    .report-chart.report-sf-chart { min-height: 13rem; }
    .chart-dropdown-toggle { min-height: 40px; border-radius: 999px !important; padding: 0 1rem !important; }

    /* ---------- Today ---------- */
    .today { padding-top: .25rem; }
    .today h1 { font-size: var(--cb-fs-24); font-weight: 700; letter-spacing: -.02em; }
    .today .lead { font-size: var(--cb-fs-16); line-height: 1.45; }
    .today .today-days { margin: 0 -1rem 1rem; padding: 0 1rem .25rem; scrollbar-width: none; }
    .today .today-days::-webkit-scrollbar { display: none; }
    .today .today-days a { min-height: 40px; display: inline-flex; align-items: center; border-color: var(--cb-pill); background: var(--cb-card); }
    .today .today-days a.is-active { background: var(--cb-brand); border-color: var(--cb-brand); }
    .today .today-card { padding: 1.1rem 1rem; border-radius: var(--cb-radius); box-shadow: var(--cb-shadow); }
    .today .today-card h2 { font-size: var(--cb-fs-18); font-weight: 700; display: flex; align-items: center; gap: .4rem; }
    .today .today-section { margin-top: .75rem; font-size: var(--cb-fs-14); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--cb-ink-soft); }
    .today .today-eggs-first { grid-column: 1 / -1; display: block; padding: 12px 14px; border-radius: 12px; background: var(--cb-soft); color: var(--cb-action); font-weight: 600; text-decoration: none; }
    .today .today-field label { font-weight: 500; color: var(--cb-action); }
    .today .today-field input { min-height: 52px; border-color: var(--cb-line-strong); border-radius: var(--cb-radius-sm); background: var(--cb-card); }
    .today .today-field input:focus { outline: none; border-color: var(--cb-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cb-brand) 18.0%, transparent); }
    .today .today-save { min-height: 52px; margin-top: 1.25rem; font-size: var(--cb-fs-16); font-weight: 600; border-radius: var(--cb-radius-sm); background: var(--cb-action); color: var(--cb-card); }
    .today .today-save:hover { background: var(--cb-action); }
    .today .today-badge { padding: .25rem .65rem; font-weight: 600; }
    .today .today-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--cb-brand); font-weight: 600; }

            }

/* =======================================
   Round 2: list pages on the phone
   Rows become cards: the first column is the title, the others show as
   small "label / value" pairs (labels come from the table head, added by
   static/js/global/table.js). Filter tabs scroll sideways like app tabs.
======================================= */
/* "Sort By" menus that only hold placeholder choices (Option 1, Option 2...) do nothing; hide them. */

@media (max-width: 768px) {
    .page-body.max-width, .max-width { padding-left: 1rem; padding-right: 1rem; }
    .tile-main { gap: .75rem; }
    .tile-main > .tile, .tile-set-one { margin-left: 0; margin-right: 0; }

    /* Page titles */
    .list-title-container h1, .page-title-container h1 { font-size: var(--cb-fs-24); font-weight: 700; letter-spacing: -.02em; }
    .list-title-container h1 .page-title { color: var(--cb-action); }

    /* Filter tabs + search */
    .lt-header-tile { padding: .75rem; gap: .6rem; background: transparent; border: 0; box-shadow: none; }
    .lt-header-tile > [class*="-tile-section"] { padding: 0 !important; }
    .status-nav ul { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; gap: .4rem !important; padding: 0 0 .1rem; scrollbar-width: none; }
    .status-nav ul::-webkit-scrollbar { display: none; }
    .status-nav li { flex: none; }
    .status-nav .nav-link {
        display: inline-flex; align-items: center; min-height: 38px; padding: 0 .95rem; border-radius: 999px;
        border: 1px solid var(--cb-pill); background: var(--cb-card); color: var(--cb-action); font-weight: 600; font-size: var(--cb-fs-14); white-space: nowrap;
    }
    .status-nav .nav-link.active { background: var(--cb-brand); border-color: var(--cb-brand); color: var(--cb-card); }
    .search-input {
        min-height: 46px; padding: 0 2.75rem 0 1rem !important; border: 1px solid var(--cb-line-strong) !important; border-radius: var(--cb-radius-sm) !important; background: var(--cb-card);
    }
    .search-button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--cb-ink-soft); }
    .lt-header-tile:has(+ .tile) { margin-bottom: 0; }

    /* The list itself */
    .tile:has(> .min-height > table.cb-cards-ready), .tile:has(> table.cb-cards-ready) { padding: 0; overflow: hidden; }
    table.cb-cards-ready, table.cb-cards-ready tbody { display: block; width: 100%; overflow: visible; border: 0; }
    table.cb-cards-ready thead { display: none; }
    table.cb-cards-ready tr {
        position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem;
        padding: .9rem 2.5rem .9rem 1rem; border-bottom: 1px solid var(--cb-pill); background: var(--cb-card);
    }
    table.cb-cards-ready tr:last-child { border-bottom: 0; }
    table.cb-cards-ready tr:active { background: var(--cb-page); }
    /* Arrow on rows that open something */
    table.cb-cards-ready tr:has(a)::after {
        content: ""; position: absolute; right: 1.1rem; top: 1.25rem; width: 8px; height: 8px;
        border-right: 2px solid var(--cb-line-strong); border-top: 2px solid var(--cb-line-strong); transform: rotate(45deg);
    }
    table.cb-cards-ready td {
        display: block; position: static !important; width: auto !important; min-width: 0; max-width: none; height: auto; padding: 0 !important; border: 0 !important; overflow: visible !important;
        background: none !important; text-align: left !important; white-space: normal !important; font-size: var(--cb-fs-16); color: var(--cb-action);
    }
    table.cb-cards-ready td:first-child { grid-column: 1 / -1; font-size: var(--cb-fs-16); font-weight: 700; }
    table.cb-cards-ready td:first-child a { color: var(--cb-brand); text-decoration: none; }
    table.cb-cards-ready td[data-label]:not(:first-child)::before {
        content: attr(data-label); display: block; margin-bottom: .1rem; font-size: var(--cb-fs-12); font-weight: 500; color: var(--cb-ink-soft);
    }
    table.cb-cards-ready td[colspan] { grid-column: 1 / -1; }
    table.cb-cards-ready tr:has(> td[colspan]) { padding-right: 1rem; }
    table.cb-cards-ready tr:has(> td[colspan])::after { display: none; }
    table.cb-cards-ready td [class*="label-"] { display: inline-block; }

    /* Page numbers under a list */
    .pagination a, .pagination button { min-width: 40px; min-height: 40px; border-radius: var(--cb-radius-sm); }
    /* Big "Create ..." buttons under lists */
    .tile .black-button { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 768px) {
    /* "Sort by" / "All types" menus: a small pill on the right, under the search */

}
@media (max-width: 768px) {
    /* Tabs start at the left edge and scroll, instead of overflowing both sides from the middle */
    .lt-header-tile > [class*="-tile-section"]:has(.status-nav) { display: block; text-align: left; min-width: 0; }
    .status-nav { width: 100%; min-width: 0; }
    .status-nav ul { margin: 0 !important; }
}

/* =======================================
   Round 2: detail pages on the phone (a batch, an order, a client...)
   One card per section, the full width of the screen. Boxes that sat
   inside other boxes lose their own frame, so the page reads as clean
   sections instead of boxes in boxes.
======================================= */
@media (max-width: 768px) {
    .tile-main > .tile, .tile-container > .tile, .tile-main > .tile-container,
    .tile-container > .tile-main, .tile-container > .tile-side { width: auto !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
    .tile .tile, .tile .pv-tile {
        width: auto !important; max-width: 100%; margin: 0 !important; padding-left: 0; padding-right: 0;
        border: 0 !important; border-radius: 0; box-shadow: none !important; background: transparent;
    }
    .tile .tile + .tile, .tile .pv-tile + .pv-tile { border-top: 1px solid var(--cb-pill) !important; padding-top: 1rem; margin-top: .75rem !important; }
    .tile-main, .tile-container { gap: .75rem; }
    .tile { padding: 1rem; }

    /* Section headings inside cards */
    .tile h2, .tile h3, .tile .cb-subtitle, .st-header h3 { font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); }

    /* Edit / Print / Archive under a page title: light pills */
    .page-heading .right-section .gray-button, .page-heading .gray-button,
    .page-title-container + div .gray-button {
        min-height: 38px; padding: 0 1rem; border-radius: 999px; background: var(--cb-card); border: 1px solid var(--cb-pill); color: var(--cb-action); font-size: var(--cb-fs-14);
    }
    .page-heading .left-section > a:first-child { display: inline-flex; align-items: center; min-width: 40px; min-height: 40px; }

    /* Icon + text lines (phone, email, address) line up and wrap neatly */
    .tile .flex-row { display: flex; align-items: flex-start; gap: .6rem; }
    .tile .flex-row > i, .tile .flex-row > .fa, .tile .flex-row > [class*="fa-"] { flex: none; width: 1.1rem; margin-top: .2rem; text-align: center; color: var(--cb-ink-soft); }
    .tile .flex-row > span, .tile .flex-row > a, .tile .flex-row > p { min-width: 0; overflow-wrap: anywhere; margin: 0; }

    /* Small tables inside cards (items, payment summary) stay tables, just lighter */
    .tile .tile table, .mt-body-tile-details table { border: 0; }
    .tile table th { background: transparent; color: var(--cb-ink-soft); font-weight: 600; font-size: var(--cb-fs-14); }
    .tile table td, .tile table th { border-left: 0 !important; border-right: 0 !important; }
}
@media (max-width: 768px) {
    /* Edit / Print / Archive under a page title: light pills, easy to tap */
    .icons-container { display: flex; flex-wrap: wrap; gap: .5rem; }
    .icons-container .page-icon { text-decoration: none; }
    .edit-button, .print-button, .delete-button {
        min-height: 38px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--cb-pill);
        background: var(--cb-card); color: var(--cb-action); font-size: var(--cb-fs-14); font-weight: 600;
    }
    .delete-button { color: var(--cb-critical); }

    /* Key facts at the top of a detail page: two per row, label above value */
    .mt-header-tile:has(> .mt-header-tile-section) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .mt-header-tile:has(> .mt-header-tile-section) > :not(.mt-header-tile-section) { grid-column: 1 / -1; }
    .mt-header-tile .mt-header-tile-section {
        width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; text-align: left !important;
        display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 0;
    }
    .mt-header-tile .mt-header-tile-section h2 { margin: 0; font-size: var(--cb-fs-14); font-weight: 500; color: var(--cb-ink-soft); }
    .mt-header-tile .mt-header-tile-section > span, .mt-header-tile .mt-header-tile-section > p { font-size: var(--cb-fs-16); font-weight: 600; color: var(--cb-action); }
}

/* =======================================
   Round 2: add / edit forms on the phone
   White fields with a clear border (the grey ones looked like empty
   space), typed text in dark ink rather than placeholder grey, even
   spacing, and a full-width main button.
======================================= */
@media (max-width: 768px) {
    .cb-title { padding: 0 1rem; margin-bottom: .75rem; font-size: var(--cb-fs-24); font-weight: 700; letter-spacing: -.02em; color: var(--cb-action); }
    .cb-wrapper { margin: 0 1rem 1rem; width: auto; padding: 1.25rem 1rem; border: 1px solid var(--cb-pill); border-radius: var(--cb-radius); box-shadow: var(--cb-shadow); }
    .cb-wrapper hr { margin: 1.25rem 0; border-color: var(--cb-pill); opacity: 1; }
    .cb-input-group { margin-bottom: 1rem; }
    .cb-row > .cb-col + .cb-col { margin-top: 1rem; }
    .cb-label { font-size: var(--cb-fs-14) !important; font-weight: 600; color: var(--cb-action); margin: 0 0 .35rem; padding: 0; }

    .cb-form input[type="text"], .cb-form input[type="email"], .cb-form input[type="password"],
    .cb-form input[type="tel"], .cb-form input[type="number"], .cb-form input[type="search"],
    .cb-form input[type="url"], .cb-form input[type="date"], .cb-form select, .cb-form textarea,
    .cb-wrapper .cb-text-input, .cb-wrapper .select2-selection {
        min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--cb-line-strong) !important; border-radius: var(--cb-radius-sm);
        background-color: var(--cb-card); color: var(--cb-action);
    }
    .cb-form textarea { min-height: 6.5rem; }
    .cb-form input::placeholder, .cb-form textarea::placeholder { color: var(--cb-ink-soft); }
    .cb-form .inactive-input, .cb-form input:disabled { background-color: var(--cb-page) !important; border: 1px dashed var(--cb-line-strong) !important; color: var(--cb-ink-soft) !important; }
    .cb-subtitle, .cb-subtitle-orange, .cb-subtitle-red { border-radius: var(--cb-radius-sm); font-size: var(--cb-fs-14); line-height: 1.45; }
    .cb-input-checkbox, .cb-form input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--cb-brand); }

    /* The form's main button: full width at the bottom */
    .cb-wrapper button[type="submit"].black-button, .cb-wrapper input[type="submit"].black-button,
    .cb-wrapper .cb-form-actions .black-button { width: 100%; min-height: 52px; font-size: var(--cb-fs-16); }
}

@media (max-width: 768px) {
    /* Settings: the section menu is a row of pills that scrolls sideways,
       with the current section lit; Home is already in the bottom bar. */
    .settings-sidebar { padding: 0 !important; margin: 0 0 .75rem !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
    .settings-sidebar ul:first-child { display: none; }
    .settings-sidebar .settings-group { display: none; }
    .settings-sidebar ul + ul {
        display: flex !important; gap: .4rem !important; overflow-x: auto; padding: 0 1rem .25rem !important; margin: 0 !important; scrollbar-width: none;
    }
    .settings-sidebar ul + ul::-webkit-scrollbar { display: none; }
    .settings-sidebar ul + ul li { flex: none; }
    .settings-sidebar ul + ul .nav-link {
        display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .95rem !important; border-radius: 999px !important;
        background: var(--cb-card) !important; border: 1px solid var(--cb-pill); color: var(--cb-action) !important; font-size: var(--cb-fs-14) !important; font-weight: 600; white-space: nowrap; height: auto !important;
    }
    .settings-sidebar ul + ul .nav-link i { color: var(--cb-ink-soft); }
    .settings-sidebar ul + ul .nav-link.active { background: var(--cb-brand) !important; border-color: var(--cb-brand); color: var(--cb-card) !important; }
    .settings-sidebar ul + ul .nav-link.active i { color: var(--cb-card); }
}
@media (max-width: 768px) {
    .page-body-settings .tile-container > .tile:has(> .settings-sidebar) { padding: 0; margin: 0 1rem 1rem !important; width: auto !important; background: transparent; border: 0; box-shadow: none; }
    .page-body-settings .tile-container > .tile { margin-left: 1rem !important; margin-right: 1rem !important; }
}
@media (max-width: 768px) {
    /* Tighter list cards, so more rows fit on one screen */
    table.cb-cards-ready tr { gap: .35rem .9rem; padding: .75rem 2.25rem .8rem 1rem; }
    table.cb-cards-ready td { font-size: var(--cb-fs-14); line-height: 1.3; }
    table.cb-cards-ready td:first-child { font-size: var(--cb-fs-16); }
    table.cb-cards-ready td[data-label]:not(:first-child)::before { font-size: var(--cb-fs-12); margin-bottom: 0; }
    table.cb-cards-ready tr:has(a)::after { top: 1.05rem; }
}
@media (max-width: 768px) {
    /* Fields keep their 48px height whatever padding they have */
    .cb-form input, .cb-form select, .cb-form textarea, .cb-wrapper .cb-text-input { box-sizing: border-box; }
    /* A field group inside a row: the row already spaces it */
    .cb-row.cb-input-group .cb-input-group { margin-bottom: 0; }
    .cb-wrapper .cb-subtitle { margin-top: 0; }
}
@media (max-width: 768px) {
    /* Even 16px between fields: the last group in a column adds no extra space */
    .cb-form .cb-col > .cb-input-group:last-child { margin-bottom: 0; }
    .cb-form .cb-row { margin-bottom: 1rem; }
}

/* =======================================
   First visit and empty pages on the phone
======================================= */
@media (max-width: 768px) {
    .cb-start { margin: 0 1rem .75rem; padding: 1.1rem 1rem; }

    /* The "Imperial / Metric" notice on home */
    .success-message { width: auto !important; margin: 0 1rem .75rem !important; border-radius: var(--cb-radius); }

    /* Empty lists: no page numbers under nothing, and a calm message */
    .tile:has(tbody > tr:only-child > td[colspan]) .pagination { display: none; }
    table.cb-cards-ready td[colspan] .success-message {
        width: auto !important; margin: .25rem 0 !important; padding: 1rem !important; border-radius: var(--cb-radius-sm);
        background: var(--cb-page) !important; color: var(--cb-ink-soft) !important; text-align: center; font-weight: 500;
    }
    table.cb-cards-ready td[colspan] .success-message a { display: block; margin: .5rem 0 0 !important; color: var(--cb-brand) !important; font-weight: 700; text-decoration: none !important; }

    /* Today with no flocks yet */
    .today .today-empty { border-style: solid; border-color: var(--cb-pill); box-shadow: var(--cb-shadow); }
    .today .today-empty a { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: .6rem 0 0; background: var(--cb-brand); border-radius: var(--cb-radius-sm); }
    .today .today-empty a + a { background: var(--cb-card); color: var(--cb-action); border: 1px solid var(--cb-line-strong); }
}

/* ---- components/auth.css ---- */
/* Sign in or sign up, the first setup and the forgot-password pages
   (templates/single_apps/user_management/partials/auth_base.html):
   a white card over a faded collage of real screens and a farm photo.
   On wide screens the card has a picture side: a shed photo with two app cards. */
.auth {
    position: relative; overflow: hidden; display: flex; align-items: flex-start; justify-content: center;
    min-height: calc(100vh - 64px); padding: 48px 16px 64px; margin: 0 calc(50% - 50vw); background: var(--cb-page);
}

/* The collage: tilted, faded and behind everything; only decoration. */
.auth-collage {
    position: absolute; inset: -10% -10%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    align-content: center; transform: rotate(-6deg); opacity: .28; filter: saturate(.7); pointer-events: none;
}
.auth-collage img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: var(--cb-radius); }
.auth::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, color-mix(in srgb, var(--cb-page) 35%, transparent) 0%, color-mix(in srgb, var(--cb-page) 85%, transparent) 70%);
}

.auth-card {
    position: relative; z-index: 2; box-sizing: border-box; display: flex; width: 100%; max-width: 860px; overflow: hidden;
    background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: 20px;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--cb-action) 12.0%, transparent);
}
.auth-side { box-sizing: border-box; flex: 0 0 420px; max-width: 100%; padding: 32px 28px 28px; }

/* The picture side, like the Pro window: the old-style drawing on a soft green,
   two small cards like the app's own (a batch on track, a good profit) and one
   line at the bottom. Wide screens only, so phones never download the drawing. */
.auth-art {
    position: relative; flex: 1 1 auto; min-height: 500px; overflow: hidden; color: var(--cb-action);
    background: linear-gradient(160deg, var(--cb-brand-soft) 0%, var(--cb-broilers-soft) 100%);
}
.auth-art::before {
    content: ""; position: absolute; z-index: 0; left: 50%; top: 46%; width: 62%; aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%); border-radius: 24px;
    background: var(--cb-card) url('../images/site/cd-sub-wiz.jpg') center / cover no-repeat;
    box-shadow: 0 18px 40px color-mix(in srgb, var(--cb-brand) 25%, transparent);
}
.auth-peek {
    position: absolute; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
    background: var(--cb-card); color: var(--cb-action); border-radius: 14px; box-shadow: 0 12px 28px color-mix(in srgb, var(--cb-action) 22.0%, transparent);
}
.auth-peek strong { font-size: var(--cb-fs-20); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.auth-peek-label { font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-ink-soft); }
.auth-peek-small { font-size: var(--cb-fs-12); color: var(--cb-ink-soft); }
.auth-peek-batch { top: 28px; left: 24px; width: 200px; }
.auth-peek-bar { display: block; height: 6px; margin: 4px 0 2px; border-radius: 3px; background: var(--cb-pill); overflow: hidden; }
.auth-peek-bar span { display: block; width: 57%; height: 100%; border-radius: 3px; background: var(--cb-brand); }
.auth-peek-profit { top: 150px; right: 24px; width: 170px; }
.auth-peek-up { font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-brand); }
.auth-art-words { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 28px; }
.auth-art-title { margin: 0 0 6px; font-size: var(--cb-fs-24); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: var(--cb-brand); text-align: center; }
.auth-art-line { margin: 0; font-size: var(--cb-fs-16); color: var(--cb-ink-soft); text-align: center; }
.auth-logo { display: inline-block; margin-bottom: 12px; }
.auth-back { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 .25rem 0 -.5rem;
             vertical-align: middle; border-radius: 50%; color: var(--cb-action); font-size: var(--cb-fs-16); text-decoration: none; }
.auth-back:hover { background: var(--cb-page); color: var(--cb-action); }
.auth-logo img { display: block; width: 44px; height: 44px; border-radius: 12px; }
.auth-card .auth-title { font-size: var(--cb-fs-24); font-weight: 700; letter-spacing: -.02em; color: var(--cb-action); margin: 0 0 .35rem; }
.auth-lead { font-size: var(--cb-fs-16); line-height: 1.5; color: var(--cb-ink-soft); margin: 0 0 1.25rem; }

.auth-message { padding: .7rem .9rem; margin: 0 0 1rem; border-radius: var(--cb-radius-sm); font-size: var(--cb-fs-16); line-height: 1.45;
                background: var(--cb-brand-soft); border: 1px solid var(--cb-brand-soft); color: var(--cb-action); }
.auth-message.error { background: var(--cb-critical-soft); border-color: var(--cb-critical-soft); }
.auth-message.success { background: var(--cb-brand-soft); border-color: var(--cb-brand-soft); }
.auth-message.warning { background: var(--cb-brand-soft); border-color: var(--cb-brand-soft); }

/* Google first: a quiet white button. */
.auth-google {
    display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 48px;
    border: 1px solid var(--cb-line-strong); border-radius: var(--cb-radius-sm); background: var(--cb-card);
    color: var(--cb-action); font-weight: 600; text-decoration: none; gap: .6rem;
}
.auth-google:hover { background: var(--cb-page); color: var(--cb-action); }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--cb-pill); }

.auth-form label { display: block; margin: 0 0 .35rem; font-size: var(--cb-fs-16); font-weight: 600; color: var(--cb-action); }
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"] {
    box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 .9rem; margin: 0 0 1rem;
    font-size: var(--cb-fs-16); color: var(--cb-action); background: var(--cb-card);
    border: 1px solid var(--cb-line-strong); border-radius: var(--cb-radius-sm);
}
.auth-form p { margin: 0; }
.auth-form ul { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); margin: -.6rem 0 1rem; padding-left: 1.1rem; }
.auth-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.auth-row a { font-size: var(--cb-fs-14); font-weight: 600; }
.auth-robot { display: flex; justify-content: center; margin: 0 0 1rem; }
.auth-hint { margin: -.6rem 0 1rem; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.auth-form input.auth-code { font-size: var(--cb-fs-24); letter-spacing: .4em; text-align: center; font-weight: 700; }
.auth-resend { margin: 1rem 0 .5rem; font-size: var(--cb-fs-16); color: var(--cb-ink-soft); }
.auth-resend button { padding: 0; border: 0; background: none; color: var(--cb-brand); font-weight: 600; text-decoration: underline; }
.auth-resend button:disabled { color: var(--cb-ink-soft); text-decoration: none; cursor: default; }
.auth-legal { margin: 1.25rem 0 0; font-size: var(--cb-fs-14); line-height: 1.5; color: var(--cb-ink-soft); }
.auth-legal a { color: var(--cb-brand); }

.auth-card .auth-main {
    display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 52px;
    margin: .25rem 0 0; font-size: var(--cb-fs-16); font-weight: 700; border-radius: var(--cb-radius-sm); text-decoration: none;
}
.auth-card .auth-main:disabled { opacity: .6; cursor: default; }
.auth-switch { margin: 1.25rem 0 0; text-align: center; font-size: var(--cb-fs-16); color: var(--cb-ink-soft); }
.auth-switch a, .auth-row a { color: var(--cb-brand); }

@media (max-width: 760px) {
    .auth-card { max-width: 440px; }
    .auth-side { flex: 1 1 auto; }
    .auth-art { display: none; }
}

@media (max-width: 600px) {
    .auth { padding: 20px 12px 40px; min-height: auto; }
    .auth-collage { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .auth-collage .auth-wide { display: none; }
    .auth-side { padding: 24px 18px 20px; }
}

/* The first setup (farm_setup.html): two big choice cards, money and time zone folded away. */

.setup-choices { display: grid; gap: .75rem; margin: 0 0 .9rem; }
.setup-choice {
    display: flex; align-items: center; gap: .9rem; min-height: 72px; padding: .8rem 1rem; margin: 0 !important; cursor: pointer;
    border: 1px solid var(--cb-line-strong); border-radius: 14px; background: var(--cb-card);
}
.setup-choice input { position: absolute; opacity: 0; pointer-events: none; }
.setup-choice > i { width: 24px; text-align: center; font-size: var(--cb-fs-20); color: var(--cb-brand); }
.setup-choice strong { display: block; font-size: var(--cb-fs-16); color: var(--cb-action); }
.setup-choice small { display: block; font-weight: 400; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.setup-choice:hover { background: var(--cb-page); }
.setup-choice:has(input:checked) { border: 2px solid var(--cb-brand); background: var(--cb-brand-soft); }
.setup-choice:has(input:focus-visible) { outline: 3px solid var(--cb-action); outline-offset: 2px; }
.setup-note { margin: 0 0 1rem; }
.setup-locked { padding: .75rem 1rem; margin: 0 0 1rem; border-radius: var(--cb-radius-sm); background: var(--cb-page); }
.setup-more { margin: 0 0 1.25rem; border: 1px solid var(--cb-pill); border-radius: 14px; padding: .75rem 1rem; }
.setup-more summary { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; cursor: pointer; list-style: none; color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.setup-more summary::-webkit-details-marker { display: none; }
.setup-more summary i { color: var(--cb-brand); }
.setup-change { margin-left: auto; color: var(--cb-brand); font-weight: 600; text-decoration: underline; }
.setup-more[open] .setup-change { display: none; }
.setup-more[open] summary { margin-bottom: .75rem; }
.setup-more select { width: 100%; min-height: 48px; margin: 0 0 1rem; }

/* ---- components/refresh.css ---- */
/* =======================================
   October refresh: list bars, messages, print buttons.
   Loaded last, so it can tidy older styles without touching each page.
======================================= */

/* ---- List pages: one bar with the tabs, a short search and the page's buttons ---- */
.lt-header-tile {
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
    min-height: 68px; padding: .75rem 1rem; margin-bottom: 1rem;
    background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: 16px; box-shadow: none;
}
.lt-header-tile > [class*="-tile-section"] { width: auto; padding: 0 !important; border: 0 !important; margin: 0 !important; }
.lt-header-tile > [class*="-tile-section"]:has(.status-nav) { flex: 0 1 auto; min-width: 0; }
.lt-header-tile .search-input {
    min-height: 42px; padding: 0 2.5rem 0 1rem; font-size: var(--cb-fs-16);
    border: 1px solid var(--cb-line-strong); border-radius: 999px; background: var(--cb-page);
}
.lt-header-tile .search-input:focus { background: var(--cb-card); border-color: var(--cb-brand); }
.lt-header-tile .search-button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.lt-header-tile .status-nav ul { gap: .35rem; margin: 0; flex-wrap: wrap; }
.lt-header-tile .status-nav ul li { margin: 0; }
.lt-header-tile .status-nav .nav-link {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9rem; border-radius: 999px;
    border: 1px solid var(--cb-pill); background: var(--cb-card); color: var(--cb-action); font-weight: 600; font-size: var(--cb-fs-14);
}
.lt-header-tile .status-nav .nav-link:hover { background: var(--cb-brand-soft); }
.lt-header-tile .status-nav .nav-link.active { background: var(--cb-brand); border-color: var(--cb-brand); color: var(--cb-card); }
/* Search that starts as a small round button and opens into a box (search_pop.js) */

.lt-header-tile .lt-search-pop .search-input {
    flex: 0 0 auto; width: 42px; min-height: 42px; padding: 0 !important; border: 1px solid var(--cb-pill) !important; border-radius: 999px !important;
    background: var(--cb-card); cursor: pointer; transition: width .2s ease;
}
.lt-header-tile .lt-search-pop .search-input::placeholder { color: transparent; }
.lt-header-tile .lt-search-pop .search-button {
    position: absolute; right: 0; top: 0; transform: none; width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center; color: var(--cb-action);
}
.lt-header-tile .lt-search-pop.is-open .search-input { width: 100%; padding: 0 2.6rem 0 1rem !important; border-color: var(--cb-brand) !important; cursor: text; }
.lt-header-tile .lt-search-pop.is-open .search-input::placeholder { color: var(--cb-ink-soft); }
.lt-header-tile .lt-search-pop.is-open .search-button { color: var(--cb-ink-soft); }
.lt-search-pop .search-input::-webkit-search-cancel-button { display: none; }
@media (max-width: 768px) {
    .lt-header-tile { padding: .75rem; border-radius: 14px; }
    .lt-header-tile .lt-search-pop.is-open .search-input { width: 100%; }
}

/* ---- Birds left on the batch list: hover (or tap) for what happened to the birds ---- */
.cb-birds-left { position: relative; display: inline-block; padding: .1rem .4rem; border-bottom: 1px dashed var(--cb-line-strong); cursor: help; }
.cb-birds-story {
    position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
    display: none; min-width: 170px; padding: .7rem .9rem; text-align: left; white-space: nowrap;
    background: var(--cb-action); color: var(--cb-card); border-radius: 12px; box-shadow: 0 10px 24px color-mix(in srgb, var(--cb-action) 20.0%, transparent); font-size: var(--cb-fs-14);
}
.cb-birds-story span { display: flex; justify-content: space-between; gap: 1rem; color: var(--cb-card); opacity: 1; }
.cb-birds-story strong { color: var(--cb-card); }
.cb-birds-story .is-left { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid color-mix(in srgb, var(--cb-card) 20.0%, transparent); }
.cb-birds-left:hover .cb-birds-story, .cb-birds-left:focus .cb-birds-story { display: block; }
.cb-birds-story.is-fixed { position: fixed; bottom: auto; transform: translate(-50%, -100%); }
.cb-birds-story.is-fixed.is-below { transform: translateX(-50%); }
.cb-bl-booked { display: block; margin-top: .15rem; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-count-fix { display: block; margin-top: .2rem; font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-brand); }

/* ---- Edit / Print / Delete under a page title: soft round pills ---- */
.edit-button, .print-button, .delete-button, .cb-batch-print {
    display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 1.15rem;
    border-radius: 999px; font-weight: 600;
}

td:has(.cb-birds-left) { overflow: visible; }

/* ---- Quick picks: common choices one tap away (e.g. common vaccines) ---- */
.cb-quick-picks { margin-bottom: 1.5rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--cb-brand-soft); }
.cb-quick-picks h2 { margin: 0 0 .2rem; }
.cb-quick-picks-hint { margin: 0 0 .75rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-quick-picks-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.cb-quick-pick {
    min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--cb-line-strong);
    background: var(--cb-card); color: var(--cb-action); font-weight: 600; font-size: var(--cb-fs-14); cursor: pointer;
}
.cb-quick-pick:hover { border-color: var(--cb-brand); }
.cb-quick-pick.is-picked { background: var(--cb-brand); border-color: var(--cb-brand); color: var(--cb-card); }

/* ---- Order forms: numbered steps and a friendly "add one first" card ---- */

.cb-order-empty {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
    margin-bottom: 1rem; padding: .9rem 1rem; border-radius: 14px; background: var(--cb-warm-soft); color: var(--cb-action);
}
.cb-order-empty .gray-button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.1rem; border-radius: 999px; background: var(--cb-card); text-decoration: none; }

/* ---- Customer page ---- */
.cc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.cc-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.cc-card { background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: 18px; padding: 1.25rem 1.4rem; }
.cc-card h2 { margin: 0; font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); }
.cc-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.cc-link { color: var(--cb-brand); font-weight: 600; font-size: var(--cb-fs-14); text-decoration: none; }
.cc-link:hover { text-decoration: underline; }
.cc-empty { margin: 0; color: var(--cb-ink-soft); }
.cc-profile { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.cc-who { flex: 1 1 240px; min-width: 0; }
.cc-who h2 { font-size: var(--cb-fs-20); }
.cc-title { display: flex; align-items: center; gap: .5rem; }
.cc-title h1 { margin: 0; font-size: var(--cb-fs-24); font-weight: 700; letter-spacing: -.01em; color: var(--cb-action); overflow-wrap: anywhere; }
.cc-back { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--cb-action); text-decoration: none; margin-left: -.4rem; }
.cc-back:hover { background: var(--cb-pill); color: var(--cb-action); }
.cc-profile .cc-who > p { margin: .2rem 0 .9rem; }
button.cc-pill { cursor: pointer; font-family: inherit; line-height: 1; }
.cc-who p { margin: .15rem 0 .7rem; color: var(--cb-ink-soft); }
.cc-reach { display: flex; flex-wrap: wrap; gap: .5rem; }
.cc-pill {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: 0 1rem; border-radius: 999px;
    border: 1px solid var(--cb-line-strong); background: var(--cb-card); color: var(--cb-action); font-weight: 600; font-size: var(--cb-fs-14); text-decoration: none;
}
.cc-pill:hover { border-color: var(--cb-brand); color: var(--cb-brand); }
.cc-pill i { color: var(--cb-brand); }
.cc-create .black-button { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1.3rem; border-radius: 999px; }
.cc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cc-stat { background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: 18px; padding: 1rem 1.2rem; }
.cc-stat span { display: block; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cc-stat strong { display: block; margin-top: .25rem; font-size: var(--cb-fs-20); color: var(--cb-action); }
.cc-notes { width: 100%; padding: .7rem .9rem; border: 1px solid var(--cb-line-strong); border-radius: 12px; font: inherit; }
@media (max-width: 900px) {
    .cc-layout { grid-template-columns: 1fr; }
    .cc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .cc-stat { padding: .8rem; }
    .cc-stat strong { font-size: var(--cb-fs-16); }
    .cc-create, .cc-create .black-button { width: 100%; justify-content: center; }
}

/* ---- Right column, everywhere: cards of facts ----
   A card per subject (customer, delivery, details). Each fact is a round
   soft-green icon, a small grey label and the value, like a list on the phone. */
.tile-side:has(> .cb-side-card) { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; display: flex; flex-direction: column; gap: 1rem; }
.cb-side-card { background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: 18px; padding: 1.2rem 1.3rem; margin: 0; }
.cb-side-card h2 { margin: 0 0 .75rem; font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); }
.cb-side-name { display: block; font-size: var(--cb-fs-18); font-weight: 700; color: var(--cb-brand); text-decoration: none; margin: 0; overflow-wrap: anywhere; }
a.cb-side-name:hover { text-decoration: underline; }
.cb-side-sub { margin: .1rem 0 0; color: var(--cb-ink-soft); }
.cb-facts { display: flex; flex-direction: column; margin-top: .6rem; }
.cb-fact { display: flex; align-items: flex-start; gap: .75rem; padding: .65rem 0; border-top: 1px solid var(--cb-pill); }
.cb-fact:first-child { border-top: 0; }
.cb-fact-icon {
    flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--cb-brand-soft); color: var(--cb-brand); font-size: var(--cb-fs-14);
}
.cb-fact-text { min-width: 0; display: flex; flex-direction: column; }
.cb-fact-label { font-size: var(--cb-fs-12); color: var(--cb-ink-soft); line-height: 1.3; }
.cb-fact-value { color: var(--cb-action); line-height: 1.45; overflow-wrap: anywhere; }
a.cb-fact-value, .cb-fact-value a { color: var(--cb-brand); text-decoration: none; font-weight: 500; }
a.cb-fact-value:hover, .cb-fact-value a:hover { text-decoration: underline; }
.cb-fact-value .delivery-badge { margin-left: .35rem; font-size: var(--cb-fs-12); font-weight: 500; }
.cb-side-edit { margin-left: .35rem; font-size: var(--cb-fs-14); }
.cb-side-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.cb-side-actions .cc-pill { cursor: pointer; font-family: inherit; }
.cc-pill.cb-pill-main { background: var(--cb-brand); border-color: var(--cb-brand); color: var(--cb-card); }
.cc-pill.cb-pill-main i { color: var(--cb-card); }
.cc-pill.cb-pill-main:hover { background: var(--cb-brand); color: var(--cb-card); }

/* The older right columns (a batch, a delivery, an expense...) read as tidy
   lines too: normal line height, icons in a fixed column, no squashed rows. */
.tile-side .st-header p, .tile-side .st-body p, .tile-side .st-bottom p { line-height: 1.45; margin: 0 0 .55rem; }
.tile-side .st-header i, .tile-side .st-body i, .tile-side .st-bottom i { width: 1.1rem; margin-right: .55rem; padding-right: 0; color: var(--cb-brand); text-align: center; }
.tile-side .st-header h2, .tile-side .st-body h2, .tile-side .st-bottom h2 { font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); margin-bottom: .75rem; }
.tile-side .st-hr { border: 0; border-top: 1px solid var(--cb-pill); opacity: 1; width: auto; margin: .9rem 20px; }

/* Every older right column gets the same look as the order and customer
   pages: one rounded card, sections split by a thin line (not boxes inside
   a box), and each line a round soft-green icon beside its words. */
.tile-side:not(:has(> .cb-side-card)) { border-radius: 18px; padding: .35rem 1.3rem .5rem !important; }
.tile-side .st-section {
    background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    margin: 0 !important; padding: 1rem 0 .6rem !important; width: auto !important; min-height: 0 !important;
}
.tile-side .st-section ~ .st-section { border-top: 1px solid var(--cb-pill) !important; }
.tile-side .st-hr { display: none; }
.tile-side .st-section h2 { margin: 0 0 .7rem !important; font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); }
.tile-side .st-section p.flex-row {
    display: flex; align-items: center; gap: .75rem; margin: 0 0 .6rem; padding: 0; line-height: 1.4;
    color: var(--cb-action); font-size: var(--cb-fs-16); overflow-wrap: anywhere;
}
.tile-side .st-section p.flex-row > span { margin: 0; }
.tile-side .st-section p.flex-row > span:first-child {
    flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--cb-brand-soft); color: var(--cb-brand);
}
.tile-side .st-section p.flex-row > span:first-child i { margin: 0; padding: 0; width: auto; font-size: var(--cb-fs-14); color: var(--cb-brand); }
.tile-side .st-section p.flex-row > span + span { min-width: 0; }
.tile-side .st-section p + h2 { margin-top: 1.1rem !important; }
.tile-side .st-section a { color: var(--cb-brand); font-weight: 500; text-decoration: none; }
.tile-side .st-section a:hover { text-decoration: underline; }

/* ---- Add a tax ---- */
.tx-intro { margin: .25rem 0 1.25rem; color: var(--cb-ink-soft); }
.tx-form .tx-card { margin-bottom: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--cb-pill); border-radius: 16px; background: var(--cb-card); }
.tx-card h3 { margin: 0 0 .8rem; font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); }
.tx-card .form-row { margin-bottom: 0; }
.tx-rate { position: relative; }
.tx-rate input { padding-right: 2.2rem; }
.tx-rate span { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--cb-ink-soft); font-weight: 600; }
.tx-optional { font-weight: 400; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.tx-help { display: block; margin-top: .5rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); line-height: 1.45; }
.tx-check { display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; font-weight: 500; cursor: pointer; }
.tx-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--cb-brand); }
.tx-chip { margin-top: .5rem; min-height: 34px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--cb-line-strong); background: var(--cb-card); font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-brand); cursor: pointer; }
.tx-more { margin-top: .9rem; }
.tx-more summary { cursor: pointer; color: var(--cb-brand); font-weight: 600; font-size: var(--cb-fs-14); margin-bottom: .6rem; }

/* ---- Email an invoice: the form, with what's being sent beside it ---- */
.cb-email-layout { display: grid; grid-template-columns: minmax(0, 640px) 300px; gap: 1.25rem; align-items: start; }
.cb-email-layout .cb-email-form { max-width: none; border-radius: 18px; }
.cb-email-form input[type=text], .cb-email-form textarea { border-radius: 12px; }
.cb-email-actions button { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1.5rem; border-radius: 999px; background: var(--cb-action); color: var(--cb-card); }
.cb-email-actions button:hover { background: var(--cb-action); }
.cb-email-summary { border-radius: 18px; text-align: left; }
.cb-email-doc { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--cb-brand-soft); color: var(--cb-brand); font-size: var(--cb-fs-20); }
.cb-email-summary h2 { margin: .8rem 0 0; font-size: var(--cb-fs-16); }
.cb-email-total { margin: .2rem 0 1rem; font-size: var(--cb-fs-24); font-weight: 700; color: var(--cb-action); }
.cb-email-summary dl { margin: 0 0 1rem; }
.cb-email-summary dt { margin-top: .6rem; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-email-summary dd { margin: .1rem 0 0; color: var(--cb-action); word-break: break-word; }
.cb-email-open { color: var(--cb-brand); font-weight: 600; text-decoration: none; }
@media (max-width: 960px) { .cb-email-layout { grid-template-columns: 1fr; } .cb-email-summary { order: -1; } }

/* ---- Delivery window on an order ---- */
.dl-money { position: relative; }
.dl-money span { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--cb-ink-soft); font-weight: 600; pointer-events: none; }
.dl-money input { padding-left: 2.6rem !important; }
.dl-who-label { margin: .5rem 0 .5rem; }
.dl-who { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .75rem; }
.dl-who-option { position: relative; margin: 0; cursor: pointer; }
.dl-who-option input { position: absolute; opacity: 0; pointer-events: none; }
.dl-who-option > span {
    display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; height: 100%; padding: .85rem .95rem;
    border: 1.5px solid var(--cb-line-strong); border-radius: 14px; background: var(--cb-card); transition: border-color .15s, background .15s;
}
.dl-who-option i { color: var(--cb-brand); margin-bottom: .2rem; }
.dl-who-option small { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.dl-who-option input:checked + span { border-color: var(--cb-brand); background: var(--cb-brand-soft); box-shadow: inset 0 0 0 1px var(--cb-brand); }
.dl-who-option input:focus-visible + span { outline: 2px solid var(--cb-brand); outline-offset: 2px; }
.dl-who-option input:disabled + span { opacity: .55; cursor: not-allowed; }
#dl-us-pick { display: none; }
.dl-pick { margin-bottom: .75rem; }
.dl-note { margin: .25rem 0; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.dl-note a { color: var(--cb-brand); font-weight: 600; }

/* ---- "You didn't finish this order" ---- */
.cb-unfinished {
    display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-bottom: 1.25rem; padding: 1rem 1.1rem;
    border-radius: 16px; background: var(--cb-brand-soft); border: 1px solid var(--cb-line-strong); color: var(--cb-action);
}
.cb-unfinished > i { font-size: var(--cb-fs-20); color: var(--cb-brand); }
.cb-unfinished > div:nth-child(2) { flex: 1 1 260px; display: flex; flex-direction: column; gap: .1rem; }
.cb-unfinished span { color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.cb-unfinished-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cb-unfinished-actions .gray-button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; background: var(--cb-card); border: 1px solid var(--cb-line-strong); text-decoration: none; color: var(--cb-action); font-weight: 600; }

/* ---- Edits in a pop-up (popup.js): the page behind stays put ---- */
.cb-popup-modal .modal-content { position: relative; overflow: hidden; border: 0; border-radius: 18px; }
.cb-popup-frame { display: block; width: 100%; height: 260px; border: 0; background: var(--cb-card); }
.cb-popup-close {
    position: absolute; top: 12px; right: 12px; z-index: 2; box-sizing: border-box; width: 36px; height: 36px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: var(--cb-page); color: var(--cb-action); font-size: var(--cb-fs-24); line-height: 1;
}
.cb-popup-close:hover { background: var(--cb-pill); }
/* The page inside the pop-up: no menus, no back arrow, no extra space */
body.cb-popup { background: var(--cb-card); }
body.cb-popup .sidebar, body.cb-popup .back-arrow, body.cb-popup .heading-right.icons-container { display: none !important; }
body.cb-popup .container-fluid { padding: 0; }
body.cb-popup .content-area { margin: 0 !important; padding: 1.25rem 1.25rem 1.5rem !important; min-height: 0; }
body.cb-popup .page-body { max-width: none; margin: 0; padding: 0; }
body.cb-popup .page-heading { padding-right: 2.5rem; }

/* ---- "Archive this order?" pop-up: what happens, one line each ---- */
.cb-archive-lead { margin: 0 0 .9rem; font-weight: 600; color: var(--cb-action); }
.cb-archive-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cb-archive-steps li { display: flex; align-items: flex-start; gap: .75rem; color: var(--cb-action); line-height: 1.45; }
.cb-archive-icon {
    flex: 0 0 auto; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--cb-brand-soft); color: var(--cb-brand);
}
.cb-archive-steps li > span:last-child { padding-top: .35rem; }

/* ---- Batch lists: small chart button next to the batch number, opens its report ---- */
.cb-row-report {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: .5rem;
    vertical-align: middle; border-radius: 50%; border: 1px solid var(--cb-pill); background: var(--cb-card); color: var(--cb-brand);
}
.cb-row-report:hover, .cb-row-report:focus-visible { background: var(--cb-brand-soft); border-color: var(--cb-brand); }

/* ---- Farm details: logo for invoices ---- */
.cb-logo-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; }
.cb-logo-preview {
    flex: 0 0 auto; width: 200px; height: 90px; display: flex; align-items: center; justify-content: center; padding: .5rem;
    border: 1px solid var(--cb-pill); border-radius: 12px; background: var(--cb-card);
}
.cb-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cb-logo-preview.is-empty { border-style: dashed; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-logo-actions { flex: 1 1 220px; min-width: 0; display: grid; gap: .4rem; }
.cb-logo-actions small { color: var(--cb-ink-soft); }
.cb-logo-remove { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }
.cb-logo-error { color: var(--cb-critical); font-weight: 600; }

/* ---------- A vaccine's page: tags under the name, four numbers at a
   glance, what it's for, and where it was last used ---------- */
.cb-vx-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .35rem; }
.cb-vx-kicker { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin-right: .1rem; }
a.cb-vx-edit { display: inline-flex; align-items: center; text-decoration: none; }
.cb-vx { display: grid; gap: 1rem; margin-top: 1.25rem; }
.cb-vx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.cb-vx-stat {
    display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem;
    background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: 14px;
}
.cb-vx-stat-label { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-vx-stat-value { font-size: var(--cb-fs-20); font-weight: 700; color: var(--cb-action); line-height: 1.25; }
.cb-vx-stat.is-next { background: var(--cb-brand-soft); border-color: var(--cb-line-strong); }
.cb-vx-stat.is-next .cb-vx-stat-value { color: var(--cb-brand); }
.cb-vx-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.cb-vx-card {
    background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: 16px;
    padding: 1.25rem 1.35rem; min-width: 0;
}
.cb-vx-card h2 { font-size: var(--cb-fs-18); font-weight: 700; margin: 0 0 .75rem; }
.cb-vx-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.cb-vx-card-head a { font-weight: 600; color: var(--cb-brand); text-decoration: none; }
.cb-vx-about { margin: 0; line-height: 1.6; color: var(--cb-action); }
.cb-vx-empty { margin: 0; color: var(--cb-ink-soft); }
.cb-vx-tip {
    margin: 1rem 0 0; padding: .6rem .8rem; border-radius: 10px;
    background: var(--cb-page); color: var(--cb-ink-soft); font-size: var(--cb-fs-14);
}
.cb-vx-list { list-style: none; margin: 0; padding: 0; }
.cb-vx-list li + li { border-top: 1px solid var(--cb-pill); }
.cb-vx-list a {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .7rem .25rem; color: var(--cb-action); text-decoration: none; font-weight: 600;
}
.cb-vx-list a:hover { background: var(--cb-page); }
.cb-vx-list-main { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
.cb-vx-list-main small { flex-basis: 100%; margin-left: 1.55rem; font-weight: 400; color: var(--cb-ink-soft); }
.cb-vx-list .cb-item-dot { width: .6rem; height: .6rem; margin-left: 0; margin-right: .7rem; }
.cb-vx-status {
    flex-shrink: 0; padding: .15rem .65rem; border-radius: 999px; font-size: var(--cb-fs-14); font-weight: 600;
    background: var(--cb-page); color: var(--cb-ink-soft);
}
.cb-vx-status.is-administered { background: var(--cb-broilers-soft); color: var(--cb-brand); }
.cb-vx-status.is-overdue { background: var(--cb-critical-soft); color: var(--cb-critical); }
.cb-vx-status.is-scheduled { background: var(--cb-brand-soft); color: var(--cb-brand); }
@media (max-width: 900px) {
    .cb-vx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cb-vx-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Add an employee: the basics first, the rest under More details ---------- */
.emp-optional { font-weight: 400; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin-left: .25rem; }
.emp-help { display: block; margin: .35rem 0 .75rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.emp-help a { color: var(--cb-brand); font-weight: 600; }
.emp-guess {
    margin-top: .5rem; padding: .55rem .8rem; border-radius: 10px;
    background: var(--cb-brand-soft); color: var(--cb-brand); font-size: var(--cb-fs-16); font-weight: 500;
}
.emp-form .cb-form-section { margin-top: 1.5rem; }
.emp-form .cb-form-section:first-of-type { margin-top: 0; }

/* ---------- Settings: only the settings menu on the left (no second menu) ---------- */
@media (min-width: 992px) {
    .container-fluid:has(.page-body-settings) > .sidebar { display: none; }
    .container-fluid:has(.page-body-settings) .content-area { margin-left: 0; }
}

/* ---------- Settings lists: tax brackets and staff roles ---------- */
.st-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.st-head h2 { margin: 0 0 .25rem; }
.st-lead { margin: 0; color: var(--cb-ink-soft); max-width: 46ch; }
.st-list { list-style: none; margin: 0 0 1rem; padding: 0; border: 1px solid var(--cb-pill); border-radius: 14px; background: var(--cb-card); }
.st-list li { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; }
.st-list li + li { border-top: 1px solid var(--cb-pill); }
.st-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; color: var(--cb-action); }
.st-main small { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); line-height: 1.4; }
.st-rate {
    flex: 0 0 auto; min-width: 3.6rem; text-align: center; padding: .25rem .5rem; border-radius: 999px;
    background: var(--cb-brand-soft); color: var(--cb-brand); font-weight: 700;
}
.st-edit, .st-remove {
    flex: 0 0 auto; border: 1px solid var(--cb-line-strong); background: var(--cb-card); color: var(--cb-action);
    border-radius: 999px; padding: .3rem .9rem; font-weight: 600; font-size: var(--cb-fs-14); cursor: pointer;
}
.st-remove { color: var(--cb-critical); }
.st-edit:hover, .st-remove:hover { background: var(--cb-page); }
.st-empty { padding: 1.25rem; border: 1px dashed var(--cb-line-strong); border-radius: 14px; margin-bottom: 1rem; }
.st-empty p { margin: 0 0 .35rem; }
.st-empty small { color: var(--cb-ink-soft); }
.st-form { padding: 0; box-shadow: none; border: 0; background: transparent; }
.cb-vx-give { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--cb-pill); }
.cb-vx-give-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.cb-vx-give-row select {
    flex: 1 1 220px; min-width: 0; height: 2.75rem; padding: 0 .75rem; border-radius: 10px;
    border: 1px solid var(--cb-line-strong); background: var(--cb-card); color: var(--cb-action); font: inherit;
}

/* ---------- Add a stock item: pick the type from tiles, quantity and unit side by side ---------- */
.inv-types { border: 0; margin: 0 0 1.1rem; padding: 0; }
.inv-types legend { float: none; width: auto; margin-bottom: .5rem; }
.inv-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.inv-type {
    position: relative; display: flex; align-items: center; min-height: 3rem; padding: .55rem .8rem;
    border: 1px solid var(--cb-line-strong); border-radius: 12px; background: var(--cb-card);
    font-weight: 600; color: var(--cb-action); cursor: pointer; line-height: 1.25;
}
.inv-type input { position: absolute; opacity: 0; pointer-events: none; }
.inv-type:hover { background: var(--cb-page); }
.inv-type.is-on { border-color: var(--cb-brand); background: var(--cb-brand-soft); color: var(--cb-brand); box-shadow: 0 0 0 1px var(--cb-brand) inset; }
.inv-type:has(input:focus-visible) { outline: 2px solid var(--cb-brand); outline-offset: 2px; }
.inv-qty { display: flex; gap: .5rem; align-items: center; }
.inv-qty input { flex: 1 1 auto; min-width: 0; }
.inv-qty select { flex: 0 0 9.5rem; }
.inv-qty-word { flex: 0 0 auto; color: var(--cb-ink-soft); font-weight: 600; }
.inv-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem; margin-top: 1rem; }
.inv-tip { padding: 1rem 1.15rem; border-radius: 14px; background: var(--cb-brand-soft); border: 1px solid var(--cb-line-strong); }
.inv-tip h3 { margin: 0 0 .35rem; font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-brand); }
.inv-tip p { margin: 0 0 .5rem; color: var(--cb-action); line-height: 1.5; font-size: var(--cb-fs-16); }
.inv-tip a { color: var(--cb-brand); font-weight: 600; }

/* ---------- Cash flow: how the page works, in three steps ---------- */
.cf-how { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.cf-how li { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; background: var(--cb-card); border: 1px solid var(--cb-pill); }
.cf-how-n {
    flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--cb-brand); color: var(--cb-card); font-weight: 700; font-size: var(--cb-fs-14);
}
.cf-how strong { display: block; color: var(--cb-action); line-height: 1.3; }
.cf-how small { display: block; margin-top: .2rem; color: var(--cb-ink-soft); line-height: 1.45; }
.cf-how a { color: var(--cb-brand); font-weight: 600; }
.cf-stat small { display: block; margin-top: .25rem; }
.cf-sub { margin: -.25rem 0 .75rem; color: var(--cb-ink-soft); }
@media (max-width: 760px) { .cf-how { grid-template-columns: minmax(0, 1fr); } }

/* ---- A vaccination's cost: the total big, how it adds up small (single_vaccination.html) ---- */
.cb-vax-cost { margin-top: .6rem; }
.cb-vax-total { margin: 0; font-size: var(--cb-fs-32); font-weight: 700; color: var(--cb-action); line-height: 1.1; }
.cb-vax-sum { margin: .3rem 0 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.cb-vax-note { margin: .9rem 0 0; padding: .7rem .9rem; border-radius: 12px; background: var(--cb-page); font-size: var(--cb-fs-14); }
.cb-vax-note a { font-weight: 600; color: var(--cb-brand); }

/* ---- components/sales-extras.css ---- */
/* The extra sales tools on the order and customer pages: payment terms,
   comments, store credit and the people at a business. Quiet by default:
   each form hides behind a "details" line until it's wanted. */
.sx-tile { padding: 1.1rem 1.9rem; }
.sx-tile h2 { margin: 0; }
.sx-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.sx-line { margin: 0 0 .5rem; font-size: var(--cb-fs-16); color: var(--cb-action); }
.sx-due { font-weight: 600; }
.sx-due.is-late { color: var(--cb-critical); }
.sx-quiet { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); margin: 0; }
.sx-more { margin-top: .4rem; }
.sx-more > summary { cursor: pointer; color: var(--cb-brand); font-weight: 600; font-size: var(--cb-fs-16); padding: .35rem 0; list-style: none; }
.sx-more > summary::-webkit-details-marker { display: none; }
.sx-more > summary::after { content: " ›"; }
.sx-more[open] > summary::after { content: " ⌄"; }
.sx-form { display: grid; gap: .7rem; margin-top: .5rem; max-width: 30rem; }
.sx-form label { display: grid; gap: .3rem; font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-ink-soft); }
.sx-form input, .sx-form select, .sx-form textarea {
  font: inherit; font-weight: 400; color: var(--cb-action); background: var(--cb-card); border: 1px solid var(--cb-line-strong);
  border-radius: 10px; padding: .6rem .75rem; min-height: 44px; width: 100%; box-sizing: border-box;
}
.sx-form textarea { resize: vertical; }
.sx-form button { justify-self: start; }
.sx-credit { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .8rem; padding: .8rem 1rem;
  border-radius: 12px; background: var(--cb-brand-soft); border: 1px solid var(--cb-line-strong); }
.sx-credit p { margin: 0; flex: 1 1 14rem; }
.sx-list { list-style: none; margin: .8rem 0 0; padding: 0; }
.sx-list > li { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--cb-pill); }
.sx-list > li > div { flex: 1; min-width: 0; }
.sx-list p { margin: 0 0 .15rem; overflow-wrap: anywhere; }
.sx-list a { color: var(--cb-brand); }
.sx-link { background: none; border: 0; padding: .4rem; color: var(--cb-ink-soft); font: inherit; font-size: var(--cb-fs-14); cursor: pointer; }
.sx-link:hover { color: var(--cb-critical); text-decoration: underline; }
.sx-balance { font-size: var(--cb-fs-20); color: var(--cb-action); }
.sx-plus { color: var(--cb-brand); white-space: nowrap; }
.sx-minus { color: var(--cb-action); white-space: nowrap; }
.sx-card { margin-top: 0; }

.cb-late { color: var(--cb-critical); font-weight: 600; }
.sx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .5rem; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.sx-chip { border: 1px solid var(--cb-line-strong); background: var(--cb-card); color: var(--cb-brand); border-radius: 999px; padding: .35rem .8rem;
  font: inherit; font-weight: 600; cursor: pointer; min-height: 36px; }
.sx-chip:disabled { opacity: .5; cursor: default; }

/* ---- components/look.css ---- */
/* =======================================
   The calm look (October 23): a light grey page with big white cards that
   have round corners and no lines or shadows, big titles with a grey line
   under them, grey pill buttons, round grey icon buttons and a wide grey
   search bar. Loaded last, so it sits on top of the older page styles.
   Colours come from palette.css: the one main button stays orange, the top
   bar's Add new and the page you're on in the menu are deep green, broilers
   orange, layers blue, and only a real problem is red.
======================================= */
:root {
    --cb-radius: 24px;
    --cb-radius-sm: 14px;
    --cb-shadow: none;
    --cb-gap: 18px;
}

/* ---------- The page: one light grey, top to bottom ---------- */
@media (min-width: 769px) {
    html, body, .container-fluid { background: var(--cb-page); }
    body:has(.cb-side-clean) header { background: var(--cb-page); }
    .main-sidebar.cb-side-clean { background: var(--cb-page); border-right: 0; }
}

/* ---------- Cards: white, round, no lines, roomy ---------- */
.tile,
.report-tile,
.today-card,
.cb-start,
.cb-items,
.cb-money-card,
.cb-hub-empty,
.cb-home-empty,
.cb-home-box,
.cb-side-card,
.st-section,
.st-list,
.st-card,
.inv-card,
.inv-move,
.cb-rpt-tile,
.cb-rpt-card,
.cb-vx-card,
.cb-vx-stat,
.tx-card,
.cb-trash-group,
.cb-show-more,
.cb-docs-card,
.cb-wrapper,
.cb-thanks,
.lt-header-tile,
.cb-detail,
.cf-how li,
.cb-demo-frame {
    background: var(--cb-card) !important;
    border-color: transparent !important;
    box-shadow: var(--cb-card-shadow) !important;
    border-radius: var(--cb-radius) !important;
}
.tile, .report-tile, .st-section, .cb-side-card, .cb-rpt-card, .inv-card, .tx-card { padding: 22px 24px; }
.cb-items { overflow: hidden; }
.cb-items > li + li .cb-item, .cb-items .cb-item + .cb-item { border-top-color: var(--cb-page) !important; }

/* Batch cards keep their coloured band (broilers orange, layers blue) on a white card */
.cb-batch-card { background: var(--cb-card) !important; border: 0 !important; box-shadow: none !important; border-radius: 26px !important; }

/* Tables sit straight on their white card: soft grey head, thin rows, no outer box */
.table-container, .tile table { border: 0 !important; box-shadow: none !important; }
table thead th, .table thead th { background: var(--cb-page) !important; border-color: transparent !important; }
table thead th:first-child { border-radius: 12px 0 0 12px; }
table thead th:last-child { border-radius: 0 12px 12px 0; }
table td { border-color: var(--cb-page) !important; }

/* ---------- Titles: big and clean, a grey line under ---------- */
.cb-hub-head h1, .page-heading h1, .list-title-container h1 {
    font-size: var(--cb-fs-32) !important; line-height: var(--cb-lh-tight); font-weight: 700 !important; letter-spacing: -.03em; color: var(--cb-action);
}
.cb-hub-intro, .page-heading .subtitle { color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.tile h2, .cb-hub-group-title, .st-section h2, .st-section h3, .cb-side-card h2, .cb-side-card h3, .cb-rpt-card h2 {
    font-size: var(--cb-fs-18) !important; font-weight: 700 !important; letter-spacing: -.01em; color: var(--cb-action);
}
.cb-hub-group { margin-bottom: 2rem; }

/* ---------- Buttons: pills ---------- */
.gray-button, .white-button, .print-button, .edit-button, .delete-button, .disable-button, .cc-pill, .cb-reach-button,
.settings-buttons a, .tile-buttons a {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 42px; padding: 0 1.15rem; border-radius: 999px !important;
    background: var(--cb-pill) !important; border: 0 !important; color: var(--cb-action) !important;
    font-weight: 600; text-decoration: none;
}
.gray-button:hover, .white-button:hover, .print-button:hover, .edit-button:hover, .cc-pill:hover, .cb-reach-button:hover,
.red-button { color: var(--cb-critical) !important; }
.black-button, .cb-hub-button, .default-button, .preset-button, .success-button {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 42px; padding: 0 1.3rem; border-radius: 999px !important; font-weight: 700; text-decoration: none;
}
button.black-button, button.gray-button { line-height: 1.2; }

/* Filter chips above lists (All, Delivered, To deliver ...): grey pills, deep green when picked */
.status-nav .nav-link, .lt-header-tile .status-nav .nav-link, .cb-chip {
    border: 0 !important; border-radius: 999px !important; background: var(--cb-pill) !important; color: var(--cb-action) !important;
    font-weight: 600; min-height: 38px; display: inline-flex; align-items: center; padding: 0 1rem !important;
}
.status-nav .nav-link.active, .status-nav .nav-link.is-active, .lt-header-tile .status-nav .nav-link.active, .cb-chip.is-on {
    background: var(--cb-brand) !important; color: var(--cb-card) !important;
}

/* ---------- Search: one wide grey pill ---------- */
.search-input, .lt-search-pop .search-input, input[type="search"], .cb-search input {
    min-height: 44px; border: 0 !important; border-radius: 999px !important; background: var(--cb-pill) !important;
    padding-left: 1.1rem !important; color: var(--cb-action); box-shadow: none !important;
}
.search-input:focus, input[type="search"]:focus { outline: 2px solid var(--cb-line-strong); background: var(--cb-card) !important; }

/* ---------- Round grey icon buttons ---------- */
.cb-round, header .cb-bell, .cb-me-initials, .cb-eye, .back-arrow {
    background: var(--cb-pill) !important; border: 0 !important;
}
header .cb-bell { width: 44px; height: 44px; }
header .cb-me-initials { width: 44px; height: 44px; }
.cb-round {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
    color: var(--cb-action); text-decoration: none; flex: none;
}
.cb-round:hover { background: var(--cb-line-strong) !important; color: var(--cb-action); }
.cb-round svg { width: 16px; height: 16px; }

/* The little arrow at the end of a row: a small grey circle */
.cb-item-arrow {
    width: 32px; height: 32px; margin: 0; border: 0; transform: none; border-radius: 50%; background: var(--cb-page);
    flex: none; position: relative;
}
.cb-item-arrow::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -6px;
    border-right: 2px solid var(--cb-ink-soft); border-top: 2px solid var(--cb-ink-soft); transform: rotate(45deg);
}

/* ---------- Tags: soft, round, bold ---------- */
.badge, .cb-tag, .pill {
    border-radius: 999px !important; border: 0 !important; font-weight: 700 !important; padding: .28rem .7rem !important;
}
.cb-tag-warm { background: var(--cb-warm) !important; color: var(--cb-action) !important; }

/* ---------- Progress: thin round bars ---------- */
.cb-progress, .progress { height: 8px !important; border-radius: 999px !important; background: var(--cb-page) !important; overflow: hidden; }
.cb-progress > span, .progress-bar { border-radius: 999px !important; }

/* ---------- Half-ring gauge (status at a glance) ---------- */
.cb-gauge { position: relative; width: 180px; max-width: 100%; aspect-ratio: 2 / 1.12; margin: 0 auto; }
.cb-gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.cb-gauge-track { fill: none; stroke: var(--cb-page); stroke-width: 14; stroke-linecap: round; }
.cb-gauge-fill { fill: none; stroke: var(--cb-brand); stroke-width: 14; stroke-linecap: round; }
.cb-gauge-fill.is-broilers { stroke: var(--cb-broilers); }
.cb-gauge-fill.is-layers { stroke: var(--cb-warm); }
.cb-gauge-text { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.cb-gauge-text strong { display: block; font-size: var(--cb-fs-32); font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--cb-action); }
.cb-gauge-text span { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .9rem 0 0; padding: 0; list-style: none; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-legend li { display: flex; align-items: center; gap: .4rem; }
.cb-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cb-legend b { color: var(--cb-action); }

/* ---------- Big numbers ---------- */
.cb-big-number { font-size: var(--cb-fs-32); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--cb-action); }
.cb-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.cb-card-head h2, .cb-card-head h3 { margin: 0; font-size: var(--cb-fs-18); font-weight: 700; color: var(--cb-action); }

/* ---------- Forms on the new cards: inputs keep a quiet edge ---------- */
.tile input:not([type="checkbox"]):not([type="radio"]):not([type="search"]), .tile select, .tile textarea,
.cb-wrapper input:not([type="checkbox"]):not([type="radio"]), .cb-wrapper select, .cb-wrapper textarea {
    border-radius: 14px;
}

/* ---------- Menu in the new look ---------- */
.main-sidebar.cb-side-clean .cb-side .nav-link { padding: 7px 18px 7px 7px; }
.main-sidebar.cb-side-clean .nav-link .cb-icon {
    width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--cb-pill); color: var(--cb-action);
}
.main-sidebar.cb-side-clean .nav-link:hover { background: var(--cb-card); }
.main-sidebar.cb-side-clean .nav-link.is-current { background: var(--cb-brand); color: var(--cb-card); }
.main-sidebar.cb-side-clean .nav-link.is-current .cb-icon { background: color-mix(in srgb, var(--cb-card) 16.0%, transparent); color: var(--cb-card); }

/* ---------- Gaps between cards ---------- */

/* ---------- Phones keep their own spacing ---------- */
@media (max-width: 768px) {
    .tile, .report-tile, .st-section, .cb-side-card, .cb-rpt-card, .inv-card, .tx-card { padding: 18px; }
    .cb-hub-head h1, .page-heading h1, .content-area h1:not(.lp-title):not(.lp-hero-title) { font-size: var(--cb-fs-24) !important; }
}

/* ---------- Tags, dots, thin bars and the soft area chart ---------- */
.cb-tag {
    display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .75rem; border-radius: 999px;
    background: var(--cb-page); color: var(--cb-ink-soft); font-size: var(--cb-fs-14); font-weight: 700; line-height: 1.2;
}
.cb-tag-warm { background: var(--cb-warm); color: var(--cb-action); }
.cb-tag-broilers { background: var(--cb-broilers-soft); color: var(--cb-brand); }
.cb-tag-layers { background: var(--cb-warm-soft); color: var(--cb-warm-ink); }
.cb-tag-good { background: var(--cb-brand-soft); color: var(--cb-brand); }
.cb-tag-bad { background: var(--cb-critical-soft); color: var(--cb-critical); }
.cb-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cb-action); }
.cb-dot.is-broilers { background: var(--cb-broilers); }
.cb-dot.is-layers { background: var(--cb-warm); }
.cb-progress { display: block; }
.cb-progress > span { display: block; height: 100%; background: var(--cb-brand); }
.cb-progress > span.is-broilers { background: var(--cb-broilers); }
.cb-progress > span.is-layers { background: var(--cb-warm); }
.cb-area { width: 100%; height: auto; display: block; }
.cb-area-fill { stroke: none; }
.cb-area-fill.is-broilers { fill: var(--cb-broilers); opacity: .14; }
.cb-area-fill.is-layers { fill: var(--cb-warm); opacity: .12; }
.cb-area-line { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.cb-area-line.is-broilers { stroke: var(--cb-broilers); }
.cb-area-line.is-layers { stroke: var(--cb-warm); }

/* ---------- Design pieces page: the new look laid out like a dashboard ---------- */
.cb-look-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 1.2rem 0 1rem; }
.cb-look-title { margin: 0; font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; color: var(--cb-action); }
.cb-look-sub { margin: .2rem 0 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.cb-look-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cb-look-actions .cb-svg { width: 18px; height: 18px; }
.cb-look-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: var(--cb-gap); }
.cb-look-search { flex: 1; display: flex; align-items: center; gap: .6rem; min-height: 46px; padding: 0 1.1rem; border-radius: 999px; background: var(--cb-pill); margin: 0; }
.cb-look-search svg { width: 18px; height: 18px; fill: none; stroke: var(--cb-ink-soft); stroke-width: 2; stroke-linecap: round; flex: none; }
.cb-look-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 0 !important; min-height: 0; outline: 0; }
.cb-look-bar .cb-me-initials { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 700; }
.cb-look-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cb-gap); }
.cb-look-wide { grid-column: span 2; }
.cb-look-chart { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1.2rem; align-items: end; }
.cb-look-label { margin: 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.cb-look-chart p { margin: 0 0 .35rem; }
.cb-look-progress { margin-bottom: .85rem; }
.cb-look-progress p { display: flex; justify-content: space-between; margin: 0 0 .35rem; font-size: var(--cb-fs-16); color: var(--cb-ink-soft); }
.cb-look-progress b { color: var(--cb-action); }
.cb-look-clock { font-size: 3rem; margin: .1rem 0 .6rem; }
@media (max-width: 991px) {
    .cb-look-grid { grid-template-columns: minmax(0, 1fr); }
    .cb-look-wide { grid-column: auto; }
    .cb-look-chart { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Leftovers found by checking every page ---------- */
/* Back arrow beside a page title: a round grey button */
.back-arrow {
    width: 40px; height: 40px; border-radius: 50% !important; justify-content: center; flex: none;
}
.back-arrow:hover { background: var(--cb-line-strong) !important; }
.back-arrow .back-arrow-icon, .back-arrow .back-arrow-icon:hover { background: transparent; padding: 0; color: var(--cb-action); }

/* Page numbers: round grey buttons, the page you are on in deep green */
.pagination a, .pagination button, .pagination button:disabled {
    height: 38px; min-width: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; border: 0; background: var(--cb-pill); color: var(--cb-action); font-weight: 600;
}
.pagination a:hover { background: var(--cb-line-strong); color: var(--cb-action); }
.pagination a.active, .pagination a.active:hover { background: var(--cb-brand); color: var(--cb-card); }
.pagination button:disabled { color: var(--cb-ink-soft); opacity: .6; cursor: default; }

/* Main buttons that kept square corners */
.cb-budget-save, .cb-budget-quick button, .today-save {
    border-radius: 999px !important; padding-left: 1.4rem; padding-right: 1.4rem;
}
.cb-budget-save.is-plain { background: var(--cb-pill); border-color: transparent; color: var(--cb-action); }
.disabled-button, .inv-remove { border-radius: 999px !important; }
.disabled-button { background: var(--cb-pill) !important; border-color: transparent !important; }

/* ---------- Black main buttons ---------- */
/* Buttons that were filled deep green are black now, like the main button;
   deep green stays only for "where you are" (menu, picked chip, page number). */
.black-button.cb-create-button, .cb-budget-save:not(.is-plain) {
    background: var(--cb-action) !important; border-color: var(--cb-action) !important; color: var(--cb-card) !important;
}
.black-button.cb-create-button:hover,
.cb-budget-save:not(.is-plain):hover {
    background: var(--cb-action) !important; border-color: var(--cb-action) !important; color: var(--cb-card) !important;
}
/* Icons inside the grey pills are black too, not green */
.gray-button svg, .gray-button i, .white-button svg, .white-button i, .print-button svg, .print-button i,
.edit-button svg, .edit-button i, .cc-pill svg, .cc-pill i, .cb-reach-button svg, .cb-reach-button i,
.settings-buttons a svg, .settings-buttons a i, .tile-buttons a svg, .tile-buttons a i, .delete-button svg, .delete-button i {
    color: var(--cb-action) !important; fill: currentColor;
}
.red-button svg, .red-button i { color: var(--cb-critical) !important; }

/* Design pieces page: each piece with its class name under it */
.cb-demo-item { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .45rem; margin: 0; }
.cb-demo-item figcaption { font-family: ui-monospace, monospace; font-size: var(--cb-fs-12); color: var(--cb-ink-soft); }
.cb-demo-nav.status-nav { padding: 0; list-style: none; }

/* =====================================================================
   ONE STYLE
   One version of each piece. Older class names that pages still use
   are listed with the one they now look exactly like, so every page
   shows the same main button, grey button, chip, tag and box.
   The Design pieces page (/demo/) shows each one.
   ===================================================================== */

/* Main button: black pill, white words (black-button) */
.black-button, .cb-hub-button, .cb-pill:not(.is-soft), .default-button, .preset-button, .success-button,
.cb-quick-save, .today-save, .qs-save, .week-save, .count-save, .ft-save,
.cb-budget-save:not(.is-plain), .lp-btn-main, .cb-email-actions button, .cf-amount button,
.cb-budget-quick button, .cb-rpt-range-custom button {
    background: var(--cb-action) !important; color: var(--cb-card) !important; border: 0 !important;
    border-radius: 999px !important; font-weight: 700 !important; min-height: 44px; box-shadow: none !important;
    text-decoration: none;
}
.black-button:hover, .cb-hub-button:hover, .cb-pill:not(.is-soft):hover, .default-button:hover, .preset-button:hover,
.success-button:hover, .cb-quick-save:hover, .today-save:hover, .qs-save:hover, .week-save:hover, .count-save:hover,
.ft-save:hover, .cb-budget-save:not(.is-plain):hover, .lp-btn-main:hover,
.cb-email-actions button:hover, .cf-amount button:hover, .cb-budget-quick button:hover, .cb-rpt-range-custom button:hover {
    background: var(--cb-action) !important; color: var(--cb-card) !important;
}
.black-button:disabled, .cb-quick-save:disabled, .today-save:disabled, .qs-save:disabled { opacity: .45; cursor: default; }

/* Grey button: grey pill, black words and icon (gray-button). Red words only to delete (red-button). */
.gray-button, .white-button, .print-button, .edit-button, .delete-button, .disable-button, .disabled-button,
.cc-pill, .cb-reach-button, .cb-pill.is-soft, .cb-budget-save.is-plain, .settings-buttons a, .tile-buttons a,
.lp-btn-quiet, .st-edit, .st-remove, .red-button, .ft-more button, .ft-more a {
    background: var(--cb-pill) !important; color: var(--cb-action) !important; border: 0 !important;
    border-radius: 999px !important; font-weight: 600 !important; box-shadow: none !important; text-decoration: none;
}
.gray-button, .white-button, .print-button, .edit-button, .delete-button, .disable-button, .disabled-button,
.cc-pill, .cb-reach-button, .cb-pill.is-soft, .cb-budget-save.is-plain, .settings-buttons a, .tile-buttons a,
.lp-btn-quiet, .red-button, .ft-more button, .ft-more a { min-height: 44px; }
.gray-button:hover, .white-button:hover, .print-button:hover, .edit-button:hover, .delete-button:hover, .cc-pill:hover,
.cb-reach-button:hover, .cb-pill.is-soft:hover, .cb-budget-save.is-plain:hover, .settings-buttons a:hover,
.tile-buttons a:hover, .lp-btn-quiet:hover, .st-edit:hover, .st-remove:hover, .red-button:hover {
    background: var(--cb-line-strong) !important; color: var(--cb-action) !important;
}
.red-button, .red-button:hover, .st-remove, .st-remove:hover { color: var(--cb-critical) !important; }
.disabled-button, .disable-button { color: var(--cb-ink-soft) !important; cursor: default; }

/* Chip: grey pill to pick one thing; the picked one is deep green (status-nav) */
.today-days a, .today-yesterday a, .week-chips a, .count-chips a, .qs-chips label, .cb-quick-pick, .tx-chip, .cb-demo-nav a {
    background: var(--cb-pill) !important; color: var(--cb-action) !important; border: 0 !important;
    border-radius: 999px !important; font-weight: 600 !important; min-height: 40px; padding: 0 1rem !important;
    display: inline-flex; align-items: center; text-decoration: none;
}
.today-days a.is-active, .week-chips a.is-active, .count-chips a.is-active, .qs-chips input:checked + label,
.cb-quick-pick.is-picked, .tx-chip.is-on,
.cb-demo-nav a.is-main {
    background: var(--cb-brand) !important; color: var(--cb-card) !important;
}

/* Tag: one small round label; the colour says what it means (cb-tag or label-small) */
.cb-tag, .label-small, .badge, .inv-pill, .today-badge, .cb-vx-status, .cb-docs-count, .lp-tag, .cb-docs-kicker, .cb-batch-status, .st-rate, .cb-weight-target__verdict, .aft-badge, .cb-quick-done {
    display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px !important; border: 0 !important;
    padding: .2rem .7rem !important; font-size: var(--cb-fs-14) !important; font-weight: 600 !important; line-height: 1.35;
    white-space: nowrap;
}
.cb-tag:not([class*="cb-tag-"]), .label-gray, .cb-docs-count, .cb-batch-status:not(.is-active) { background: var(--cb-pill) !important; color: var(--cb-ink-soft) !important; }
.cb-tag-broilers { background: var(--cb-broilers-soft) !important; color: var(--cb-brand) !important; }
.cb-tag-layers { background: var(--cb-warm-soft) !important; color: var(--cb-warm-ink) !important; }
.cb-tag-good { background: var(--cb-brand-soft) !important; color: var(--cb-brand) !important; }
.cb-tag-bad { background: var(--cb-critical-soft) !important; color: var(--cb-critical) !important; }
.cb-text-input { min-height: 44px; padding: 0 .9rem; }
.cb-tag-warm { background: var(--cb-brand-soft) !important; color: var(--cb-brand) !important; }

/* Boxes to type in: white, one thin line, round corners */
main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="search"]):not([type="hidden"]):not(.search-input),
main select, main textarea {
    border-radius: 14px !important; border: 1px solid var(--cb-line-strong) !important; box-shadow: none !important;
}
main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="search"]):not([type="hidden"]):not(.search-input):not(.inactive-input),
main select, main textarea { background-color: var(--cb-card) !important; }
main table input:not([type="checkbox"]):not([type="radio"]), main table select { border-radius: 10px !important; }
main input:focus, main select:focus, main textarea:focus { border-color: var(--cb-brand) !important; outline: 2px solid var(--cb-line-strong); outline-offset: 0; }

/* Notes: one round soft box, no line */
.alert { border: 0 !important; border-radius: 14px !important; }
/* Names and amounts in cards and rows are black; only the small line under them is grey */
.cb-item-text strong, .cb-batch-name, .cb-batch-stats strong, .cb-batch-money strong, .cb-side-name { color: var(--cb-action); }
/* One page title on every page */
.content-area h1:not(.lp-title):not(.lp-hero-title) {
    font-size: var(--cb-fs-32) !important; line-height: var(--cb-lh-tight); font-weight: 700 !important; letter-spacing: -.03em; color: var(--cb-action);
}
/* One card on every page: white, round, no line */
.ft-card, .qs-card, .count-card, .cc-card, .cc-stat, .cf-stat, .tile-blog {
    background: var(--cb-card) !important; border-color: transparent !important; box-shadow: var(--cb-card-shadow) !important;
    border-radius: var(--cb-radius) !important;
}

/* =====================================================================
   COLOUR ONLY AS SMALL ACCENTS
   Pages stay grey and white. Colour is only in the small things: the
   Paid / Not paid tags, the broilers and layers dots and icons, the batch
   bar. Red stays for problems, the main button stays black.
   ===================================================================== */
.cb-tag-good, .label-green, .cb-quick-done { background: var(--cb-brand-soft) !important; color: var(--cb-brand) !important; }
.cb-tag-warm, .label-orange { background: var(--cb-warm-soft) !important; color: var(--cb-warm-ink) !important; }
.today-badge { background: var(--cb-brand-soft) !important; color: var(--cb-brand) !important; }
.today-badge.todo { background: var(--cb-warm-soft) !important; color: var(--cb-warm-ink) !important; }
.cb-home-feed.is-low, .cb-batch-wait { background: var(--cb-warm-soft); color: var(--cb-warm-ink); }
.cb-home-feed.is-low .cb-svg, .cb-batch-wait .cb-svg { color: var(--cb-brand); }
/* Broilers orange and layers blue wherever their own icon sits in a title */
.cb-inline-icon.cb-svg-broilers, h1 .cb-svg-broilers, h2 .cb-svg-broilers { color: var(--cb-brand); }
.cb-inline-icon.cb-svg-layers, h1 .cb-svg-layers, h2 .cb-svg-layers { color: var(--cb-warm-ink); }

/* Batch cards: no coloured block on top, only a small coloured icon */
.cb-batch-card .cb-batch-band { background: none !important; color: var(--cb-ink-soft) !important; min-height: 0 !important; padding: .55rem .75rem 0 !important; }
.is-broilers .cb-batch-band-icon { color: var(--cb-brand); }
.is-layers .cb-batch-band-icon { color: var(--cb-warm-ink); }
.cb-batch-bar span { background: var(--cb-broilers); }
.is-layers .cb-batch-bar span { background: var(--cb-warm); }

/* Home's small batch cards: side by side, about half the height */
.cb-bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 2.25rem; }
.cb-bcard {
    display: flex; flex-direction: column; padding: 1rem 1.15rem 1.1rem; background: var(--cb-card);
    border-radius: var(--cb-radius); color: var(--cb-action); text-decoration: none;
}
.cb-bcard:hover { color: var(--cb-action); text-decoration: none; box-shadow: 0 0 0 1px var(--cb-line-strong); }
.cb-bcard-name { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .3rem; font-size: var(--cb-fs-20); font-weight: 700; letter-spacing: -.01em; }
.cb-bcard-line { margin-top: .1rem; font-size: var(--cb-fs-16); color: var(--cb-ink-soft); }
.cb-bcard .cb-batch-bar { height: 6px; margin: .6rem 0 0; }
.cb-bcard .cb-batch-wait { margin: .7rem 0 0; padding: .35rem .65rem; font-size: var(--cb-fs-14); }
.cb-bcard-foot { display: flex; gap: 1.75rem; margin-top: .85rem; }
.cb-bcard-foot > span { display: flex; flex-direction: column; min-width: 0; }
.cb-bcard-foot small { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-bcard-foot strong { font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); }
.cb-bcard-foot strong.is-loss { color: var(--cb-critical); }
.cb-home-batches .cb-home-feed { margin: 0 0 1rem; }

/* Buttons beside a page title sit on the title's line, even when a small line sits under the title */
.page-heading { align-items: flex-start !important; }
.page-heading .right-section { align-self: flex-start; }
.cc-profile { align-items: flex-start; }
.cb-batch-head { align-items: flex-start; }
.cb-batch-kicker { display: block; line-height: 1.2rem; }
.cb-batch-head .cb-batch-actions { margin-top: 1.35rem; }
.cb-home-batches .cb-hub-group-head { align-items: center; margin-bottom: .75rem; }
.cb-home-batches .cb-hub-group-title { margin-bottom: 0; }

/* Tables: rows only, no lines between the columns (the month calendar keeps its grid) */
table:not(.monthly-grid-table) tbody tr td:not(:first-child), table:not(.monthly-grid-table) thead th:not(:first-child),
table:not(.monthly-grid-table) tbody tr td:not(:last-child), table:not(.monthly-grid-table) thead th:not(:last-child) {
    border-left: 0; border-right: 0;
}

/* =====================================================================
   One type ramp (palette.css --cb-fs-*): body 16 on 1.5, small 14,
   labels 12, card titles 18, section titles 20, page titles 32 (24 on
   phones). Shown at /demo/.
   ===================================================================== */
body { line-height: var(--cb-lh); }
p { font-size: var(--cb-fs-16); line-height: var(--cb-lh); }
p span, p a, p strong, p em, p b { font-size: inherit; }
.cb-hub-group-title, .cb-card-head h2, .cb-card-head h3 { font-size: var(--cb-fs-20) !important; line-height: var(--cb-lh-tight); }
.tile h2, .st-section h2, .cb-side-card h2, .cb-rpt-card h2, .cc-card h2 { font-size: var(--cb-fs-18) !important; line-height: var(--cb-lh-tight); }
table thead th { font-size: var(--cb-fs-12); }
table tbody td { font-size: var(--cb-fs-14); }
small { font-size: var(--cb-fs-12); }

/* =====================================================================
   Cards: white, one radius, a hair of depth (a faint ring and a soft
   shadow), 24px inside, 16px between; a card you can tap lifts a little.
   ===================================================================== */
.cb-list-card, .cb-grid-card, .cb-items, .cb-batch-card { box-shadow: var(--cb-card-shadow) !important; }
a.cb-item:hover { background: var(--cb-page); }

/* Home's batch cards: the name, a big number with a small label, the
   day and its bar, then one money line under a hairline */
.cb-bcards { gap: var(--cb-card-gap); }
.cb-bcard {
    position: relative; gap: 0; padding: 20px var(--cb-card-pad) 18px; box-shadow: var(--cb-card-shadow);
    transition: box-shadow .15s ease, transform .15s ease;
}
.cb-bcard:hover, .cb-bcard:focus-visible { box-shadow: var(--cb-card-shadow-up); transform: translateY(-1px); }
/* The top of the card in the batch's own colour (sage broilers, rose layers): the name and a white arrow */
.cb-bcard-name {
    margin: -20px calc(-1 * var(--cb-card-pad)) 0; padding: 0 64px 0 var(--cb-card-pad); min-height: 64px; align-items: center;
    font-size: var(--cb-fs-18); line-height: var(--cb-lh-tight); background: var(--cb-broilers-soft);
    border-radius: var(--cb-radius) var(--cb-radius) 0 0;
}
.is-layers .cb-bcard-name { background: var(--cb-warm-soft); }
.cb-bcard::after { content: ""; position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--cb-card); }
.cb-bcard-name .cb-batch-chev { position: absolute; top: 27px; right: 32px; z-index: 1; margin: 0; width: 9px; height: 9px; }
.cb-bcard-big { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.cb-bcard-big strong { font-size: var(--cb-fs-32); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--cb-action); }
.cb-bcard-big small { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-bcard-line { margin-top: 12px; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-bcard .cb-batch-bar { height: 6px; margin: 6px 0 16px; }
.cb-bcard .cb-batch-wait { margin: 0 0 16px; }
.cb-bcard-foot {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--cb-pill);
}
.cb-bcard-foot > span { flex-direction: row; align-items: baseline; justify-content: space-between; width: 100%; gap: 12px; }
.cb-bcard-foot small { font-size: var(--cb-fs-14); }
.cb-bcard-foot strong { font-size: var(--cb-fs-16); }

/* A place's other main pages, as tabs along its top (Money: Overview, Expenses,
   Budget, Cash flow). The page you're on is underlined in the "you are here" green. */
.cb-place-tabs {
    display: flex; gap: 4px; margin: 4px 16px 16px 12px; padding: 0 0 0 0; border-bottom: 1px solid var(--cb-pill);
    overflow-x: auto; scrollbar-width: none;
}
.cb-place-tabs::-webkit-scrollbar { display: none; }
.cb-place-tabs a {
    flex: none; padding: 10px 14px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent;
    color: var(--cb-ink-soft); font-size: var(--cb-fs-16); font-weight: 600; line-height: var(--cb-lh-tight);
    text-decoration: none; white-space: nowrap;
}
.cb-place-tabs a:hover { color: var(--cb-action); }
.cb-place-tabs a.is-current { color: var(--cb-action); border-bottom-color: var(--cb-brand); }
@media (max-width: 640px) { .cb-place-tabs { margin: 0 0 12px; padding: 0 12px; } }
/* The section header card (base.html builds it): the page's title, its line and
   main button in one white card, with the place's pages as a row of links along
   its foot. Same order and width on every page; the one you're on is underlined. */
.cb-section-card {
    display: flex !important; flex-wrap: wrap !important; align-items: center !important; justify-content: space-between !important;
    gap: 12px 16px !important; margin: 0 0 20px !important; padding: 22px 28px 0 !important;
    background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: 24px; box-sizing: border-box;
}
.cb-section-card > :not(.cb-place-tabs) { min-width: 0; }
.cb-section-card > .cb-page-head-text, .cb-section-card > .cb-section-text { flex: 1 1 280px; }
.cb-section-card h1 { margin: 0 !important; }
.cb-section-card .cb-page-sub, .cb-section-card .lead, .cb-section-card .cb-rpt-intro, .cb-section-card .cb-rpt-showing {
    margin: 6px 0 0 !important; color: var(--cb-ink-soft); font-size: var(--cb-fs-16);
}
.cb-place-tabs.is-in-card {
    flex: 0 0 calc(100% + 56px); order: 99; display: flex; gap: 4px; margin: 6px -28px 0; padding: 0 20px;
    border-top: 1px solid var(--cb-pill); border-bottom: 0; overflow-x: auto; scrollbar-width: none;
}
.cb-place-tabs.is-in-card a {
    flex: 0 0 auto; padding: 14px 12px 13px; margin: 0; text-align: center; border-bottom: 3px solid transparent;
    color: var(--cb-ink-soft); font-size: var(--cb-fs-16); font-weight: 600;
}
.cb-place-tabs.is-in-card a:hover { color: var(--cb-action); }
.cb-place-tabs.is-in-card a.is-current { color: var(--cb-action); border-bottom-color: var(--cb-action); }
@media (max-width: 640px) {
    .cb-section-card { padding: 16px 16px 0 !important; border-radius: 18px; }
    .cb-place-tabs.is-in-card { flex-basis: calc(100% + 32px); margin: 4px -16px 0; padding: 0 8px; }
    .cb-place-tabs.is-in-card a { padding: 12px 10px 11px; font-size: var(--cb-fs-14); }
}
/* Every page of a place with tabs keeps one width, so cards and buttons stay put */
@media (min-width: 769px) {
    main > .cb-tab-page { width: 100%; max-width: 1100px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 0 !important; padding-right: 0 !important; box-sizing: border-box; }
}

/* Batch pages: a short head card on one line. Back arrow, then the name and
   its line, with the grey pills on the right. */
.cb-page-batch .cc-profile {
    display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    column-gap: 16px; row-gap: 2px; padding: 16px 24px !important;
}
.cb-page-batch .cc-who > .cb-page-sub strong { font-weight: 600; color: var(--cb-action); }
.cb-page-batch .cc-profile-top { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
.cb-page-batch .cc-who { display: contents; }
.cb-page-batch .cc-title { grid-column: 2; grid-row: 1; }
.cb-page-batch .cc-who > .cb-page-sub { grid-column: 2; grid-row: 2; margin: 0; }
.cb-page-batch .cc-reach { grid-column: 3; grid-row: 1 / span 2; margin: 0; justify-content: flex-end; }
@media (max-width: 760px) {
    .cb-page-batch .cc-profile { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px !important; }
    .cb-page-batch .cc-reach { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; margin-top: 12px; }
    /* name and its tags stay on one line on a phone (five-persona audit, Phase 3) */
    .cb-page-batch .cc-title { gap: .3rem .4rem; }
    .cb-page-batch .cc-title h1 { font-size: 1.45rem !important; }
}

/* Feed table pages: name on top with what uses it, three facts in one calm
   card, one table per bird type (Male / Female / Straight run), side cards. */
.cb-ft .cb-ft-sub { margin: .25rem 0 0 54px; color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.cb-ft .cb-ft-facts { display: flex; padding: 0 !important; overflow: hidden; }
.cb-ft .cb-ft-facts .mt-header-tile-section {
    flex: 1 1 0 !important; align-items: flex-start !important; text-align: left !important;
    padding: 18px 22px 18px 22px; border-left: 1px solid var(--cb-pill); border-radius: 0; transition: background .15s;
}
.cb-ft .cb-ft-facts .mt-header-tile-section:first-child { border-left: 0; }
@media (max-width: 768px) {
    .cb-ft .cb-ft-facts { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 !important; }
    .cb-ft .cb-ft-facts .mt-header-tile-section { padding: 14px 16px !important; border-left: 0; }
    .cb-ft .cb-ft-facts .mt-header-tile-section:nth-child(2) { border-left: 1px solid var(--cb-pill); }
    .cb-ft .cb-ft-facts .mt-header-tile-section:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--cb-pill); }
}
.cb-ft .cb-ft-facts .mt-header-tile-section:hover { background: var(--cb-page); }
.cb-ft .cb-ft-facts .mt-header-tile-section h2 { margin: 0 0 .3rem; font-size: var(--cb-fs-14) !important; font-weight: 600; color: var(--cb-ink-soft); }
.cb-ft .cb-ft-facts span { font-size: var(--cb-fs-20); font-weight: 700; color: var(--cb-action); }
.cb-ft .cb-ft-body { padding: 20px 22px !important; }
.cb-ft .cb-ft-body-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.cb-ft .cb-ft-body-head h2 { margin: 0; font-size: var(--cb-fs-18); }
.cb-ft .cb-ft-sex { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cb-pill); }
.cb-ft .cb-ft-sex button { min-height: 36px !important; padding: 0 1rem !important; border-radius: 999px !important; font-size: var(--cb-fs-14); }
.cb-ft .cb-ft-sex .gray-button { background: transparent !important; }
.cb-ft .cb-ft-sex .black-button { background: var(--cb-card) !important; color: var(--cb-action) !important; box-shadow: 0 1px 3px color-mix(in srgb, var(--cb-action) 14.0%, transparent) !important; }
.cb-ft .cb-ft-table table { width: 100%; }
.cb-ft .cb-ft-table th:first-child, .cb-ft .cb-ft-table td:first-child { text-align: left; font-weight: 600; color: var(--cb-action); }
.cb-ft .cb-ft-table th:not(:first-child), .cb-ft .cb-ft-table td:not(:first-child) { text-align: right; }
.cb-ft .cb-ft-table td { padding-top: 10px; padding-bottom: 10px; }
.cb-ft .cb-ft-table th:first-child { white-space: nowrap; min-width: 3.5em; width: 3.5em; overflow: visible; }
@media (max-width: 768px) { .cb-ft .cb-ft-table th, .cb-ft .cb-ft-table td { padding-left: 6px !important; padding-right: 6px !important; } }
.cb-ft .tile-side > .tile h2, .cb-ft #feed-changes h2 { font-size: var(--cb-fs-18); }
.cb-order-notes h2 { padding-left: 0 !important; margin-left: 0 !important; }
.cb-order-notes-none { color: var(--cb-ink-soft); }

/* Copy 170: bigger taps on a phone (stock "Remove", page numbers, small text links) */
@media (max-width: 768px) {
    .inv-remove { min-height: 40px; padding: 0 1rem; }
    .cb-help-link:not(.cb-help-link--inline) { width: 36px; height: 36px; }
    .cb-pages { flex-wrap: wrap; }
    .cb-pages > a { min-width: 36px; justify-content: center; }
    .cb-br-link, .cb-side-edit, .cb-card-head a, .cb-page-tools a { display: inline-block; padding-top: .45rem; padding-bottom: .45rem; }
    td a.gc-blue { display: inline-block; padding: .4rem 0; }
}

/* ---- components/layouts.css ---- */
/* =======================================
   SHARED PAGES (templates/layouts/): one head, one list, one form, one
   detail page and one report page for the whole site, so every page
   looks the same. Loaded after look.css. Demo with made-up data:
   /demo/page/person/, record/, list/, form/, report/.
======================================= */

/* ---------- The head: back arrow, title, tags, line under, buttons on the title line ---------- */
.cb-page-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 1.5rem;
    flex-wrap: wrap; margin: 0 0 1.25rem;
}
.cb-page-head-text { min-width: 0; flex: 1 1 320px; }
.cb-page-head .cc-title, .cb-page-detail .cc-title { flex-wrap: wrap; row-gap: .35rem; }
.cb-page-head .cc-title > h1 { flex: 1 1 12rem; min-width: 0; } /* long titles wrap beside the arrow, not under it */
.cb-page-head h1, .cb-page-detail .cc-title h1 {
    margin: 0; font-size: clamp(1.9rem, 2.6vw, 2.5rem) !important; font-weight: 700 !important;
    letter-spacing: -.03em; line-height: 1.15; color: var(--cb-action); overflow-wrap: anywhere;
}
.cb-page-detail .cc-title h1 { font-size: clamp(1.7rem, 2.2vw, 2.1rem) !important; }
.cb-page-head .cc-title > .label-small, .cb-page-detail .cc-title > .label-small,
.cb-page-head .cc-title > .cb-tag, .cb-page-detail .cc-title > .cb-tag { align-self: center; }
.cb-page-sub { margin: .3rem 0 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.cb-page-sub:empty, .cc-reach:empty, .cb-page-side:empty, .cb-page-head-buttons:empty { display: none; }
.cb-page-head-buttons { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding-top: .2rem; }
.cb-page-detail .cc-who > .cb-page-sub { margin: .3rem 0 .9rem; }
.cb-page-detail .cc-who > .cb-page-sub:empty + .cc-reach { margin-top: .9rem; }
.cb-page-detail .cc-profile > .black-button,
.cb-page-detail .cc-profile > .create-menu { flex: none; }
.cc-back { background: transparent; color: var(--cb-action); width: 40px; height: 40px; border-radius: 50%; font-size: 1.15rem; }
.cc-back:hover, .cc-back:focus-visible { background: var(--cb-pill); color: var(--cb-action); }
/* Detail pages: the back arrow sits just left of the name */
.cb-page-detail .cc-title > .cc-back { margin: 0 -.1rem 0 -.6rem; align-self: center; }
.cb-page-detail .cc-reach .create-menu { display: inline-flex; }
/* Payment terms in a customer's Details card */
.cb-fact-edit { border: 0; background: none; padding: 0 0 0 .15rem; font: inherit; color: var(--cb-ink-soft); text-decoration: underline; cursor: pointer; }
.cb-fact-edit:hover { color: var(--cb-action); }
.cb-fact-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; }
.cb-fact-form[hidden] { display: none; }
.cb-fact-form select { flex: 1 1 10rem; min-height: 40px; }
.cb-fact-form small { flex-basis: 100%; color: var(--cb-ink-soft); font-size: var(--cb-fs-12); }

/* ---------- Detail page: main column + right column of cards ---------- */
.cb-page-side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.cc-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
.cc-stat small { display: block; margin-top: .2rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cc-stat.is-warn strong { color: var(--cb-warm-ink); }
.cb-fact-empty { color: var(--cb-ink-soft) !important; }
.cc-card > .cb-facts, .cc-card > .cb-rows { margin-top: 0; }
.cb-rows { display: flex; flex-direction: column; }
.cb-row {
    display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--cb-pill);
    color: var(--cb-action); text-decoration: none;
}
.cb-rows > .cb-row { flex-wrap: nowrap; } /* forms.css lets form rows wrap; list rows stay on one line */
.cb-row:first-child { border-top: 0; padding-top: 0; }
.cb-form > input[type="hidden"] + .cb-row, .cb-form > .cb-row:first-child { border-top: 0; padding-top: 0; } /* first form row after the hidden token */
.cb-row:last-child { padding-bottom: 0; }
a.cb-row:hover strong { color: var(--cb-brand); }
.cb-row-text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cb-row-text small { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-row-end { margin-left: auto; text-align: right; font-weight: 700; white-space: nowrap; }
.cb-row-end small { display: block; font-weight: 500; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-card-buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }

/* ---------- List page: tools card, rows card, page numbers ---------- */
.cb-list-tools {
    display: flex; align-items: center; flex-wrap: wrap; gap: .75rem;
    background: var(--cb-card); border-radius: var(--cb-radius); padding: .9rem 1.1rem; margin: 0 0 1rem;
}
.cb-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.cb-chip {
    display: inline-flex; align-items: center; min-height: 38px; padding: 0 1rem; border-radius: 999px;
    background: var(--cb-pill); color: var(--cb-action); font-weight: 600; font-size: var(--cb-fs-16); text-decoration: none;
}
.cb-chip:hover { color: var(--cb-action); filter: brightness(.97); }
.cb-chip.is-on { background: var(--cb-brand); color: var(--cb-card); }
.cb-search {
    flex: 1 1 240px; display: flex; align-items: center; gap: .6rem; margin: 0;
    min-height: 40px; padding: 0 1rem; border-radius: 999px; background: var(--cb-pill); color: var(--cb-ink-soft);
}
.cb-search input {
    flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
    padding: 0 !important; height: 40px; font: inherit; color: var(--cb-action); outline: none;
}
.cb-sort { display: flex; align-items: center; gap: .5rem; margin: 0 0 0 auto; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-sort select {
    min-height: 40px; padding: 0 .9rem 0 1rem !important; border-radius: 999px !important; border: 0 !important;
    background-color: var(--cb-pill) !important; color: var(--cb-action); font-weight: 600; font-size: var(--cb-fs-16); width: auto;
}
.cb-sort.is-compact { gap: .35rem; min-height: 36px; padding: 0 .3rem 0 .85rem; border-radius: 999px; background: var(--cb-pill); color: var(--cb-action); }
.cb-sort.is-compact select { min-height: 36px; padding: 0 .5rem 0 0 !important; background-color: transparent !important; font-size: var(--cb-fs-14); }
/* One payslip page: its lines and the sums under them */
.cb-wage-lines { width: 100%; border-collapse: collapse; }
.cb-wage-lines th { font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-ink-soft); text-align: left; padding: .5rem .25rem; border-bottom: 1px solid var(--cb-line-strong); }
.cb-wage-lines td { padding: .65rem .25rem; border-bottom: 1px solid var(--cb-line-strong); }
.cb-wage-lines .num { text-align: right; white-space: nowrap; }
.cb-wage-sums { max-width: 320px; margin: 1rem 0 0 auto; }
.cb-wage-sums > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem .25rem; }
.cb-wage-sums > .is-total { margin-top: .4rem; padding: .7rem 1rem; border-radius: 12px; background: var(--cb-action); color: var(--cb-card); }
.cb-wage-sums > .is-total > * { color: inherit; }
/* Kinds of expenses: a row of pills above the list (finance_management/_expense_kinds.html) */
.cb-kind-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.cb-kind-links a { padding: .45rem 1rem; border-radius: 999px; background: var(--cb-pill); color: var(--cb-action); font-weight: 600; font-size: var(--cb-fs-14); text-decoration: none; }
.cb-kind-links a:hover { background: var(--cb-line-strong); }
.cb-kind-links a.is-current { background: var(--cb-action); color: var(--cb-card); }
.cb-list-card { background: var(--cb-card); border-radius: var(--cb-radius); padding: 1rem 1.25rem 1.25rem; }
.cb-list-card .tile { padding: 0 !important; margin: 0 !important; }
.cb-list-card > .min-height, .cb-list-card .table-wrap { overflow-x: auto; }
.cb-pages { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 1.25rem; }
.cb-pages > a, .cb-pages > span {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
    background: var(--cb-pill); color: var(--cb-action); font-weight: 600; text-decoration: none;
}
.cb-pages > span { opacity: .45; }
.cb-pages > a.is-on { background: var(--cb-brand); color: var(--cb-card); }
.cb-list-empty { text-align: center; padding: 2.5rem 1rem; color: var(--cb-ink-soft); }
.cb-list-empty h2 { font-size: var(--cb-fs-20); color: var(--cb-action); margin: 0 0 .4rem; }
.cb-list-empty p { max-width: 34rem; margin: 0 auto .9rem; }
.cb-list-empty strong { display: block; margin: 0 0 .9rem; font-size: var(--cb-fs-18); color: var(--cb-action); }
.cb-list-empty p:last-child { margin-bottom: 0; }
.cb-list-empty p a + a { margin-left: .5rem; }
/* A list with nothing in it yet: the row holding the message doesn't light up */
table tbody tr:has(.cb-list-empty), table tbody tr:has(.cb-list-empty):hover, table tbody tr:has(.cb-list-empty):hover td { background: transparent !important; cursor: default; }
table tbody tr:has(.cb-list-empty) td { border-bottom: 0 !important; }

/* ---------- Form page: one calm column ---------- */
.cb-page.cb-page-form { max-width: 860px; }
.cb-form-column { display: flex; flex-direction: column; gap: 1.25rem; }
.cb-form-column > form { display: flex; flex-direction: column; gap: 1.25rem; }
.cb-form-buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.cb-form-buttons > form { margin: 0; }

/* ---------- Pop-up boxes (delete, archive...): one look ---------- */
.modal-content { border: 0 !important; border-radius: var(--cb-radius) !important; padding: .5rem .5rem .75rem; box-shadow: 0 24px 60px color-mix(in srgb, var(--cb-action) 22.0%, transparent) !important; }
.modal-header, .modal-footer { border: 0 !important; }
.modal-header { padding: 1.1rem 1.25rem .25rem; }
.modal-title { font-size: var(--cb-fs-20); font-weight: 700; color: var(--cb-action); }
.modal-body { padding: .5rem 1.25rem; color: var(--cb-ink-soft); }
.modal-body p:last-child { margin-bottom: 0; }
.modal-footer { padding: .75rem 1.25rem .5rem; gap: .5rem; }
.modal-footer > * { margin: 0 !important; }
.modal-footer form { margin: 0; }
.modal .btn-close {
    width: 36px; height: 36px; padding: 0; border-radius: 50%; opacity: 1;
    background: var(--cb-pill) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2316181d'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / 12px auto no-repeat;
}
.modal .btn-close > span { display: none; }
.modal-body .cb-subtitle { background: none !important; padding: 0 !important; color: var(--cb-ink-soft) !important; border: 0 !important; }

/* ---------- Little pop-up menus (Create order, Sort, report filters): the drop-down card look ---------- */
.ud-menu, .chart-dropdown-menu, .dropdown-menu {
    border: 1px solid var(--cb-pill) !important; border-radius: 16px !important; padding: 6px !important;
    background: var(--cb-card) !important; box-shadow: 0 12px 32px color-mix(in srgb, var(--cb-action) 14.0%, transparent) !important; min-width: 12rem;
}
.ud-menu-m, .ud-menu-l { width: auto !important; min-width: 12rem; }
.ud-menu-item { font-size: var(--cb-fs-16); }
/* Delete or Archive at the foot of an Edit menu: red words, a line above */
.ud-menu-item:has(> a.is-danger) { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid var(--cb-pill); }
.ud-menu-item a.is-danger, .ud-menu-item a.is-danger:hover { color: var(--cb-critical) !important; }
.ud-menu-item a, .chart-dropdown-item a, .dropdown-menu .dropdown-item {
    display: block; padding: .55rem .8rem !important; border-radius: 10px; font-size: var(--cb-fs-16) !important;
    color: var(--cb-action) !important; text-decoration: none; white-space: nowrap;
}
.ud-menu-item a:hover, .chart-dropdown-item a:hover, .dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus, .chart-dropdown-item.active a, .dropdown-menu .dropdown-item.active {
    background: var(--cb-brand-soft) !important; color: var(--cb-brand) !important;
}
.chart-dropdown-menu .divider, .dropdown-menu .dropdown-divider { margin: 4px 6px; }

@media (max-width: 768px) {
    .cb-page-head { margin-bottom: 1rem; }
    .cb-page-head-buttons { width: 100%; }
    .cb-sort { margin-left: 0; }
    .cb-list-card { padding: .75rem .9rem 1rem; }
    .cb-page-detail .cc-profile > .black-button, .cb-page-detail .cc-profile > .create-menu { width: 100%; }
}

/* The strip on top of the page-type demos (/demo/page/...), laptop only */
.cb-demo-pagenav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 1.25rem; padding: .6rem .9rem; border-radius: 16px; background: var(--cb-warm-soft); color: var(--cb-warm-ink); font-size: var(--cb-fs-14); }
.cb-demo-pagenav nav { display: flex; flex-wrap: wrap; gap: .35rem; }
.cb-demo-pagenav a { padding: .25rem .75rem; border-radius: 999px; background: var(--cb-card); color: var(--cb-action); font-weight: 600; text-decoration: none; }
.cb-demo-pagenav a.is-on { background: var(--cb-brand); color: var(--cb-card); }
.cb-pill-form { display: contents; }
.cb-sell-wait { margin: 0 !important; border-radius: 18px; }
.cb-inline-form { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }
.cb-inline-form > input, .cb-inline-form > select { flex: 1 1 220px; width: auto; }
.cb-row strong { color: var(--cb-action); } a.cb-row:hover strong { color: var(--cb-brand); }
.cb-list-card .min-height { min-height: 0 !important; }

/* Forms on the shared form page: the white card has no line or shadow, the buttons sit plainly at the bottom right */
.cb-page-form .cb-wrapper { max-width: none; margin: 0; padding: 1.5rem 1.75rem; border: 0; box-shadow: none; border-radius: var(--cb-radius); }
.cb-page-form .cb-wrapper .cb-form-actions, .cb-page-form .cb-form-actions, .cb-page-form .settings-buttons {
    margin: 1.5rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--cb-pill); background: none; border-radius: 0;
    display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem;
}
.cb-page-form .cb-wrapper hr, .cb-page-form .cb-wrapper hr.my-4 { margin: 1.5rem -1.75rem !important; }
.cb-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; margin-top: .25rem; }
.cb-field.is-wide { grid-column: 1 / -1; }
.cb-field .form-label { display: block; margin-bottom: .35rem; font-weight: 600; color: var(--cb-action); }
.cb-optional { font-weight: 500; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-field-hint { display: block; margin-top: .3rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-field-error { margin: .3rem 0 0; color: var(--cb-critical); font-size: var(--cb-fs-14); }
.cb-field.has-error input, .cb-field.has-error select, .cb-field.has-error textarea { border-color: var(--cb-critical) !important; }
.cb-form-errors { margin-bottom: 1rem; color: var(--cb-critical); }
.cb-form-errors ul { margin: 0; padding-left: 1.2rem; }
.cb-page-form .cc-card h2 { margin: 0 0 .75rem; font-size: var(--cb-fs-18); font-weight: 700; }
@media (max-width: 640px) { .cb-fields { grid-template-columns: 1fr; } .cb-page-form .cb-wrapper { padding: 1.1rem 1rem; } }

/* LAST OLD CORNERS: the few buttons that still had square edges (probe: scratchpad/all.mjs) */
.cf-change { border-radius: 999px; padding: .25rem .7rem; background: var(--cb-pill); color: var(--cb-action); }
.close-message, .success-close-btn { border-radius: 999px !important; background: var(--cb-pill); color: var(--cb-action); }
.cb-shift-delete button { border: 0; border-radius: 999px; padding: .55rem 1.1rem; background: var(--cb-pill); color: var(--cb-critical); font-weight: 600; cursor: pointer; }
.cb-shift-delete button:hover { filter: brightness(.97); }

/* Usage counts (/admin-stats/, site owner only) */
.cb-usage .cc-stats { margin-bottom: 1rem; }
.cb-usage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cb-usage-table { width: 100%; border-collapse: collapse; font-size: var(--cb-fs-16); table-layout: auto !important; }
.cb-usage-table th, .cb-usage-table td { text-align: left !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; width: auto !important; max-width: none !important; background: none !important; border-radius: 0 !important; }
.cb-usage-table th:not(:first-child), .cb-usage-table td:not(:first-child) { text-align: right !important; white-space: nowrap !important; }
.cb-usage-table th { text-align: left; font-weight: 600; color: var(--cb-ink-soft); padding: .4rem .5rem; border-bottom: 1px solid var(--cb-pill); }
.cb-usage-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--cb-pill); }
.cb-usage-table tr:last-child td { border-bottom: 0; }
.cb-usage-table tr.is-zero td { color: var(--cb-ink-soft); }
.cb-usage-table code { font-size: var(--cb-fs-14); color: var(--cb-action); }
.cb-usage-note { margin: .6rem 0 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-usage-bars { display: grid; gap: .35rem; }
.cb-usage-bar { display: grid; grid-template-columns: 6.5rem 1fr 2.5rem; align-items: center; gap: .6rem; font-size: var(--cb-fs-14); }
.cb-usage-track { height: .6rem; border-radius: 999px; background: var(--cb-pill); overflow: hidden; }
.cb-usage-track i { display: block; height: 100%; border-radius: 999px; background: var(--cb-brand); }
.cb-usage-bar strong { text-align: right; }
.cc-pill.is-on { background: var(--cb-brand); color: var(--cb-card); }
@media (max-width: 900px) { .cb-usage-grid { grid-template-columns: 1fr; } }

/* ---------- The head card of a detail or batch page, top to bottom:
   back arrow (main button level with it, on the right), name and tags,
   a short line, the grey pills ---------- */
.cc-profile { display: block !important; padding: 1.8rem 1.75rem !important; }
.cc-profile-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.cc-profile-main { display: flex; align-items: center; gap: .5rem; }
.cc-profile-main:empty { display: none; }
.cc-profile .cc-who { min-width: 0; }
.cc-profile .cc-title { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .6rem; }
.cc-profile .cc-who > .cb-page-sub { margin: .4rem 0 0; }
.cc-profile .cc-reach { margin-top: 1.1rem; }
.cb-page-batch .cc-profile { margin: 0 0 1.25rem; }
.cb-page-batch .cc-title h1 { margin: 0; font-size: clamp(1.7rem, 2.2vw, 2.1rem) !important; font-weight: 700 !important; letter-spacing: -.03em; line-height: 1.15; }
@media (max-width: 768px) {
    .cc-profile { padding: 1.35rem 1.15rem !important; }
    .cc-profile-main .black-button, .cc-profile-main .create-menu { width: auto; }
}

/* Names in tables and on pages are black (deep green only marks where you are) */
.gc-blue, a.gc-blue, .page-title.gc-blue { color: var(--cb-action) !important; }
a.gc-blue:hover { text-decoration: underline; text-underline-offset: 3px; }
td.gc-blue a, td.gc-blue a:visited { color: var(--cb-action); } /* first column names read black, like every table */

/* =====================================================================
   Forms on a strict grid: fields side by side start on the same line
   (labels at the top, boxes level), a hint or link under a box never
   pushes its neighbour down, a lone short field (a date, a number, a
   pick list) is as wide as the others, and every section starts 32px
   below the last one.
   ===================================================================== */
.cb-form .cb-row:not(.cb-input-group) {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 16px; align-items: start;
}
.cb-form .cb-row:not(.cb-input-group) { border-top: 0; padding: 0; margin: 0; }
/* Form lines are not list rows: no line above them and the same 16px gap as
   every other field, so a form keeps one even grid */
.cb-form .cb-row.cb-input-group:not(.cb-sex-option) { border-top: 0; padding: 0; }
.cb-form .cb-row > .cb-col { display: flex; flex-direction: column; justify-content: flex-start; margin: 0 !important; min-width: 0; }
.cb-form .cb-input-group { display: flex; flex-direction: column; align-items: stretch; margin: 0 0 16px; }
.cb-form .cb-input-group > label, .cb-form .cb-input-group > .cb-label { margin: 0 0 8px; min-height: 20px; line-height: 20px; }
.cb-form .cb-input-group > small, .cb-form .cb-input-group > .emp-help { margin-top: 6px; line-height: 1.35; }
.cb-fields { align-items: start; }
.cb-field > small, .cb-field-hint { margin-top: 6px; }
.cb-form .cb-form-section { margin: 32px 0 16px !important; padding-top: 0; }
.cb-form .cb-form-section:first-of-type { margin-top: 0 !important; }
@media (min-width: 641px) {
    .cb-form > .cb-input-group:has(> select, > input[type=date], > input[type=number], > input[type=time], > .cb-date-box),
    .cb-form details > .cb-input-group:has(> select, > input[type=date], > input[type=number], > input[type=time], > .cb-date-box) {
        width: calc(50% - 8px);
    }
}
@media (max-width: 640px) {
    .cb-form .cb-row:not(.cb-input-group) { grid-auto-flow: row; grid-auto-columns: auto; }
}
.cb-order-title { display: flex; align-items: center; gap: .6rem; flex-wrap: nowrap !important; }
.cb-order-title .cb-title { margin: 0; padding: 0; }
@media (max-width: 768px) { .cb-order-title { padding: 0 1rem; } }

/* ---- components/batch_grid.css ---- */
/* =======================================
   BATCH TABLES (templates/layouts/_grid.html, batch.html): one look for a
   broiler batch, a layer flock and one week of either. The first column
   stays put while the days or weeks scroll; a recorded number is big, the
   feed table's plan is small under it; today is marked; a box you can tap
   shows it on hover. Loaded after layouts.css.
======================================= */
.cb-grid-card {
    background: var(--cb-card); border-radius: var(--cb-radius); padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--cb-action) 5%, transparent);
}
.cb-grid-tools { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin: 0 0 1rem; }
.cb-week-nav { display: flex; align-items: center; gap: .75rem; }
.cb-week-nav strong { font-size: var(--cb-fs-16); color: var(--cb-action); }
.cb-week-nav span:not(.cb-round) { color: var(--cb-ink-soft); font-size: var(--cb-fs-16); }
.cb-pay-nav { justify-content: center; margin: .25rem 0 1.25rem; }
.cb-round.is-off { opacity: .35; pointer-events: none; }

.cb-grid-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.25rem; padding: 0 .25rem; }
table.cb-grid {
    width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; table-layout: auto;
    font-variant-numeric: tabular-nums; margin: 0; background: transparent;
}
table.cb-grid th, table.cb-grid td {
    padding: .7rem .6rem; text-align: center; vertical-align: middle; border: 0 !important;
    border-bottom: 1px solid var(--cb-pill) !important; background: var(--cb-card); color: var(--cb-action);
    font-size: var(--cb-fs-16); line-height: 1.3; white-space: nowrap;
}
table.cb-grid tbody tr:last-child > * { border-bottom: 0 !important; }
table.cb-grid small { display: block; margin-top: .15rem; font-size: var(--cb-fs-12); font-weight: 500; color: var(--cb-ink-soft); }

/* Heads: the day or week, and its dates */
table.cb-grid thead th {
    background: var(--cb-page); color: var(--cb-action); font-weight: 600; font-size: var(--cb-fs-14); border-bottom: 0 !important;
    padding: .65rem .6rem; text-transform: none; letter-spacing: 0;
}
table.cb-grid thead th:first-child { border-radius: 14px 0 0 14px; }
table.cb-grid thead th:last-child { border-radius: 0 14px 14px 0; }
table.cb-grid thead th a { color: inherit; text-decoration: none; display: block; }
table.cb-grid thead th a:hover span { text-decoration: underline; text-underline-offset: 3px; }
table.cb-grid thead th span { display: block; }
table.cb-grid thead th.is-today { background: var(--cb-action) !important; color: var(--cb-card) !important; }
table.cb-grid thead th.is-today span { color: inherit !important; }
table.cb-grid thead th.is-today small { color: color-mix(in srgb, var(--cb-card) 72%, transparent); }
table.cb-grid thead th.is-future { color: var(--cb-ink-soft); }

/* The first column: the things, held still */
table.cb-grid .cb-grid-corner, table.cb-grid .cb-grid-label {
    position: sticky; left: 0; z-index: 2; text-align: left; min-width: 10.5rem;
}
table.cb-grid .cb-grid-corner { text-transform: uppercase; font-size: var(--cb-fs-12); letter-spacing: .05em; color: var(--cb-ink-soft); }
table.cb-grid .cb-grid-label { font-weight: 500; color: var(--cb-action); box-shadow: 1px 0 0 var(--cb-pill); }
.cb-grid-label-in { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
table.cb-grid tr.is-strong > * { font-weight: 700; }
table.cb-grid tr.is-strong .cb-v { font-size: var(--cb-fs-16); }

/* A section heading across the table (Eggs, Feed and water) */
table.cb-grid tr.cb-grid-section th {
    text-align: left; padding: 1.1rem .6rem .35rem; font-size: var(--cb-fs-12); font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--cb-ink-soft); position: sticky; left: 0;
}

/* Numbers: muted when nothing (or nought), coloured only to warn */
/* What was recorded: one number, a little bolder, with an arrow against the plan */
table.cb-grid td .cb-v { font-weight: 600; }
.cb-grid-arrow { display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; margin-left: .35rem; border-radius: 50%; vertical-align: -.2rem; }
.cb-grid-arrow svg { width: .7rem; height: .7rem; }
.cb-grid-arrow.is-up { color: var(--cb-action); background: var(--cb-mint); }
.cb-grid-arrow.is-down { color: var(--cb-critical); background: var(--cb-critical-soft); }
.cb-grid-arrow.is-plain { color: var(--cb-ink-soft); background: var(--cb-pill); }
table.cb-grid td.is-muted .cb-v { color: var(--cb-ink-soft); font-weight: 400; }
table.cb-grid td.is-future { background: var(--cb-card); }
table.cb-grid td.is-good .cb-v { color: var(--cb-brand); }
table.cb-grid td.is-watch .cb-v { color: var(--cb-warm-ink); }
table.cb-grid td.is-bad .cb-v { color: var(--cb-critical); }
table.cb-grid td.is-good .cb-v::before, table.cb-grid td.is-watch .cb-v::before, table.cb-grid td.is-bad .cb-v::before {
    content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 .35rem .1rem 0; background: currentColor;
}

/* The week's totals at the end */
table.cb-grid .cb-grid-total { font-weight: 700; background: var(--cb-page); }
table.cb-grid thead .cb-grid-total { background: var(--cb-page); }
table.cb-grid tbody td.cb-grid-total { background: color-mix(in srgb, var(--cb-page) 55%, var(--cb-card)); }

/* A day's box you can tap */
table.cb-grid td.is-tap { cursor: pointer; transition: background .12s ease; }
table.cb-grid td.is-tap:hover, table.cb-grid td.is-tap:focus-visible {
    background: var(--cb-page); outline: none; box-shadow: inset 0 0 0 2px var(--cb-line-strong);
}
table.cb-grid td.is-tap:focus-visible { box-shadow: inset 0 0 0 2px var(--cb-action); }

/* "+" beside a row: the whole week at once */
.cb-grid-plus {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: var(--cb-pill); color: var(--cb-action); font-size: var(--cb-fs-12);
}
.cb-grid-plus:hover, .cb-grid-plus:focus-visible { background: var(--cb-action); color: var(--cb-card); outline: none; }

/* A note that closes with x */
.cb-note {
    display: flex; align-items: flex-start; gap: .75rem; margin: 0 0 1rem; padding: .75rem .9rem .75rem 1rem;
    border-radius: 14px; background: var(--cb-page); color: var(--cb-action);
}
.cb-note[hidden] { display: none; }
.cb-note p { margin: 0; flex: 1; font-size: var(--cb-fs-16); line-height: 1.45; }
.cb-note-icon { color: var(--cb-ink-soft); margin-top: .2rem; }
.cb-note-x {
    flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--cb-ink-soft);
    font-size: var(--cb-fs-20); line-height: 1; cursor: pointer;
}
.cb-note-x:hover { background: var(--cb-pill); color: var(--cb-action); }

/* Status tag beside a broiler batch's name: tap to move it on */
.cb-status-tag {
    display: inline-flex; align-items: center; min-height: 28px; padding: 0 .75rem; border-radius: 999px; border: 0;
    font-size: var(--cb-fs-14); font-weight: 600; cursor: pointer; background: var(--cb-warm-soft); color: var(--cb-warm-ink);
}
.cb-status-tag.is-on_hold { background: var(--cb-brand-soft); color: var(--cb-brand); }
.cb-status-tag.is-complete { background: var(--cb-pill); color: var(--cb-ink-soft); }
span.cb-status-tag { cursor: default; }

/* The windows: one day, or one row for the whole week */
.cb-box .modal-title small { display: block; margin-top: .15rem; font-size: var(--cb-fs-14); font-weight: 500; color: var(--cb-ink-soft); }
.cb-box-group, .cb-week-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.cb-box-group[hidden], .cb-week-group[hidden] { display: none; }
.cb-box-field { display: flex; flex-direction: column; gap: .4rem; margin: 0 0 1rem; }
.cb-box-label { font-weight: 600; color: var(--cb-action); font-size: var(--cb-fs-16); }
.cb-box-input { position: relative; display: flex; align-items: center; }
.cb-box-input input {
    width: 100%; min-height: 48px; padding: 0 3.5rem 0 1rem !important; font-size: var(--cb-fs-18); text-align: left;
    border: 1px solid var(--cb-line-strong) !important; border-radius: 14px !important; background: var(--cb-card);
}
.cb-box-select {
    width: 100%; min-height: 48px; padding: 0 1rem; font-size: var(--cb-fs-18);
    border: 1px solid var(--cb-line-strong); border-radius: 14px; background: var(--cb-card); color: var(--cb-action);
}
.cb-box-input input:focus { border-color: var(--cb-action) !important; outline: none; box-shadow: 0 0 0 3px var(--cb-pill); }
.cb-box-unit { position: absolute; right: 1rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); pointer-events: none; }
.cb-box-unit:empty { display: none; }
.cb-box-hint { margin: .25rem 0 0; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-box-note { margin: 0 0 1rem; padding: .6rem .8rem; border-radius: 12px; background: var(--cb-warm-soft); color: var(--cb-warm-ink); font-size: var(--cb-fs-14); }
/* The whole-week window: one day per line on a phone ... */
.cb-wk { display: flex; flex-direction: column; gap: 6px; margin-bottom: .75rem; }
.cb-wk-day { display: grid; grid-template-columns: 6.5rem repeat(var(--cb-wk-rows, 1), minmax(0, 1fr)); align-items: center; gap: 8px; padding: 4px 0; }
.cb-wk-names.is-one { display: none; }
.cb-wk-name { font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-ink-soft); }
.cb-wk-name small { margin-left: .3rem; font-weight: 500; }
.cb-wk-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .4rem; line-height: 1.25; }
.cb-wk-head strong { font-size: var(--cb-fs-16); color: var(--cb-action); }
.cb-wk-head small { flex-basis: 100%; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-wk-today { padding: .05rem .5rem; border-radius: 999px; background: var(--cb-action); color: var(--cb-card); font-size: var(--cb-fs-12); font-weight: 600; }
.cb-wk input { min-height: 44px; font-size: var(--cb-fs-16); }
.cb-wk .is-future .cb-wk-head { opacity: .6; }
/* ... and the days across, like the table, on a computer. */
@media (min-width: 992px) {
    .cb-box-week .modal-dialog { max-width: 1060px; left: 0; }
    .cb-box-week .modal-content { width: auto; }
    .cb-wk { display: grid; grid-template-columns: minmax(6rem, auto) repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(var(--cb-wk-rows, 1), auto); gap: 8px 6px; }
    .cb-wk-day { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; grid-template-columns: none; gap: 8px; padding: 8px 6px; border-radius: 14px; }
    .cb-wk-names.is-one { display: grid; }
    .cb-wk-name { display: flex; flex-direction: column; justify-content: center; font-size: var(--cb-fs-14); color: var(--cb-action); }
    .cb-wk-name small { margin: 0; color: var(--cb-ink-soft); }
    .cb-wk-head { flex-direction: column; align-items: center; text-align: center; }
    .cb-wk-head small { flex-basis: auto; }
    .cb-wk-today { margin: .1rem 0; }
    .cb-wk-day.is-today { background: var(--cb-mint); }
    .cb-wk-cell { display: flex; align-items: center; justify-content: center; }
    .cb-wk .cb-box-input input { padding: 0 .5rem !important; text-align: center; font-size: var(--cb-fs-16); }
    .cb-wk .cb-box-unit { display: none; }
}
.cb-week-later { color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-rows-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .25rem 1rem; }
.cb-check { display: flex; align-items: center; gap: .6rem; min-height: 40px; cursor: pointer; font-weight: 500; }
.cb-check input { width: 20px; height: 20px; accent-color: var(--cb-action); }

@media (max-width: 720px) {
    .cb-grid-card { padding: 1rem .75rem 1.1rem; border-radius: 20px; }
    table.cb-grid .cb-grid-corner, table.cb-grid .cb-grid-label { min-width: 8.5rem; }
    table.cb-grid th, table.cb-grid td { padding: .6rem .5rem; font-size: var(--cb-fs-14); }
}

@media print {
    .cb-grid-plus, .cb-note, .cb-grid-tools { display: none !important; }
}

/* The Broilers and Layers lists (batch_management/batch_list.html) */
.cb-batch-list-scroll { overflow-x: auto; }
table.cb-batch-list { width: 100%; border-collapse: separate; border-spacing: 0; }
table.cb-batch-list th { font-size: var(--cb-fs-12); font-weight: 600; color: var(--cb-ink-soft); text-transform: none; letter-spacing: 0; background: transparent; border: 0; border-bottom: 1px solid var(--cb-pill); padding: .7rem .9rem; white-space: nowrap; }
table.cb-batch-list th small { display: block; font-weight: 400; font-size: var(--cb-fs-12); color: var(--cb-ink-soft); }
table.cb-batch-list td { padding: .95rem .9rem; border: 0; border-bottom: 1px solid var(--cb-pill); vertical-align: middle; font-size: var(--cb-fs-16); color: var(--cb-action); }
table.cb-batch-list tbody tr:last-child td { border-bottom: 0; }
table.cb-batch-list tbody tr:hover td { background: var(--cb-page); }
.cb-bl-name { white-space: nowrap; }
.cb-bl-name a:first-of-type { color: var(--cb-action); font-weight: 700; font-size: var(--cb-fs-16); text-decoration: none; }
.cb-bl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .5rem; vertical-align: middle; background: var(--cb-broilers); }
.is-layers .cb-bl-dot { background: var(--cb-warm); }
.cb-bl-age { min-width: 9rem; }
.cb-bl-age > span:first-child { display: block; font-weight: 500; }
.cb-bl-bar { display: block; height: 6px; margin-top: .4rem; border-radius: 3px; background: var(--cb-pill); overflow: hidden; max-width: 10rem; }
.cb-bl-bar span { display: block; height: 100%; border-radius: 3px; background: var(--cb-broilers); }
.cb-bl-num .cb-v { font-weight: 600; }
.cb-bl-num small { display: block; font-size: var(--cb-fs-12); color: var(--cb-ink-soft); }
.cb-bl-num.is-good .cb-v { color: var(--cb-brand); }
.cb-bl-num.is-watch .cb-v { color: var(--cb-warm-ink); }
.cb-bl-num.is-bad .cb-v { color: var(--cb-critical); }
.cb-bl-num.is-good .cb-v::before, .cb-bl-num.is-watch .cb-v::before, .cb-bl-num.is-bad .cb-v::before {
    content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: .35rem; vertical-align: middle; background: currentColor;
}
.cb-bl-none { color: var(--cb-ink-soft); }
.cb-bl-date { white-space: nowrap; color: var(--cb-ink-soft); }
.cb-bl-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 .7rem; border-radius: 999px; font-size: var(--cb-fs-12); font-weight: 600; background: var(--cb-pill); color: var(--cb-ink-soft); white-space: nowrap; }
.cb-bl-tag.is-active { background: var(--cb-brand-soft); color: var(--cb-brand); }
.cb-bl-tag.is-on_hold { background: var(--cb-warm-soft); color: var(--cb-warm-ink); }
.cb-bl-tag.is-laying { background: var(--cb-warm-soft); color: var(--cb-warm-ink); }
.cb-bl-tag.is-brooding, .cb-bl-tag.is-growing, .cb-bl-tag.is-pullet { background: var(--cb-brand-soft); color: var(--cb-brand); }

/* A layer flock's life in blocks of six weeks (batch_management/layer_flock.html) */
.cb-note-row { padding: 0 0 1rem; }
.cb-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cb-tile {
    display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 16px 18px; border-radius: 18px;
    background: var(--cb-page); color: var(--cb-action); text-decoration: none; border: 1px solid transparent;
    transition: border-color .15s, background .15s;
}
.cb-tile:hover, .cb-tile:focus-visible { border-color: var(--cb-line-strong); background: var(--cb-card); color: var(--cb-action); }
.cb-tile.is-now { background: var(--cb-card); border-color: var(--cb-brand); box-shadow: 0 0 0 1px var(--cb-brand); }
.cb-tile.is-later { color: var(--cb-ink-soft); background: transparent; border-color: var(--cb-pill); }
.cb-tile-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cb-tile-top strong { font-size: var(--cb-fs-16); white-space: nowrap; color: var(--cb-action); }
.cb-tile.is-later .cb-tile-top strong { color: var(--cb-ink-soft); }
.cb-tile-now { font-size: var(--cb-fs-12); font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--cb-brand); color: var(--cb-card); }
.cb-tile-dates { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-tile-stages { display: flex; flex-wrap: wrap; gap: .3rem; }
.cb-tile-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--cb-pill); font-weight: 600; font-size: var(--cb-fs-16); }
.cb-tile-empty { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--cb-pill); font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-tile-facts small { display: block; font-size: var(--cb-fs-12); font-weight: 500; color: var(--cb-ink-soft); }
.cb-bl-tag.is-culled { background: var(--cb-pill); color: var(--cb-ink-soft); }

/* A day's window with many boxes (a graded flock's egg sizes): two across,
   so all six sizes fit without scrolling; the total in eggs underneath. */
.cb-box-count { margin: 0 0 .85rem; color: var(--cb-ink-soft); font-size: var(--cb-fs-14); }
.cb-box-group.is-many .cb-box-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .85rem; }
.cb-box-group.is-many .cb-box-field { margin-bottom: .85rem; }
.cb-box-group.is-many .cb-box-label { font-size: var(--cb-fs-14); }
.cb-box-group .cb-box-total { margin: .1rem 0 .75rem; padding: .6rem .8rem; border-radius: 12px; background: var(--cb-page); color: var(--cb-action); font-size: var(--cb-fs-14); font-weight: 600; }
.cb-box-total.is-over { background: var(--cb-critical-soft); color: var(--cb-critical); }
@media (max-width: 480px) { .cb-box-group.is-many .cb-box-fields { grid-template-columns: 1fr; } }

/* The flock's blocks as cards, like Home's batch cards (layer_flock.html):
   a bit bigger, the weeks on a honey band, the hens big, an arrow beside
   Lost and Lay rate. Only the arrow has a colour. */
.cb-wtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cb-card-gap, 16px); }   /* two big cards a row (Anton, 25 Oct 2026) */
@media (max-width: 640px) { .cb-wtiles { grid-template-columns: minmax(0, 1fr); } }
.cb-wtile { display: flex; flex-direction: column; height: 100%; color: var(--cb-action); background: var(--cb-card); border-radius: var(--cb-radius, 18px); text-decoration: none; }
.cb-wtile .cb-bcard-name { gap: .5rem; justify-content: flex-start; }
.cb-wtile .cb-tile-now { margin-left: .25rem; }
.cb-wtile .cb-tile-stages { margin-top: 10px; }
.cb-wtile .cb-tile-empty { margin-top: auto; padding-top: 14px; }
.cb-wtile.is-now { box-shadow: 0 0 0 2px var(--cb-brand), var(--cb-card-shadow); }
.cb-wtile.is-later { background: transparent; box-shadow: none; border: 1px solid var(--cb-pill); }
.cb-wtile.is-later .cb-bcard-name { background: var(--cb-page); color: var(--cb-ink-soft); }
.cb-wtile .cb-bcard-foot { margin-top: auto; }
.cb-wtile-foot > span { flex-direction: column; align-items: flex-start; gap: 2px; width: auto; }
.cb-wtile-foot strong { display: inline-flex; align-items: baseline; gap: .35rem; color: var(--cb-action); }
.cb-trend { font-size: var(--cb-fs-14); line-height: 1; }
.cb-trend.is-good { color: var(--cb-good); }
.cb-trend.is-bad { color: var(--cb-critical); }

/* ---- components/company.css ---- */
/* =======================================
   COMPANY PAGES: About, What we do, Work with us, Contact, Questions, Prices
   (templates/single_apps/pages/partials/company_base.html).
   A big friendly opening, lots of room, large round picture blocks, short
   bold lines, cards, a strip of facts, a story line and one dark band that
   asks you to start. Locked colours only.
======================================= */
.co { max-width: 1180px; margin: 0 auto; padding: 1.5rem 24px 4rem; color: var(--cb-action); }
.co section { margin: 0 0 5.5rem; }
.co h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 1rem; }
.co h3 { font-size: var(--cb-fs-20); font-weight: 700; letter-spacing: -.01em; margin: 0 0 .5rem; }
.co p { font-size: var(--cb-fs-18); line-height: 1.6; color: var(--cb-ink-soft); margin: 0 0 1rem; }
.co p strong, .co li strong { color: var(--cb-action); }
.co a:not([class]) { color: var(--cb-action); text-decoration: underline; text-underline-offset: 3px; }
.co mark { background: var(--cb-warm-soft); color: var(--cb-warm-ink); padding: 0 4px; border-radius: 4px; }
.co-kicker { display: inline-block; font-size: var(--cb-fs-14); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cb-action); margin: 0 0 1rem; }
.co-center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.co-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.co-center .co-buttons { justify-content: center; }
.co-buttons .black-button, .co-buttons .gray-button { padding: .85rem 1.6rem !important; font-size: var(--cb-fs-16) !important; border-radius: 999px !important; }

/* The pre-launch review note on pages that still have placeholders */
.co-draft { font-size: var(--cb-fs-14) !important; color: var(--cb-warm-ink) !important; background: var(--cb-warm-soft); border-radius: 14px; padding: .7rem 1rem; margin: 0 0 1rem !important; }

/* The opening: one big line, a short lead, the buttons, a big round picture */
.co-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; padding-top: 2.5rem; }
.co-hero.is-solo { grid-template-columns: 1fr; text-align: center; max-width: 860px; margin-left: auto; margin-right: auto; }
.co-hero.is-solo .co-buttons { justify-content: center; }
.co-hero h1, .content-area .co .co-hero h1:not(.lp-title):not(.lp-hero-title) { font-size: clamp(2.5rem, 5.6vw, 4.4rem) !important; font-weight: 800 !important; letter-spacing: -.045em; line-height: 1.02; margin: 0 0 1.4rem; color: var(--cb-action); }
.co-hero .co-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--cb-ink-soft); max-width: 36rem; }
.co-hero.is-solo .co-lead { margin-left: auto; margin-right: auto; }

/* Pictures: big round blocks; a block with no picture yet says what goes there */
.co-photo { position: relative; border-radius: 36px; overflow: hidden; background: var(--cb-warm-soft); aspect-ratio: 4 / 3.4; }
.co-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-photo.is-wide { aspect-ratio: 16 / 7; }
.co-photo.is-shot { background: var(--cb-pill); padding: 28px 28px 0; display: flex; align-items: flex-end; justify-content: center; }
.co-photo.is-shot img { height: auto; max-height: 100%; width: auto; max-width: 100%; border-radius: 18px 18px 0 0; box-shadow: var(--cb-card-shadow); object-fit: contain; }
.co-photo.is-cool { background: var(--cb-broilers-soft); }
.co-photo.is-calm { background: var(--cb-brand-soft); }

/* A strip of facts */
.co-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--cb-card); border-radius: 28px; padding: 2rem 1rem; box-shadow: var(--cb-card-shadow); }
.co-stats > div { padding: 0 1.25rem; border-left: 1px solid var(--cb-pill); }
.co-stats > div:first-child { border-left: 0; }
.co-stats strong { display: block; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--cb-action); }
.co-stats span { display: block; margin-top: .35rem; font-size: var(--cb-fs-16); color: var(--cb-ink-soft); line-height: 1.4; }

/* Text beside a picture; .is-flip puts the picture first */
.co-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.co-split.is-flip > .co-photo { order: -1; }
.co-split ol, .co-split ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.co-split li { font-size: var(--cb-fs-18); line-height: 1.55; color: var(--cb-ink-soft); margin-bottom: .6rem; }

/* Cards: what we believe, what we look for */
.co-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 2.25rem; }
.co-card { background: var(--cb-card); border-radius: 28px; padding: 2rem 1.9rem 1.75rem; box-shadow: var(--cb-card-shadow); display: flex; flex-direction: column; gap: .4rem; }
.co-cards.is-five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.co-cards.is-five > .co-card { grid-column: span 2; }
.co-cards.is-five > .co-card:nth-child(n+4) { grid-column: span 3; }
.co-card p { font-size: var(--cb-fs-16); margin: 0; }
.co-card-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cb-pill); font-weight: 800; font-size: var(--cb-fs-18); margin-bottom: .9rem; color: var(--cb-action); }
.co-card.is-warm { background: var(--cb-warm-soft); box-shadow: none; }
.co-card.is-warm .co-card-num { background: var(--cb-card); }

/* The story, one step after another */
.co-story { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.co-story::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; border-top: 2px dashed var(--cb-line-strong); }
.co-story li { position: relative; }
.co-story-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cb-action); color: var(--cb-card); font-weight: 800; margin-bottom: 1.1rem; position: relative; }
.co-story li:last-child .co-story-dot { background: var(--cb-warm); color: var(--cb-action); }
.co-story h3 { margin-bottom: .35rem; }
.co-story p { font-size: var(--cb-fs-16); }

/* Two plain statements side by side (mission and vision) */
.co-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.co-pair > div { background: var(--cb-card); border-radius: 28px; padding: 2.4rem 2.2rem; box-shadow: var(--cb-card-shadow); }
.co-pair > div:last-child { background: var(--cb-pill); box-shadow: none; }
.co-pair p { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; color: var(--cb-action); font-weight: 600; margin: 0; }

/* The dark band at the end */
.co-band { background: var(--cb-action); color: var(--cb-card); border-radius: 36px; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; }
.co-band h2 { color: var(--cb-card); max-width: 46rem; margin: 0 auto 1rem; }
.co-band p { color: var(--cb-line-strong); max-width: 38rem; margin: 0 auto; }
.co-band .co-buttons { justify-content: center; }
.co-band .black-button { background: var(--cb-card) !important; color: var(--cb-action) !important; border-color: var(--cb-card) !important; }

/* Questions: one round card each, tap to open */
.co-faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.co-faq details { background: var(--cb-card); border-radius: 22px; padding: 0 1.6rem; box-shadow: var(--cb-card-shadow); }
.co-faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font-size: var(--cb-fs-18); font-weight: 700; color: var(--cb-action); }
.co-faq summary::-webkit-details-marker { display: none; }
.co-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--cb-pill); display: grid; place-items: center; font-weight: 600; font-size: var(--cb-fs-20); }
.co-faq details[open] summary::after { content: "\2212"; }
.co-faq details p { font-size: var(--cb-fs-16); padding-bottom: 1.3rem; margin: 0; }

/* A long page of plain sections (What we do): number, title, words */
.co-list { display: grid; gap: 20px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; background: var(--cb-card); border-radius: 32px; padding: 2.5rem; box-shadow: var(--cb-card-shadow); }
.co-row:nth-child(even) > .co-photo { order: -1; }
.co-row .co-photo { aspect-ratio: 4 / 3; }
.co-row p { font-size: var(--cb-fs-16); }
.co-example { background: var(--cb-page); border-radius: 18px; padding: 1rem 1.2rem; }

/* Contact: the form card */
.co-contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: start; }
.co-contact-form { background: var(--cb-card); border-radius: 32px; padding: 2.4rem; box-shadow: var(--cb-card-shadow); display: flex; flex-direction: column; gap: 1rem; }
.co-contact-form h2 { font-size: var(--cb-fs-24); margin: 0; }
.co-contact-form label { display: flex; flex-direction: column; gap: .4rem; font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-action); }
.co-contact-form input, .co-contact-form textarea { border: 1px solid var(--cb-line-strong); border-radius: 14px; padding: .8rem 1rem; font-size: var(--cb-fs-16); background: var(--cb-card); color: var(--cb-action); }
.co-contact-form input:focus, .co-contact-form textarea:focus { outline: 2px solid var(--cb-action); outline-offset: 1px; }
.co-contact-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.co-contact-form .black-button { align-self: flex-start; padding: .85rem 1.8rem !important; border-radius: 999px !important; }
.co-contact-note { font-size: var(--cb-fs-14) !important; margin: 0 !important; }
.co-ways { display: flex; flex-direction: column; gap: 12px; }
.co-way { display: flex; gap: 1rem; align-items: flex-start; background: var(--cb-card); border-radius: 24px; padding: 1.4rem 1.5rem; box-shadow: var(--cb-card-shadow); color: var(--cb-action); text-decoration: none; }
a.co-way:hover { box-shadow: var(--cb-card-shadow-up); color: var(--cb-action); }
.co-way-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--cb-pill); display: grid; place-items: center; }
.co-way-icon svg { width: 20px; height: 20px; }
.co-way strong { display: block; font-size: var(--cb-fs-18); margin-bottom: .2rem; }
.co-way span span { display: block; font-size: var(--cb-fs-16); color: var(--cb-ink-soft); line-height: 1.5; }

/* Company facts */
.co-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.co-facts > div { background: var(--cb-card); border-radius: 24px; padding: 1.5rem 1.6rem; box-shadow: var(--cb-card-shadow); }
.co-facts span { display: block; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); margin-bottom: .3rem; }
.co-facts strong { font-size: var(--cb-fs-18); }

/* Prices page parts that sit inside the company layout */
.co .lp-compare, .co .lp-faq { margin-left: auto; margin-right: auto; }

@media (max-width: 900px) {
    .co section { margin-bottom: 3.5rem; }
    .co-hero, .co-split, .co-pair, .co-row, .co-contact { grid-template-columns: 1fr; gap: 1.75rem; }
    .co-hero { padding-top: 1rem; }
    .co-split.is-flip > .co-photo, .co-row:nth-child(even) > .co-photo { order: 0; }
    .co-stats { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
    .co-stats > div:nth-child(3) { border-left: 0; }
    .co-story { grid-template-columns: 1fr 1fr; }
    .co-story::before { display: none; }
    .co-facts { grid-template-columns: 1fr; }
    .co-cards.is-five { grid-template-columns: 1fr 1fr; }
    .co-cards.is-five > .co-card, .co-cards.is-five > .co-card:nth-child(n+4) { grid-column: auto; }
    .co-row { padding: 1.5rem; }
}
@media (max-width: 560px) {
    .co { padding: 1rem 16px 3rem; }
    .co-story { grid-template-columns: 1fr; }
    .co-cards.is-five { grid-template-columns: 1fr; }
    .co-contact-pair { grid-template-columns: 1fr; }
    .co-stats { padding: 1.5rem .5rem; }
    .co-stats > div { padding: 0 .9rem; }
    .co-stats strong { font-size: 1.45rem; }
    .co-stats span { font-size: var(--cb-fs-14); }
    .co-contact-form { padding: 1.6rem; }
    .co-photo { border-radius: 26px; }
    .co-band { border-radius: 28px; }
    .co-buttons .black-button, .co-buttons .gray-button { flex: 1 1 auto; text-align: center; }
}

/* ---- Drawings: black ink line drawings on a clear background (static/images/site/drawings) ---- */
.cb-drawing { display: block; max-width: 100%; height: auto; }
.co-photo.is-drawing { background: var(--cb-warm-soft); display: flex; align-items: center; justify-content: center; padding: 8%; }
.co-photo.is-drawing img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.cb-home-empty-art { width: 180px; margin: 0 auto .25rem; }
.cb-todo-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2rem 1rem; text-align: center; }
.cb-todo-empty .cb-drawing { width: 150px; opacity: .9; }
.cb-todo-empty p { margin: 0; font-size: var(--cb-fs-16); }

/* ---- components/settings.css ---- */
/* =======================================
   ACCOUNT MENU AND SETTINGS PAGES
   The initials menu (templates/includes/me_menu.html): who you are at the
   top, an icon on every line, thin lines between the groups.
   Settings (templates/single_apps/user_management/...): the menu on the
   page with a soft round highlight, one big title, small section names and
   white cards of rows: label and value on the left, the button on the right.
======================================= */

/* ---- The account menu ---- */
.ud-menu.cb-acct-menu { width: 300px !important; padding: 8px !important; border-radius: 20px !important; }
.cb-me-menu.is-side .ud-menu.cb-acct-menu { width: 100% !important; }  /* the sidebar clips anything wider */
.cb-acct-menu .ud-menu-item a { display: flex !important; align-items: center; gap: 14px; padding: .65rem .85rem !important; border-radius: 12px; }
.cb-acct-menu .ud-menu-item a i { width: 1.15rem; text-align: center; font-size: 1.05rem; color: var(--cb-action); flex: none; }
.cb-acct-menu .ud-menu-item a:hover i { color: inherit; }
.cb-acct-menu .ud-menu-item form { margin: 0; }
.cb-acct-head { list-style: none; padding: 0 0 8px; margin: 0 0 6px; border-bottom: 1px solid var(--cb-pill); }
.cb-acct-head a { display: flex; align-items: center; gap: 12px; padding: .7rem .75rem; border-radius: 14px; color: var(--cb-action); text-decoration: none; }
.cb-acct-head a:hover { background: var(--cb-page); color: var(--cb-action); }
.cb-acct-pic { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--cb-warm); color: var(--cb-action); font-weight: 700; font-size: var(--cb-fs-18); }
.cb-acct-pic img { width: 100%; height: 100%; object-fit: cover; }
.cb-acct-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cb-acct-who strong { font-size: var(--cb-fs-16); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-acct-who small { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-acct-head i { color: var(--cb-ink-soft); font-size: .85rem; }
.cb-acct-line { list-style: none; height: 1px; margin: 6px 4px; background: var(--cb-pill); }
.cb-acct-count { margin-left: auto; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--cb-critical); color: var(--cb-card); font-size: var(--cb-fs-12); font-weight: 700; display: inline-grid; place-items: center; }

/* ---- Settings: the menu (laptop) ---- */
@media (min-width: 769px) {
    .page-body-settings .tile-container > .tile-side { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
    .settings-sidebar .nav-link { font-size: var(--cb-fs-16); color: var(--cb-action); padding: 11px 16px; border-radius: 14px; margin: 2px 0; }
    .settings-sidebar .nav-link i { color: var(--cb-action); margin-right: 14px; }
    .settings-sidebar .nav-link:hover { background: var(--cb-card); color: var(--cb-action); }
    .settings-sidebar .nav-link.active, .settings-sidebar .nav-link.active:hover { background: var(--cb-card); color: var(--cb-action); font-weight: 600; box-shadow: var(--cb-card-shadow); }
    .settings-sidebar .nav-link.active i, .settings-sidebar .nav-link:hover i { color: var(--cb-action); }
    .settings-sidebar .settings-group { padding: 18px 16px 6px; }
    .settings-sidebar .nav-link.back-home-link { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
}

/* ---- Settings: every page's title ---- */
.page-body-settings .tile-main > h2:first-child, .page-body-settings .tile-main > .d-flex:first-child > h2, .page-body-settings .tile-main > .st-head:first-child h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem) !important; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; color: var(--cb-action); margin: 0 0 1.25rem; }

/* ---- Settings: a page made of row cards (Your profile first) ---- */
.page-body-settings .tile-main.cb-st-page { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.cb-st-page form.global-form { background: none; border: 0; box-shadow: none; padding: 0; max-width: none; }
.cb-st-section { font-size: var(--cb-fs-20); font-weight: 700; color: var(--cb-action); margin: 1.75rem 0 .75rem; }
.cb-st-title + form > .cb-st-section:first-of-type, .cb-st-title + .cb-st-section { margin-top: 0; }
.cb-st-card { background: var(--cb-card); border-radius: 24px; box-shadow: var(--cb-card-shadow); overflow: hidden; }
.cb-st-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.4rem 1.6rem; border-top: 1px solid var(--cb-pill); }
.cb-st-row:first-child { border-top: 0; }
.cb-st-row > .gray-button, .cb-st-row > a.gray-button { flex: none; }
.cb-st-row [hidden] { display: none !important; }
.cb-st-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.cb-st-text strong, .cb-st-edit strong { font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); }
.cb-st-text span { font-size: var(--cb-fs-16); color: var(--cb-ink-soft); overflow-wrap: anywhere; }
.cb-st-edit { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.cb-st-edit label { display: flex; flex-direction: column; gap: .35rem; font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-action); margin: 0; }
.cb-st-edit input:not([type=checkbox]):not([type=file]) { width: 100%; max-width: 420px; }
.cb-st-edit small { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-st-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 210px)); gap: 1rem; }
.cb-st-avatar { flex: none; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--cb-warm); color: var(--cb-action); font-size: 2rem; font-weight: 700; }
.cb-st-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cb-st-avatar img:not([hidden]) + span { display: none; }

@media (max-width: 640px) {
    .cb-st-row { flex-wrap: wrap; padding: 1.1rem 1.1rem; gap: .9rem; }
    .cb-st-row.is-photo .cb-st-text { flex-basis: calc(100% - 88px - .9rem); }
    .cb-st-avatar { width: 64px; height: 64px; font-size: 1.5rem; }
    .cb-st-pair { grid-template-columns: 1fr; }
    .ud-menu.cb-acct-menu { width: min(300px, calc(100vw - 32px)) !important; }
}

/* General settings: which kinds of birds show in the menu (chips) */
.cb-kinds-field { margin: .5rem 0 1rem; padding: 0; border: 0; }
.cb-kinds-field legend { float: none; width: auto; margin: 0 0 .5rem; padding: 0; font-size: var(--cb-fs-14) !important; font-weight: 600; color: var(--cb-action); }
.cb-kinds-field > div { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-kinds-field > div > div { margin: 0; }
.global-form .cb-kinds-field label { position: relative; display: inline-flex !important; align-items: center; margin: 0 !important; padding: .55rem 1rem !important; border-radius: 999px !important; background: var(--cb-pill) !important; font-size: var(--cb-fs-14) !important; font-weight: 600; color: var(--cb-action) !important; cursor: pointer; }
.global-form .cb-kinds-field label:has(input:checked) { background: var(--cb-action) !important; color: var(--cb-card) !important; }
.cb-kinds-field label:has(input:focus-visible) { outline: 3px solid var(--cb-action); outline-offset: 2px; }
.cb-kinds-field input { position: absolute; opacity: 0; pointer-events: none; }
.cb-kinds-field small { display: block; margin-top: .5rem; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }

/* ---- components/start.css ---- */
/* =======================================
   THE START QUESTIONS (templates/single_apps/user_management/farm_setup*.html)
   The question on the left, a farm drawing on a soft colour on the right
   (wide screens only), one bar at the bottom: Back, progress, Skip, Next.
======================================= */
body:has(.cb-start) .container-fluid { padding: 0 !important; }
body:has(.cb-start) .content-area { margin: 0 !important; padding: 0 !important; max-width: none !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.content-area > .cb-start { margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: none !important; }
.cb-start { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 100vh; background: var(--cb-card); }
.cb-start-main { display: flex; flex-direction: column; min-width: 0; }
.cb-start-logo { display: inline-block; padding: 28px 40px 0; font-weight: 700; font-size: var(--cb-fs-20); letter-spacing: -.05em; color: var(--cb-action); text-decoration: none; }
.cb-start-body { flex: 1; width: 100%; max-width: 560px; box-sizing: border-box; margin: 0 auto; padding: 56px 24px 32px; }
.cb-start-count { margin: 0 0 .5rem; font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-ink-soft); }
.content-area .cb-start-title, .cb-start-title { margin: 0 0 .6rem; font-size: clamp(1.7rem, 2.6vw, 2.2rem) !important; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; color: var(--cb-action); }
.cb-start-lead { margin: 0 0 1.75rem; font-size: var(--cb-fs-16); line-height: 1.5; color: var(--cb-ink-soft); }
.cb-start-form { display: flex; flex-direction: column; }
.cb-start-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 1.25rem; }
.cb-start-field { display: flex; flex-direction: column; gap: .4rem; margin: 0; font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-action); }
.cb-start-field small, .cb-start-question small { font-weight: 400; color: var(--cb-ink-soft); }
.cb-start-field input, .cb-start-field select { width: 100%; min-height: 48px; box-sizing: border-box; }
.cb-start-question { margin: .5rem 0 .75rem; font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); }
.cb-start-two { grid-template-columns: 1fr 1fr; }

/* Big picking cards (kinds of birds, first batch) */
.cb-start-cards { display: grid; gap: 12px; margin-bottom: 1.5rem; }
.cb-start-card { position: relative; display: flex; align-items: center; gap: 16px; margin: 0; padding: 14px 18px; border: 1.5px solid var(--cb-line-strong); border-radius: 18px; background: var(--cb-card); color: var(--cb-action); text-decoration: none; cursor: pointer; }
.cb-start-card:hover { border-color: var(--cb-action); color: var(--cb-action); }
.cb-start-card input { position: absolute; opacity: 0; pointer-events: none; }
.cb-start-card img { flex: none; width: 76px; height: 76px; object-fit: contain; }
.cb-start-card > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.cb-start-card strong { font-size: var(--cb-fs-18); }
.cb-start-card small { font-size: var(--cb-fs-14); color: var(--cb-ink-soft); line-height: 1.4; }
.cb-start-tick { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--cb-line-strong); color: transparent; font-size: .85rem; }
.cb-start-card:has(input:checked) { border: 2px solid var(--cb-action); background: var(--cb-mint); }
.cb-start-card.is-layers:has(input:checked) { background: var(--cb-blush); }
.cb-start-card:has(input:checked) .cb-start-tick { background: var(--cb-action); border-color: var(--cb-action); color: var(--cb-card); }
.cb-start-card:has(input:focus-visible) { outline: 3px solid var(--cb-action); outline-offset: 2px; }
.cb-start-card.is-link .cb-start-tick { color: var(--cb-action); border: 0; background: var(--cb-mist); }
.cb-start-card.is-link:hover { background: var(--cb-mist); }

/* Small one-pick chips */
.cb-start-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-start-chip { margin: 0; cursor: pointer; }
.cb-start-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cb-start-chip span { display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: var(--cb-pill); font-size: var(--cb-fs-14); font-weight: 600; color: var(--cb-action); }
.cb-start-chip input:checked + span { background: var(--cb-action); color: var(--cb-card); }
.cb-start-chip input:focus-visible + span { outline: 3px solid var(--cb-action); outline-offset: 2px; }

/* The bottom bar */
.cb-start-bar { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; padding: 16px 40px; border-top: 1px solid var(--cb-pill); background: var(--cb-card); }
.cb-start-back { display: inline-flex; align-items: center; gap: .4rem; color: var(--cb-ink-soft); font-weight: 600; text-decoration: none; }
.cb-start-back:hover { color: var(--cb-action); }
.cb-start-progress { height: 6px; border-radius: 999px; background: var(--cb-pill); overflow: hidden; }
.cb-start-progress span { display: block; height: 100%; border-radius: inherit; background: var(--cb-brand); }
.cb-start-skip { border: 0; background: none; padding: .5rem .25rem; color: var(--cb-ink-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cb-start-skip:hover { color: var(--cb-action); }
.cb-start-next { min-height: 48px; padding: 0 1.6rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }

/* The drawing side, a different soft colour on each screen */
.cb-start-art { display: grid; place-items: center; padding: 48px; background: var(--cb-mint); }
.cb-start-2 .cb-start-art { background: var(--cb-blush); }
.cb-start-3 .cb-start-art { background: var(--cb-mist); }
.cb-start-art img { width: min(380px, 80%); height: auto; }

@media (max-width: 900px) {
    .cb-start { grid-template-columns: minmax(0, 1fr); }
    .cb-start-art { display: none; }
    .cb-start-logo { padding: 20px 20px 0; }
    .cb-start-body { padding: 28px 16px 24px; }
    .cb-start-bar { padding: 12px 16px; gap: 12px; grid-template-columns: auto 1fr auto; }
    .cb-start-progress { grid-column: 1 / -1; grid-row: 1; }
    .cb-start-skip { justify-self: end; }
    .cb-start-pair, .cb-start-two { grid-template-columns: minmax(0, 1fr); }
}

/* Did you pay for the chicks? (templates/batch_management/bird_cost.html) */
.cb-start-paid[hidden] { display: none; }
.cb-start-total { margin: .25rem 0 0; font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); }
.cb-start-paid .cb-start-field input { padding: 0 1rem; border: 1px solid var(--cb-line-strong); border-radius: 14px; background: var(--cb-card); font-size: var(--cb-fs-16); }
.cb-start-paid .cb-start-field input:focus { border-color: var(--cb-action); outline: none; box-shadow: 0 0 0 3px var(--cb-pill); }

/* Your flock's stages (templates/batch_management/layer_stages_intro.html):
   one row per stage, its weeks on the right, the same tag colours as the
   flock's weeks page. */
.cb-start-stages { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cb-start-stages li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 14px 16px; border: 1px solid var(--cb-pill); border-radius: 14px; background: var(--cb-card); }
.cb-start-stage-name { padding: 4px 12px; border-radius: 999px; font-size: var(--cb-fs-14); font-weight: 700; background: var(--cb-brand-soft); color: var(--cb-brand); }
.cb-start-stages li.is-laying .cb-start-stage-name { background: var(--cb-warm-soft); color: var(--cb-warm-ink); }
.cb-start-stage-weeks { justify-self: end; font-size: var(--cb-fs-16); font-weight: 700; color: var(--cb-action); }
.cb-start-stages small { grid-column: 1 / -1; margin-top: 6px; font-size: var(--cb-fs-14); color: var(--cb-ink-soft); }
.cb-start-note { margin: 0; font-size: var(--cb-fs-14); line-height: 1.5; color: var(--cb-ink-soft); }
.cb-start-note a { color: var(--cb-brand); font-weight: 600; }
