:root {
    /* Legacy aliases. These pointed at #ee572c while --oc-primary pointed at #ee572b, so the brand
       orange rendered as two slightly different colours depending on which token a rule happened to
       use. They now alias the canonical value; prefer --oc-primary in new rules. */
    --OrderCounter-Primary: var(--oc-primary);
    --OrderCounter-Secondary: #d3d3d3;
    --Header-Font-Size: 15px;

    /* Status colours, all >= 4.5:1 on white so they pass WCAG AA for body text. */
    /* Readable form of the brand orange for text. #ee572b itself is only ~3.3:1 on white. */
    --oc-primary-text: #a8410d;

    --oc-positive: #2e7d32;
    --oc-negative: #c62828;
    --oc-neutral: #616161;

    --oc-primary: #ee572b;
    --oc-primary-dark: #e66900;
    --oc-primary-shadow: rgba(255, 123, 0, 0.3);
    --oc-primary-light: #FB9965;
    --oc-bg-color: #F3F2EF;
    --oc-text-color: #333;
    /* White: text on a dark or filled surface, such as the sidebar. It is NOT a muted grey, and a fallback
       written on it never applies, because this block always defines it. For secondary text on a light
       surface use --oc-text-muted. OCEnterpriseTests Styles/ThemeTokenTests refuses a fallback on it. */
    --oc-text-light: #ffffff;
    /* Secondary text on a light surface: captions, counts, prices, help text. 6.2:1 on white and 5.6:1 on
       --oc-card-header-bg, so it passes WCAG AA for body text on both. ThemeTokenTests checks both. */
    --oc-text-muted: #616161;
    --oc-sidebar-bg: #282828;
    --oc-sidebar-text: #C2CEDB;
    --oc-sidebar-hover: #000;
    --oc-navbar-bg: #ffffff;
    --oc-card-bg: #ffffff;
    --oc-card-header-bg: #f1f5f9;
    --oc-form-border: #ddd;
}

/* Money colors.
   Previously `red` (#F00, ~4.0:1 on white) and `grey` (#808080, ~3.5:1) both failed the WCAG AA
   4.5:1 minimum for body text. These are the darkened equivalents, kept as tokens so the numbers
   are stated once. */
.money-red {
    color: var(--oc-negative) !important;
}

.money-green {
    color: var(--oc-positive) !important;
}

.money-grey {
    color: var(--oc-neutral) !important;
}

/* An ordinary money figure. Colour is reserved for a figure that needs attention, so a normal
   total takes the same text colour as the rest of the table (#333, about 12.6:1 on white).
   .money-green stays for any markup that still asks for it, but Formatting no longer returns it. */
.money-neutral {
    color: var(--oc-text-color) !important;
}

/* Time-clock punch direction. Colour alone is not the only cue: the cell still reads "In"/"Out". */
.punch-in {
    color: var(--oc-positive);
    font-weight: 600;
}

.punch-out {
    color: var(--oc-negative);
    font-weight: 600;
}

#page-title-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Removed: an empty `#page-title-container .page-title {}` rule, and a
   `.modal .modal-confirmation .fade .show` rule that used descendant combinators where the classes
   are all on the same element, so it matched nothing. */
/*Checkboxes styles*/
.location-group input[type="checkbox"] {
    display: none;
}

.location-group input[type="checkbox"] + label {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font: 14px/20px 'Open Sans', Arial, sans-serif;
    color: #272727;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.location-group input[type="checkbox"] + label:last-child {
    margin-bottom: 0;
}

.location-group input[type="checkbox"] + label:before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border: 1px solid #ee572c;
    position: absolute;
    left: 0;
    top: 0;
    opacity: .6;
    -webkit-transition: all .12s, border-color .08s;
    transition: all .12s, border-color .08s;
}

