:root {
    --app-black: #151515;
    --app-red: #c62828;
    --app-amber: #f5b400;
    --app-gray: #f3f4f6;
    --app-border: #d9dade;
    --app-muted: #76777c;
    --app-white: #ffffff;
}

.page-loading-overlay {
    display: grid;
    position: fixed;
    z-index: 99999;
    inset: 0;
    align-content: center;
    justify-items: center;
    gap: 12px;
    visibility: hidden;
    opacity: 0;
    background: rgba(245, 246, 248, .94);
    backdrop-filter: blur(2px);
    transition: opacity .2s ease, visibility .2s ease;
    pointer-events: none;
}
.page-loading-overlay.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.page-loading-spinner {
    display: block;
    width: 34px;
    height: 34px;
    border: 3px solid #dfe0e3;
    border-top-color: var(--app-amber);
    border-radius: 50%;
    animation: page-loading-spin .7s linear infinite;
}
.page-loading-message {
    color: var(--app-black);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: .2px;
}
@keyframes page-loading-spin {
    to { transform: rotate(360deg); }
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; }

body {
    margin: 0;
    color: var(--app-black);
    background: var(--app-gray);
    font-family: "Barlow", sans-serif;
    font-size: 14px;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.material-symbols-rounded {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(100%, 390px);
    padding: 34px;
    border: 1px solid rgba(21, 21, 21, .09);
    border-radius: 18px;
    background: var(--app-white);
    box-shadow: 0 12px 35px rgba(21, 21, 21, .06);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    font-size: 14px;
    font-weight: 400;
}

.login-brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    color: var(--app-black);
    background: var(--app-amber);
    font-size: 20px;
}

.login-panel h1 {
    margin: 0 0 26px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -.025em;
}

.login-field + .login-field { margin-top: 16px; }

.login-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 300;
}

.login-control-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 50px;
    border: 1px solid var(--app-border);
    border-radius: 11px;
    background: var(--app-white);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.login-control-wrap:hover,
.login-control-wrap:focus-within {
    border-color: var(--app-amber);
    box-shadow: 0 0 0 3px rgba(245, 180, 0, .14);
}

.login-control-wrap.has-error {
    border-color: var(--app-red);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, .09);
}

.login-control-wrap > .material-symbols-rounded {
    margin-left: 14px;
    color: #929398;
    font-size: 19px;
}

.login-control-wrap input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    color: var(--app-black);
    background: transparent;
    font-size: 13px;
    font-weight: 300;
}

.login-control-wrap input::placeholder { color: #a1a2a7; }

.password-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    margin-right: 5px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #85868b;
    background: transparent;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--app-black);
    background: #f1f1f2;
    outline: none;
}

.password-toggle .material-symbols-rounded { font-size: 19px; }

.field-error {
    display: block;
    min-height: 17px;
    margin: 5px 0 0 2px;
    color: var(--app-red);
    font-size: 11px;
    font-weight: 300;
}

.login-submit {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 16px;
    border: 0;
    border-radius: 11px;
    color: var(--app-white);
    background: var(--app-black);
    font-size: 13px;
    font-weight: 300;
    text-decoration: none;
    transition: background 150ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    color: var(--app-white);
    background: #2c2c2c;
    outline: none;
}

