:root {
    --navy: #102c35;
    --navy2: #183d46;
    --teal: #147d73;
    --mint: #edf8f4;
    --gold: #dab66e;
    --ink: #17363e;
    --muted: #71828b;
    --line: #e5eceb;
    --bg: #f4f7f6;
    --white: #fff;
    --red: #ba514b;
    --radius: 15px
}
* {
    box-sizing: border-box
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 14px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif
}
a {
    color: var(--teal);
    text-decoration: none
}
a:hover {
    text-decoration: underline
}
button,input,select,textarea {
    font: inherit
}
button,a,input,select,textarea {
    outline-offset: 4px
}
button {
    cursor: pointer
}
input,select,textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d9e3e1;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    min-height: 45px
}
input:focus,select:focus,textarea:focus {
    outline: 2px solid #78b9ae;
    border-color: var(--teal)
}
textarea {
    min-height: 95px;
    resize: vertical
}
input[type=checkbox] {
    width: 18px;
    min-height: 18px;
    accent-color: var(--teal)
}
label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: #45616a;
    margin: 0 0 19px
}
label input,label select,label textarea {
    display: block;
    margin-top: 7px
}
h1,h2,h3,h4,p {
    margin: 0
}
h1 {
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -1px;
    font-weight: 650
}
h2 {
    font-size: 19px;
    letter-spacing: -.4px
}
h3 {
    font-size: 15px;
    letter-spacing: -.15px
}
small {
    font-size: 11px
}
.muted {
    color: var(--muted)
}
.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: #76938e;
    display: block;
    margin-bottom: 10px
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 244px;
    padding: 30px 17px 0;
    background: var(--navy);
    color: #c7d7d8;
    z-index: 30;
    display: flex;
    flex-direction: column;
    transition: width .2s ease, padding .2s ease
}
.wordmark {
    display: flex;
    gap: 11px;
    align-items: center;
    color: inherit;
    text-decoration: none!important
}
.wordmark img {
    width: 42px;
    height: 49px;
    object-fit: contain;
    background: #fff;
    border-radius: 7px;
    padding: 3px
}
.wordmark span {
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 1px
}
.wordmark b {
    font-weight: 750
}
.wordmark small {
    display: block;
    font-size: 7px;
    letter-spacing: 1.2px;
    margin-top: 4px;
    color: #a7bebf
}
.workspace {
    margin: 28px 6px 21px;
    font-size: 10px;
    color: #96b4b6;
    border-bottom: 1px solid #ffffff12;
    padding-bottom: 21px
}
.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #61b69b;
    margin-right: 7px;
    box-shadow: 0 0 0 3px #61b69b15
}
.sidebar nav {
    overflow: auto;
    flex: 1;
    scrollbar-width: thin
}
.nav-label {
    font-size: 8px;
    letter-spacing: 1.6px;
    color: #718f96;
    margin: 20px 15px 10px
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b8cccf;
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 7px;
    margin-bottom: 3px;
    transition: background .15s
}
.nav-link .nav-icon {
    font-size: 19px;
    width: 21px;
    color: #89a8ab;
    line-height: 1
}
.nav-link:hover {
    background: #ffffff09;
    text-decoration: none;
    color: #fff
}
.nav-link.active {
    background: #27605770;
    color: #bde6d8;
    border: 1px solid #5eaf9425
}
.nav-link.active span {
    color: #88d0b4
}
.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 3px;
    border-top: 1px solid #ffffff12;
    margin-top: 20px
}
.sidebar-footer a {
    color: #fff;
    font-size: 12px
}
.sidebar-footer small {
    display: block;
    color: #8fadb1;
    font-size: 9px
}
.avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: #d8e9df;
    border-radius: 50%;
    color: var(--navy);
    font-weight: 700
}
.sidebar-footer form {
    margin-left: auto
}
.sidebar-footer .form-message {
    position: absolute;
    left: 10px;
    bottom: 70px;
    max-width: 210px
}
.icon-button {
    background: none;
    border: none;
    color: inherit;
    padding: 7px;
    font-size: 20px
}
.app-main {
    margin-left: 244px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .2s ease
}
.topbar {
    height: 75px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
    font-size: 11px;
    color: var(--muted)
}
.topbar strong {
    font-weight: 500;
    color: #536a72
}
.slash {
    margin: 0 15px;
    color: #c5d0d1
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 23px
}
.top-pill {
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #3b5e65
}
.menu-toggle {
    display: inline-block;
    margin-right: 12px
}
.topbar-left {
    display: flex;
    align-items: center
}
main#main {
    padding: 33px 38px 40px;
    flex: 1;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 27px
}
.page-heading .eyebrow {
    font-size: 8px;
    color: #8a9b9b;
    margin-bottom: 7px
}
.workspace-tag {
    font-size: 8px;
    letter-spacing: 1.6px;
    color: #899b9c
}
.app-footer {
    padding: 19px 38px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #91a1a5
}
.footer-credit {
    margin-left: 7px
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    font-size: 11px;
    padding: 11px 17px;
    border: 1px solid #dce6e3;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none!important;
    min-height: 38px
}
.btn:hover {
    background: #edf3f0
}
.btn.primary {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff
}
.btn.primary:hover {
    background: #11675f
}
.btn.dark {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff
}
.btn.small {
    padding: 7px 11px;
    min-height: 30px;
    font-size: 10px
}
.btn:disabled {
    opacity: .5;
    cursor: wait
}
.full {
    width: 100%
}
.actions {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap
}
.hero {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    padding: 31px 33px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 23px;
    min-height: 165px
}
.hero:after {
    content: '';
    position: absolute;
    right: 210px;
    top: -150px;
    width: 360px;
    height: 360px;
    border: 1px solid #ffffff0a;
    border-radius: 50%;
    box-shadow: 0 0 0 50px #ffffff03,0 0 0 100px #ffffff02;
    pointer-events: none
}
.hero .eyebrow {
    color: #8db3a6;
    font-size: 8px
}
.hero h2 {
    font-size: 28px;
    letter-spacing: -.7px;
    font-weight: 550;
    position: relative;
    z-index: 1
}
.hero p {
    color: #a4bdc0;
    font-size: 11px;
    margin-top: 9px
}
.hero .actions {
    position: relative;
    z-index: 2
}
.hero .btn {
    background: #e6eee8;
    border: none;
    color: var(--navy)
}
.hero .btn.outline {
    background: transparent;
    border: 1px solid #ffffff35;
    color: #deebe7
}
.stats {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 17px;
    margin-bottom: 23px
}
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 21px;
    position: relative
}
.stat-label {
    font-size: 10px;
    font-weight: 500;
    color: #6c8388;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between
}
.stat-icon {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--mint);
    font-size: 16px;
    color: var(--teal)
}
.stat-number {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
    font-weight: 650
}
.stat-number small {
    font-size: 12px;
    letter-spacing: 0;
    font-weight: 400;
    margin-right: 5px
}
.stat-foot {
    margin-top: 14px;
    font-size: 9px;
    color: #8c9c9e;
    display: flex;
    align-items: center;
    gap: 7px
}
.pill {
    display: inline-block;
    border-radius: 4px;
    font-size: 9px;
    padding: 3px 7px;
    background: var(--mint);
    color: var(--teal);
    font-weight: 550;
    white-space: nowrap
}
.pill.amber {
    background: #fff4df;
    color: #ac7e28
}
.pill.red {
    background: #fcefeb;
    color: #b56554
}
.pill.gray {
    background: #f0f3f3;
    color: #738b90
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0,1.7fr) minmax(280px,1fr);
    gap: 22px;
    margin-bottom: 22px
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-width: 0;
    overflow: hidden
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 23px 24px 17px;
    gap: 14px
}
.panel-header h2 {
    font-size: 14px;
    font-weight: 650
}
.panel-header p {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px
}
.panel-body {
    padding: 0 24px 23px
}
.panel-footer {
    border-top: 1px solid var(--line);
    padding: 12px 23px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--muted);
    background: #fcfdfc
}
.panel-footer a {
    font-weight: 600
}
.legend {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 9px;
    color: var(--muted)
}
.legend i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    margin-right: 5px
}
.legend .gold {
    background: var(--gold)
}
.chart {
    height: 185px;
    margin: 14px 0 0;
    display: flex;
    gap: 4px;
    align-items: flex-end;
    position: relative;
    border-bottom: 1px solid var(--line);
    background: repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#eaf0ee calc(25% - 1px),#eaf0ee 25%)
}
.chart-day {
    flex: 1;
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 100%;
    position: relative;
    padding-top: 10px;
    min-width: 1px
}
.chart-day i {
    width: 50%;
    background: var(--teal);
    border-radius: 3px 3px 0 0;
    min-height: 1px;
    transition: opacity .2s
}
.chart-day i.issue {
    background: var(--gold)
}
.chart-day:hover i {
    opacity: .65
}
.chart-day:focus-within {
    outline: 2px solid var(--teal)
}
.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #96a6a8;
    margin-top: 8px
}
.chart-summary {
    display: flex;
    gap: 27px;
    padding-bottom: 5px;
    margin-top: 7px
}
.chart-summary strong {
    font-size: 21px;
    font-weight: 600
}
.chart-summary small {
    display: block;
    color: var(--muted);
    font-size: 8px
}
.chart-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    font-size: 11px;
    color: #90a29f
}
.ring-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 12px 0 23px
}
.ring {
    width: 126px;
    height: 126px;
    border-radius: 50%;
    background: conic-gradient(var(--teal) calc(var(--percent)*1%),#eaf1ed 0);
    position: relative;
    display: grid;
    place-items: center
}
.ring:before {
    content: '';
    position: absolute;
    inset: 12px;
    background: #fff;
    border-radius: 50%
}
.ring-center {
    position: relative;
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2
}
.ring-center small {
    display: block;
    font-size: 8px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 5px
}
.ring-labels {
    font-size: 10px
}
.ring-labels div {
    margin: 9px 0
}
.ring-labels b {
    font-size: 14px;
    margin-left: 10px
}
.queue {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    padding: 17px 23px;
    gap: 17px
}
.queue a {
    display: flex;
    justify-content: space-between;
    color: #71868c;
    font-size: 9px
}
.queue strong {
    display: block;
    font-size: 21px;
    color: var(--ink);
    font-weight: 600
}
.table-wrap {
    overflow: auto
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
    font-size: 11px
}
th {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .6px;
    color: #8a9a9e;
    background: #f8faf9;
    text-transform: uppercase
}
th,td {
    padding: 15px 23px;
    border-bottom: 1px solid #edf1ef
}
tbody tr:last-child td {
    border-bottom: 0
}
tbody tr:hover {
    background: #fcfdfc
}
td strong {
    font-weight: 550
}
td small {
    display: block;
    color: var(--muted);
    font-size: 9px
}
.num {
    text-align: right;
    font-variant-numeric: tabular-nums
}
.stock-meter {
    display: flex;
    gap: 10px;
    align-items: center
}
.meter {
    width: 60px;
    height: 4px;
    border-radius: 3px;
    background: #edf2ef;
    overflow: hidden
}
.meter i {
    display: block;
    height: 100%;
    background: #dda971
}
.department-row {
    margin: 17px 0 21px
}
.department-row>div:first-child {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    margin-bottom: 7px
}
.department-bar {
    height: 6px;
    background: #eef3ef;
    border-radius: 3px;
    overflow: hidden
}
.department-bar i {
    display: block;
    height: 100%;
    background: var(--teal);
    border-radius: 3px
}
.activity-row {
    display: flex;
    gap: 12px;
    margin: 18px 0;
    align-items: flex-start
}
.activity-icon {
    background: var(--mint);
    color: var(--teal);
    border-radius: 50%;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    flex-shrink: 0
}
.activity-row strong {
    font-size: 10px;
    font-weight: 550;
    display: block
}
.activity-row p {
    font-size: 9px;
    color: var(--muted);
    margin-top: 2px
}
.activity-row time {
    font-size: 8px;
    color: #a3afaf;
    margin-left: auto;
    white-space: nowrap
}
.notice {
    border-radius: 9px;
    padding: 16px 19px;
    background: var(--mint);
    border: 1px solid #daeee5;
    color: #3f7766;
    font-size: 11px;
    margin-bottom: 20px
}
.notice.warning {
    background: #fff8e9;
    border-color: #efdfba;
    color: #94743e
}
.empty {
    padding: 33px 20px;
    text-align: center;
    color: #869b9f;
    font-size: 11px
}
.empty strong {
    display: block;
    font-size: 14px;
    color: #59757d;
    margin-bottom: 5px
}
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px
}
.toolbar input {
    max-width: 290px;
    font-size: 11px;
    min-height: 38px;
    padding: 9px 12px
}
.form-panel {
    max-width: 850px;
    padding: 27px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius)
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px
}
.form-grid .wide {
    grid-column: 1/-1
}
.form-grid h3 {
    grid-column: 1/-1;
    margin: 0 0 20px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line)
}
/* Keep status placeholders truly empty in templates; whitespace defeats :empty. */
.form-message:empty {
    display: none
}
.form-message {
    padding: 12px 14px;
    border-radius: 7px;
    background: #fcefeb;
    color: #a3473e;
    font-size: 12px;
    margin: 15px 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}