.location-group input[type="checkbox"]:checked + label:before {
    width: 10px;
    top: -5px;
    left: 5px;
    border-radius: 0;
    opacity: 1;
    border-top-color: transparent;
    border-left-color: transparent;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.popup-location-select h4 {
    width: 100%;
    text-align: center;
}

body {
    background-color: var(--oc-bg-color);
    color: var(--oc-text-color);
    font-size: 15px;
    margin: 0;
    overflow-x: hidden;
}

#app {
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.page {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.app-loading {
    width: 100%;
    height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #272727 !important;
}

#app .app-loader {
    width: 50px;
    height: 50px;
    position: relative;
    border-radius: 50%;
    background: #ee572c;
    animation: wave 1s ease-in infinite;
}

/* Accent for hub-card titles and their action links.
   The hub cards used Bootstrap's .text-warning (#ffc107, 1.63:1 on white) and .text-info
   (#0dcaf0, 1.96:1), both far below the 4.5:1 AA minimum, and picked a different colour per card
   for no reason a user could infer. This is one accent, dark enough to read. The brand orange
   itself is only ~3.3:1 on white, so text uses this darkened form; icons may stay brand orange
   because non-text content only needs 3:1. */
.oc-accent {
    color: var(--oc-primary-text);
}

/* Hub cards are keyboard-operable, so they need a visible focus ring. */
.navigation-card {
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.navigation-card:focus-visible {
    outline: 3px solid var(--oc-primary);
    outline-offset: 2px;
}

.navigation-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

/* Router NotFound panel. */
.not-found-panel {
    max-width: 34rem;
    margin: 4rem auto;
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--oc-card-bg);
    border-radius: 12px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, .132), 0px 1px 3px rgba(0, 0, 0, .108);
}

.not-found-icon {
    font-size: 2.5rem;
    color: var(--oc-primary);
    display: block;
    margin-bottom: 0.75rem;
}

.not-found-panel h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.not-found-panel p {
    color: #5c5c5c;
    margin-bottom: 1.5rem;
}

/* Brand colour for every Bootstrap spinner. Global on purpose: many components render their own
   .spinner-border and rely on this rule rather than styling it themselves. */
.spinner-border {
    color: var(--oc-primary);
}

/* Loading state used by the LoadingState component.
   Global rather than a scoped .razor.css: the scoped bundle only regenerates on a build, and the
   dev server can serve a stale copy, which leaves the spinner completely unstyled and jammed into
   the top-left corner of its container. The padding is what keeps it off the container edges. */
.loading-state-container {
    box-sizing: border-box;
    min-height: 40vh;
    width: 100%;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.loading-state-text {
    text-align: center;
    max-width: 28rem;
}

/* Unhandled-error bar. Blazor sets display:block on #blazor-error-ui itself when a render or event
   handler throws, so the element must default to display:none. */
#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    padding: 0.9rem 1.25rem;
    background: #fff4e5;
    border-top: 3px solid var(--oc-primary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    color: #4a2c12;
    font-size: 15px;
}

#blazor-error-ui .reload {
    margin-left: 1rem;
    color: var(--oc-primary);
    font-weight: 600;
}

#blazor-error-ui .dismiss {
    float: right;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0 0.35rem;
}

.noscript-warning {
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 40rem;
    border: 1px solid var(--oc-primary);
    border-radius: 8px;
    background: #fff4e5;
    text-align: center;
    font-size: 16px;
}

/* Notification Component */

.notification {
    position: fixed;
    top: 10px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    border-radius: 6px;
    color: white;
    width: 25%;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s;
    z-index: 10001;
    transform: translateX(-10%);
}

.notification p {
    margin-left: 20%;
}

/* Scoped to the notification. As a bare global `.hide` this collided with the sidebar, which also
   carries a `hide` class (MainLayout) and relies on `.sidebar.hide` winning on specificity. */
.notification.hide {
    transform: translateX(1000%);
}

.red {
    background-color: #e74c3c;
}

.yellow {
    background-color: #f39c12;
}

.green {
    background-color: #2ecc71;
}

.close {
    cursor: pointer;
}

@keyframes wave {
    0% {
        box-shadow: 0 0 0 0px rgba(255, 255,255, 1), 0 0 0 20px rgba(255, 255,255, 0.2), 0 0 0 40px rgba(255, 255,255, 0.6), 0 0 0 60px rgba(255, 255,255, 0.4), 0 0 0 80px rgba(255, 255,255, 0.2);
    }

    100% {
        box-shadow: 0 0 0 80px rgba(255, 255,255, 0), 0 0 0 60px rgba(255, 255,255, 0.2), 0 0 0 40px rgba(255, 255,255, 0.4), 0 0 0 20px rgba(255, 255,255, 0.6), 0 0 0 0px rgba(255, 255,255, 1);
    }
}

/* Global select styling */
.form-select,
select.form-control,
select {
    border-radius: 50px;
    padding: .45rem 2.25rem .45rem .75rem;
    border: 1px solid var(--oc-form-border);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23ee572b' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: var(--oc-text-color);
}