.login-submit:disabled { cursor: wait; opacity: .72; }
.login-submit .material-symbols-rounded { font-size: 19px; }
.button-spinner {
    display: none;
    width: 17px;
    height: 17px;
    margin-left: auto;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: var(--app-white);
    border-radius: 50%;
    animation: button-spin .7s linear infinite;
}
.login-submit.is-loading .button-spinner { display: block; }
.login-submit.is-loading .login-submit-arrow { display: none; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.session-name { margin: -14px 0 20px; color: var(--app-muted); }

.swal2-popup.login-alert {
    width: min(92vw, 370px);
    padding: 24px;
    border-radius: 16px;
    font-family: "Barlow", sans-serif;
}
.swal2-title.login-alert-title { font-size: 21px; font-weight: 700; }
.swal2-html-container.login-alert-copy { color: var(--app-muted); font-size: 14px; }
.swal2-confirm.login-alert-button {
    min-width: 96px;
    border-radius: 9px;
    background: var(--app-black) !important;
    font-weight: 300;
}

.swal2-popup.signout-dialog {
    width: min(92vw, 340px);
    padding: 24px;
    border-radius: 14px;
    font-family: "Barlow", sans-serif;
}
.swal2-title.signout-dialog-title {
    padding: 0;
    color: var(--app-black);
    font-size: 14px;
    font-weight: 400;
}
.swal2-html-container.signout-dialog-copy {
    margin: 9px 0 0;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 300;
}
.swal2-actions.signout-dialog-actions {
    width: 100%;
    gap: 8px;
    margin: 22px 0 0;
}
.signout-confirm,
.signout-cancel {
    min-width: 88px;
    padding: 9px 16px;
    border: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 300;
}
.signout-confirm {
    color: var(--app-black);
    background: var(--app-amber);
}
.signout-confirm:hover { background: #e4a800; }
.signout-cancel {
    color: var(--app-white);
    background: var(--app-black);
}
.signout-cancel:hover { background: #2c2c2c; }

.dashboard-shell { min-height: 100vh; background: var(--app-gray); }
.dashboard-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid var(--app-border);
    background: var(--app-white);
}
.dashboard-brand, .dashboard-user, .dashboard-signout { display: flex; align-items: center; }
.dashboard-brand { gap: 9px; color: var(--app-black); font-size: 14px; font-weight: 400; text-decoration: none; }
.dashboard-brand-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    color: var(--app-black);
    background: var(--app-amber);
    font-size: 18px;
}
.dashboard-user { gap: 18px; color: var(--app-muted); font-size: 12px; }
.dashboard-signout {
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid var(--app-border);
    border-radius: 9px;
    color: var(--app-black);
    background: var(--app-white);
    font-size: 12px;
    text-decoration: none;
}
.dashboard-signout:hover { color: var(--app-black); background: #ededee; }
.dashboard-signout .material-symbols-rounded { font-size: 16px; }
.dashboard-main { width: min(100% - 40px, 1180px); margin: 0 auto; padding: 34px 0; }
.dashboard-title-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.dashboard-title-actions { display: flex; align-items: center; gap: 10px; }
.dashboard-eyebrow { color: var(--app-red); font-size: 12px; font-weight: 400; }
.dashboard-title-row h1 { margin: 5px 0 0; font-size: 14px; font-weight: 400; }
.dashboard-date { color: var(--app-muted); font-size: 12px; }
.dashboard-add-item {
    display: inline-flex;
    height: 36px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    color: var(--app-white);
    background: var(--app-black);
    font-size: 12px;
    font-weight: 300;
    text-decoration: none;
}
.dashboard-add-item:hover, .dashboard-add-item:focus-visible { color: var(--app-white); background: #2c2c2c; outline: none; }
.dashboard-add-item .material-symbols-rounded { font-size: 17px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dashboard-stat {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: var(--app-white);
}
.dashboard-stat span { color: var(--app-muted); font-size: 12px; }
.dashboard-stat strong { font-size: 14px; font-weight: 400; }
.dashboard-panel { margin-top: 14px; border: 1px solid var(--app-border); border-radius: 12px; background: var(--app-white); }
.dashboard-panel-heading { padding: 16px 18px; border-bottom: 1px solid var(--app-border); }
.dashboard-panel-heading h2 { margin: 0; font-size: 13px; font-weight: 400; }
.dashboard-empty { display: grid; min-height: 210px; place-items: center; align-content: center; gap: 7px; color: #999a9f; }
.dashboard-empty .material-symbols-rounded { font-size: 24px; }
.dashboard-empty p { margin: 0; font-size: 12px; }

.request-builder {
    margin-bottom: 14px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: var(--app-white);
    overflow: hidden;
}
.request-modal-dialog { max-width: min(1120px, calc(100vw - 30px)); }
.request-modal-content {
    border: 0;
    border-radius: 14px;
    background: var(--app-white);
    box-shadow: 0 24px 70px rgba(21, 21, 21, .18);
    overflow: visible;
}
.request-modal .request-builder {
    margin: 0;
    border: 0;
    border-radius: 14px;
    overflow: visible;
}
.request-builder-header-actions { display: flex; align-items: center; gap: 8px; }
.request-modal-close {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--app-muted);
    background: transparent;
}
.request-modal-close:hover, .request-modal-close:focus-visible { color: var(--app-black); background: var(--app-gray); outline: none; }
.request-modal-close .material-symbols-rounded { font-size: 18px; }
.request-modal .ts-dropdown { z-index: 1080; }
.modal-backdrop.show { opacity: .35; }
.request-builder-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--app-border);
}
.request-builder-heading h2 { margin: 4px 0 0; font-size: 14px; font-weight: 400; }
.request-draft-count {
    padding: 6px 9px;
    border-radius: 8px;
    color: var(--app-muted);
    background: var(--app-gray);
    font-size: 12px;
}
.request-draft-count span { color: var(--app-black); font-weight: 400; }
.request-builder-fields {
    display: grid;
    grid-template-columns: minmax(260px, 1.45fr) 90px minmax(230px, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 18px;
}
.request-form-field { min-width: 0; }
.request-step {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e5e5e7;
    border-radius: 11px;
    background: #fafafa;
}
.request-step-heading { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.request-step-number {
    display: grid;
    flex: 0 0 24px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    color: var(--app-black);
    background: var(--app-amber);
    font-size: 12px;
    font-weight: 400;
}
.request-step-heading strong, .request-step-heading small { display: block; }
.request-step-heading strong { margin: 1px 0 3px; font-size: 13px; font-weight: 400; }
.request-step-heading small { color: var(--app-muted); font-size: 12px; font-weight: 300; }
.request-step label {
    display: block;
    margin-bottom: 6px;
    color: var(--app-black);
    font-size: 12px;
    font-weight: 300;
}
.request-item-row {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) 90px auto;
    gap: 9px;
    align-items: end;
}
.request-quantity-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 11px;
    border: 1px solid var(--app-border);
    border-radius: 9px;
    outline: none;
    color: var(--app-black);
    background: var(--app-white);
    font-size: 13px;
    font-weight: 300;
}
.request-quantity-wrap input:hover,
.request-quantity-wrap input:focus {
    border-color: var(--app-amber);
    box-shadow: 0 0 0 3px rgba(245, 180, 0, .13);
}
.request-add-button {
    display: inline-flex;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    color: var(--app-white);
    background: var(--app-black);
    font-size: 12px;
    font-weight: 300;
    white-space: nowrap;
    margin-top: 23px;
}
.request-add-button:hover, .request-add-button:focus-visible { background: #2c2c2c; outline: none; }
.request-add-button .material-symbols-rounded { font-size: 17px; }
.request-selection-note {
    min-height: 16px;
    margin-top: 7px;
    color: var(--app-muted);
    font-size: 11px;
    font-weight: 300;
}

.request-builder .ts-wrapper { width: 100%; }
.request-builder .ts-control {
    min-height: 44px;
    align-items: center;
    padding: 9px 11px;
    border: 1px solid var(--app-border);
    border-radius: 9px;
    color: var(--app-black);
    background: var(--app-white);
    font-size: 13px;
    font-weight: 300;
    box-shadow: none;
}
.request-builder .ts-wrapper:not(.disabled) .ts-control:hover,
.request-builder .ts-wrapper.focus .ts-control {
    border-color: var(--app-amber);
    box-shadow: 0 0 0 3px rgba(245, 180, 0, .13);
}
.request-builder .ts-wrapper.disabled { opacity: .55; }
.request-builder .ts-dropdown {
    margin-top: 5px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 300;
    box-shadow: 0 12px 28px rgba(21, 21, 21, .1);
    overflow: hidden;
}
.request-builder .ts-dropdown .option { padding: 9px 11px; }
.request-builder .ts-dropdown .active { color: var(--app-black); background: #fff7d8; }
.request-option strong, .request-option small { display: block; }
.request-option strong { font-size: 12px; font-weight: 400; }
.request-option small { margin-top: 2px; color: var(--app-muted); font-size: 11px; font-weight: 300; }

.request-draft-table-wrap { border-top: 1px solid var(--app-border); overflow-x: auto; }
.request-draft-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.request-draft-table th {
    padding: 10px 16px;
    color: var(--app-muted);
    background: #fafafa;
    font-weight: 300;
    text-align: left;
    white-space: nowrap;
}
.request-draft-table td {
    padding: 12px 16px;
    border-top: 1px solid #eeeeef;
    color: var(--app-muted);
    font-weight: 300;
    vertical-align: middle;
}
.request-draft-table td:first-child { color: var(--app-black); }
.request-draft-table td strong { font-weight: 400; }
.request-draft-table th:last-child, .request-draft-table td:last-child { width: 50px; text-align: right; }
.request-draft-empty-row td { height: 74px; color: #999a9f; text-align: center !important; }
.returnable-label {
    display: inline-block;
    margin-left: 7px;
    padding: 3px 6px;
    border-radius: 6px;
    color: #6a4d00;
    background: #fff2bd;
    font-size: 10px;
    font-weight: 400;
}
.draft-remove-button {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: var(--app-muted);
    background: transparent;
}
.draft-remove-button:hover, .draft-remove-button:focus-visible { color: var(--app-black); background: #ededee; outline: none; }
.draft-remove-button .material-symbols-rounded { font-size: 17px; }

.swal2-popup.request-dialog {
    width: min(92vw, 340px);
    padding: 24px;
    border-radius: 14px;
    font-family: "Barlow", sans-serif;
}
.swal2-title.request-dialog-title { padding: 0; color: var(--app-black); font-size: 14px; font-weight: 400; }
.swal2-html-container.request-dialog-copy { margin: 9px 0 0; color: var(--app-muted); font-size: 12px; font-weight: 300; }
.request-dialog-confirm {
    min-width: 88px;
    padding: 9px 16px;
    border: 0;
    border-radius: 9px;
    color: var(--app-black);
    background: var(--app-amber);
    font-size: 12px;
    font-weight: 300;
}
.request-dialog-confirm:hover { background: #e4a800; }

.batch-request-main {
    width: min(100% - 40px, 1040px);
    margin: 0 auto;
    padding: 8px 0 32px;
}
.batch-request-banner {
    display: grid;
    height: 42px;
    place-items: center;
    color: var(--app-black);
    background: var(--app-amber);
    font-size: 13px;
    font-weight: 400;
}
.batch-request-workspace { padding: 46px 0 0; }
.batch-request-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 4px;
}
.batch-request-title-wrap { display: flex; align-items: center; gap: 13px; }
.batch-request-title-wrap h1 { margin: 5px 0 0; font-size: 14px; font-weight: 400; }
.batch-back-button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    color: var(--app-black);
    text-decoration: none;
}
.batch-back-button:hover { color: var(--app-black); background: #ededee; }
.batch-back-button .material-symbols-rounded { font-size: 18px; }
.batch-request-date { color: var(--app-muted); font-size: 12px; }
.batch-request-rule { height: 1px; margin: 20px 0 0; background: var(--app-border); }
.batch-request-controls {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 100px 132px;
    gap: 14px;
    align-items: start;
    margin-top: 32px;
    padding: 0 0 18px;
}
.batch-control-field { min-width: 0; }
.batch-control-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--app-black);
    font-size: 12px;
    font-weight: 300;
}
.batch-control-field small {
    display: block;
    min-height: 14px;
    margin-top: 6px;
    color: var(--app-muted);
    font-size: 11px;
    font-weight: 300;
}
.batch-quantity-control { align-self: start; }
.batch-quantity-control input {
    width: 100%;
    height: 42px;
    padding: 0 11px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    outline: none;
    color: var(--app-black);
    background: var(--app-white);
    font-size: 13px;
    font-weight: 300;
}
.batch-quantity-control input:hover,
.batch-quantity-control input:focus {
    border-color: var(--app-amber);
    box-shadow: 0 0 0 2px rgba(245, 180, 0, .12);
}
.batch-add-area {
    position: relative;
    padding-top: 20px;
}
.batch-item-counter {
    display: inline-flex;
    position: absolute;
    top: -12px;
    right: 0;
    min-width: 68px;
    height: 24px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 9px;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    color: var(--app-muted);
    background: var(--app-white);
    font-size: 11px;
    font-weight: 300;
    white-space: nowrap;
}
.batch-item-counter #draftLineCount { color: var(--app-black); }
.batch-add-button {
    display: flex;
    width: 100%;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 8px;
    color: var(--app-black);
    background: var(--app-amber);
    font-size: 12px;
    font-weight: 300;
}
.batch-add-button:hover, .batch-add-button:focus-visible { background: #e4a800; outline: none; }
.batch-add-button .material-symbols-rounded { font-size: 16px; }

.batch-request-workspace .ts-wrapper { width: 100%; }
.batch-request-workspace .ts-control {
    min-height: 42px;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    color: var(--app-black);
    background: var(--app-white);
    font-size: 13px;
    font-weight: 300;
    box-shadow: none;
}
.batch-request-workspace .ts-wrapper:not(.disabled) .ts-control:hover,
.batch-request-workspace .ts-wrapper.focus .ts-control {
    border-color: var(--app-amber);
    box-shadow: 0 0 0 2px rgba(245, 180, 0, .12);
}
.batch-request-workspace .ts-dropdown {
    margin-top: 5px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font-size: 12px;
    box-shadow: 0 12px 28px rgba(21, 21, 21, .1);
    overflow: hidden;
}
.batch-request-workspace .ts-dropdown .option { padding: 9px 11px; }
.batch-request-workspace .ts-dropdown .active { color: var(--app-black); background: #fff7d8; }

.batch-table-wrap {
    min-height: 226px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: var(--app-white);
    overflow-x: auto;
}
.batch-request-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.batch-request-table th {
    padding: 10px 12px;
    color: var(--app-black);
    background: #ededee;
    font-weight: 300;
    text-align: center;
}
.batch-request-table td {
    padding: 11px 12px;
    border-top: 1px solid #eeeeef;
    color: var(--app-muted);
    font-weight: 300;
    text-align: center;
}
.batch-request-table td:first-child { color: var(--app-black); text-align: left; }
.batch-request-table td strong { font-weight: 400; }
.batch-request-table th:first-child { text-align: left; }
.batch-request-table th:last-child, .batch-request-table td:last-child { width: 90px; }
.batch-empty-row td { height: 176px; color: #999a9f; text-align: center !important; vertical-align: middle; }

.batch-issue-row {
    margin-top: 16px;
}
.batch-issued-to-display {
    display: grid;
    min-height: 42px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 0 7px 0 10px;
    border: 1px solid var(--app-border);
    border-radius: 9px;
    background: var(--app-white);
}
.batch-issued-to-display:focus-within {
    border-color: var(--app-amber);
    box-shadow: 0 0 0 2px rgba(245, 180, 0, .12);
}
.batch-issued-to-label {
    padding: 4px 6px;
    border: 0;
    border-radius: 5px;
    color: var(--app-muted);
    background: transparent;
    font-size: 11px;
    font-weight: 300;
    cursor: pointer;
}
.batch-issued-to-label:hover,
.batch-issued-to-label:focus-visible {
    color: var(--app-black);
    background: rgba(245, 180, 0, .18);
    outline: none;
}
.batch-issued-to-display strong { color: var(--app-black); font-size: 12px; font-weight: 300; }
.batch-issued-to-clear {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: var(--app-muted);
    background: transparent;
}
.batch-issued-to-clear:hover, .batch-issued-to-clear:focus-visible { color: var(--app-black); background: var(--app-gray); outline: none; }
.batch-issued-to-clear .material-symbols-rounded { font-size: 17px; }

.batch-request-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}
.batch-save-draft,
.batch-save-submit {
    min-width: 128px;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 300;
}
.batch-save-draft {
    color: var(--app-white);
    background: var(--app-black);
}
.batch-save-draft:hover,
.batch-save-draft:focus-visible {
    background: #2c2c2c;
    outline: none;
}
.batch-save-submit {
    color: var(--app-black);
    background: var(--app-amber);
}
.batch-save-submit:hover,
.batch-save-submit:focus-visible {
    background: #e4a800;
    outline: none;
}

.issue-to-modal-dialog { max-width: min(420px, calc(100vw - 24px)); }
.issue-to-modal-content {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 20px 55px rgba(21, 21, 21, .16);
    overflow: visible;
}
.issue-to-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid var(--app-border);
}
.issue-to-modal-header h2 { margin: 0; font-size: 14px; font-weight: 400; }
.issue-to-modal-header p { margin: 5px 0 0; color: var(--app-muted); font-size: 12px; font-weight: 300; }
.issue-to-modal-close {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: var(--app-muted);
    background: transparent;
}
.issue-to-modal-close:hover { color: var(--app-black); background: var(--app-gray); }
.issue-to-modal-close .material-symbols-rounded { font-size: 18px; }
.issue-to-modal-body { padding: 18px; }
.issue-to-modal-body label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 300; }
.issue-to-modal .ts-control {
    min-height: 42px;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid var(--app-border);
    border-radius: 9px;
    color: var(--app-black);
    background: var(--app-white);
    font-size: 13px;
    font-weight: 300;
    box-shadow: none;
}
.issue-to-modal .ts-wrapper:not(.disabled) .ts-control:hover,
.issue-to-modal .ts-wrapper.focus .ts-control {
    border-color: var(--app-amber);
    box-shadow: 0 0 0 2px rgba(245, 180, 0, .12);
}
.issue-to-modal .ts-dropdown {
    z-index: 1090;
    margin-top: 5px;
    border: 1px solid var(--app-border);
    border-radius: 9px;
    font-size: 12px;
    box-shadow: 0 12px 28px rgba(21, 21, 21, .1);
    overflow: hidden;
}
.issue-to-modal .ts-dropdown .option { padding: 9px 11px; }
.issue-to-modal .ts-dropdown .active { color: var(--app-black); background: #fff7d8; }
.issue-to-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px 18px;
}
.issue-to-cancel, .issue-to-assign {
    min-width: 82px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 300;
}
.issue-to-cancel { color: var(--app-white); background: var(--app-black); }
.issue-to-cancel:hover { background: #2c2c2c; }
.issue-to-assign { color: var(--app-black); background: var(--app-amber); }
.issue-to-assign:hover { background: #e4a800; }

@media (max-width: 760px) {
    .batch-request-workspace { padding-top: 32px; }
    .batch-request-controls { grid-template-columns: minmax(0, 1fr) 90px 128px; gap: 10px; }
    .batch-add-area { grid-column: auto; padding-top: 20px; }
    .batch-item-counter { top: -12px; }
    .batch-add-button { width: 100%; margin-left: 0; }
    .batch-request-table { min-width: 620px; }
}

@media (max-width: 520px) {
    .batch-request-main { width: min(100% - 20px, 970px); }
    .batch-request-title-row { padding: 0; }
    .batch-request-date { display: none; }
    .batch-request-controls { grid-template-columns: minmax(0, 1fr) 82px; padding-inline: 0; }
    .batch-add-area { display: flex; grid-column: 1 / -1; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 0; }
    .batch-item-counter { position: static; }
    .batch-add-button { width: 128px; }
    .batch-request-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .batch-save-draft, .batch-save-submit { min-width: 0; width: 100%; }
}

@media (max-width: 900px) {
    .request-builder-fields.request-builder-simple { grid-template-columns: minmax(0, 1fr) 90px; }
    .request-technician-field { grid-column: 1 / -1; }
    .request-builder-simple .request-add-button { grid-column: 1 / -1; margin-top: 0; }
}

@media (max-width: 650px) {
    .request-builder-heading { align-items: flex-start; gap: 12px; }
    .request-item-row { grid-template-columns: 1fr 85px; }
    .request-add-button { grid-column: 1 / -1; }
    .request-draft-table { min-width: 620px; }
    .request-modal-dialog { max-width: calc(100vw - 18px); margin: 9px auto; }
    .request-modal-content { border-radius: 12px; }
    .request-builder-fields.request-builder-simple { grid-template-columns: 1fr; padding: 14px; }
    .request-technician-field, .request-builder-simple .request-add-button { grid-column: auto; }
}

@media (max-width: 480px) {
    .login-shell { padding: 15px; background: var(--app-white); }
    .login-panel { padding: 24px 8px; border: 0; box-shadow: none; }
    .dashboard-header { padding: 0 15px; }
    .dashboard-user > span { display: none; }
    .dashboard-main { width: min(100% - 30px, 1180px); padding: 25px 0; }
    .dashboard-date { display: none; }
    .dashboard-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
