
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 16px;
}

body, html {
    height: 100%;
}

body {
    background: rgb(246, 248, 250);
}

/***
.layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}**/
/* === Top Navigation Bar === */
/* === Top Navigation Bar === */
/* === Top Navigation Bar === */
.top-nav {
    background: rgb(1, 6, 27);
    display: flex;
    align-items: center;
    padding: 8px 1rem;
    width: 100%;
    position: relative;
    z-index: 1000;
    overflow: visible; /* allow dropdowns to overflow */
}

/* Logo */
.top-nav .logo {
    display: flex;
    align-items: center;
}

.top-nav .logo img {
    height: 15px;
    display: block;
}

.auth-nav .logo {
    padding: 8px 0px;
}

/* Only the top-level menu is flex */
.top-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.35) rgba(255,255,255,0.08);
}

.top-nav > ul::-webkit-scrollbar {
    height: 6px;
}

.top-nav > ul::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
}

.top-nav > ul::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.35);
    border-radius: 999px;
}


/* Each nav item container */
.top-nav .nav-item {
    display: flex;
    align-items: center;
    position: relative;
}

/* === Bubble Buttons === */
.nav-btn {
    background: none;
    border: none;
    color: rgb(200, 200, 200);
    font-weight: 600;
    font-size: 15px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}


.nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-btn.is-open {
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
}

/* OPTIONAL: caret only for the tenant selector button */

.dropdown-item {
    padding: 4px 16px;
}

.dropdown-item:hover {
    background: #f4f4f5;
}

/* === Dropdown Panels (global, consistent) === */
.nav-panel {
    position: absolute;
    z-index: 9999;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid rgb(228, 230, 232);
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.12);
    width: max-content;
    min-width: unset;
    max-width: none;
    overflow: hidden; /* clips hover to rounded corners */
}

/* panel content */
.nav-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block; /* vertical stack */
}

.nav-panel li {
    margin: 0;
}

/* links inside dropdown */
.nav-panel a {
    display: block;
    width: 100%;
    padding: 0.5rem 1.5rem;
    color: rgb(40, 40, 40) !important;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.15s;
    font-size: 15px;
}

.nav-panel a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* optional light separators */
.nav-panel li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Tenant button only */
.nav-btn[data-panel="tenant-panel"] {
    border-radius: 4px; /* squarer corners */
    margin: 0 1rem;
    padding: 0.45rem 1.8rem 0.45rem 0.9rem; /* tighter, still room for caret */
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-btn[data-panel="tenant-panel"]::after {
    content: "";
    position: absolute;
    right: 0.7rem;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transform: translateY(-35%);
    pointer-events: none;
}

.nav-btn.is-open[data-panel="tenant-panel"]::after {
    transform: translateY(-65%) rotate(180deg);
}




.main {
    display: block;
    overflow: hidden;
}

.side-bar {
    flex: 0 0 auto;
    padding: 5px 15px;
    box-sizing: border-box;
    overflow-y: auto;
    border-right: 1px solid rgb(228, 230, 232);
    background: white;
}

.side-bar nav * {
    box-sizing: border-box;
}

.side-bar nav div {
    margin: 15px 0;
}

.side-bar nav p {
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    padding: 5px 10px;
    color: rgb(1, 6, 27);
}

.side-bar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-bar nav ul li {
    display: block;
    width: 100%;
    font-weight: 500;
}

.side-bar nav ul li a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: black;
    padding: 5px 10px;
    font-weight: 600;
    margin: 5px 0;
}

.side-bar nav ul li a svg {
    margin-right: 15px;
    flex-shrink: 0;
    fill: black;
    height: 15px;
}

.side-bar nav ul li a span {
    flex-grow: 1;
}

.selected {
    background: rgb(238, 238, 238);
    border-radius: 4px;
}

.content {
    padding: 10px 20px;
    flex-grow: 1;
    overflow-x: auto;
}

.title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-wrapper .actions {
    display: flex;
    gap: 10px;
    color: white;
}