.form-select:focus,
select.form-control:focus,
select:focus {
    border-color: var(--oc-primary);
    box-shadow: 0 0 0 .25rem var(--oc-primary-shadow);
    outline: none;
}

/* Global card styling */
.card {
    border: none;
    border-radius: 12px;
    background: var(--oc-card-bg);
    box-shadow: 0px 1px 3px rgba(0, 0, 0, .132), 0px 1px 3px rgba(0, 0, 0, .108);
}

.card-header {
    background: var(--oc-card-header-bg);
    font-weight: 600;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.card-body {
    padding: 1rem;
}

.card-custom {
    margin-top: 1rem;
    border: none;
    border-radius: 12px;
}

/* Tooltip Component */
.tooltip-container {
    z-index: 1000;
    height: 50px;
    width: 50px;
}

.tooltip-icon {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #ee572c;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
}



.tooltip-popup {
    position: absolute;
    top: 25px;
    left: 20px;
    width: 200px;
    background-color: #333;
    color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    z-index: 1;
    text-align: center;
}

@media (max-width: 767px) {
    .notification {
        width: 50%;
    }

    .toast-container {
        display: flex;
        padding: 5px 5px 0px 0px !important;
    }

    .toast-container .toast-header {
        background-color: #d3d3d3;
    }

    .toast-container .toast-header .text-muted {
        color: black !important;
    }
}

/* Was `toast-container` with no leading dot, so it matched a non-existent element and did nothing. */
.toast-container {
    display: flex;
    padding: 5px 5px 0px 0px !important;
}

.toast-container .toast-header {
    background-color: #d3d3d3;
}

.toast-container .toast-header .text-muted {
    color: #495057 !important;
}

@media screen and (max-width: 1250px) {
    .notification {
        width: 50%;
    }
}


/* Toast stack. Global rather than a scoped .razor.css: the scoped bundle
   (OCEnterprise.styles.css) is cached hard by the browser and does not carry a cache-busting
   query, so a newly added scoped file can sit unapplied until a forced reload. Two other
   components hit the same thing. Global sheets are plain static files and always apply. */
.oc-toasts {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 360px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}

.oc-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border-left: 4px solid var(--oc-neutral);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    animation: oc-toast-in 0.18s ease-out;
}

/* Colours are all >= 4.5:1 on white, so the title text passes WCAG AA. */
.oc-toast--success {
    border-left-color: var(--oc-positive);
}

.oc-toast--success .oc-toast__icon {
    color: var(--oc-positive);
}

.oc-toast--error {
    border-left-color: var(--oc-negative);
}

.oc-toast--error .oc-toast__icon {
    color: var(--oc-negative);
}

.oc-toast--warning {
    border-left-color: #a15c07;
}

.oc-toast--warning .oc-toast__icon {
    color: #a15c07;
}

.oc-toast--info {
    border-left-color: #0f6674;
}

.oc-toast--info .oc-toast__icon {
    color: #0f6674;
}

.oc-toast__icon {
    font-size: 1.05rem;
    line-height: 1.35;
    flex-shrink: 0;
}

.oc-toast__body {
    flex: 1;
    min-width: 0;
}

.oc-toast__title {
    font-weight: 600;
    font-size: 14px;
    color: var(--oc-text-color);
}

.oc-toast__count {
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 10px;
    background: #eceff1;
    color: #37474f;
    font-size: 12px;
    font-weight: 600;
}

.oc-toast__message {
    font-size: 13px;
    color: #4a4a4a;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

/* Epic 13967, story 14613. The optional next step on a toast. It sits under the message and is its own
   tap target, well clear of the dismiss button, so opening a finished report and dismissing the toast are
   never the same 8 pixels. */
.oc-toast__link {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: #0b5ed7;
    text-decoration: underline;
}

.oc-toast__link:hover,
.oc-toast__link:focus {
    color: #094db1;
}

/* 32px is the practical floor for a control this small; it stays inside the toast padding and is
   still comfortably clickable on a phone. */
.oc-toast__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #6c757d;
    cursor: pointer;
    border-radius: 6px;
    padding: 0;
}

.oc-toast__close:hover {
    background: #f1f3f5;
    color: var(--oc-text-color);
}

.oc-toast__close:focus-visible {
    outline: 2px solid var(--oc-primary);
    outline-offset: 1px;
}

@keyframes oc-toast-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Respect a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
    .oc-toast {
        animation: none;
    }
}

/* On a phone the stack spans the width so long messages stay readable. */
@media (max-width: 576px) {
    .oc-toasts {
        left: 12px;
        right: 12px;
        width: auto;
        top: 68px;
    }
}