.form-message.success {
    background: var(--mint);
    color: var(--teal)
}
.filter-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 22px
}
.filter-form label {
    margin: 0;
    min-width: 140px;
    flex: 1
}
.filter-form select,.filter-form input {
    font-size: 11px
}
.line-items td {
    padding: 10px
}
.line-items select,.line-items input {
    font-size: 11px;
    padding: 9px
}
.line-items {
    margin: 15px 0
}
.line-items th {
    padding: 10px
}
.form-panel>.actions {
    margin-top: 20px
}
.small-link {
    font-size: 11px;
    display: block;
    margin: -5px 0 22px;
    text-align: right
}
.print-only {
    display: none
}
.skip-link {
    position: absolute;
    top: -100px;
    z-index: 100;
    background: white;
    padding: 10px
}
.skip-link:focus {
    top: 0
}
.login-body {
    background: #fff
}
.login-layout {
    display: grid;
    grid-template-columns: 1.06fr 1fr;
    min-height: 100vh
}
.login-story {
    background: var(--navy);
    color: #eef6f3;
    padding: 48px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden
}
.login-story:after {
    content: '';
    position: absolute;
    width: 650px;
    height: 650px;
    border: 1px solid #ffffff07;
    border-radius: 50%;
    right: -430px;
    bottom: -150px;
    box-shadow: 0 0 0 80px #ffffff02,0 0 0 160px #ffffff02;
    pointer-events: none
}
.login-story .wordmark span {
    font-size: 14px;
    letter-spacing: 1.3px
}
.login-story .wordmark small {
    font-size: 10px;
    letter-spacing: 5px
}
.login-story h1 {
    font-size: clamp(40px,4.4vw,68px);
    font-weight: 500;
    line-height: 1.13;
    letter-spacing: -2px;
    margin: 26px 0
}
.login-story .eyebrow {
    font-size: 8px;
    color: #b9c6a7
}
.login-story p {
    font-size: 14px;
    color: #a8c0c0;
    max-width: 330px;
    line-height: 1.8
}
.login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 38px;
    color: #d3e2d9;
    font-size: 11px
}
.login-story>small {
    font-size: 7px;
    color: #779596;
    letter-spacing: 1.5px
}
.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px
}
.login-card {
    width: 100%;
    max-width: 350px
}
.login-card .eyebrow {
    font-size: 9px;
    color: var(--teal);
    margin-bottom: 17px
}
.login-card h2 {
    font-size: 32px;
    letter-spacing: -1px;
    font-weight: 600
}
.login-card>p {
    font-size: 12px;
    margin: 10px 0 35px
}
.login-card label {
    font-size: 11px;
    margin-bottom: 20px
}
.login-card input {
    min-height: 48px;
    font-size: 12px
}
.login-card .btn {
    min-height: 48px;
    font-size: 12px;
    justify-content: space-between
}
.login-note {
    margin-top: 30px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
    font-size: 9px;
    color: #92a0a4;
    line-height: 1.9
}
.login-panel>small {
    position: absolute;
    bottom: 25px;
    font-size: 8px
}
.password-field {
    position: relative;
    display: block
}
.password-field input {
    padding-right: 60px
}
.show-password {
    position: absolute;
    right: 9px;
    top: 10px;
    border: 0;
    background: none;
    font-size: 9px;
    color: var(--muted);
    padding: 6px
}
.period-select {
    border: 1px solid var(--line);
    border-radius: 6px;
    min-height: 29px;
    padding: 4px 8px;
    font-size: 9px;
    width: auto
}
.no-print {
    display: initial
}
#toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--navy);
    color: white;
    padding: 15px 22px;
    border-radius: 9px;
    box-shadow: 0 10px 40px #0002;
    z-index: 100;
    display: none;
    max-width: 400px
}
.voucher {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 45px;
    border: 1px solid var(--line);
    border-radius: 12px
}
.voucher-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--navy);
    padding-bottom: 25px;
    margin-bottom: 25px
}
.voucher-header .wordmark {
    color: var(--ink)
}
.voucher-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 25px 0
}
.voucher-signatures {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
    margin-top: 85px
}
.voucher-signatures div {
    border-top: 1px solid #a8b6b9;
    padding-top: 10px;
    font-size: 11px
}
.summary-strip {
    display: flex;
    gap: 35px;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--mint);
    border-radius: 10px;
    font-size: 11px
}
.summary-strip strong {
    font-size: 21px;
    display: block
}
.check-label {
    display: flex;
    gap: 8px;
    align-items: center
}
.check-label input {
    margin: 0
}
.page-heading .workspace-tag {
    white-space: nowrap
}
@media(min-width:701px) {
    body.sidebar-collapsed .sidebar {
        width: 72px;
        padding-left: 9px;
        padding-right: 9px
    }
    body.sidebar-collapsed .app-main {
        margin-left: 72px
    }
    body.sidebar-collapsed .wordmark {
        justify-content: center
    }
    body.sidebar-collapsed .wordmark > span,
    body.sidebar-collapsed .workspace-text,
    body.sidebar-collapsed .nav-label,
    body.sidebar-collapsed .nav-text,
    body.sidebar-collapsed .sidebar-footer > div:not(.avatar) {
        display: none
    }
    body.sidebar-collapsed .workspace {
        display: flex;
        justify-content: center;
        margin-left: 0;
        margin-right: 0
    }
    body.sidebar-collapsed .workspace .live-dot {
        margin-right: 0
    }
    body.sidebar-collapsed .nav-link {
        justify-content: center;
        padding: 11px 8px
    }
    body.sidebar-collapsed .nav-link .nav-icon {
        width: auto;
        font-size: 21px
    }
    body.sidebar-collapsed .sidebar-footer {
        flex-direction: column;
        gap: 12px;
        padding-left: 0;
        padding-right: 0
    }
    body.sidebar-collapsed .sidebar-footer form {
        margin: 0
    }
}
@media(min-width:1600px) {
    main#main {
        padding: 38px 50px
    }
    .hero {
        min-height: 180px
    }
    .stat {
        padding: 25px
    }
    .chart {
        height: 210px
    }
}
@media(max-width:1200px) {
    .sidebar {
        width: 210px;
        padding-left: 12px;
        padding-right: 12px
    }
    .app-main {
        margin-left: 210px
    }
    main#main {
        padding: 28px 25px
    }
    .topbar {
        padding: 0 25px
    }
    .stats {
        gap: 11px
    }
    .stat {
        padding: 16px
    }
    .stat-number {
        font-size: 25px
    }
    .dashboard-grid {
        grid-template-columns: minmax(0,1.5fr) minmax(260px,1fr)
    }
    .hero {
        padding: 25px
    }
    .hero h2 {
        font-size: 23px
    }
    .hero .actions {
        flex-direction: column
    }
    .hero .btn {
        width: 100%
    }
    .ring-wrap {
        gap: 17px
    }
    .ring {
        width: 110px;
        height: 110px
    }
}
@media(max-width:960px) {
    .dashboard-grid {
        grid-template-columns: 1fr
    }
    .stats {
        grid-template-columns: 1fr 1fr
    }
    .workspace-tag {
        display: none
    }
    .hero .actions {
        flex-direction: row
    }
    .hero {
        gap: 20px
    }
    .login-story {
        padding: 40px
    }
    .login-story h1 {
        font-size: 46px
    }
    .login-features {
        margin-top: 25px
    }
    .topbar-right .date-label {
        display: none
    }
}
@media(max-width:700px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s;
        width: 244px
    }
    .sidebar.open {
        transform: translateX(0)
    }
    .app-main {
        margin-left: 0
    }
    .menu-toggle {
        display: inline-block;
        margin-right: 12px
    }
    .topbar {
        height: 62px;
        padding: 0 17px
    }
    .topbar-left {
        display: flex;
        align-items: center;
        font-size: 10px
    }
    .topbar-right {
        gap: 8px
    }
    .slash {
        margin: 0 7px
    }
    main#main {
        padding: 24px 17px
    }
    .page-heading h1 {
        font-size: 25px
    }
    .hero {
        display: block;
        padding: 25px
    }
    .hero .actions {
        margin-top: 24px;
        justify-content: flex-start
    }
    .hero h2 {
        font-size: 24px
    }
    .hero p {
        max-width: 250px
    }
    .stat-number {
        font-size: 26px
    }
    .stat-label {
        font-size: 10px
    }
    .stat {
        padding: 17px
    }
    .stat-foot {
        font-size: 8px
    }
    .dashboard-grid {
        gap: 17px
    }
    .app-footer {
        padding: 18px;
        display: block;
        line-height: 2
    }
    .app-footer>span {
        display: block
    }
    .form-grid {
        grid-template-columns: 1fr
    }
    .form-panel {
        padding: 20px
    }
    .toolbar {
        flex-wrap: wrap
    }
    .toolbar input {
        max-width: none
    }
    .login-layout {
        grid-template-columns: 1fr
    }
    .login-story {
        padding: 25px;
        min-height: 270px
    }
    .login-story h1 {
        font-size: 36px;
        margin: 22px 0 12px
    }
    .login-story .wordmark img {
        width: 30px;
        height: 36px
    }
    .login-story p,.login-story>small,.login-features {
        display: none
    }
    .login-story .eyebrow {
        margin-top: 27px
    }
    .login-panel {
        padding: 35px 25px 60px
    }
    .login-panel>small {
        position: static;
        margin-top: 30px
    }
    .voucher {
        margin: 15px;
        padding: 24px
    }
    .voucher-header {
        display: block
    }
    .voucher-header h1 {
        margin-top: 20px
    }
    .voucher-meta {
        grid-template-columns: 1fr
    }
    .form-grid .wide {
        grid-column: 1
    }
    .summary-strip {
        flex-wrap: wrap
    }
    .date-label {
        display: none
    }
    .chart {
        height: 155px
    }
}
@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 11px
    }
    .sidebar,.topbar,.app-footer,.page-heading,.no-print,.store-form,.toolbar,.filter-form,#toast {
        display: none!important
    }
    .app-main {
        margin: 0
    }
    main#main {
        padding: 0
    }
    .panel {
        border: 0;
        overflow: visible
    }
    .table-wrap {
        overflow: visible
    }
    table {
        white-space: normal;
        font-size: 10px
    }
    th,td {
        padding: 8px;
        border: 1px solid #ddd
    }
    .print-only {
        display: block
    }
    .voucher {
        margin: 0;
        padding: 0;
        border: 0;
        max-width: none
    }
    .voucher-signatures {
        margin-top: 70px
    }
    a {
        color: #000
    }
    .notice {
        border: 1px solid #ddd;
        background: white
    }
    .form-message {
        display: none
    }
    @page {
        size: A4;
        margin: 15mm
    }
}
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    flex-shrink: 0
}
.stat:hover {
    text-decoration: none;
    border-color: #b8d5c9
}
.hero a:hover {
    text-decoration: none
}
/* The application shell stays fixed; only the content area scrolls. */
.app-main {
    padding-top: 75px;
    padding-bottom: 55px
}
.topbar {
    position: fixed;
    left: 244px;
    right: 0;
    top: 0;
    height: 75px;
    z-index: 25
}
.app-footer {
    position: fixed;
    left: 244px;
    right: 0;
    bottom: 0;
    height: 55px;
    background: #f4f7f6;
    z-index: 25;
    align-items: center;
    box-shadow: 0 -6px 20px #17363e03
}
.app-footer>span {
    white-space: nowrap
}
@media(min-width:701px) {
    body.sidebar-collapsed .topbar,
    body.sidebar-collapsed .app-footer {
        left: 72px
    }
}
@media(max-width:1200px) {
    .topbar,.app-footer {
        left: 210px
    }
    .app-footer {
        font-size: 8px;
        padding-left: 25px;
        padding-right: 25px
    }
}
@media(max-width:960px) {
    .app-footer .footer-credit {
        display: none
    }
    .app-footer {
        gap: 10px
    }
    .app-footer>span:last-child {
        font-size: 8px
    }
}
@media(max-width:700px) {
    .app-main {
        padding-top: 62px;
        padding-bottom: 78px
    }
    .topbar {
        left: 0;
        height: 62px
    }
    .app-footer {
        left: 0;
        height: 78px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 2px;
        padding: 12px 17px
    }
    .app-footer>span {
        white-space: normal
    }
    .app-footer>span:last-child {
        font-size: 8px
    }
}
@media print {
    .app-main {
        padding: 0
    }
    .topbar,.app-footer {
        display: none!important
    }
}
.dt-top,.dt-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 23px;
    gap: 16px;
    border-top: 1px solid var(--line);
    font-size: 10px;
    color: var(--muted)
}
.dt-top label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 10px;
    font-weight: 400
}
.dt-top input,.dt-top select {
    margin: 0;
    width: auto;
    min-height: 31px;
    padding: 6px 9px;
    font-size: 10px
}
.dt-top input {
    max-width: 210px
}
.dataTables_paginate {
    display: flex;
    align-items: center;
    gap: 5px
}
.paginate_button {
    border: 1px solid var(--line);
    padding: 5px 9px;
    border-radius: 5px;
    color: var(--muted);
    font-size: 10px;
    cursor: pointer;
    margin-left: 3px
}
.paginate_button.current {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal)
}
.paginate_button.disabled {
    opacity: .35;
    cursor: default
}
.dataTables_processing {
    padding: 12px 23px;
    background: var(--mint);
    color: var(--teal);
    font-size: 11px
}
.dataTables_empty {
    text-align: center!important;
    padding: 38px!important
}
.sorting,.sorting_asc,.sorting_desc {
    cursor: pointer
}
.sorting:after {
    content: ' ↕';
    color: #bdcac7
}
.sorting_asc:after {
    content: ' ↑';
    color: var(--teal)
}
.sorting_desc:after {
    content: ' ↓';
    color: var(--teal)
}
.wrap-text {
    white-space: normal;
    display: block;
    max-width: 500px;
    overflow-wrap: anywhere
}
.filters {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px
}
.filters label {
    margin: 0;
    min-width: 150px
}
.filters select {
    font-size: 11px
}
.dt-top .dataTables_filter {
    margin-left: auto
}
.store-data td:last-child .form-message {
    max-width: 290px
}
.store-data {
    width: 100%!important
}
@media(max-width:700px) {
    .dt-top,.dt-bottom {
        flex-wrap: wrap;
        padding: 13px 15px
    }
    .dt-top .dataTables_filter {
        margin-left: 0
    }
    .dt-top input {
        max-width: 160px
    }
    .dt-bottom {
        gap: 12px
    }
    .dataTables_paginate {
        flex-wrap: wrap
    }
    .filters label {
        min-width: 130px;
        flex: 1
    }
}
@media print {
    .dt-top,.dt-bottom,.dataTables_processing {
        display: none!important
    }
}
.select2-container {
    max-width: 100%;
    font-size: 12px
}
.select2-container--default .select2-selection--single {
    height: 45px;
    border: 1px solid #d9e3e1;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 13px;
    padding-right: 32px;
    color: var(--ink);
    line-height: 22px;
    font-weight: 400
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
    right: 8px
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #8ca6a5 transparent transparent transparent;
    border-width: 4px 4px 0
}
.select2-container--default.select2-container--open .select2-selection--single,.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px #147d7312
}
.select2-dropdown {
    border: 1px solid #bed8ce;
    border-radius: 8px;
    box-shadow: 0 12px 30px #102c3515;
    overflow: hidden;
    z-index: 1050
}
.select2-search--dropdown {
    padding: 9px
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    min-height: 35px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 12px;
    padding: 7px 10px;
    margin: 0
}
.select2-container--default .select2-results__option {
    padding: 10px 13px;
    font-size: 12px;
    color: #45616a
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--teal);
    color: #fff
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background: #edf6f1;
    color: var(--teal)
}
.select2-container--default .select2-results>.select2-results__options {
    max-height: 260px
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #8a9c9f
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 9px;
    color: #9badaa;
    font-weight: 400
}
.filters .select2-container {
    min-width: 150px
}
.line-items .select2-container {
    min-width: 220px
}
.store-data .select2-container {
    min-width: 140px
}
.select2-container--disabled .select2-selection--single {
    background: #f3f6f5!important
}
.select2-selection:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px
}
@media print {
    .select2-container {
        display: none!important
    }
}