.title-wrapper button,
.title-wrapper div > a {
    background: rgb(56, 126, 253);
    color: white;
    padding: 2px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.title-wrapper a {
    display: inline-flex;
    align-items: center;
}

.table-wrapper {
    border-radius: 6px;
    border: 1px solid rgb(228, 230, 232);
    background: rgb(255, 255, 255);
    margin: 10px 0;
    padding: 0px 0px;
    width: 100%;
    overflow-x: auto;
}

.table-wrapper table {
    width: 100%;
}

td span.muted {
    font-size: inherit;
    margin-left: 6px;
    color: #6b7280; /* gray-500 */
}

table, tr, th, td {
    text-align: left;
}

th {
    white-space: nowrap;
    font-weight: 650;
}

td {
    border-top: 1px solid #e5e9f4;
}

table th {
    background: #fbfcfd;
}

table th,
table td {
    padding: 10px 10px;
}

.registration-mark {

    background: rgb(255, 213, 5);
    padding: 2.5px 7px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    color: black !important;
    min-width: 105px;
}

table input, table select {
    border: 1px solid rgb(216, 216, 216);
    background: rgb(250, 250, 250);
    padding: 4px 5px;
    font-weight: 600;
    color: #3f424f;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 2px;
}



table td {
    white-space: nowrap;
}

table td:last-child div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

table td:last-child form {
    display: flex;
    align-items: center;
    justify-content: center;
}

table td:last-child form * {
    line-height: 1;
    display: block;
}

td > div > form > button, td > div > a {
    border-radius: 2px;
    border: none;
    cursor: pointer;
    padding: 5px;
    background: #F0F0F0;
}

td > div > form > button > svg, td > div > a > svg {
    display: flex;
    fill: #3f424f;
    stroke: none;
    height: 16px;
    width: 16px;
    text-align: center;
}

.table-options-wrapper {
    display: flex;
}



.table-options-wrapper a, .table-options-wrapper button {
    cursor: pointer;
    outline: none;
    border: none;
    background: rgb(240, 240, 240);
    padding: 5px;
    border-radius: 2px;
    display: flex;
}

.table-options-wrapper svg {
    height: 16px;
    width: 16px;
    fill: #3f424f;
}

table {
    border-collapse: collapse;
}

.pagination-controls {
    text-align: right;
}


.form-wrapper {
    border-radius: 6px;
    border: 1px solid rgb(228, 230, 232);
    background: rgb(255, 255, 255);
    margin: 10px 0px;
    width: 100%;
    overflow-x: auto;
}

.form-group-wrapper {
    padding: 15px 0px;
}

.form-group {
    padding: 2.5px 15px;
}

.form-group-wrapper, .form-header-wrapper {
    border-bottom: 1px solid #e5e9f4;
}

.form-header-wrapper h3 {
    font-size: 17px;
    font-weight: 600;
    background: #fbfcfd;
    padding: 15px;
}

.tight-page {
    max-width: 725px;
    margin: 0 auto;
}

.form-wrapper .two-factor-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 15px;
    border-bottom: 1px solid #e5e9f4;
}

.form-wrapper .two-factor-instructions {
    flex: 1 1 0;
    min-width: 200px;
    order: 1;
}

.form-wrapper .two-factor-instructions .form-group {
    padding: 2.5px 0;
}

.form-wrapper .two-factor-instructions .form-group:first-child {
    padding-top: 0;
}

.form-wrapper .two-factor-instructions .text-muted {
    margin: 0.5rem 0 0.75rem 0;
}