/* Raw id fallback list. Shown only when names are genuinely unavailable, so it is de-emphasised and
   wraps inline instead of running down the page as hundreds of bullets. */
.oc-id-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-height: 9rem;
    overflow-y: auto;
}

.oc-id-list li {
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    color: #5c5c5c;
    background: #f1f3f5;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
}

/* Hub card title colours.
   Each card carries a hue in its icon and its tinted circle. The title must use the SAME hue, or
   the card reads as two unrelated colours. Bootstrap's raw text-* values are too light for body
   text on white (text-warning #ffc107 is 1.63:1, text-info #0dcaf0 is 1.96:1, text-danger #dc3545
   is 4.0:1), so these are darkened to clear the WCAG AA 4.5:1 minimum while keeping the hue.
   The icons keep the bright values: non-text content only needs 3:1. */
.oc-title-primary {
    color: #0a58ca;
}

.oc-title-success {
    color: #146c43;
}

.oc-title-warning {
    color: #8a6100;
}

.oc-title-info {
    color: #0f6674;
}

.oc-title-purple {
    color: #59359a;
}

.oc-title-danger {
    color: #b02a37;
}

.oc-title-secondary {
    color: #5c636a;
}

.oc-title-dark {
    color: #212529;
}

/* ============================================================================
   Location group pages (Regions, Units)
   ----------------------------------------------------------------------------
   Global, not scoped: this app's scoped-CSS bundle is cached hard by the browser
   and newly added .razor.css files have repeatedly failed to apply. The two
   pages are near-identical, so they share one set of classes and cannot drift.
   ========================================================================== */

.oc-group-page {
    max-width: 68rem;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
    box-sizing: border-box;
}

.oc-group-header {
    margin-bottom: 1.5rem;
}

.oc-group-header h1 {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--oc-text-color);
}

/* The explainer. These pages gave no clue what a region or a unit was. */
.oc-group-help {
    margin: 0;
    max-width: 46rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #5c5c5c;
}

.oc-group-help strong {
    color: var(--oc-text-color);
}

.oc-group-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    margin-bottom: 1.75rem;
    overflow: hidden;
}

.oc-group-card__head {
    padding: 0.85rem 1.15rem;
    background: #fafafa;
    border-bottom: 1px solid #ececec;
}

.oc-group-card__head h2 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--oc-text-color);
}

.oc-group-card__body {
    padding: 1.15rem;
}

.oc-group-field {
    margin-bottom: 1.1rem;
}

.oc-group-field > label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--oc-text-color);
    margin-bottom: 0.35rem;
}

.oc-group-field__hint {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

.oc-group-name-input {
    width: 100%;
    max-width: 26rem;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--oc-form-border);
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.oc-group-name-input:focus {
    outline: none;
    border-color: var(--oc-primary);
    box-shadow: 0 0 0 .2rem var(--oc-primary-shadow);
}

/* Location picker. The old list put a bare checkbox beside wrapping text, so the box
   floated away from its label on any name long enough to wrap. */
.oc-group-locations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.4rem;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fcfcfc;
}

.oc-group-location {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.35;
}

.oc-group-location:hover {
    background: #f1f3f5;
}

.oc-group-location input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--oc-primary);
    cursor: pointer;
}

.oc-group-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* The create button used to span the whole card, which read as a page-level action
   rather than "submit this small form". */
