:root {
    --page: #ffffff;
    --ink: #303030;
    --ink-soft: #484848;
    --muted: #636363;
    --line: #d8d8d8;
    --line-strong: #c2c2c2;
    --blue: #0b6fb7;
    --green: #45ae50;
    --green-dark: #349a41;
    --green-soft: #f0f8f1;
    --error: #bf3b3b;
    --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    color-scheme: light;
    background: #ffffff;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #ffffff;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: #cdeccf;
    color: #17331a;
}

.auth-shell {
    width: 100%;
    max-width: 640px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: 22px 30px 24px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* Header */
.auth-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    min-height: 38px;
    margin-bottom: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #212121;
    line-height: 1;
    text-decoration: none;
}

.brand:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
    border-radius: 2px;
}

.brand-mark {
    display: block;
    width: 140px;
    height: 48px;
    flex: none;
    object-fit: contain;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1;
}

.brand-name {
    color: #213d2b;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.35px;
    white-space: nowrap;
}

.brand-name-light {
    color: #4d6755;
    font-weight: 500;
}

.brand-tagline {
    max-width: 440px;
    color: #2f4a37;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
}

/* Brand mark for an uploaded logo in the app top bar */
.brand-mark-box {
    display: block;
    width: 38px;
    height: 38px;
    flex: none;
}

.brand-mark-box--image {
    object-fit: contain;
}

/* Main content */
.auth-center {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 24px 0;
}

.auth-main {
    display: block;
    padding: 0;
}

.welcome h1 {
    margin: 0;
    color: var(--blue);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.45px;
    line-height: 1.22;
}

.welcome p {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.45;
}

.login-form {
    max-width: 580px;
    margin-top: 26px;
}

.login-notice {
    margin: 0 0 22px;
    padding: 10px 13px;
    border: 1px solid #cfe8d2;
    border-radius: 4px;
    background: var(--green-soft);
    color: #285c2e;
    font-size: 13px;
    line-height: 1.45;
}

.login-error {
    margin: 0 0 22px;
    padding: 10px 13px;
    border: 1px solid #f0c9c9;
    border-radius: 4px;
    background: #fdf3f3;
    color: #9c2f2f;
    font-size: 13px;
    line-height: 1.45;
}

/* Fields */
.fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 24px;
}

.field {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.field label {
    margin-bottom: 1px;
    color: #424242;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    transition: color 160ms ease;
}

.text-input {
    width: 100%;
    margin: 0;
    padding: 2px 0 6px;
    border: 0;
    border-bottom: 2px solid var(--line);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #242424;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 160ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.text-input:hover {
    border-bottom-color: var(--line-strong);
}

.text-input:focus,
.field:focus-within .text-input {
    border-bottom-color: var(--green);
}

.field:focus-within label {
    color: var(--green-dark);
}

.text-input.input-validation-error {
    border-bottom-color: var(--error);
}

.field:has(.input-validation-error) label {
    color: var(--error);
}

.text-input.input-validation-error:focus,
.field:has(.input-validation-error):focus-within .text-input {
    border-bottom-color: var(--error);
}

.text-input:-webkit-autofill,
.text-input:-webkit-autofill:hover,
.text-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #242424;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 5000s ease-in-out 0s;
}

.field-error {
    margin-top: 5px;
    color: var(--error);
    font-size: 11.5px;
    line-height: 1.4;
}

.field-error:empty {
    display: none;
}

/* Remember me and secondary link */
.form-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
    min-height: 20px;
    margin-top: 26px;
}

.remember {
    display: inline-flex;
    width: max-content;
    align-items: flex-start;
    gap: 10px;
    color: #2f2f2f;
    cursor: pointer;
    font-size: 13.5px;
    line-height: 1.45;
    user-select: none;
}

.remember input {
    display: grid;
    width: 18px;
    height: 18px;
    flex: none;
    place-content: center;
    margin: 1px 0 0;
    border: 1.5px solid #c9c9c9;
    border-radius: 2px;
    outline: 0;
    background: #fff;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.remember input::before {
    width: 8px;
    height: 5px;
    margin-top: -2px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    content: "";
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform 120ms ease-out;
}

.remember input:hover {
    border-color: #a9a9a9;
}

.remember input:checked {
    border-color: var(--green);
    background: var(--green);
}

.remember input:checked::before {
    transform: rotate(-45deg) scale(1);
}

.remember input:focus-visible {
    outline: 2px solid rgba(69, 174, 80, 0.4);
    outline-offset: 2px;
}

.forgot {
    justify-self: end;
    padding-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
    text-decoration: none;
}

.forgot:hover {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Actions */
.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    row-gap: 14px;
    margin-top: 30px;
}

.primary-button {
    height: 40px;
    min-width: 112px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 2px 3px rgba(29, 72, 33, 0.18);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 60ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.primary-button:hover {
    background: var(--green-dark);
    box-shadow: 0 3px 6px rgba(29, 72, 33, 0.2);
}

.primary-button:active {
    box-shadow: 0 1px 2px rgba(29, 72, 33, 0.18);
    transform: translateY(1px);
}

.primary-button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.forgot:focus-visible {
    border-radius: 1px;
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

/* Authenticated app shell */
.app-body {
    min-height: 100vh;
    background: #f5f7f5;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    width: 248px;
    flex-direction: column;
    padding: 22px 16px 18px;
    border-right: 1px solid #e3e7e3;
    background: #ffffff;
    transition: transform 200ms ease;
}

.app-sidebar__brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 8px 20px;
    border-bottom: 1px solid #edf0ed;
    text-decoration: none;
}

.app-sidebar__logo {
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
    object-fit: contain;
}

.app-sidebar__name {
    color: #213d2b;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.15;
}

.app-sidebar__full {
    color: #5c7262;
    font-size: 11px;
    line-height: 1.35;
}

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 16px;
}

.app-nav__item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #3d4a40;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.app-nav__item svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.app-nav__item:hover {
    background: #f2f7f2;
    color: #1f5f2b;
}

.app-nav__item.active {
    background: #eaf6ec;
    color: #1f6b2b;
    font-weight: 600;
}

.app-nav__item.is-disabled {
    color: #7c877e;
    cursor: default;
}

.app-nav__item.is-disabled:hover {
    background: transparent;
    color: #7c877e;
}

.app-nav__soon {
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f0f2f0;
    color: #7c877e;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.app-sidebar__footer {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
    padding: 14px 8px 0;
    border-top: 1px solid #edf0ed;
    color: #7a857c;
    font-size: 11px;
    line-height: 1.4;
}

.app-sidebar__footer a {
    color: #2f6b39;
    text-decoration: none;
}

.app-sidebar__footer a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.app-main {
    display: flex;
    width: 100%;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.app-header-stack {
    position: sticky;
    top: 0;
    z-index: 40;
}

.app-topbar {
    position: static;
    z-index: auto;
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    border-bottom: 1px solid #dbe3ec;
    background: #ffffff;
}

.app-topbar__brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-right: 18px;
    border-right: 1px solid #e3e7e3;
    color: #1e3a54;
    text-decoration: none;
}

.app-topbar__brand:focus-visible {
    outline: 2px solid #1e3a54;
    outline-offset: 3px;
    border-radius: 3px;
}

.app-topbar__lockup {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.15;
}

.app-topbar__name {
    color: #1e3a54;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.app-topbar__full {
    max-width: 190px;
    overflow: hidden;
    color: #7a857c;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-topbar__spacer {
    flex: 1;
}

.app-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: #eaf6ec;
    color: #2b6b35;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.app-user__meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
}

.app-user__name {
    color: #2c3a31;
    font-size: 13px;
    font-weight: 600;
}

.app-user__role {
    color: #7a857c;
    font-size: 11px;
}

.app-logout {
    height: 36px;
    padding: 0 18px;
    border: 1px solid #1e3a54;
    border-radius: 8px;
    background: #1e3a54;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
    transition: background-color 140ms ease, border-color 140ms ease;
}

.app-logout:hover {
    border-color: #162d42;
    background: #162d42;
}

.app-logout:focus-visible {
    outline: 2px solid #1e3a54;
    outline-offset: 2px;
}

.app-user-menu {
    position: relative;
}

.app-user-menu__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
}

.app-user-menu__trigger::-webkit-details-marker {
    display: none;
}

.app-user-menu__trigger:hover {
    background: #f4f7f4;
}

.app-user-menu__trigger:focus-visible {
    outline: 2px solid #1e3a54;
    outline-offset: 2px;
}

.app-user-menu__chevron {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    color: #7a857c;
    transition: transform 140ms ease;
}

.app-user-menu[open] .app-user-menu__chevron {
    transform: rotate(180deg);
}

.app-user-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    width: 250px;
    padding: 8px;
    border: 1px solid #dbe3ec;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(20, 40, 24, 0.14);
}

.app-user-menu__header {
    margin-bottom: 6px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid #eef1ee;
}

.app-user-menu__header strong {
    display: block;
    color: #1e3a54;
    font-size: 13px;
}

.app-user-menu__header span {
    display: block;
    margin-top: 2px;
    color: #7a857c;
    font-size: 11px;
    word-break: break-word;
}

.app-user-menu__item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #3d4a40;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
}

.app-user-menu__item svg {
    width: 16px;
    height: 16px;
    flex: none;
    color: #6f7d72;
}

.app-user-menu__item:hover {
    background: #f2f7f2;
    color: #1f6b2b;
}

.app-user-menu__item:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 1px;
}

.app-user-menu__divider {
    height: 1px;
    margin: 6px 0;
    background: #eef1ee;
}

.app-topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #dfe5df;
    border-radius: 6px;
    background: #ffffff;
    color: #46534a;
    cursor: pointer;
    text-decoration: none;
}

.topbar-icon svg {
    width: 17px;
    height: 17px;
}

.topbar-icon:hover {
    border-color: #b9c6bb;
    background: #f7faf7;
}

.topbar-icon:focus-visible {
    outline: 2px solid #1e3a54;
    outline-offset: 2px;
}

.topbar-shift {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    background: #1e3a54;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.topbar-shift svg {
    width: 15px;
    height: 15px;
}

.topbar-clock {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #dfe5df;
    border-radius: 6px;
    color: #334238;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.topbar-notifications {
    position: relative;
}

.topbar-notifications summary {
    list-style: none;
}

.topbar-notifications summary::-webkit-details-marker {
    display: none;
}

.topbar-notifications__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    width: 220px;
    padding: 12px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(20, 40, 24, 0.14);
}

.topbar-notifications__panel strong {
    display: block;
    margin-bottom: 4px;
    color: #1e3a54;
    font-size: 13px;
}

.app-user-menu__logout {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #b42318;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.app-user-menu__logout svg {
    width: 16px;
    height: 16px;
}

.app-user-menu__logout:hover {
    background: #fdf0ef;
    color: #9c1f16;
}

.app-user-menu__logout:focus-visible {
    outline: 2px solid #b42318;
    outline-offset: 1px;
}

.manual-list {
    margin: 0;
    padding-left: 18px;
    color: #5e6b62;
    font-size: 13px;
    line-height: 1.6;
}

.manual-list li + li {
    margin-top: 6px;
}

.form-panel {
    max-width: 720px;
}

.standalone-body {
    min-height: 100vh;
    margin: 0;
    background: #f5f7f5;
    color: var(--ink);
    font-family: var(--font-sans);
}

.standalone-shell {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px;
}

.standalone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #1e3a54;
    font-size: 15px;
}

.standalone-back {
    color: #2f6b39;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.standalone-back:hover {
    text-decoration: underline;
}

.standalone-subtitle {
    margin: 0 0 20px;
    color: #5e6b62;
    font-size: 14px;
}

.standalone-shell .form-panel h1 {
    margin: 0 0 4px;
    color: #22332a;
    font-size: 26px;
}