/* Six individual OTP digit inputs - side-by-side like typical 2FA */
.otp-inputs {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.form-wrapper .otp-inputs .otp-input {
    width: 2.5rem !important;
    min-width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    display: inline-block;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.otp-inputs .otp-hidden {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.form-wrapper .two-factor-instructions .text-muted {
    margin: 0 0 0.75rem 0;
}

.qr-wrapper {
    flex: 1 1 0;
    min-width: 200px;
    text-align: center;
    order: 2;
}

.qr-wrapper .subtext {
    display: block;
    margin-top: 0.5rem;
    font-size: 12px;
    word-break: break-all;
}

.subtext {
    margin-top: unset !important;
}

.qr-code {
    display: inline-block;
    border: 1px solid rgb(228, 230, 232);
    border-radius: 6px;
    padding: 8px;
    background: #fff;
}

.qr-code img {
    display: block;
    max-width: 150px;
    max-height: 150px;
}

.subtext {
    font-size: 9px !important;
}


.form-wrapper label {
    margin: 2px 0;
}

.form-wrapper input {
    margin: 2px 0;
}

.form-wrapper label, .form-wrapper input, .form-wrapper select {
    width: 100%;
}

.form-wrapper form > label {
    font-weight: 500;
}

.form-wrapper form > div label {
    font-weight: 500;
}

.form-wrapper select {
    margin: 5px 0;
}
/**
.form-wrapper form > label:first-child {
    margin-top:10px;
}*/
.form-wrapper form > label,
.form-wrapper form > input,
.form-wrapper select {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.form-wrapper form > input {
    margin: 5px 0px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.form-wrapper form button {
    float: right;
    background: rgb(56, 126, 253);
    color: white;
}

.form-wrapper form > div a {
    text-decoration:none;
    display:inline-block;
}

.form-wrapper form button,
.form-wrapper form > a {
    margin: 10px 0px;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    text-align: center;
    min-height: 25px;
    font-weight: 600;
}

.form-button-wrapper {
    padding: 0px 15px;
}

.form-button-wrapper button,
.form-button-wrapper a {
    margin: 10px 0px;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    text-align: center;
    min-height: 25px;
    font-weight: 600;
}



.form-wrapper form button.combo__button {
    margin: 5px 0px;
    display: block;
}

.form-wrapper form > a {
    background: rgb(240, 240, 240) !important;
    color: black !important;
}

.form-wrapper form input, .form-wrapper select {
    border-radius: 0px;
    border: 1px solid black;
    padding: 5px;
}

.form-wrapper form input, .form-wrapper select {
    border: 1px solid rgb(216, 216, 216);
    background: rgb(250, 250, 250);
    padding: 3px 5px;
    color: #3f424f;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 2px;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin: 0px;
}

h1 {
    font-size: 20px;
    font-weight: 500;
    margin: 10px 0;
}

h2 {
    font-size: 18px;
    font-weight: 550;
    margin: 10px 0;
}

.subheading {
    width:100%;
}

th[scope="row"] {
    border-top: 1px solid #e5e9f4;
    border-right: 1px solid #e5e9f4;
}

.delete {
    background: rgb(224 45 45) !important;
}


.row-red {
    background-color: rgb(252, 246, 246); /* very light red */
    color: rgb(75, 40, 40); /* dark grey with a red bias */
}

.row-green {
    background-color: rgb(247, 255, 240); /* very light green */
    color: rgb(40, 75, 40); /* dark grey with a green bias */
}

/* Amber row for SORN */
.row-amber {
    background-color: rgb(255, 250, 240); /* very light amber/cream */
    color: rgb(90, 60, 20); /* soft brownish text */
}

/* Blue row for "due soon" */
.row-blue {
    background-color: rgb(241, 249, 255); /* very light blue (like AliceBlue) */
    color: rgb(25, 60, 100); /* soft navy text */
}




.view-wrapper {
    padding: 20px;
    margin: 20px 0px;
    border-radius: 2px;
    border: 1px solid rgb(228, 230, 232);
    background: rgb(255, 255, 255);
}

.view-wrapper > p {
    font-weight: 700;
}

.view-wrapper > .table-wrapper {
    margin: 0px;
}

.view-wrapper > .table-wrapper table {
    table-layout: fixed;
}

.view-wrapper > .table-wrapper th {
    font-weight: 500;
    width: 250px;
}

.view-wrapper > .table-wrapper > table tr:first-child th,
.view-wrapper > .table-wrapper > table tr:first-child td {
    border-top: none;
}


/* status dot + text */
.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot--green {
    background: rgb(107, 167, 55);
}

.dot--amber {
    background: #ffb800;
}

.dot--red {
    background: #d93939;
}
/* optional for truly unknowns */
.dot--muted {
    background: #9aa0a6;
}

.title-wrapper + p {
    margin: 10px 0px;
    font-weight: 500;
}

.intro-wrapper {
    margin: 20px 0px;
}

.intro-wrapper > .table-wrapper {
    margin: 0px;
}

.intro-wrapper > .table-wrapper th {
    font-weight: 500;
    border-top: 1px solid rgb(228, 230, 232);
    border-right: 1px solid rgb(228, 230, 232);
}

.intro-wrapper > .table-wrapper > table tr:first-child th,
.intro-wrapper > .table-wrapper > table tr:first-child td {
    border-top: none;
}

button {
    border-radius: 2px;
    border: none;
    cursor: pointer;
    padding: 5px;
    background: #F0F0F0;
}

button span {
    font-size: inherit;
}

a span {
    font-size:inherit;
}

button svg {
    display: flex;
    fill: #3f424f;
    stroke: none;
    height: 16px;
    width: 16px;
    text-align: center;
}



.cancel {
    background: rgb(240, 240, 240) !important;
    color: black !important;
}

.status-badge {
    padding: .125rem .5rem;
    border-radius: .5rem;
    font-size: .875rem;
}

.status-badge.draft {
    background: #eef2ff;
    color: #3730a3;
}

.status-badge.pending {
    background: #fff7ed;
    color: #9a3412;
}

.status-badge.complete {
    background: #ecfdf5;
    color: #065f46;
}

:root {
    --seg-track: rgb(239, 241, 242); /* light grey track */
    --seg-text: #6b7280; /* inactive text */
    --seg-text-act: #111827; /* active text */
    --seg-fill-hov: rgba(0,0,0,.04); /* hover background */
    --seg-fill-act: #ffffff; /* active pill */
    --seg-focus: #2563eb80; /* focus ring */
}

/* container (track) */
.tabs {
    display: inline-flex;
    padding: 0px;
    border-radius: 4px; /* squarer edges */
    margin: 10px 0;
    overflow: hidden;
    border: .5px solid rgb(228, 230, 232);
}

/* option (pill, but squarer) */
.tab {
    background: transparent;
    color: var(--seg-text);
    font-weight: 600;
    padding: 1px 10px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 5px;
    transition: background .15s ease, color .15s ease;
}


.tabs .tab + .tab {
    border-left: .5px solid rgb(228, 230, 232);
}

.tab:hover {
    background: var(--seg-fill-hov);
    color: var(--seg-text-act);
}

/* active state (just a filled box) */
.tab.is-active,
.tab[aria-pressed="true"] {
    background: var(--seg-fill-act);
    color: var(--seg-text-act);
}

/* focus */
.tab:focus-visible {
    outline: 2px solid var(--seg-focus);
    outline-offset: 2px;
    border-radius: 3px;
}



/* wider container for side-by-side pages */
.wide-page {
    max-width: 1000px;
    margin: 0 auto;
}

/* 50/50 columns; give the whole section its outer margin */
.verify-layout {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch; /* make both cells equal height */
}

/* left panel: no extra margin so heights match */
.verify-layout .form-wrapper {
    margin: 0;
    height: 100%;
}

/* right panel: match form chrome and fill available height */
.pdf-wrapper {
    position: static; /* not sticky */
    height: 100%;
    display: flex;
    text-align: center;
}

/* viewer/placeholder should fill the right panel */
.pdf-viewer,
.pdf-placeholder {
    flex: 1 1 auto;
    height: 100%;
    width: 100%;
}

/* keep the viewer clean (outer panel already has a border) */
.pdf-viewer {
    border: 0;
    background: #fff;
}

/* placeholder styling when no PDF yet */
.pdf-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
}

.combo {
    position: relative;
    width: 100%;
}

.combo__button {
    background: #FAFAFA;
    color: #3f424f;
    border: 1px solid rgb(216,216,216);
    border-radius: 2px;
    padding: 3px 28px 3px 5px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-weight: 600;
    user-select: none;
    caret-color: transparent;
    position: relative;
    overflow:hidden;
}

.combo__button::after {
    margin-top: 10px;
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -3px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6b7280;
    pointer-events: none;
    transition: transform .15s ease;
}

.combo__button[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.combo__label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.combo__panel {
    position: static; /* was absolute/fixed */
    width: 100%;
    margin-top: .25rem;
    /* if the list is huge, keep it scrollable */
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid rgb(228,230,232);
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
    padding: .5rem;
}

.combo__search {
    padding-bottom: .5rem;
    border-bottom: 1px solid #eee;
}

.combo__filter {
    width: 100%;
    padding: 3px 5px;
    border: 1px solid rgb(216,216,216);
    background: #FAFAFA;
    color: #3f424f;
    border-radius: 2px;
}

.combo__filter::placeholder {
    text-transform: none;
}

.combo__list {
    list-style: none;
    margin: .5rem 0 0;
    padding: 0;
    max-height: 260px;
    overflow: auto;
}

.combo__list li {
    padding: .45rem .6rem;
    cursor: pointer;
    border-radius: 2px;
}

.combo__list li:hover {
    background: #f6f6f6;
}

.combo__list li[aria-selected="true"] {
    background: #eef5ff;
}

.combo__more {
    margin-top: .5rem;
    width: 100%;
    padding: .4rem .6rem;
    border: 1px solid #ddd;
    background: #fafafa;
    border-radius: 2px;
}

.combo__status {
    font-size: .85rem;
    color: #666;
    margin-top: .35rem;
}

.table-wrapper thead .combo__button {
    padding: 4px 5px;
    min-width: 125px;
}

.content {
    overflow-x: auto;
    overflow-y: auto;
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
}

.table-wrapper > table {
    width: max-content;
    width: 100%;
    border-collapse: collapse;
}


/* Keep submit buttons blue, but NOT the combobox trigger */
.form-wrapper form button:not(.combo__button),
.form-wrapper form > a {
    background: rgb(56,126,253);
    color: #fff;
}

/* Force the combobox button to look like an input */
.form-wrapper form .combo__button {
    background: #FAFAFA !important;
    color: #3f424f !important;
    border: 1px solid rgb(216,216,216) !important;
    border-radius: 2px !important;
    padding: 3px 28px 3px 8px !important;
    font-weight: 600;
    text-align: left;
    justify-content: flex-start;
    float: none; /* ignore earlier float:right on buttons */
}

/* optional: caret and icon color inside the combo button */
.form-wrapper form .combo__button::after,
.form-wrapper form .combo__button svg {
    fill: #6b7280;
}

.pill {
    padding: 2px 7px;
    border-radius: 2px;
    font-weight: 500;
    border: 1px solid transparent;
    display: inline-block;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 40px;
    text-align: center;

}

.pill--success {
    background: #dcfce7;
    color: #166534;
}

.pill--neutral {
    background: #f3f4f6;
    color: #374151;
}

.pill--error {
    background: #fee2e2;
    color: #991b1b;
}

.pill--warning {
    background: #f3e8ff;
    color: #4c1d95;
}




.pill--info {
    /* Higher contrast indigo */
    background: #dfe5ff;
    color: #0b2fa0;
}

.filter-stack {
    display: grid;
    gap: .375rem;
}

.muted {
    color: #6b7280;
}

.th-title {
    font-weight: 600;
}

.th-sub {
    color: #6b7280;
    font-size: .85em;
}


.mt-2 {
    margin-top: .5rem;
}

.updated-meta {
    font-size: 12px;
    color: #6b7280; /* Tailwind gray-500 */
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Collapse anything you hide via the [hidden] attribute */
.conditional[hidden] {
    display: none !important;
}

/* Optional: make disabled read-only text inputs look intentional */
.readonly-input[disabled] {
    opacity: 1; /* avoid greyed-out if your theme dims disabled controls */
    background-color: #f7f7f7; /* or whatever your neutral bg is */
    cursor: default;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem; /* space between heading and tabs */
}





.status-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .6rem;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: .5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #16a34a;
}

.status-chip__label {
    font-weight: 600;
    color: #111827;
}

.status-combo {
    position: relative;
    display: inline-block;
}

.status-combo.is-locked {
    opacity: .7;
}

.status-combo__button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: .5rem;
    padding: .4rem .6rem;
    cursor: pointer;
}

.status-combo__button[disabled] {
    cursor: not-allowed;
    opacity: .6;
}

.status-combo__btn-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
}

.status-combo__btn-dot.is-done {
    background: #16a34a;
}

.status-combo__label {
    font-weight: 600;
    color: #374151;
}

.status-combo__panel {
    position: absolute;
    top: calc(100% + .25rem);
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    min-width: 220px;
    max-width: 320px;
    padding: .25rem;
}

.status-combo__panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.status-option {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .5rem;
    border: 0;
    background: transparent;
    border-radius: .375rem;
    cursor: pointer;
    text-align: left;
}

.status-option:hover {
    background: #f3f4f6;
}

.status-option[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.status-option__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
}

.status-option__dot.is-done {
    background: #16a34a;
}

.liability-box {
    color: #374151;
    font-weight: 600;
}

/* Make the submit button look like a plain nav link */
.tenant-switcher-form {
    display: inline;
    margin: 0;
}

.tenant-option {
    display: inline-block;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none; /* matches <a> baseline */
}

.tenant-option:hover,
.tenant-option:focus {
    text-decoration: underline;
}
/* Optional emphasis for current tenant */
.current-indicator {
    margin-left: .25rem;
    color: #198754;
}
/* Optional: bold selected item for a11y parity */
[role="listbox"] .tenant-option[aria-selected="true"] {
    font-weight: 600;
}



.filter-date-cell {
    position: relative;
    white-space: nowrap;
}


.date-range-popup {
    position: absolute;
    top: 100%;
    left: 10px;
    z-index: 20;
    margin-top: 0.25rem;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.date-range-popup-inner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-range-popup label {
    display: flex;
    flex-direction: column;

}

.date-range-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-top: 0.25rem;
}






/* numeric filters should be tiny */
.filter-input--number {
    max-width: 100px;
}




.th-with-toggle {
    display: flex; /* instead of inline-flex */
    align-items: center;
    justify-content: space-between; /* text left, button right */
    width: 100%;
}

.address-toggle {
    cursor: pointer;
}

.address-toggle svg {
    width: 16px;
    height: 16px;
    display: block;
}

.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 10px;
    border-radius: 4px;
    z-index: 2000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    width: max-content;
}

.toast__close {
    background: inherit;
    font-size:20px;
    border: none;
    color: inherit;
    line-height: 1;
    cursor: pointer;
    padding: 0px 5px;
    margin-left: 0.25rem;
}

.toast--error {
    background-color: #651616;
    color: #fff;
}

.toast--success {
    background-color: #0a5b2a;
    color: #fff;
}

.form-group-wrapper .form-alert {
    margin: 2.5px 15px;
}

.form-alert {
    border: 1px solid;
    border-radius: 6px;
    padding: 5px 15px;
    background: #f8fafc;
    margin: 15px 0px 10px 0px;
}

.form-alert__title {
    font-weight: 500;
}

.form-alert__body {
    margin: unset; 
}

.form-alert--error {
    border-color: #f6e4e2;
    background: #fef8f7;
    color: #7a271a;
}

.form-alert--success {
    border-color: #b7e3c4;
    background: #ecfdf3;
    color: #065f46;
}

.form-alert--warning {
    border-color: #fcd9b8;
    background: #fffbeb;
    color: #78350f;
}



input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
    border-color: #b42318 !important;
    background: #fff1f0;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

input.input-validation-error:focus,
select.input-validation-error:focus,
textarea.input-validation-error:focus {
    outline: 2px solid #b42318;
    outline-offset: 1px;
}

.required-flag {
    color: #282828;
    font-weight: 700;
    font-weight:300;
}

.label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

th form  {
    text-align: center;
}




.detail-table-wrapper {
    background: white;
    margin: 10px 0;
    border: 1px solid #e5e9f4;
}

.detail-table {
    display: grid;
    grid-template-columns: max-content 1fr;
}

.detail-row {
    display: contents;
}

.detail-label,
.detail-value {
    padding: 5px 10px;
    border-bottom: 1px solid #e5e9f4;
}

.detail-label {
    font-weight: 650;
    white-space: nowrap;
}

.detail-table > .detail-row:last-child .detail-label,
.detail-table > .detail-row:last-child .detail-value {
    border-bottom: none;
}


.secondary {
    background: #F0F0F0 !important;
    color: #212529 !important;
}



.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 5px 0px;
}

.crumb,
.crumb-chevron {
    display: inline-flex;
    align-items: center;
}

.crumb a {
    text-decoration: none;
    color: #007bff;
}

.crumb a:hover {
    text-decoration: underline;
}

.crumb.muted {
    color: #6c757d;
}

.crumb-chevron {
    color: #adb5bd;
    margin: 0 1px;
}

.crumb, .crumb a {
    font-size: 14px;
    font-weight: 550;
}


.pill--light-load {
    background-color: #eef1ff;
    color: #0f172a;
}

.pill--moderate-load {
    background-color: #d5dcfe;
    color: #0f172a;
}

.pill--high-load {
    background-color: #617eff;
    color: white;
}

.form-wrapper .checkbox-row {
    display: flex;
    align-items: center;
    gap: 20px; /* space between label and checkbox */
}

/* override the global 100% width rules just for this row */
.form-wrapper .checkbox-row label,
.form-wrapper .checkbox-row input[type="checkbox"] {
    width: auto;
    display: inline-block;
}


































/* --- Dashboard layout --- */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
    align-items: start;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #e5e9f4;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
}