.oc-group-btn {
    min-height: 44px;
    padding: 0.5rem 1.4rem;
    border-radius: 8px;
    border: 1px solid var(--oc-primary-text);
    background: var(--oc-primary-text);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.oc-group-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.oc-group-btn:focus-visible {
    outline: 3px solid var(--oc-primary);
    outline-offset: 2px;
}

.oc-group-btn--ghost {
    background: #fff;
    color: var(--oc-text-color);
    border-color: #d0d0d0;
    padding: 0.35rem 0.9rem;
    min-height: 36px;
}

.oc-group-btn--ghost:hover {
    border-color: var(--oc-primary-text);
    color: var(--oc-primary-text);
}

.oc-group-selected-count {
    font-size: 0.86rem;
    color: #6c757d;
}

/* Listing table */
.oc-group-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.oc-group-table th,
.oc-group-table td {
    padding: 0.7rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.oc-group-table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #5c5c5c;
    background: #fff;
    border-bottom: 2px solid #e6e6e6;
}

.oc-group-table tbody tr:hover {
    background: #fafbfc;
}

.oc-group-table tbody tr:last-child td {
    border-bottom: none;
}

.oc-group-table .oc-group-row-name {
    font-weight: 600;
    color: var(--oc-text-color);
}

/* The old cell said "1 Locations...", which was both wrong and uninformative. */
.oc-group-members {
    color: #5c5c5c;
}

.oc-group-members__names {
    display: block;
    font-size: 0.82rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

.oc-group-actions-col {
    text-align: right;
    width: 1%;
    white-space: nowrap;
}

.oc-group-empty {
    padding: 2rem 1.15rem;
    text-align: center;
    color: #6c757d;
}

.oc-group-empty__title {
    display: block;
    font-weight: 600;
    color: var(--oc-text-color);
    margin-bottom: 0.25rem;
}

@media screen and (max-width: 767px) {

    .oc-group-page {
        padding: 1rem 0.75rem 2rem;
    }

    .oc-group-locations {
        grid-template-columns: 1fr;
        max-height: 13rem;
    }

    .oc-group-table th,
    .oc-group-table td {
        padding: 0.6rem 0.75rem;
    }
}

/* Master-detail settings layout (Location Settings). Shares the card and button styles above. */
.oc-md {
    display: grid;
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    gap: 1.25rem;
    align-items: start;
}

.oc-md__list {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.oc-md__list-head {
    padding: 0.85rem 1.15rem;
    background: #fafafa;
    border-bottom: 1px solid #ececec;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #5c5c5c;
}

.oc-md__items {
    max-height: 32rem;
    overflow-y: auto;
}

/* Rows are real buttons so the list is keyboard navigable. The old rows were <div @onclick>
   with per-row colours that made the list look like a set of unrelated links. */
.oc-md__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.7rem 1.15rem;
    min-height: 44px;
    border: none;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #f2f2f2;
    background: #fff;
    color: var(--oc-text-color);
    font-size: 0.92rem;
    cursor: pointer;
}

.oc-md__item:hover {
    background: #fafbfc;
}

.oc-md__item:focus-visible {
    outline: 2px solid var(--oc-primary);
    outline-offset: -2px;
}

.oc-md__item.is-selected {
    background: #fdece6;
    border-left-color: var(--oc-primary);
    color: var(--oc-primary-text);
    font-weight: 600;
}

.oc-md__item:last-child {
    border-bottom: none;
}

.oc-md__detail {
    min-width: 0;
}

/* Placeholder shown before a location is picked. It was a bare heading floating in dead space. */
.oc-md__placeholder {
    background: #fff;
    border: 1px dashed #dcdcdc;
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #6c757d;
}

.oc-md__placeholder-icon {
    font-size: 2rem;
    color: #c9c9c9;
    display: block;
    margin-bottom: 0.6rem;
}

.oc-md__placeholder-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--oc-text-color);
    margin-bottom: 0.25rem;
}

@media screen and (max-width: 900px) {

    .oc-md {
        grid-template-columns: 1fr;
    }

    .oc-md__items {
        max-height: 16rem;
    }
}

/* The "New" badge. Shared/Components/NewBadge.razor.

   It sits on the dark sidebar and on white cards, so the fill is the brand
   orange and the text is near-black. Measured in a browser on 2026-09-07 from
   the computed style: #111 on --oc-primary is 5.43:1, which clears AA for text
   this small, and white on the same orange is 3.4:1, which does not. The fill
   against --oc-sidebar-bg is 4.24:1, so the pill still reads as a shape on the
   dark sidebar. */
.oc-new-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    background-color: var(--oc-primary);
    color: #111111;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
}

/* In the sidebar the nav link is a flex row of icon, label and chevron. The
   badge follows the label and must not stretch or shrink with it.

   The colour, the size and the display are repeated here on purpose.
   navbar.css sets "display: flex", "color: var(--oc-sidebar-text)" and
   "font-size: 15px" on ".sidebar-nav .nav-link span", which is more specific
   than ".oc-new-badge" and beats it. Left alone, the pill inside the sidebar
   drew in the sidebar's own grey text at 15px, which measured 2.18:1 against
   the orange fill. Verified in a browser on 2026-09-07 by reading the computed
   style, not by looking at it. */
.sidebar-nav .nav-link .oc-new-badge {
    display: inline-block;
    flex: 0 0 auto;
    margin-left: 8px;
    color: #111111;
    font-size: 10px;
    line-height: 16px;
}