.form-panel textarea.text-input,
.form-panel select.text-input {
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.form-panel textarea.text-input {
    min-height: 80px;
    resize: vertical;
}

.form-panel select.text-input {
    height: 40px;
}

@media (max-width: 1200px) {
    .topbar-shift {
        display: none;
    }
}

.app-content {
    width: 100%;
    max-width: 1180px;
    padding: 28px;
}

.admin-overview {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px;
}

.page-heading h1 {
    margin: 0;
    color: #22332a;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.page-heading p {
    margin: 6px 0 0;
    color: #5e6b62;
    font-size: 14px;
    line-height: 1.5;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat-card {
    padding: 18px 20px;
    border: 1px solid #e3e7e3;
    border-radius: 8px;
    background: #ffffff;
}

.stat-card__label {
    color: #7a857c;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-card__value {
    margin-top: 7px;
    color: #22332a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.panel {
    margin-top: 16px;
    padding: 20px 22px;
    border: 1px solid #e3e7e3;
    border-radius: 8px;
    background: #ffffff;
}

.panel h2 {
    margin: 0 0 6px;
    color: #22332a;
    font-size: 16px;
    font-weight: 600;
}

.panel p {
    margin: 0;
    color: #5e6b62;
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .app-topbar {
        flex-wrap: wrap;
        padding: 0 18px;
        row-gap: 8px;
    }

    .app-topbar__brand {
        padding-right: 12px;
    }

    .app-topbar-tools > .topbar-icon:first-child,
    .app-topbar-tools > .topbar-icon:nth-child(2) {
        display: none;
    }

    .app-content {
        padding: 22px 18px;
    }

    .admin-overview {
        padding: 22px 18px;
    }
}

@media (max-width: 560px) {
    .app-user__meta {
        display: none;
    }

    .app-topbar__full {
        max-width: 130px;
    }

    .app-logout {
        padding: 0 12px;
    }

    .page-heading h1 {
        font-size: 24px;
    }
}

/* New request form */
.req-card {
    margin-top: 18px;
    padding: 0 22px 22px;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    background: #ffffff;
}

.req-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 -22px 22px;
    padding: 18px 22px;
    border-bottom: 1px solid #edf1f5;
}

.req-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.req-step__num {
    display: grid;
    width: 34px;
    height: 34px;
    flex: none;
    place-items: center;
    border: 1px solid #dbe3ec;
    border-radius: 5px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.req-step strong {
    display: block;
    color: #1e3a54;
    font-size: 14px;
}

.req-step small {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 11px;
}

.req-badge {
    padding: 5px 9px;
    border: 1px solid #e6c27a;
    border-radius: 4px;
    background: #fdf5e3;
    color: #a87015;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.req-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 18px;
}

.req-fields .text-input {
    padding: 9px 11px;
    border: 1px solid #dbe3ec;
    border-radius: 5px;
    background: #ffffff;
    font-size: 13px;
}

.req-fields .text-input[readonly] {
    background: #f4f7f9;
    color: #64748b;
}

.req-field--empty {
    min-height: 1px;
}

.req-priority {
    margin-top: 26px;
}

.req-label {
    display: block;
    margin-bottom: 8px;
    color: #424242;
    font-size: 12px;
    font-weight: 600;
}

.priority-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.priority-option {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid #dbe3ec;
    border-radius: 5px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    font-size: 13px;
}

.priority-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.priority-dot {
    width: 14px;
    height: 14px;
    flex: none;
    border: 1px solid #94a3b8;
    border-radius: 3px;
    background: #e2e8f0;
}

.priority-option:has(input:checked) {
    border-color: #94a3b8;
    background: #f8fafc;
    font-weight: 600;
}

.priority-option--urgent:has(input:checked) {
    border-color: #e6c27a;
    background: #fdf5e3;
    color: #a87015;
}

.priority-option--emergency:has(input:checked) {
    border-color: #e58b8b;
    background: #fdecec;
    color: #b42318;
}

.priority-option--emergency:has(input:checked) .priority-dot {
    border-color: #b42318;
    background: #b42318;
}

.req-purpose {
    margin-top: 22px;
}

.req-purpose textarea {
    min-height: 90px;
    padding: 10px 12px;
    border: 1px solid #dbe3ec;
    border-radius: 5px;
    background: #ffffff;
    font-size: 13px;
    resize: vertical;
}

@media (max-width: 900px) {
    .req-fields,
    .priority-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Request Form / document list page */
.app-content--wide {
    max-width: 100%;
    padding: 0;
}

.rms-body,
.rms-page {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 16px;
    background: #eef2f6;
    color: var(--ink);
    font-family: var(--font-sans);
}

.rms-shell {
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 28px);
    margin: 0;
    border: 1px solid #dbe3ec;
    background: #f8fafc;
}

.rms-shell--compact {
    min-height: 0;
}

.rms-page {
    padding: 14px 16px;
}

.rms-header {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: #1e3a54;
    color: #ffffff;
}

.rms-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.rms-header__icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
}

.rms-header__icon svg {
    width: 18px;
    height: 18px;
}

.rms-back {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.09);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.rms-back:hover {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(-2px);
}

.rms-back:focus-visible {
    outline: 2px solid #a7e2d2;
    outline-offset: 2px;
}

.rms-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 20px;
    background: #1e3a54;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rms-toolbar__group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rms-toolbar__group--right {
    margin-left: auto;
}

.rms-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    color: #e8f0f7;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.rms-tool:hover {
    background: rgba(255, 255, 255, 0.12);
}

.rms-tool svg {
    width: 14px;
    height: 14px;
    flex: none;
}

.rms-tool--active {
    background: #ffffff;
    color: #1e3a54;
}

.rms-tool--green {
    border-color: #1f8a70;
    background: #1f8a70;
    color: #ffffff;
}

.rms-tool--green:hover {
    background: #18705b;
}

.rms-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 20px 12px;
}

.rms-stat {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #dde5ee;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.rms-stat__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: none;
    place-items: center;
    border-radius: 5px;
}

.rms-stat__icon svg {
    width: 17px;
    height: 17px;
}