.dashboard-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .65rem;
}

.dashboard-card__header h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

/* --- Metric tiles (cards 1 & 2, and KPI tiles) --- */

.metric-list {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.metric {
    background: #f9fafb;
    border: 1px solid #e5e9f4;
    border-radius: 5px;
    padding: .45rem .7rem;
}

.metric--horizontal {
    padding: .45rem .7rem;
}

.metric-line {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    flex-wrap: wrap;
}

.metric-line--nowrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-number,
.metric-number--kpi {
    font-size: 18px;
    font-weight: 700;
}

.metric-label-inline,
.metric-label-inline--kpi {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

/* Pills */

.metric-chip {
    padding: 2px 7px;
    border-radius: 2px;
    font-weight: 500;
    border: 1px solid transparent;
    display: inline-block;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 40px;
    text-align: center;
    margin-left: auto; /* sit on the right, inside the row */
}

/* Orders pills */
.metric-chip--success {
    background: #dcfce7;
    color: #166534;
}

.metric-chip--error {
    background: #fee2e2;
    color: #991b1b;
}

.metric-chip--info {
    background: #dfe5ff;
    color: #0b2fa0;
}

.metric-chip--warning {
    background: #f3e8ff;
    color: #4c1d95;
}

/* KPI pills (colours match donut segments) */
.metric-chip--kpi-same {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.metric-chip--kpi-next {
    background: #ffedd5;
    color: #c2410c;
}

.metric-chip--kpi-late {
    background: #fce7f3;
    border-color: #fecdd3;
    color: #be185d;
}

/* Neutral KPI tiles */
.metric--kpi {
    background: #f9fafb;
    border: 1px solid #e5e9f4;
    border-radius: 999px;
}

/* --- KPI card layout (card 3) --- */

.dashboard-card--kpi {
    min-height: 220px;
}

.dashboard-card--stock {
    align-self: start;
}

.kpi-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 5px;
    align-items: center;
}

.kpi-chart-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    padding: .5rem 0;
    width: 140px; /* square container so donut is circular */
    height: 140px;
    margin: 6px 0px;
}

.kpi-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}