/* Shared line-item actions: purchase orders and departmental requisitions. */
.btn.line-add {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
}
.btn.line-add:hover {
    color: #fff;
    background: #1d4ed8;
    border-color: #1d4ed8;
}
.btn.line-remove {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}
.btn.line-remove:hover {
    color: #fff;
    background: #b91c1c;
    border-color: #b91c1c;
}
.btn.line-add:focus-visible,
.btn.line-remove:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}
.btn.line-remove svg {
    flex-shrink: 0;
}

/* The public portal shares the stores palette while keeping a separate staff-free layout. */
.portal-header {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--navy);
    padding: 20px max(24px, calc((100vw - 1400px) / 2));
}
.portal-header .wordmark { margin: 0; }
.portal-main { max-width: 1448px; margin: auto; padding: 48px 24px 85px; }
.portal-intro { max-width: 780px; margin-bottom: 36px; }
.portal-intro h1 { font-size: clamp(28px, 3.2vw, 44px); }
.portal-intro p { color: var(--muted); font-size: 16px; margin: 18px 0 24px; }
.portal-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 25px; align-items: start; }
.portal-columns .form-panel { max-width: none; min-width: 0; padding: 30px; }
.portal-columns h2 { margin-bottom: 24px; }
.portal-tracking > p { margin-bottom: 25px; }
.portal-tracking .portal-status { margin-top: 25px; border-top: 1px solid var(--line); }
.portal-status .panel-header { padding: 22px 0; }
.portal-status .panel-body p { margin: 10px 0; overflow-wrap: anywhere; }
.portal-status .pill { white-space: normal; }
.portal-confirmation { padding: 30px; margin-bottom: 28px; border-color: #a8d5c4; }
.portal-confirmation p { margin: 12px 0; }
.tracking-code { display: block; padding: 15px; background: var(--mint); border-radius: 8px; color: var(--teal); font-size: clamp(13px, 2vw, 22px); overflow-wrap: anywhere; }
.portal-quantity { width: 125px; }
.portal-line-actions { margin: 20px 0; }
.portal-line-actions + p { margin-bottom: 20px; font-size: 12px; }
.portal-help { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; color: var(--muted); font-size: 12px; }
.portal-help h3 { color: var(--ink); margin-bottom: 8px; }
.portal-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.portal-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; background: var(--bg); border-top: 1px solid var(--line); padding: 16px 24px; color: var(--muted); font-size: 11px; text-align: center; }
.request-origin { color: var(--muted); font-size: 10px; }
.request-origin .btn { background: #edf4f3; padding: 2px 8px; border-color: transparent; font-size: 10px; font-weight: 500; }
@media (max-width: 1000px) {
    .portal-columns { grid-template-columns: minmax(0, 1fr); }
    .portal-header .wordmark small { display: none; }
}
@media (max-width: 600px) {
    .portal-header { padding: 14px 16px; }
    .portal-header .wordmark { font-size: 15px; gap: 10px; }
    .portal-header .wordmark img { width: 36px; height: 42px; }
    .portal-main { padding: 30px 14px 85px; }
    .portal-columns .form-panel { padding: 20px 16px; }
    .portal-quantity { width: 90px; }
    .portal-status td, .portal-status th { padding: 12px 8px; }
}

/* Native title tooltips and accessible labels retain each row action's meaning. */
.btn.table-action {
    width: 35px;
    height: 35px;
    min-height: 35px;
    padding: 7px;
    border-radius: 8px;
    gap: 0;
    flex-shrink: 0;
}
.table-action svg { width: 18px; height: 18px; }
.btn.table-action.action-blue { color: #1d4ed8; background: #eff6ff; border-color: #dbeafe; }
.btn.table-action.action-teal { color: #0f766e; background: #edf8f4; border-color: #cce8df; }
.btn.table-action.action-slate { color: #526477; background: #f1f5f9; border-color: #e2e8f0; }
.btn.table-action.action-purple { color: #7c3aed; background: #f5f3ff; border-color: #ede9fe; }
.btn.table-action.action-amber { color: #a16207; background: #fffbeb; border-color: #fde68a; }
.btn.table-action:hover { filter: brightness(.95); border-color: currentColor; text-decoration: none; }
.btn.table-action:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.record-detail-list { margin: 0; padding: 8px 22px 22px; }
.record-detail-list > div { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line, #e4ebeb); }
.record-detail-list dt { color: var(--muted, #71828b); font-weight: 700; }
.record-detail-list dd { margin: 0; color: var(--ink, #16343b); overflow-wrap: anywhere; }
@media (max-width: 600px) { .record-detail-list > div { grid-template-columns: 1fr; gap: 5px; } }
@media (pointer: coarse) {
    .btn.table-action { width: 44px; height: 44px; min-height: 44px; }
}

.portal-header .wordmark,
.portal-header .wordmark:hover {
    color: #ffffff;
}
.portal-header .wordmark small {
    color: #c5dadb;
}

/* Successful saves remain visible after redirects until explicitly dismissed. */
.save-confirmation {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 80;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: min(480px, calc(100vw - 32px));
    padding: 16px 18px;
    border: 1px solid #a7d5be;
    border-left: 4px solid #178064;
    border-radius: 10px;
    background: #edf8f1;
    color: #215a45;
    box-shadow: 0 8px 28px #102c3520;
    font-size: 14px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.save-confirmation-close {
    flex-shrink: 0;
    border: 0;
    padding: 0 4px;
    background: transparent;
    color: #215a45;
    font-size: 24px;
    line-height: 1;
}
@media print {
    .save-confirmation { display: none; }
}
/* CSV review marks only the cells needing correction; matching summary bullets use the same tones. */
.import-validation-summary { margin: 14px 0 18px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; }
.import-validation-summary h3 { margin: 0 0 8px; font-size: 14px; }
.import-validation-summary ul { margin: 0; padding-left: 22px; }
.import-validation-summary li { margin: 6px 0; padding: 7px 10px; border-left: 4px solid; border-radius: 4px; font-size: 12px; line-height: 1.5; }
.import-cell-error { font-weight: 700; box-shadow: inset 0 0 0 2px currentColor; }
.import-tone-red { background: #fff0ed !important; border-color: #bd493d !important; color: #9f3329 !important; }
.import-tone-orange { background: #fff5e6 !important; border-color: #d28a22 !important; color: #80510e !important; }
.import-tone-blue { background: #edf5ff !important; border-color: #5688c9 !important; color: #315e98 !important; }
.import-tone-green { background: #edf8f1 !important; border-color: #31835c !important; color: #24633f !important; }
.import-tone-purple { background: #f3efff !important; border-color: #8063c7 !important; color: #594294 !important; }
.import-tone-teal { background: #e9f7f6 !important; border-color: #268e87 !important; color: #176963 !important; }
.import-tone-yellow { background: #fffbe5 !important; border-color: #c2a52e !important; color: #786514 !important; }
.import-tone-pink { background: #fff0f5 !important; border-color: #ce6388 !important; color: #913c5b !important; }
.import-tone-gray { background: #f0f3f4 !important; border-color: #71838a !important; color: #495c63 !important; }
[data-import-progress] progress { width: 180px; accent-color: #137f73; vertical-align: middle; }
.import-instructions-content { padding: 6px 24px 18px; font-family: system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.7; color: #48636a; }
.import-instructions-content ul { margin: 8px 0 0; padding-left: 24px; }
.import-instructions-content li { padding: 4px 0 4px 3px; }
.import-sample-note { padding: 14px 22px 0; color: #70858a; font: 13px/1.6 system-ui, -apple-system, sans-serif; }
.import-preview-scroll { max-height: 430px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 8px; }
.import-preview-scroll table { min-width: 1500px; }
.import-preview-scroll th { position: sticky; top: 0; z-index: 1; }