.rms-stat__icon--blue { background: #e9f1fb; color: #2f6fb5; }
.rms-stat__icon--indigo { background: #eef0fb; color: #5a63c0; }
.rms-stat__icon--amber { background: #fdf5e3; color: #c08b1d; }
.rms-stat__icon--green { background: #e7f7ed; color: #2f9b5b; }
.rms-stat__icon--red { background: #fdecec; color: #c04a4a; }

.rms-stat__value {
    color: #22344a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.rms-stat__label {
    color: #64748b;
    font-size: 12px;
    line-height: 1.2;
}

.rms-panel form {
    padding: 30px 20px 20px;
}

.product-create .rms-panel,
.product-list .rms-panel,
.app-settings .rms-panel {
    margin-top: 20px;
}

.product-create .rms-panel form {
    padding: 20px 20px 0;
}

.product-create .rms-toolbar {
    min-height: 38px;
}

.product-create__context {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.product-create__context span {
    margin: 0 6px;
    color: #94a3b8;
}

.product-create__context strong {
    color: #f8fafc;
    font-weight: 700;
}

.product-edit-page .product-create__context .product-edit-header-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 0 12px;
}

.product-edit-page .product-create__context .product-edit-header-links a {
    color: #a7e2d2;
    font-weight: 700;
    text-decoration: none;
}

.product-edit-page .product-create__context .product-edit-header-links a:hover {
    text-decoration: underline;
}

.product-edit-page .product-create__context .product-edit-header-links span {
    margin: 0;
    color: #94a3b8;
}

.product-create__note {
    color: #cbd5e1;
    font-size: 11px;
}

.product-create .product-card {
    margin-top: 14px;
    padding: 0 18px 18px;
    border-color: #dbe3ec;
    border-left: 3px solid #1f8a70;
}

.product-create .product-card:first-of-type {
    margin-top: 0;
}

.product-create .req-card__head {
    margin: 0 -18px 16px;
    padding: 14px 18px;
    border-bottom-color: #e7edf4;
}

.product-create .req-step small {
    color: #64748b;
}

.product-create .req-step__num {
    border-color: #a7e2d2;
    background: #ecfdf5;
    color: #1f8a70;
}

.product-create .product-details-grid {
    grid-template-columns: 0.9fr 1.8fr 0.9fr 0.6fr;
    gap: 14px 16px;
}

.product-create .product-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

/* Edit page: compact ID / Item ID / Active, roomy Product Name. */
.product-edit-page .product-details-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.product-edit-page .product-details-grid > .field:nth-child(1) {
    grid-column: span 1;
}

.product-edit-page .product-details-grid > .field:nth-child(2) {
    grid-column: span 2;
}

.product-edit-page .product-details-grid > .field:nth-child(3) {
    grid-column: span 5;
}

.product-edit-page .product-details-grid > .field:nth-child(4),
.product-edit-page .product-details-grid > .field:nth-child(5) {
    grid-column: span 2;
}

.product-edit-page .product-details-grid > .field:nth-child(6),
.product-edit-page .product-details-grid > .field:nth-child(7),
.product-edit-page .product-details-grid > .field:nth-child(8) {
    grid-column: span 3;
}

.product-edit-page .product-details-grid > .product-check-grid {
    grid-column: span 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: end;
}

.product-edit-page .product-details-grid > .form-actions {
    grid-column: 1 / -1;
    position: static;
    margin: 4px 0 0;
    padding: 12px 0 0;
    border-top: 0;
    background: transparent;
}

.product-edit-page .rms-panel form {
    padding: 0;
}

/* Card title sits above the card. */
.product-edit-page .req-card__head--outside {
    min-height: 72px;
    margin: 0;
    padding: 16px 24px;
    border: 0;
    background: #f8fafc;
}

.product-edit-page .req-card__head--outside .req-step strong {
    color: #1e3a54;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.product-edit-page .req-card__head--outside .req-step small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

/* Match the Account Information card used on the user form. */
.product-edit-page .account-info-card {
    box-shadow: none;
    padding-right: 0;
    padding-left: 0;
    margin-top: 0;
}

.product-edit-page .account-info-card .req-card__head {
    margin: 0 0 22px;
    padding: 14px 24px;
    border-bottom: 1px solid #e3e9ef;
    background: #f8fafc;
}

.product-edit-page .account-info-card .req-step strong {
    color: #1e3a54;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.product-edit-page .account-info-card .req-step small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.product-edit-page .account-info-card__body {
    padding: 18px 24px 20px;
}

.product-edit-page .account-info-card__body .login-notice {
    margin-bottom: 16px;
}

.product-edit-page .product-details-grid .product-check {
    min-height: 38px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #475569;
}

.product-edit-page .product-details-grid .product-check:hover,
.product-edit-page .product-details-grid .product-check:has(input:checked) {
    border: 0;
    background: transparent;
}

.product-edit-page .product-details-grid .product-check:has(input:checked) {
    color: #1f8a70;
}

.product-create .product-extra-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 16px;
}

.product-create .product-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.product-create .product-card textarea.text-input {
    height: auto;
    min-height: 70px;
    padding: 9px 10px;
    resize: vertical;
}

.product-check-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 14px;
}

.product-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #d8e0ea;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.product-check:hover {
    border-color: #b9c5d4;
    background: #f8fafc;
}

.product-check:has(input:checked) {
    border-color: #a7e2d2;
    background: #ecfdf5;
    color: #1f8a70;
}

.product-check input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #1f8a70;
}

.product-create .product-card .field > label {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.product-create label[for="Input_Description"]::after {
    content: " *";
    color: #b91c1c;
}

.product-create .product-card .text-input.product-new-id[readonly] {
    color: #1f8a70;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.product-create label[for="Input_ItemId"]::after {
    content: "AUTO";
    display: inline-block;
    margin-left: 8px;
    padding: 1px 5px;
    border: 1px solid #a7e2d2;
    background: #ecfdf5;
    color: #1f8a70;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.product-create .product-card .text-input {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d8e0ea;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 13px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-create .product-card .text-input:hover {
    border-color: #b9c5d4;
}

.product-create .product-card .text-input:focus,
.product-create .product-card .field:focus-within .text-input {
    border-color: #1e3a54;
    box-shadow: 0 0 0 3px rgba(30, 58, 84, 0.10);
    outline: none;
}

.product-create .product-card .text-input[readonly] {
    border-color: #e2e8f0;
    background: #f1f5f9;
    color: #475569;
    cursor: default;
}

.product-create .field-link {
    display: inline-block;
    margin-top: 5px;
    color: #1f8a70;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.product-create .field-link:hover {
    color: #18705b;
    text-decoration: underline;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf1f5;
}

.product-card__note {
    color: #64748b;
    font-size: 11px;
}

.product-card__links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 11px;
}

.product-card__links a {
    color: #1f8a70;
    font-weight: 700;
    text-decoration: none;
}

.product-card__links a:hover {
    text-decoration: underline;
}

.product-create .form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 16px -20px 0;
    padding: 12px 20px;
    border-top: 1px solid #e7edf4;
    background: rgba(255, 255, 255, 0.96);
}

.product-create .form-actions .clinic-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.product-create .form-actions .clinic-action--gray {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.product-create .form-actions .clinic-action--gray:hover {
    background: #e2e8f0;
}

.product-create .form-actions .clinic-action--green {
    border-color: #1f8a70;
    background: #1f8a70;
    color: #ffffff;
}

.product-create .form-actions .clinic-action--green:hover {
    border-color: #18705b;
    background: #18705b;
}

.product-create .req-card,
.product-create .req-card__head,
.product-create .req-step__num,
.product-create .product-card .text-input,
.product-create .form-actions .clinic-action {
    border-radius: 0;
}

@media (max-width: 1000px) {
    .product-create .product-details-grid,
    .product-create .product-extra-grid,
    .product-create .product-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-edit-page .product-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-edit-page .product-details-grid > .field,
    .product-edit-page .product-details-grid > .product-check-grid {
        grid-column: auto;
    }

    .product-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .product-create .product-details-grid,
    .product-create .product-class-grid,
    .product-create .product-extra-grid,
    .product-create .product-spec-grid,
    .product-edit-page .product-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-check-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-create__note {
        display: none;
    }
}

.app-settings__body {
    display: grid;
    gap: 14px;
    padding: 0 20px 20px;
}

.app-settings__button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.app-settings__cards-row {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.app-settings__section {
    padding: 10px 12px 12px;
    border: 1px solid #dbe3ec;
    background: #ffffff;
}

.app-settings__section h2 {
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e7edf4;
    color: #1e3a54;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.app-settings__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #dbe3ec;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

a.settings-link:hover {
    border-color: #1e3a54;
    background: #f7fafc;
}

.settings-link__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #1e3a54;
}

.settings-link__title,
.settings-link__desc {
    display: block;
}

.settings-link__title {
    color: #1e3a54;
    font-size: 12px;
    font-weight: 700;
}

.settings-link__desc {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
}

.settings-link__arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 14px;
}

.settings-link__badge {
    margin-left: auto;
    padding: 3px 7px;
    border: 1px solid #dbe3ec;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.settings-link--disabled {
    opacity: 0.6;
}

.settings-link--button {
    justify-self: start;
    width: max-content;
    gap: 7px;
    padding: 6px 10px;
    border-color: #1f8a70;
    background: #1f8a70;
    font-family: inherit;
    cursor: pointer;
}

a.settings-link.settings-link--button:hover {
    border-color: #18705b;
    background: #18705b;
}

.settings-link--button .settings-link__icon {
    width: 14px;
    height: 14px;
    color: #ffffff;
}

.settings-link--button .settings-link__title {
    color: #ffffff;
    font-size: 12px;
}

.settings-field-grid {
    display: grid;
    grid-template-columns: repeat(2, 180px);
    gap: 14px;
}

.settings-field-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-field label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.settings-field-grid .text-input {
    width: 100%;
    height: 34px;
    font-size: 14px;
}

.settings-field-grid--three .text-input {
    width: 100%;
}

.app-settings__group {
    margin: 6px 0 8px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.app-settings__group:not(:first-of-type) {
    margin-top: 16px;
}

.app-settings__module-list {
    display: grid;
    gap: 8px;
}

.module-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #dbe3ec;
    background: #ffffff;
}

.module-row__name,
.module-row__desc {
    display: block;
}

.module-row__name {
    color: #1e3a54;
    font-size: 12px;
    font-weight: 700;
}

.module-row__desc {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
}

.module-row__status {
    margin-left: auto;
}

.product-list .rms-tabs {
    gap: 10px;
}

.product-list .rms-tabs .product-search-field {
    flex: 0 1 430px;
    width: 430px;
    max-width: 100%;
}

.product-list .rms-tabs .product-search {
    width: 100%;
    height: 38px;
    min-width: 0;
    margin-left: 0;
    padding: 0 40px 0 40px;
    border: 1px solid #d8e0ea;
    border-radius: 0;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.product-list .rms-tabs .product-search::-webkit-search-cancel-button,
.product-list .rms-tabs .product-search::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.product-list .rms-tabs .product-search::placeholder {
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0;
}

.product-list .rms-tabs .product-search:hover {
    border-color: #b9c5d4;
}

.product-list .rms-tabs .product-search:focus {
    outline: none;
    border-color: #1e3a54;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 58, 84, 0.10);
}

.product-list .rms-tabs .rms-search-field__icon {
    left: 13px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.product-list .rms-tabs .product-search-field:focus-within .rms-search-field__icon {
    color: #1e3a54;
}

.product-search__clear {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.product-search__clear[hidden] {
    display: none;
}

.product-search__clear:hover {
    background: #eef2f7;
    color: #1e3a54;
}

.product-search__clear svg {
    width: 12px;
    height: 12px;
}

.product-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
}

.product-search-submit {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #1e3a54;
    border-radius: 0;
    background: #1e3a54;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.product-search-submit:hover {
    background: #162d42;
}

.product-list .column-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.product-list .column-filter:hover,
.product-list .column-filter[aria-expanded="true"] {
    color: #ffffff;
}

.product-list .column-filter__caret {
    font-size: 9px;
    line-height: 1;
    opacity: 0.8;
}

.product-list .column-filter__menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 4px;
    z-index: 20;
    width: 260px;
    max-height: 280px;
    padding: 6px;
    overflow: auto;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    color: #1e3a54;
    letter-spacing: 0;
    text-transform: none;
}

.product-list .column-filter__menu[hidden],
.product-list .column-filter__option[hidden] {
    display: none;
}

.product-list .column-filter__search {
    width: 100%;
    min-height: 30px;
    margin-bottom: 6px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #f8fafc;
    color: #1e3a54;
    font-family: inherit;
    font-size: 12px;
}

.product-list .column-filter__option {
    display: block;
    width: 100%;
    min-height: 28px;
    padding: 5px 8px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #334155;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.product-list .column-filter__option:hover {
    background: #eef2f7;
}

.product-list .column-filter__option.is-selected {
    background: #1e3a54;
    color: #ffffff;
}

.product-loadmore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px 18px;
    border-top: 1px solid #e4eaf1;
    background: #f8fafc;
}

.product-loadmore__info {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.product-loadmore__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 16px;
    border: 1px solid #1f8a70;
    border-radius: 0;
    background: #1f8a70;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.product-loadmore__btn:hover {
    background: #18705b;
}

.product-loadmore__btn span {
    color: #a7e2d2;
    font-size: 10px;
    font-weight: 600;
}

.product-loadmore__link {
    color: #1e3a54;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.product-loadmore__link:hover {
    text-decoration: underline;
}

.product-scroll-sentinel {
    width: 100%;
    height: 1px;
    pointer-events: none;
}

.product-loadmore__status {
    min-height: 14px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.product-loadmore__btn[aria-disabled="true"] {
    opacity: 0.65;
    pointer-events: none;
}

.product-list .rms-tabs .rms-tab {
    margin-left: auto;
}

.product-list .product-category-cell {
    color: #64748b;
    white-space: nowrap;
}

.product-saved-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(167, 226, 210, 0.55);
    background: rgba(236, 253, 245, 0.12);
    color: #ecfdf5;
    font-size: 11px;
}

.product-saved-banner__check {
    display: grid;
    width: 18px;
    height: 18px;
    flex: none;
    place-items: center;
    border-radius: 0;
    background: #1f8a70;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.product-saved-banner strong {
    color: #ffffff;
    letter-spacing: 0.3px;
}

.product-saved-banner a {
    margin-left: 6px;
    color: #a7e2d2;
    font-weight: 700;
    text-decoration: none;
}

.product-saved-banner a:hover {
    text-decoration: underline;
}

.product-related-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.product-related-label {
    margin-right: 2px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-inspector-note {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.product-inspector-table tbody tr {
    content-visibility: auto;
    contain-intrinsic-size: auto 30px;
}

.product-inspector-table tbody tr[data-product-id] {
    cursor: pointer;
}

.product-inspector-table tbody tr[data-product-id]:hover {
    background: #f8fafc;
}

.product-inspector-table tbody tr.is-selected,
.product-inspector-table tbody tr.is-selected:hover {
    background: #ecfdf5;
    box-shadow: inset 3px 0 0 #1f8a70;
}

.product-edit-wrap {
    scroll-margin-top: 124px;
}

.product-edit-panel__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #12283a;
    background: #1e3a54;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.product-edit-panel__head strong {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
}

.product-edit-panel__head span {
    overflow: hidden;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-edit-panel__close {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.product-edit-panel__close:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* With the editor open the page scrolls normally so the heading is never covered. */
body.product-editor-open:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .app-shell,
body.product-editor-open:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .app-main {
    height: auto;
    min-height: 100vh;
}

body.product-editor-open:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .app-content--wide {
    display: block;
    flex: none;
    overflow: visible;
}

body.product-editor-open:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-page,
body.product-editor-open:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-shell {
    display: block;
    height: auto;
    min-height: 0;
}

body.product-editor-open:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-shell > .rms-panel {
    display: block;
    flex: none;
    margin-top: 20px;
}

body.product-editor-open:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-table-wrap {
    height: auto;
    max-height: 440px;
}

body.product-editor-open .product-edit-wrap .rms-panel {
    display: block;
    flex: none;
    margin-top: 20px;
}

.product-inspector-table .product-cell--long span {
    display: block;
    max-width: 420px;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-inspector-table .product-flag--yes {
    color: #1f8a70;
    font-weight: 700;
}

.product-inspector-table .product-flag--no {
    color: #94a3b8;
}

.product-inspector-table .product-risk {
    font-weight: 600;
}

.product-inspector-table .product-risk--high {
    color: #b91c1c;
    font-weight: 700;
}

.product-inspector-table .product-risk--medium {
    color: #b45309;
}

.product-inspector-table .product-risk--safe {
    color: #1f8a70;
}

.product-inspector-table .product-risk--low {
    color: #64748b;
}

/* Request Form Units settings */
.unit-add-row {
    display: grid;
    grid-template-columns: 260px 140px auto;
    gap: 16px;
    align-items: end;
}

.unit-add-button {
    align-self: end;
}

.unit-settings .unit-table-scroll {
    overflow: auto;
    max-height: min(50vh, 440px);
    margin: 0 20px 20px;
    border: 1px solid #e6ecf2;
}

.unit-settings .unit-table-scroll form {
    margin: 0;
    padding: 0;
}

.unit-toggle {
    height: 26px;
    padding: 0 9px;
    border: 1px solid #d8e0ea;
    background: #ffffff;
    color: #475569;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.unit-toggle:hover {
    border-color: #1e3a54;
    color: #1e3a54;
}

/* Product Categories */
.category-list .category-add-form {
    margin: 18px 20px 0;
    padding: 16px 18px;
    border: 1px solid #dfe7f0;
    border-left: 3px solid #1f8a70;
    background: #f8fafc;
}

.category-add-form::before {
    content: "NEW CATEGORY";
    display: block;
    margin-bottom: 14px;
    color: #1e3a54;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.category-add-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
    align-items: flex-end;
}

.category-add-grid .field {
    width: 190px;
}

.category-add-grid .field--code {
    width: 140px;
}

.category-add-grid .field--name,
.category-add-grid .field--parent {
    width: 280px;
}

.category-add-grid .field--order {
    width: 90px;
}

.category-add-grid .field--status {
    width: 120px;
}

.category-add-grid .field--description {
    width: 230px;
}

.category-add-grid .field label {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.category-add-grid .text-input {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d8e0ea;
    background: #ffffff;
    font-size: 13px;
    line-height: 34px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.category-add-grid .text-input:hover {
    border-color: #b9c5d4;
}

.category-add-grid .text-input:focus,
.category-add-grid .field:focus-within .text-input {
    border-color: #1e3a54;
    box-shadow: 0 0 0 3px rgba(30, 58, 84, 0.10);
}

.category-add-actions {
    display: flex;
    align-self: flex-end;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.category-new-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.category-new-button::before {
    content: "+";
    margin-right: 6px;
    font-size: 14px;
    line-height: 1;
}

.category-new-button:hover {
    border-color: #94a3b8;
    background: #e2e8f0;
}

.category-add-button {
    align-self: flex-end;
    height: 36px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
}

.category-edit .form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 18px 20px 20px;
    padding-top: 16px;
    border-top: 1px solid #e7edf4;
}

.category-edit .form-actions .clinic-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.category-edit .form-actions .clinic-action--gray {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.category-edit .form-actions .clinic-action--gray:hover {
    background: #e2e8f0;
}

.category-edit .form-actions .clinic-action--green {
    border-color: #1f8a70;
    background: #1f8a70;
    color: #ffffff;
}

.category-edit .form-actions .clinic-action--green:hover {
    border-color: #18705b;
    background: #18705b;
}

.sa-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
}

.sa-card {
    width: min(380px, calc(100vw - 32px));
    padding: 24px;
    border: 1px solid #dbe3ec;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    text-align: center;
    font-family: inherit;
}

.sa-icon {
    display: flex;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    font-size: 26px;
    font-weight: 700;
}

.sa-title {
    margin: 0 0 8px;
    color: #1e3a54;
    font-size: 16px;
    font-weight: 700;
}

.sa-message {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.sa-ok {
    height: 36px;
    padding: 0 20px;
    border: 1px solid #1f8a70;
    border-radius: 3px;
    background: #1f8a70;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.sa-ok:hover {
    border-color: #18705b;
    background: #18705b;
}

.category-list .category-table-scroll {
    overflow: auto;
    max-height: min(50vh, 440px);
    margin: 0 20px 20px;
    border: 1px solid #e6ecf2;
}

.category-list .category-table-scroll form {
    margin: 0;
    padding: 0;
}

.category-list .rms-empty {
    padding: 24px 12px 24px 35px;
    text-align: left;
}

.category-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-action-link {
    display: inline-flex;
    height: 26px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid #d8e0ea;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.category-action-link:hover {
    border-color: #1e3a54;
    color: #1e3a54;
}

.rms-panel {
    margin: 0 20px 20px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.rms-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 16px;
}

.rms-tab {
    padding: 6px 9px;
    border: 1px solid #dbe3ec;
    border-radius: 4px;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.rms-tab span {
    margin-left: 3px;
    color: #94a3b8;
    font-size: 10px;
}

.rms-tab:hover {
    background: #f1f5f9;
}

.rms-tab.is-active {
    background: #1e3a54;
    border-color: #1e3a54;
    color: #ffffff;
}

.rms-tab.is-active span {
    color: #cbd5e1;
}

.rms-search {
    height: 44px;
    margin-left: auto;
    padding: 0 14px;
    border: 1px solid #dbe3ec;
    border-radius: 0;
    color: #334155;
    font-family: inherit;
    font-size: 14px;
}

.rms-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.rms-search-field__icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.rms-search-field .rms-search {
    min-width: 300px;
    padding-left: 44px;
}

.rms-table-wrap {
    overflow: auto;
    max-height: min(50vh, 440px);
}

/* List pages: the table takes all remaining height, only the table scrolls. */
body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .app-shell,
body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .app-main {
    height: 100vh;
    min-height: 0;
}

body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .app-header-stack {
    flex-shrink: 0;
}

body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .app-content--wide {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-page {
    display: flex;
    height: 100%;
    min-height: 0;
    padding-bottom: 14px;
    flex-direction: column;
}

body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-shell {
    display: flex;
    height: 100%;
    min-height: 0;
    padding-bottom: 20px;
    flex-direction: column;
}

body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-shell > *:not(.rms-panel) {
    flex-shrink: 0;
}

body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-panel {
    display: grid;
    flex: 1;
    min-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    grid-template-rows: auto 1fr;
}

body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-tabs {
    flex-shrink: 0;
}

body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-table-wrap {
    height: 100%;
    min-height: 0;
    max-height: none;
    align-self: stretch;
    margin: 0;
    border: 0;
    border-top: 1px solid #e6ecf2;
    border-radius: 0;
    background: #ffffff;
    padding: 0 0 16px;
}

/* Squared corners on the list pages. */
.rms-stat,
.rms-stat__icon,
.rms-panel,
.rms-tab,
.rms-tool,
.rms-status {
    border-radius: 0;
}

.rms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.rms-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 9px 12px;
    background: #1e3a54;
    color: #dbe6f0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.rms-table td {
    padding: 3px 12px;
    border-bottom: 1px solid #edf1f5;
    color: #334155;
    vertical-align: middle;
}

.rms-table tbody tr:hover {
    background: #f8fafc;
}

.category-group-row > td {
    padding: 8px 12px;
    border-top: 1px solid #dbe3ec;
    border-bottom: 1px solid #dbe3ec;
    background: #eef3f8;
    color: #1e3a54;
    box-shadow: inset 3px 0 0 #1f8a70;
}

.category-group-row:hover > td {
    background: #e8eef5;
}

.category-group__dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: #1f8a70;
    vertical-align: middle;
}

.category-group__code {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 6px;
    border: 1px solid #cfdae6;
    background: #ffffff;
    color: #1e3a54;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.category-group__name {
    font-size: 12px;
    font-weight: 700;
}

.category-group__count {
    margin-left: 10px;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
}

.rms-sub {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 10px;
}

.rms-nowrap {
    white-space: nowrap;
}

.rms-time {
    margin-left: 6px;
    color: #94a3b8;
    font-size: 10px;
}

.rms-doc-type {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid #c7d7f6;
    border-radius: 3px;
    background: #eef4ff;
    color: #4169a8;
    font-size: 10px;
    font-weight: 600;
}

.rms-subject {
    min-width: 180px;
    font-weight: 600;
}

.rms-priority {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid #dbe3ec;
    border-radius: 3px;
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.rms-priority.is-urgent {
    border-color: #e6c27a;
    background: #fdf5e3;
    color: #a87015;
}

.rms-holder-note {
    display: block;
    margin-top: 2px;
    color: #2f9b5b;
    font-size: 10px;
}

.rms-status {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid #dbe3ec;
    border-radius: 3px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.rms-status-form {
    display: inline;
    margin: 0;
}

.rms-status--action {
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rms-status--action:hover {
    border-color: #1f8a70;
    background: #e8f7f1;
    color: #1f8a70;
}

.rms-status--action:focus-visible {
    outline: 2px solid #1f8a70;
    outline-offset: 2px;
}

.rms-actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.rms-actions a {
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
}

.rms-actions a:hover {
    color: #1e3a54;
}

.rms-empty {
    margin: 0;
    padding: 24px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1100px) {
    .rms-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Below desktop width the page scrolls normally instead of squeezing the table. */
    body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .app-shell,
    body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .app-main {
        height: auto;
        min-height: 100vh;
    }

    body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .app-content--wide {
        display: block;
        overflow: visible;
    }

    body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-page {
        display: block;
        height: auto;
    }

    body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-shell {
        display: block;
        height: auto;
        min-height: 0;
    }

    body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-panel {
        display: block;
    }

    body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-table-wrap {
        height: auto;
        max-height: 60vh;
    }
}

@media (max-width: 600px) {
    .rms-body {
        padding: 8px;
    }

    .rms-stats {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px 12px 16px;
    }

    .rms-panel {
        margin: 0 12px 16px;
    }

    .rms-tabs {
        padding: 16px 12px;
    }

    body:has(.rms-shell > .rms-panel > .rms-tabs ~ .rms-table-wrap) .rms-table-wrap {
        padding: 0 0 16px;
    }

    .rms-search-field {
        width: 100%;
    }

    .rms-search {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }
}

/* Classic office menu bar */
.office-menubar {
    display: flex;
    align-items: stretch;
    min-height: 36px;
    padding: 0 28px;
    border-bottom: 1px solid #dbe3ec;
    background: #ffffff;
}

.office-menubar__item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.office-menubar__button {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #334238;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    text-decoration: none;
}

.office-menubar__button:hover,
.office-menubar__button[aria-expanded="true"] {
    background: #f2f7f2;
    color: #1e3a54;
}

.office-menubar__button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}

.office-menubar__panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 45;
    display: none;
    min-width: 230px;
    padding: 6px;
    border: 1px solid #dbe3ec;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(20, 40, 24, 0.14);
}

.office-menubar__panel.is-open {
    display: block;
}

.office-menubar__panel a,
.office-menubar__panel button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #3d4a40;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
}

.office-menubar__panel a:hover,
.office-menubar__panel button:hover {
    background: #f2f7f2;
    color: #1f6b2b;
}

.office-menubar__panel a[aria-disabled="true"] {
    color: #94a3b8;
    cursor: default;
}

.office-menubar__panel a[aria-disabled="true"]:hover {
    background: transparent;
    color: #94a3b8;
}

.office-menubar__divider {
    height: 1px;
    margin: 5px 0;
    background: #eef1ee;
}

@media (max-width: 560px) {
    .office-menubar {
        padding: 0 18px;
    }

    .office-menubar__button {
        padding: 0 11px;
    }
}

/* Office-style module menu */
.office-menu {
    padding: 22px 28px 30px;
}

.office-menu__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1180px;
    margin: 0 auto 18px;
}

.office-menu__title {
    color: #1e3a54;
    font-size: 15px;
    font-weight: 700;
}

.office-menu__search {
    width: min(360px, 100%);
    height: 38px;
    padding: 0 14px;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    background: #ffffff;
    color: #2c3a31;
    font-family: inherit;
    font-size: 13px;
}

.office-menu__search:focus {
    border-color: #1e3a54;
    outline: 2px solid rgba(30, 58, 84, 0.14);
    outline-offset: 1px;
}

.office-menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    max-width: 1180px;
    margin: 0 auto;
}

.office-tile {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 10px;
    border: 1px solid #e3e7e3;
    border-radius: 8px;
    background: #ffffff;
    color: #334238;
    text-align: center;
    text-decoration: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.office-tile:hover {
    border-color: #9fc7a5;
    box-shadow: 0 6px 16px rgba(20, 40, 24, 0.09);
    transform: translateY(-1px);
}

.office-tile:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.office-tile.is-hidden {
    display: none;
}

.office-tile__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    background: #eaf6ec;
    color: #1e3a54;
}

.office-tile__icon svg {
    width: 22px;
    height: 22px;
}

.office-tile__label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 560px) {
    .office-menu {
        padding: 20px 18px 26px;
    }

    .office-menu__bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .office-menu__search {
        width: 100%;
    }
}

/* Admin panel */
.app-nav__label {
    margin: 14px 12px 6px;
    color: #8a958c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.app-nav__label:first-child {
    margin-top: 0;
}

.page-heading--row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border: 1px solid #dfe5df;
    border-radius: 999px;
    background: #fff;
    color: #5e6b62;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.stat-card__meta {
    margin-top: 4px;
    color: #8a958c;
    font-size: 12px;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel-head h2 {
    margin: 0;
}

.panel-head a {
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.panel-head a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.panel-head a:focus-visible {
    border-radius: 1px;
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.panel--flush {
    padding: 0;
    overflow: hidden;
}

.panel--flush .empty-state {
    margin: 0;
    padding: 24px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    padding: 11px 18px;
    border-bottom: 1px solid #e3e7e3;
    background: #fafbfa;
    color: #7a857c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #eef1ee;
    color: #3d4a40;
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #fbfcfb;
}

.cell-strong {
    display: block;
    color: #22332a;
    font-weight: 600;
}

.cell-sub {
    display: block;
    margin-top: 2px;
    color: #8a958c;
    font-size: 11px;
}

.cell-number {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cell-nowrap {
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.badge-success {
    background: #eaf6ec;
    color: #2b6b35;
}

.badge-neutral {
    background: #f0f2f0;
    color: #6c776e;
}

.badge-danger {
    background: #fbeaea;
    color: #a33a3a;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.search-input {
    width: min(360px, 100%);
    height: 38px;
    padding: 0 14px;
    border: 1px solid #d7ddd7;
    border-radius: 6px;
    background: #fff;
    color: #2c3a31;
    font-family: inherit;
    font-size: 13px;
}

.search-input:focus {
    border-color: var(--green);
    outline: 2px solid rgba(69, 174, 80, 0.18);
    outline-offset: 1px;
}

.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.secondary-button {
    border: 1px solid var(--green);
    background: var(--green);
    color: #fff;
}

.secondary-button:hover {
    border-color: var(--green-dark);
    background: var(--green-dark);
}

.ghost-button {
    border: 1px solid #d7ddd7;
    background: #fff;
    color: #3d4a40;
}

.ghost-button:hover {
    border-color: var(--green);
    color: #1f6b2b;
}

.secondary-button:focus-visible,
.ghost-button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.empty-state {
    margin: 0;
    color: #7a857c;
    font-size: 13px;
    line-height: 1.5;
}

.profile-summary__body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.profile-summary__logo {
    width: 64px;
    height: 64px;
    flex: none;
    padding: 6px;
    border: 1px solid #e3e7e3;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.profile-summary__name {
    margin-bottom: 10px;
    color: #22332a;
    font-size: 17px;
    font-weight: 700;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
    margin: 0;
}

.detail-list div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.detail-list dt {
    color: #8a958c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.detail-list dd {
    margin: 0;
    color: #3d4a40;
    font-size: 13px;
    word-break: break-word;
}

.profile-form {
    max-width: 900px;
}

/* NGO profile — use the same single-card form structure as the other create/edit pages. */
.profile-page .profile-form {
    max-width: none;
}

.profile-page .profile-card {
    margin: 16px 20px 20px;
    padding: 0;
}

.profile-page .profile-card .req-card__head {
    margin: 0;
    padding: 16px 24px;
}

.profile-page .profile-card .req-step strong {
    color: #1e3a54;
    font-size: 15px;
    font-weight: 600;
}

.profile-page .profile-card .req-step small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: none;
}

.profile-page .profile-card .account-info-card__body {
    padding: 28px 30px 30px;
}

.profile-page .profile-card .login-notice {
    margin-bottom: 18px;
}

.profile-page .profile-form__logo {
    align-items: center;
    gap: 20px;
    margin: 0 0 26px;
    padding: 0 0 24px;
    border-bottom: 1px solid #e7edf4;
}

.profile-page .profile-form__logo-preview {
    display: grid;
    width: 104px;
    height: 104px;
    flex: none;
    place-items: center;
    padding: 8px;
    border: 1px solid #dbe4ee;
    border-radius: 6px;
    background: #ffffff;
}

.profile-page .logo-preview {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    object-fit: contain;
}

.profile-page .logo-preview--empty {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

.profile-page .profile-form__logo-fields {
    align-items: flex-start;
    gap: 6px;
}

.profile-page .profile-form__logo-fields > label:first-child {
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.profile-page .profile-form__logo-fields .file-input {
    max-width: 360px;
    padding: 2px 0;
    font-size: 12px;
}

.profile-page .profile-form__logo-fields .file-input::file-selector-button {
    margin-right: 8px;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #334155;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.profile-page .profile-form__logo-fields .file-input::file-selector-button:hover {
    border-color: #1f8a70;
    color: #176b58;
}

.profile-page .profile-form__logo-fields .check-row {
    margin-top: 4px;
    color: #475569;
    font-size: 12px;
}

.profile-page .profile-fields__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
}

.profile-page .profile-fields__grid .field label {
    margin-bottom: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.profile-page .profile-fields__grid .text-input {
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
    color: #1e293b;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.profile-page .profile-fields__grid .text-input:focus {
    border-color: #1f8a70;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(31, 138, 112, 0.13);
}

.profile-page .profile-card .profile-actions {
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 16px 30px;
    border-top: 1px solid #e3e9ef;
    background: #f8fafc;
}

.profile-page .profile-actions .clinic-action {
    min-height: 38px;
    border-radius: 4px;
}

@media (max-width: 700px) {
    .profile-page .profile-card .account-info-card__body {
        padding: 22px 20px 24px;
    }

    .profile-page .profile-fields__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .profile-page .profile-form__logo {
        align-items: flex-start;
    }

    .profile-page .profile-form__logo-preview {
        width: 84px;
        height: 84px;
    }

    .profile-page .profile-card .profile-actions {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .profile-page .profile-form__logo {
        flex-direction: column;
    }
}

.profile-form__logo {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef1ee;
}

.profile-form__logo-fields {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.logo-preview {
    width: 84px;
    height: 84px;
    flex: none;
    padding: 8px;
    border: 1px solid #e3e7e3;
    border-radius: 8px;
    background: #fafbfa;
    object-fit: contain;
}

.logo-preview--empty {
    display: grid;
    place-items: center;
    color: #8a958c;
    font-size: 11px;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a5a4e;
    font-size: 13px;
    cursor: pointer;
}

.check-row input {
    width: 15px;
    height: 15px;
    accent-color: var(--green);
}

@media (max-width: 1080px) {
    .panel-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .profile-summary__body,
    .profile-form__logo {
        flex-direction: column;
    }

    .detail-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-input {
        width: 100%;
    }
}

/* Footer */
.auth-footer {
    padding-top: 16px;
    color: #3f3f3f;
    font-size: 12px;
    line-height: 1.5;
}

.auth-footer a {
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-footer a:focus-visible {
    border-radius: 1px;
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* NGO registration */
.registration-shell .auth-center {
    justify-content: flex-start;
    padding: 14px 0 24px;
}

.registration-form {
    margin-top: 20px;
}

.registration-form .fields {
    row-gap: 19px;
}

.field-wide {
    grid-column: 1 / -1;
}

.file-input {
    width: 100%;
    padding: 6px 0;
    color: #4a4a4a;
    font-family: inherit;
    font-size: 12px;
}

.file-input::file-selector-button {
    margin-right: 12px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
}

.file-input::file-selector-button:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.form-hint {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 560px) {
    .auth-shell {
        padding: 20px 22px 22px;
    }

    .auth-main {
        padding: 0;
    }

    .auth-center {
        padding: 16px 0;
    }

    .welcome h1 {
        font-size: 29px;
    }

    .welcome p {
        font-size: 16px;
    }

    .brand-tagline {
        max-width: 260px;
        font-size: 13px;
    }

    .auth-header {
        min-height: 32px;
        margin-bottom: 26px;
    }

    .brand-mark {
        width: 114px;
        height: 40px;
    }

    .brand-name {
        font-size: 18px;
    }

    .login-form {
        margin-top: 27px;
    }

    .fields {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 24px;
    }

    .form-meta {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 13px;
        margin-top: 22px;
    }

    .forgot {
        justify-self: start;
        padding-top: 0;
        text-align: left;
    }

    .form-actions {
        margin-top: 26px;
    }

    .auth-footer {
        padding-top: 16px;
    }
}

@media (max-width: 380px) {
    .form-actions {
        gap: 14px;
    }

    .primary-button {
        padding: 0 24px;
    }
}

@media (max-height: 620px) {
    .auth-center {
        justify-content: flex-start;
        padding: 8px 0 12px;
    }

    .auth-header {
        margin-bottom: 24px;
    }

    .auth-footer {
        padding-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Clinic / side create form - polished card */
.clinic-create .req-card {
    margin: 16px 20px 20px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 40, 65, 0.06);
}

.clinic-create .req-card__head {
    margin: 0;
    padding: 18px 24px;
    border-bottom: 1px solid #e3e9ef;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.clinic-create .req-step strong {
    color: #1e3a54;
    font-size: 15px;
    letter-spacing: 0.1px;
}

.clinic-create .req-step small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.clinic-create .req-card form {
    padding: 24px 24px 0;
}

.clinic-create .req-fields {
    gap: 20px 20px;
}

.clinic-create .req-fields .field label,
.clinic-create .req-purpose label {
    margin-bottom: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.clinic-create .req-fields .text-input,
.clinic-create .req-purpose .text-input {
    height: 38px;
    padding: 0 11px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    color: #22344a;
    font-size: 13px;
}

.clinic-create .req-purpose .text-input {
    height: auto;
    padding: 10px 11px;
    resize: vertical;
}

.clinic-create .text-input:hover {
    border-color: #94a3b8;
}

.clinic-create .text-input:focus {
    border-color: #1e3a54;
    box-shadow: 0 0 0 3px rgba(30, 58, 84, 0.12);
}

.clinic-create .req-fields .text-input[readonly] {
    background: #f4f7f9;
    color: #64748b;
}

.clinic-create .req-purpose {
    margin-top: 20px;
    padding: 0;
}

.clinic-create .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 24px -24px 0;
    padding: 16px 24px;
    border-top: 1px solid #e3e9ef;
    background: #f8fafc;
}

.clinic-create .primary-button {
    min-width: 120px;
    border: 1px solid #1f8a70;
    border-radius: 5px;
    background: #1f8a70;
    box-shadow: 0 1px 2px rgba(31, 138, 112, 0.25);
}

.clinic-create .primary-button:hover {
    background: #18705b;
}

.clinic-create .ghost-button {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.clinic-create .ghost-button:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

/* Compact clinical form layout */
.clinic-create .req-fields {
    gap: 14px 16px;
}

.clinic-create .req-fields .field label,
.clinic-create .req-purpose label {
    display: block;
    margin-bottom: 5px;
    color: #7a8794;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.clinic-create .req-fields .text-input,
.clinic-create .req-purpose .text-input {
    height: 34px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    background: #ffffff;
    font-size: 13px;
}

.clinic-create .req-fields .text-input[readonly] {
    border-color: #dce5ee;
    background: #f1f5f9;
    color: #64748b;
}

.clinic-create .req-fields select.text-input {
    background-color: #ffffff;
}

.clinic-create .req-purpose {
    margin-top: 14px;
}

.clinic-create .req-purpose .text-input {
    height: auto;
    min-height: 70px;
    padding: 8px 10px;
    border-radius: 2px;
}

.clinic-create .form-actions {
    justify-content: flex-end;
    gap: 8px;
    margin: 18px -24px 0;
    padding: 12px 24px;
}

.clinic-create .clinic-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.clinic-create .clinic-action--green {
    border-color: #1f8a70;
    background: #1f8a70;
}

.clinic-create .clinic-action--green:hover {
    background: #18705b;
}

.clinic-create .clinic-action--blue {
    border-color: #2d6cdf;
    background: #2d6cdf;
}

.clinic-create .clinic-action--blue:hover {
    background: #245bbd;
}

.clinic-create .clinic-action--gray {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #475569;
}

.clinic-create .clinic-action--gray:hover {
    background: #e2e8f0;
}

.clinic-create .clinic-action--dark {
    border-color: #1e3a54;
    background: #1e3a54;
}

.clinic-create .clinic-action--dark:hover {
    background: #14293c;
}

.clinic-create .clinic-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    margin: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.clinic-create .clinic-check input {
    width: 15px;
    height: 15px;
    accent-color: #1f8a70;
}

/* Square corners */
.clinic-create .req-card,
.clinic-create .req-card__head,
.clinic-create .form-actions,
.clinic-create .req-fields .text-input,
.clinic-create .req-purpose .text-input,
.clinic-create .clinic-action {
    border-radius: 0;
}

/* Roles & permissions page */
.roles-layout {
    display: grid;
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 16px 20px 20px;
}

.roles-panel {
    border: 1px solid #dbe3ec;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.roles-panel--main {
    min-width: 0;
}

.roles-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid #e6ecf2;
}

.roles-panel__head h2 {
    margin: 0;
    color: #1e3a54;
    font-size: 15px;
    line-height: 1.3;
}

.roles-panel__head p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.role-count {
    padding: 4px 9px;
    border: 1px solid #dbe3ec;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.roles-list {
    display: flex;
    flex-direction: column;
}

.role-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 18px;
    border-bottom: 1px solid #edf1f5;
    color: #334155;
    text-decoration: none;
}

.role-item:last-child {
    border-bottom: 0;
}

.role-item:hover {
    background: #f8fafc;
}

.role-item.is-active {
    background: #eef4fa;
    box-shadow: inset 3px 0 0 #1e3a54;
}

.role-item__name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e3a54;
    font-size: 13px;
    font-weight: 700;
}

.role-item__meta {
    color: #64748b;
    font-size: 11px;
}

.role-badge {
    padding: 2px 6px;
    border-radius: 3px;
    background: #1e3a54;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.role-create {
    padding: 14px 18px 18px;
    border-top: 1px solid #e6ecf2;
    background: #f8fafc;
}

.role-create label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.role-create__row {
    display: flex;
    gap: 8px;
}

.role-create__row .text-input {
    min-width: 0;
    height: 36px;
    flex: 1;
    padding: 0 10px;
    border: 1px solid #dbe3ec;
    border-radius: 0;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 12px;
}

.role-create__row .clinic-action {
    height: 36px;
    min-width: 64px;
    padding: 0 12px;
}

.role-note {
    margin: 14px 18px 0;
    padding: 10px 12px;
    border: 1px solid #dbe3ec;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.role-matrix-wrap {
    overflow: auto;
    padding: 0 18px;
}

.role-matrix {
    width: 100%;
    border-collapse: collapse;
}

.role-matrix th {
    padding: 10px 8px;
    border-bottom: 1px solid #e6ecf2;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
    text-transform: uppercase;
}

.role-matrix th:not(:first-child),
.role-matrix td:not(:first-child) {
    width: 92px;
    text-align: center;
}

.role-matrix td {
    padding: 11px 8px;
    border-bottom: 1px solid #edf1f5;
    vertical-align: middle;
}

.role-matrix td strong {
    display: block;
    color: #1e3a54;
    font-size: 13px;
}

.role-matrix td > span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
}

.role-group td {
    padding: 8px;
    border-bottom: 1px solid #e6ecf2;
    background: #f8fafc;
    color: #1e3a54;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.role-option {
    text-align: center;
}

.role-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid #dbe3ec;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.role-radio input {
    accent-color: #1f8a70;
}

.role-radio--allow:has(input:checked) {
    border-color: #1f8a70;
    background: #e9f7f1;
    color: #18705b;
}

.role-radio--deny:has(input:checked) {
    border-color: #c04a4a;
    background: #fdecec;
    color: #a33b3b;
}

.role-radio:has(input:disabled) {
    opacity: 0.65;
    cursor: default;
}

.role-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-top: 1px solid #e6ecf2;
    background: #f8fafc;
}

.role-actions__hint {
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
}

.role-delete {
    padding: 0 18px 18px;
}

.role-delete__button {
    padding: 4px 0;
    border: 0;
    background: none;
    color: #b04a4a;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.role-delete__button:hover {
    text-decoration: underline;
}

.role-notice {
    margin: 14px 20px 0;
    padding: 10px 14px;
    border: 1px solid #cfe3d6;
    background: #eef8f2;
    color: #1f6b45;
    font-size: 12px;
    font-weight: 600;
}

.role-notice--error {
    border-color: #f0d3d3;
    background: #fdf1f1;
    color: #a33b3b;
}

/* User list notices and role chips */
.rms-notice {
    margin: 12px 20px 0;
    padding: 9px 13px;
    border: 1px solid #cfe3d6;
    background: #eef8f2;
    color: #1f6b45;
    font-size: 12px;
    font-weight: 600;
}

.rms-notice--warning {
    border-color: #f0dfc0;
    background: #fdf8ec;
    color: #8a6418;
}

.rms-role-chip {
    display: inline-block;
    margin: 1px 4px 1px 0;
    padding: 2px 6px;
    border: 1px solid #dbe3ec;
    background: #f1f5f9;
    color: #475569;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.rms-muted {
    color: #94a3b8;
    font-size: 11px;
}

@media (max-width: 900px) {
    .roles-layout {
        grid-template-columns: 1fr;
    }
}

/* Account Information - enterprise form */
.clinic-create .account-info-card {
    box-shadow: none;
    padding-right: 0;
    padding-left: 0;
}

.clinic-create .account-info-card .req-card__head {
    margin: 0 0 22px;
    padding: 14px 24px;
    border-bottom: 1px solid #e3e9ef;
    background: #f8fafc;
}

.clinic-create .account-info-card .req-step strong {
    color: #1e3a54;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.clinic-create .account-info-card .req-step small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.account-info-card__body {
    padding: 20px 0 0;
}

@media print {
    .account-info-card__body {
        break-after: page;
        page-break-after: always;
    }
}

.account-info-card__body .login-notice {
    margin-bottom: 16px;
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 20px;
}

.account-info-grid--five {
    grid-template-columns: 1fr 0.7fr 0.7fr 1.5fr 1fr;
    gap: 14px 12px;
    padding: 0 20px;
}

.account-info-grid .field {
    min-width: 0;
}

.account-info-grid .field--full {
    grid-column: 1 / -1;
}

.account-info-grid textarea.text-input {
    height: auto;
    min-height: 100px;
    padding: 9px 11px;
    resize: vertical;
}

/* Inline date picker (dd-MMM-yyyy display + native calendar) */
.date-picker {
    position: relative;
}

.date-picker .text-input {
    padding-right: 40px;
}

.date-picker__btn {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-left: 1px solid #e2e8f0;
    border-radius: 0;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
}

.date-picker__btn:hover {
    background: #f1f5f9;
    color: #1e3a54;
}

.date-picker__btn svg {
    width: 17px;
    height: 17px;
}

.date-picker__native {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    border: 0;
    padding: 0;
    margin: 0;
}

/* Requested items */
.req-items-card {
    margin-top: 18px;
    padding: 18px 20px 20px;
}

.req-items-card .req-card__head {
    margin: 0;
    border-bottom: 1px solid #e3e9ef;
}

/* Content cards sit inside the rms-shell frame, like the Request Form page */
.clinic-create .rms-shell > .req-card {
    width: auto;
    margin: 20px 20px 0;
}

.clinic-create .rms-shell > .form-actions {
    margin: 20px 20px 20px;
    padding: 0;
    border-top: 0;
    background: transparent;
}

.catalogue-panel {
    border: 1px solid #cfe3dc;
    border-radius: 0;
    background: #ffffff;
}

.catalogue-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid #cfe3dc;
    border-radius: 0;
    background: #ffffff;
}

.catalogue-panel__title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalogue-panel__icon {
    display: grid;
    width: 22px;
    height: 22px;
    flex: none;
    place-items: center;
    border-radius: 3px;
    background: #1f8a70;
    color: #ffffff;
}

.catalogue-panel__icon svg {
    width: 13px;
    height: 13px;
}

.catalogue-panel__title strong {
    display: block;
    color: #1e3a54;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.catalogue-panel__body {
    padding: 0;
}

.catalogue-search {
    position: relative;
    display: flex;
    height: 40px;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.catalogue-search:hover {
    border-color: #94a3b8;
}

.catalogue-search:focus-within {
    border-color: #1f8a70;
    box-shadow: 0 0 0 3px rgba(31, 138, 112, 0.12);
}

.catalogue-search > svg {
    width: 16px;
    height: 16px;
    flex: none;
    margin-left: 12px;
    color: #94a3b8;
}

.catalogue-search .text-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #22344a;
    font-size: 13px;
}

.catalogue-search .text-input::placeholder {
    color: #94a3b8;
}

.catalogue-search__toggle {
    display: grid;
    width: 40px;
    height: 100%;
    flex: none;
    place-items: center;
    border: 0;
    border-left: 1px solid #e2e8f0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.catalogue-search__toggle:hover {
    background: #f1f5f9;
    color: #1f8a70;
}

.catalogue-search__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.catalogue-search__toggle svg {
    width: 15px;
    height: 15px;
    transition: transform 120ms ease;
}

.req-items-grid .text-input:hover {
    border-color: #94a3b8;
}

.req-items-grid .text-input:focus {
    border-color: #1e3a54;
    box-shadow: 0 0 0 2px rgba(30, 58, 84, 0.1);
}

.req-items-grid .text-input {
    padding: 0 11px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #22344a;
}

.catalogue-suggestions {
    position: absolute;
    z-index: 5;
    top: 100%;
    right: 0;
    left: 0;
    max-height: 180px;
    overflow: auto;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.catalogue-suggestions button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.catalogue-suggestions button:hover {
    background: #f1f5f9;
}

.req-items-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) 36px minmax(0, 0.55fr) minmax(0, 0.7fr) minmax(0, 1fr) 150px;
    align-items: end;
    gap: 12px;
}

.req-items-grid .field {
    min-width: 0;
}

.req-items-grid label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.req-items-grid .text-input {
    height: 38px;
    font-size: 13px;
}

.add-unit {
    height: 38px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e3a54;
    font-size: 18px;
    cursor: pointer;
}

.add-item {
    height: 38px;
    border: 0;
    background: #1f8a70;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
}

.add-item:hover {
    background: #18735d;
}

.items-entry-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.items-entry-table th {
    padding: 6px 8px;
    border: 1px solid #1e3a54;
    background: #1e3a54;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.items-entry-table td {
    padding: 3px 4px;
    border: 1px solid #cbd5e1;
}

.items-entry-table tbody tr {
    background: #eaf7ee;
}

.items-entry-table tbody tr:hover {
    background: #dff2e5;
}

.items-entry-table .text-input {
    width: 100%;
    height: 30px;
    padding: 0 6px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #22344a;
    font-size: 12px;
}

.items-entry-table .text-input:focus {
    background: #ffffff;
    box-shadow: inset 0 0 0 2px #1f8a70;
}

.unit-cell {
    display: flex;
    align-items: center;
    gap: 4px;
}

.unit-cell .text-input {
    flex: 1;
    min-width: 0;
}

.unit-cell .add-unit {
    height: 30px;
    width: 30px;
    flex: none;
    border-radius: 0;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.items-entry-table .add-item {
    width: 100%;
    height: 30px;
    padding: 0;
    border-radius: 0;
    font-size: 11px;
    display: grid;
    place-items: center;
}

.items-entry-table .add-item svg {
    width: 16px;
    height: 16px;
}

.items-entry-table .col-no {
    width: 42px;
    text-align: center;
    color: #64748b;
    font-weight: 600;
}

.items-entry-row .col-no svg {
    width: 14px;
    height: 14px;
    color: #1f8a70;
}

.items-entry-table .col-unit {
    width: 110px;
}

.items-entry-table .col-qty,
.items-entry-table .col-pack {
    width: 90px;
}

.items-entry-table th:last-child,
.items-entry-table td:last-child {
    width: 200px;
}

.product-lookup {
    position: relative;
}

.product-suggestions {
    position: absolute;
    z-index: 10;
    top: 100%;
    right: 0;
    left: 0;
    max-height: 200px;
    overflow: auto;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.product-suggestions button {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.product-suggestions button:hover {
    background: #f1f5f9;
}

.product-suggestions button.is-active,
.product-suggestions button.is-active:hover {
    background: #ecfdf5;
    box-shadow: inset 3px 0 0 #1f8a70;
    color: #1f8a70;
    font-weight: 700;
}

/* Request details (read-only version of the new request form). */
.request-detail-page .request-detail-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 11px;
    border: 1px solid #a7e2d2;
    background: #ecfdf5;
    color: #1f8a70;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.request-detail-page .request-detail-number {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.request-detail-page .request-detail-clinic {
    margin-bottom: 14px;
    color: #64748b;
    font-size: 12px;
}

.request-detail-page .request-detail-clinic strong {
    color: #1e3a54;
}

.request-detail-page .request-items-card .catalogue-panel {
    border: 1px solid #e3e9ef;
}

.print-report-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
}

.print-report-overlay[hidden] {
    display: none;
}

.print-report-card {
    display: flex;
    width: min(920px, 100%);
    max-height: 90vh;
    flex-direction: column;
    border: 1px solid #dbe3ec;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.print-report-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #e3e9ef;
    background: #f8fafc;
    color: #1e3a54;
    font-size: 13px;
}

.print-report-actions {
    display: flex;
    gap: 8px;
}

.print-report-body {
    padding: 20px 24px 24px;
    overflow: auto;
    background: #ffffff;
}

.print-report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid #1e3a54;
}

.print-report-head strong {
    color: #1e3a54;
    font-size: 16px;
    letter-spacing: 0.8px;
}

.print-report-head span {
    color: #475569;
    font-weight: 700;
}

.print-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin-bottom: 18px;
}

.print-report-grid > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #edf1f5;
    font-size: 12px;
}

.print-report-grid span {
    color: #64748b;
}

.print-report-grid strong {
    color: #1e3a54;
    text-align: right;
}

.print-report-grid__full {
    grid-column: 1 / -1;
}

.print-report-table {
    margin-top: 10px;
}

.request-report-page {
    min-height: 100vh;
}

.request-report-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 20px 14px;
    padding: 14px 18px;
    border: 1px solid #dbe3ec;
    background: #ffffff;
}

.request-report-toolbar > div:first-child {
    display: grid;
    gap: 3px;
}

.request-report-toolbar__eyebrow {
    color: #1f8a70;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.request-report-toolbar > div:first-child strong {
    color: #1e3a54;
    font-size: 13px;
}

.request-report-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.request-report-toolbar__actions .clinic-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    text-decoration: none;
}

.request-report-toolbar__actions svg {
    width: 15px;
    height: 15px;
    margin-right: 7px;
}

.request-report-paper {
    width: 794px;
    min-height: 1123px;
    margin: 0 auto 28px;
    padding: 34px 40px 22px;
    border: 1px solid #dbe3ec;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.09);
    color: #1e293b;
}

.request-report-masthead {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 6px 2px 14px;
}

.request-report-masthead::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a54 0%, #1e3a54 74%, #1f8a70 74%, #1f8a70 100%);
}

.request-report-organization {
    display: flex;
    align-items: center;
    gap: 13px;
}

.request-report-org-mark {
    display: grid;
    width: 58px;
    height: 58px;
    flex: none;
    place-items: center;
    padding: 4px;
    border: 1px solid #a7e2d2;
    background: #ffffff;
}

.request-report-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.request-report-seal {
    display: grid;
    width: 100%;
    height: 100%;
    place-content: center;
    gap: 1px;
    border: 1px solid #1f8a70;
    color: #1f8a70;
    text-align: center;
}

.request-report-seal span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.request-report-seal small {
    font-size: 6px;
    font-weight: 800;
    letter-spacing: 0.8px;
    line-height: 1;
}

.request-report-org-copy {
    display: grid;
    gap: 2px;
    padding-left: 13px;
    border-left: 1px solid #dbe3ec;
}

.request-report-org-eyebrow {
    color: #1f8a70;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.35px;
    text-transform: uppercase;
}

.request-report-org-copy strong {
    color: #1e3a54;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15px;
    line-height: 1.2;
}

.request-report-org-copy small {
    color: #64748b;
    font-size: 9px;
    font-style: italic;
    letter-spacing: 0.2px;
}

.request-report-document {
    display: grid;
    justify-items: end;
    gap: 3px;
    min-width: 178px;
    padding-left: 16px;
    border-left: 1px solid #dbe3ec;
    text-align: right;
}

.request-report-document__label {
    color: #64748b;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.request-report-document strong {
    color: #1e3a54;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.request-report-document small {
    color: #64748b;
    font-size: 8px;
    letter-spacing: 0.2px;
}
.request-report-title {
    margin: 14px 0 12px;
    text-align: center;
}

.request-report-title > span {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.request-report-title h1 {
    margin: 2px 0;
    color: #1f8a70;
    font-size: 21px;
    font-weight: 700;
}

.request-report-title p {
    margin: 0;
    color: #64748b;
    font-size: 9px;
}

.request-report-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 27px;
    padding: 0 10px;
    background: #1f8a70;
    color: #ffffff;
    font-size: 10px;
}

.request-report-statusbar strong {
    font-weight: 800;
}

.request-report-priority {
    padding: 2px 9px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.request-report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 7px;
    border: 1px solid #a7e2d2;
    background: #ecfdf5;
}

.request-report-summary > div {
    display: grid;
    gap: 2px;
    padding: 7px 10px;
    border-right: 1px solid #a7e2d2;
}

.request-report-summary > div:last-child {
    border-right: 0;
}

.request-report-summary span {
    color: #64748b;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.request-report-summary strong {
    color: #1f8a70;
    font-size: 11px;
    font-weight: 800;
}

.request-report-section {
    margin-top: 16px;
}

.request-report-section h2 {
    margin: 0 0 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #cbd5e1;
    color: #1f8a70;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.request-report-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
}

.request-report-facts > div {
    display: grid;
    grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #edf1f5;
    font-size: 9px;
}

.request-report-facts span,
.request-report-purpose > span {
    color: #64748b;
}

.request-report-facts strong {
    color: #1e293b;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.request-report-purpose {
    margin-top: 11px;
    padding: 8px 10px;
    border-left: 3px solid #1f8a70;
    background: #f8fafc;
    font-size: 9px;
}

.request-report-purpose p {
    margin: 4px 0 0;
    color: #1e293b;
    line-height: 1.5;
    white-space: pre-wrap;
}

.request-report-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 8px;
}

.request-report-table th {
    padding: 5px 4px;
    border: 1px solid #1e3a54;
    background: #1e3a54;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-align: left;
    text-transform: uppercase;
}

.request-report-table td {
    padding: 4px 4px;
    border: 1px solid #cbd5e1;
    line-height: 1.2;
    color: #334155;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.request-report-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.request-report-table__number {
    width: 32px;
    color: #64748b !important;
    text-align: center !important;
}

.request-report-table__item-id {
    width: 76px;
    color: #1e3a54 !important;
    font-weight: 700;
}

.request-report-table__qty {
    width: 52px;
    text-align: center !important;
}

.request-report-table__description {
    color: #1e293b !important;
    font-weight: 600;
}

.request-report-empty {
    padding: 18px !important;
    color: #64748b !important;
    text-align: center;
}

.request-report-signatures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
    break-inside: avoid;
}

.request-report-signatures > div {
    display: grid;
    grid-template-rows: auto 18px auto;
    align-items: end;
    padding-top: 4px;
    border-top: 1px solid #cbd5e1;
}

.request-report-signatures span {
    color: #64748b;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.request-report-signatures strong {
    color: #1e3a54;
    font-size: 9px;
    font-weight: 700;
}

.request-report-signatures small {
    color: #94a3b8;
    font-size: 7px;
}

.request-report-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding-top: 9px;
    border-top: 1px solid #dbe3ec;
    color: #94a3b8;
    font-size: 8px;
}

@media (max-width: 900px) {
    .request-report-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .request-report-toolbar__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .request-report-paper {
        width: 794px;
        transform-origin: top center;
    }
}
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    body:has(.request-detail-page) {
        background: #ffffff;
    }

    body:has(.request-detail-page) .app-header-stack,
    body:has(.request-detail-page) .rms-header,
    body:has(.request-detail-page) .rms-toolbar,
    body:has(.request-detail-page) .form-actions,
    body:has(.request-detail-page) .rms-back {
        display: none !important;
    }

    body:has(.request-detail-page) .app-shell,
    body:has(.request-detail-page) .app-main,
    body:has(.request-detail-page) .app-content {
        display: block;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow: visible;
        background: #ffffff;
    }

    body:has(.request-detail-page) .rms-page {
        min-height: 0;
        padding: 0;
        background: #ffffff;
    }

    body:has(.request-detail-page) .rms-shell {
        min-height: 0;
        border: 0;
        background: #ffffff;
    }

    body:has(.request-detail-page) .req-card {
        margin-top: 12px;
        border: 1px solid #cbd5e1;
        box-shadow: none;
        break-inside: avoid;
    }

    body:has(.request-detail-page) .req-card__head {
        padding: 10px 18px;
        background: #f8fafc !important;
    }

    body:has(.request-detail-page) .account-info-card__body {
        padding: 12px 18px 16px;
    }

    body:has(.request-detail-page) .text-input {
        height: auto;
        padding: 4px 0;
        border: 0;
        border-bottom: 1px solid #e2e8f0;
        background: transparent;
    }

    body:has(.request-detail-page) .data-table {
        width: 100%;
    }

    body:has(.request-detail-page) .data-table tr {
        break-inside: avoid;
    }

    body:has(.request-detail-page) .request-detail-status {
        border-color: #cbd5e1;
        background: #ffffff;
        color: #1e3a54;
    }

    body.print-report-open .req-card {
        display: none !important;
    }

    body.print-report-open .print-report-overlay {
        position: static;
        display: block !important;
        padding: 0;
        background: #ffffff;
    }

    body.print-report-open .print-report-card {
        display: block;
        width: auto;
        max-height: none;
        border: 0;
        box-shadow: none;
    }

    body.print-report-open .print-report-toolbar {
        display: none !important;
    }

    body.print-report-open .print-report-body {
        padding: 0;
        overflow: visible;
    }

    body:has(.request-report-page) {
        background: #ffffff;
    }

    body:has(.request-report-page) .app-header-stack,
    body:has(.request-report-page) .request-report-page__header,
    body:has(.request-report-page) .request-report-toolbar {
        display: none !important;
    }

    body:has(.request-report-page) .app-shell,
    body:has(.request-report-page) .app-main,
    body:has(.request-report-page) .app-content,
    body:has(.request-report-page) .request-report-page {
        display: block;
        width: auto;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow: visible;
        background: #ffffff;
    }

    body:has(.request-report-page) .rms-shell {
        min-height: 0;
        border: 0;
        background: #ffffff;
    }

    body:has(.request-report-page) .request-report-paper {
        width: 210mm;
        min-height: 297mm;
        margin: 0;
        padding: 9mm;
        border: 0;
        box-shadow: none;
    }

    body:has(.request-report-page) .request-report-section:not(.request-report-items),
    body:has(.request-report-page) .request-report-masthead,
    body:has(.request-report-page) .request-report-purpose {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body:has(.request-report-page) .request-report-items,
    body:has(.request-report-page) .request-report-table,
    body:has(.request-report-page) .request-report-table tbody {
        break-inside: auto;
        page-break-inside: auto;
    }

    body:has(.request-report-page) .request-report-table thead {
        display: table-header-group;
    }

    body:has(.request-report-page) .request-report-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body:has(.request-report-page) .request-report-paper {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body:has(.request-report-page)::after {
        content: "Page " counter(page) " of " counter(pages);
        position: fixed;
        right: 9mm;
        bottom: 4mm;
        color: #94a3b8;
        font-size: 8px;
    }
}

.catalogue-panel__head .add-unit {
    width: 28px;
    height: 28px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid #1f8a70;
    border-radius: 0;
    background: #ffffff;
    color: #1f8a70;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.catalogue-panel__head .add-unit:hover {
    background: #e6f2ed;
}

.items-entry-table thead .col-no {
    color: #ffffff;
}

.items-empty {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    border: 1px solid #dbe3ec;
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff;
    color: #64748b;
}

.items-empty__head {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 0.55fr) minmax(0, 0.7fr) minmax(0, 1fr);
    gap: 12px;
    padding: 11px 18px;
    border-bottom: 1px solid #e3e7e3;
    background: #fafbfa;
    color: #7a857c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.items-empty__body {
    display: flex;
    flex: 1;
    min-height: 160px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: auto;
    color: #64748b;
}

.items-empty__body svg {
    width: 36px;
    height: 36px;
    color: #94a3b8;
}

.items-empty__body strong {
    color: #334155;
    font-size: 14px;
}

.items-empty__body > span {
    font-size: 12px;
}

.items-table-wrap {
    margin-top: 14px;
}

.remove-item {
    border: 0;
    background: none;
    color: #b91c1c;
    font-size: 12px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .req-items-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.account-info-grid .field > label,
.account-info-card .account-flags__label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
    line-height: 1.3;
    text-transform: none;
}

.account-info-grid .field:focus-within > label {
    color: #1e3a54;
}

.account-info-grid .field:has(.input-validation-error) > label {
    color: #b91c1c;
}

.account-info-grid .text-input {
    width: 100%;
    height: 38px;
    padding: 0 11px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #ffffff;
    color: #22344a;
    font-family: inherit;
    font-size: 13px;
}

.account-info-grid .text-input::placeholder {
    color: #94a3b8;
}

.account-info-grid .text-input:hover {
    border-color: #94a3b8;
}

.account-info-grid .text-input:focus {
    border-color: #1e3a54;
    box-shadow: 0 0 0 2px rgba(30, 58, 84, 0.1);
    outline: none;
}

.account-info-grid .text-input[readonly] {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    cursor: default;
}

.account-info-grid .text-input.input-validation-error {
    border-color: #dc2626;
}

.account-info-grid select.text-input {
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.password-control {
    position: relative;
}

.password-control .text-input {
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    display: grid;
    width: 38px;
    place-items: center;
    border: 0;
    border-left: 1px solid #e2e8f0;
    border-radius: 0;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
}

.password-toggle:hover {
    background: #f1f5f9;
    color: #1e3a54;
}

.password-toggle:focus-visible {
    outline: 2px solid #1e3a54;
    outline-offset: -2px;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.password-toggle__icon--hide {
    display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle__icon--show {
    display: none;
}

.password-toggle[aria-pressed="true"] .password-toggle__icon--hide {
    display: block;
}

.account-flags__options {
    display: flex;
    min-height: 38px;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
}

.account-info-card .clinic-check {
    display: inline-flex;
    height: auto;
    min-height: 18px;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.account-info-card .clinic-check input {
    width: 16px;
    height: 16px;
    flex: none;
    margin: 0;
    accent-color: #1e3a54;
}

@media (max-width: 900px) {
    .account-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .account-info-card__body {
        padding: 18px 0 0;
    }

    .clinic-create .account-info-card .req-card__head {
        padding: 14px 18px;
    }

    .account-info-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Roles & Access - enterprise option cards */
.clinic-create .roles-card {
    box-shadow: none;
    overflow: visible;
}

.clinic-create .roles-card .req-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid #e3e9ef;
    background: #f8fafc;
}

.clinic-create .roles-card .req-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.roles-header-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: none;
    place-items: center;
    border-radius: 0;
    background: #1e3a54;
    color: #ffffff;
}

.roles-header-icon svg {
    width: 19px;
    height: 19px;
}

.clinic-create .roles-card .req-step strong {
    color: #1e3a54;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.clinic-create .roles-card .req-step small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.clinic-create .roles-card .role-manage-link {
    display: inline-flex;
    height: 38px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #1e3a54;
    border-radius: 0;
    background: #ffffff;
    color: #1e3a54;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.clinic-create .roles-card .role-manage-link svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.clinic-create .roles-card .role-manage-link:hover {
    background: #f1f5f9;
    color: #14293c;
}

.clinic-create .roles-card .role-picker {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 24px 0;
}

.clinic-create .roles-card .role-picker__item {
    display: flex;
    min-width: 0;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dbe3ec;
    border-radius: 0;
    background: #ffffff;
    color: #1e3a54;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.clinic-create .roles-card .role-picker__item:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.clinic-create .roles-card .role-picker__item:has(input:checked) {
    border-color: #1e3a54;
    background: #eef4fb;
}

.clinic-create .roles-card .role-picker__item input {
    width: 18px;
    height: 18px;
    flex: none;
    margin: 0;
    border-radius: 0;
    accent-color: #1e3a54;
}

.role-picker__divider {
    width: 1px;
    height: 26px;
    flex: none;
    background: #dbe3ec;
}

.role-picker__icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: none;
    place-items: center;
    color: #1e3a54;
}

.role-picker__icon svg {
    width: 23px;
    height: 23px;
}

.role-picker__info {
    min-width: 0;
}

.role-picker__name {
    display: block;
    color: #1e3a54;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.role-picker__meta {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
}

.clinic-create .roles-card .role-picker__item:has(input:checked) .role-picker__meta {
    color: #64748b;
}

.clinic-create .roles-card .role-picker__hint {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 14px 24px 0;
    padding: 10px 0;
    border: 1px solid #e3e9ef;
    border-radius: 0;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.role-picker__hint svg {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 1px;
}

.role-picker__hint strong {
    color: #1e3a54;
    font-weight: 700;
}

.clinic-create .roles-card .role-picker__empty {
    margin: 0 24px;
    padding: 14px;
    border: 1px solid #dbe3ec;
    border-radius: 0;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
}

.clinic-create .roles-card .form-actions {
    margin: 20px 0 0;
    padding: 18px 48px 18px 24px;
    border-top: 1px solid #e3e9ef;
    background: #f8fafc;
}

.clinic-create .roles-card .form-actions .clinic-action {
    height: 38px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 0;
    font-size: 12px;
}

.clinic-create .roles-card .clinic-action--gray {
    border-color: #1e3a54;
    background: #ffffff;
    color: #1e3a54;
}

.clinic-create .roles-card .clinic-action--gray:hover {
    background: #f1f5f9;
}

@media (max-width: 1200px) {
    .clinic-create .roles-card .role-picker {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .clinic-create .roles-card .role-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .clinic-create .roles-card .req-card__head {
        padding: 18px;
    }

    .clinic-create .roles-card .role-picker {
        grid-template-columns: minmax(0, 1fr);
        padding-left: 18px;
        padding-right: 18px;
    }

    .clinic-create .roles-card .clinic-access {
        padding-left: 18px;
        padding-right: 18px;
    }

    .clinic-create .roles-card .role-picker__hint {
        margin-left: 18px;
        margin-right: 18px;
        padding-left: 0;
        padding-right: 0;
    }

    .clinic-create .roles-card .role-picker__empty {
        margin-left: 18px;
        margin-right: 18px;
    }

    .clinic-create .roles-card .form-actions {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        padding: 18px 36px 18px 18px;
    }
}

/* Clinic / side assignment picker */
.clinic-picker {
    position: relative;
}

.clinic-picker__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #ffffff;
    color: #22344a;
    font-size: 13px;
    cursor: pointer;
    list-style: none;
}

.clinic-picker__summary::-webkit-details-marker {
    display: none;
}

.clinic-picker__summary-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.clinic-picker__summary svg {
    width: 16px;
    height: 16px;
    flex: none;
    color: #64748b;
}

.clinic-picker[open] .clinic-picker__summary svg {
    transform: rotate(180deg);
}

.clinic-picker__panel {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 40, 65, 0.10);
}

.clinic-picker.is-up .clinic-picker__panel {
    top: auto;
    bottom: 40px;
}

.clinic-picker__option {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #eef2f6;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.clinic-picker__option:last-child {
    border-bottom: 0;
}

.clinic-picker__option:hover {
    background: #f8fafc;
}

.clinic-picker__option input {
    width: 16px;
    height: 16px;
    flex: none;
    margin: 0;
    accent-color: #1e3a54;
}

.clinic-picker__option-text {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.clinic-picker__option-text strong {
    display: inline;
    flex: none;
    color: #1e3a54;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.clinic-picker__option-text small {
    display: inline;
    min-width: 0;
    margin: 0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clinic-picker__empty {
    margin: 0;
    padding: 12px 14px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.clinic-access {
    margin-top: 18px;
    padding: 0 24px;
}

.clinic-access .account-flags__label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
    line-height: 1.3;
}

@media (max-width: 560px) {
    .clinic-picker__panel {
        max-height: 200px;
    }
}

/* Fill the remaining shell height instead of leaving a gap at the bottom */
.clinic-create .rms-shell {
    display: flex;
    flex-direction: column;
}

.clinic-create .rms-shell > .account-info-card {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.clinic-create .rms-shell > .account-info-card .account-info-card__body,
.clinic-create .rms-shell > .account-info-card form {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.clinic-create .rms-shell > .account-info-card .catalogue-panel {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.clinic-create .rms-shell > .account-info-card .items-empty {
    flex: 1;
}

/* New Request Form: let the product dropdown escape the card */
.clinic-create .rms-shell > .account-info-card {
    overflow: visible;
}

/* New Request Form: tighten the gap between the section header and the fields */
.rms-shell > .account-info-card .req-card__head {
    margin-bottom: 12px;
}

.rms-shell > .account-info-card .account-info-card__body {
    padding-top: 0;
}

.rms-shell > .account-info-card form {
    padding: 0;
}

.afl-alert {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 14px 18px;
    padding: 14px 16px;
    border: 1px solid #d8e4ee;
    border-radius: 7px;
    background: #f7fafc;
    color: #334155;
    font-size: 13px;
}

.afl-alert--changes {
    border-color: #f0d59b;
    background: #fff9e9;
    color: #765313;
}

.afl-alert--success {
    border-color: #b7e0c4;
    background: #f0faf3;
    color: #20623a;
}

.afl-alert--info {
    border-color: #b8d7f0;
    background: #f1f8fe;
    color: #24577a;
}

.afl-alert__meta {
    color: #64748b;
    font-size: 12px;
}

.afl-decision {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.afl-decision__form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.afl-decision__form--changes .text-input {
    width: 100%;
    min-height: 92px;
    padding: 10px 12px;
    resize: vertical;
}

.afl-decision__note,
.audit-help {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.audit-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.audit-badge--ok {
    background: #eaf7ef;
    color: #237243;
}

.audit-badge--bad {
    background: #fff0f0;
    color: #a12b2b;
}

.audit-help {
    margin: 0 0 16px;
}

.audit-timeline {
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.audit-event {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    padding: 0 0 20px;
}

.audit-event:not(:last-child)::before {
    position: absolute;
    top: 12px;
    bottom: -1px;
    left: 6px;
    width: 2px;
    background: #e2e8f0;
    content: "";
}

.audit-event__dot {
    z-index: 1;
    width: 14px;
    height: 14px;
    margin-top: 3px;
    border: 3px solid #8a9aab;
    border-radius: 50%;
    background: #fff;
}

.audit-event--green .audit-event__dot { border-color: #25824c; }
.audit-event--amber .audit-event__dot { border-color: #c58a22; }
.audit-event--blue .audit-event__dot { border-color: #3477b6; }
.audit-event--indigo .audit-event__dot { border-color: #6156b4; }
.audit-event--dark .audit-event__dot { border-color: #334155; }

.audit-event__body {
    min-width: 0;
}

.audit-event__top,
.audit-event__meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.audit-event__top {
    justify-content: space-between;
    color: #213d2b;
    font-size: 13px;
}

.audit-event__top time,
.audit-event__meta {
    color: #64748b;
    font-size: 11px;
}

.audit-event__meta {
    margin: 3px 8px 0;
    padding: 2px 6px;
}

.audit-event__status {
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}

.audit-event__notes {
    margin: 7px 0 0;
    color: #475569;
    font-size: 12px;
    white-space: pre-wrap;
}

.audit-event__hash {
    display: inline-block;
    margin-top: 7px;
    color: #94a3b8;
    font-size: 10px;
}

.audit-snapshot {
    margin-top: 8px;
    color: #475569;
    font-size: 12px;
}

.audit-snapshot summary {
    cursor: pointer;
    font-weight: 600;
}

.audit-snapshot pre {
    max-height: 260px;
    overflow: auto;
    margin: 8px 0 0;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background: #f8fafc;
    white-space: pre-wrap;
    word-break: break-word;
}

.audit-snapshot code {
    font-size: 11px;
}

.audit-table {
    width: 100%;
    min-width: 1280px;
    table-layout: fixed;
}

.audit-table th {
    text-transform: uppercase;
}

.audit-table td {
    padding: 8px 12px;
    vertical-align: middle;
}

.audit-table th:nth-child(1),
.audit-table td:nth-child(1) {
    width: 60px;
    text-align: center;
}

.audit-table td.audit-serial {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.audit-no-change {
    color: #94a3b8;
}

.afl-number-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    box-sizing: border-box;
    white-space: nowrap;
    padding: 5px 10px;
    border: 1px solid #b9dce6;
    border-radius: 999px;
    background: #eaf5f8;
    color: #15566d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.afl-number-button:hover,
.afl-number-button:focus-visible {
    border-color: #8fc6d6;
    background: #d9edf3;
    color: #104557;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.afl-number-button:focus-visible {
    outline: 2px solid #1f6f8b;
    outline-offset: 2px;
}

.afl-serial-head,
.afl-serial {
    width: 60px;
    text-align: center;
}

.afl-serial {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.audit-table th:nth-child(2),
.audit-table td:nth-child(2) {
    width: 150px;
    padding-left: 8px;
    padding-right: 6px;
    font-size: 11px;
}

.audit-table th:nth-child(3),
.audit-table td:nth-child(3) {
    width: 200px;
}

.audit-table th:nth-child(4),
.audit-table td:nth-child(4) {
    width: 250px;
}

.audit-table th:nth-child(5),
.audit-table td:nth-child(5) {
    width: 150px;
}

.audit-table th:nth-child(6),
.audit-table td:nth-child(6) {
    width: 140px;
}

.audit-table th:nth-child(8),
.audit-table td:nth-child(8) {
    width: 90px;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
}

.audit-table__subtext {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
}

.audit-person {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.audit-avatar {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    object-fit: cover;
}

.audit-person__name {
    min-width: 0;
}

.audit-person__name strong {
    display: block;
    overflow: visible;
    white-space: normal;
}

.audit-table__details {
    width: auto;
    min-width: 0;
    max-width: none;
    padding-right: 6px !important;
    white-space: normal;
    overflow-wrap: anywhere;
}

.audit-table .audit-snapshot {
    min-width: 115px;
}

.audit-table .audit-snapshot pre {
    min-width: 320px;
}

.audit-table tbody tr {
    cursor: pointer;
}

.audit-table tbody tr:hover {
    background: #f1f6fa;
}

.audit-table tbody tr.is-selected {
    background: #cbe7f0;
    box-shadow: inset 3px 0 0 #10a37f;
}

.audit-table tbody tr.is-selected td {
    border-bottom-color: #b9dbe7;
}

.audit-details-cell {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.audit-table__details-text {
    min-width: 0;
}

.audit-table__details-text.is-clamped {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.audit-view-link {
    display: inline-flex;
    min-width: 52px;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border: 1px solid #b9dce6;
    border-radius: 999px;
    background: #eaf5f8;
    color: #15566d;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.audit-view-link:hover {
    border-color: #8fc6d6;
    background: #d9edf3;
    color: #104557;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.audit-view-link:focus-visible {
    outline: 2px solid #1f6f8b;
    outline-offset: 2px;
}

.audit-note-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.audit-note-modal[hidden] {
    display: none;
}

.audit-note-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, 0.55);
}

.audit-note-modal__card {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: min(80vh, 620px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dbe3ec;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.audit-note-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #edf1f5;
    background: #1e3a54;
    color: #ffffff;
    font-size: 13px;
}

.audit-note-modal__close {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.audit-note-modal__body {
    padding: 18px;
    overflow: auto;
}

.audit-note-modal__body pre {
    margin: 0;
    color: #334155;
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

body.audit-modal-open {
    overflow: hidden;
}

.document-history-page > .req-card.account-info-card {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.document-history-page .rms-table-wrap {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
}

body:has(.document-history-page) .rms-page,
body:has(.document-history-page) .rms-shell {
    height: auto;
    min-height: 0;
}

.rms-action-link {
    color: #1f6f8b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.rms-action-link:hover {
    color: #15566d;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .afl-decision {
        grid-template-columns: minmax(0, 1fr);
    }

    .audit-event__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}