.kpi-metric-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* --- Date-range form --- */

.date-range-form {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.date-range-form label {
    font-weight: 600;
    flex-direction: column;
    gap: 2px;
}

.date-range-form input[type="date"] {
    border: 1px solid rgb(216, 216, 216);
    background: rgb(250, 250, 250);
    padding: 3px 5px;
    color: #3f424f;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 2px;
    margin: 0px 5px;
}

/* --- Responsive layout --- */

@media (max-width: 950px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

a.nav-btn {
    text-decoration:none;
}

.address-cell {
    cursor: pointer;
}

.address-cell .address-full {
    display: none;
}

.address-cell .address-compact {
    display: block;
}

.address-cell.is-expanded .address-full {
    display: block;
}

.address-cell.is-expanded .address-compact {
    display: none;
}

.stock-count {
    padding: 0px 5px;
    vertical-align: middle;
}

.audit-table-wrapper {
    width:100%;
}

.audit-text {
    white-space: wrap
}

/* Audit log list layout */
.audit-table.borderless {
    border: none;
    width: 100%;
}

.audit-table tr:first-of-type td {
    border: unset
}

.audit-table td {
    vertical-align:top;
    padding:15px;
}


.audit-table td span {
    display: block;
}

.audit-timestamp {
    font-weight: 500;
}

.audit-timestamp, .audit-text {
    padding: 1px 0px;
}

.audit-table.borderless td {
    color: #6c757d;
    border: none;
    padding: 0px;
    white-space: wrap;
    padding: 5px 0px 5px 10px;
}

.audit-table.borderless td:first-child {
    padding: 5px 0px;
    white-space:nowrap;
}



.detail-wrapper {
    background: white;
    border: 1px solid #e5e9f4;
    border-radius: 6px;
    margin: 10px 0px;
}


.detail-wrapper > h3 {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    font-size: 17px;
    font-weight: 600;
    padding: 15px 15px;
    border-bottom: 1px solid #e5e9f4;
    background: #fbfcfd;
}

.label, .value {
    padding: 1px 0px;
}


.label {
    font-weight: 500
}

.detail-wrapper span + span.pill {
    padding: 0px 4px;
    margin: 0px 5px;
}

.value {
    color: #4b4e5a;
}

.detail-item {
    padding: 10px 15px;
    border-top: 1px solid #e5e9f4;
}

.detail-item .value.value--row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-item .value.value--row button {
    background: rgb(56, 126, 253);
    color: white;
    padding: 2px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}

.detail-item .value.value--row button span {
    font-size: inherit;
}

.detail-wrapper .detail-item:first-of-type {
    border: none;
}

.checkbox-table td {
    border: none;
    padding: 0px;
}

.checkbox-table td:nth-child(2) {
    padding: 0px 40px;
}

.checkbox-table td input {
    vertical-align:baseline;
}


.checkbox-table td label {
    font-weight: 400 !important;
    color: #3f424f;
    margin: 5px 0px;
}

.text-danger {
    display: none;
}

.text-danger:not(:empty) {
    display: block;
    margin-top: 4px; /* adjust if needed */
    font-weight: 350;
}

div.value > span.registration-mark {
    margin-top: 2.5px;
}

div.value > span.pill {
    margin-top: 2.5px;
}

div.value > span.pill > span{
    font-size: inherit;
}

.dispatch-table-wrapper {
    overflow-x: auto;
}

.dispatch-table-wrapper table {
    width: 100%;
}

.dispatch-table-wrapper table th,
.dispatch-table-wrapper table td {
    padding: 15px !important;
    background: white;
}

.form-group > span.registration-mark {
    margin-top: 2.5px;
}

.identifier-wrapper {
    background: grey;
    font-size: 14px;

    padding: 2px 7px;
    border-radius: 2px;
    font-weight: 500;
    border: 1px solid transparent;
    display: inline-block;
    border-radius: 5px;
    white-space: nowrap;
    min-width: 40px;
    text-align: center;
    background: #f3f4f6;
    color: #374151;
}

.logged-link {
    text-decoration: underline;
    color: #0b61d6;
}

.email-content-display {
    border:1px solid #ccc; 
    border-radius: 6px;
    padding: 0px 10px;
    background: rgb(246, 248, 250);
    margin:1px 0px;
}

.email-content-display p {
    margin: 10px 0px;
}


a.plain-link {
  padding: 2px 0px;
  font-weight: 500;
}

.button {
    background: rgb(56,126,253);
    color: white;
    margin: 10px 0px;
    padding: 2px 8px;
    float:right;
}

.actions button {
    margin:unset;
}

.signout {
    color: #6b7280;
    height:100%;
    font-size: 15px !important;
}

.signout:hover {
    color: rgb(200, 200, 200);
}