:root {
    --bg-color: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --card-bg: rgba(255, 255, 255, 0.75);
    --accent-color: #0071e3;
    --border-radius: 20px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --transition-spring: 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 10% 30%, rgba(0, 113, 227, 0.03), transparent 30%),
                      radial-gradient(circle at 90% 80%, rgba(52, 199, 89, 0.02), transparent 30%);
    color: var(--text-primary);
    display: flex;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

body.admin-page {
    display: block;
    min-height: 100vh;
    height: auto;
    overflow: auto;
}

.hidden {
    display: none !important;
}

.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 24px;
}

.login-overlay.active {
    display: flex;
}

.login-box {
    width: min(420px, 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.login-title {
    margin-bottom: 22px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 800;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 18px;
    color: var(--text-secondary);
    font-size: 13px;
}

.remember-row input {
    width: auto;
}

.login-message {
    min-height: 20px;
    margin-top: 12px;
    color: #d70015;
    font-size: 13px;
}

.user-pill {
    margin: -30px 0 28px 16px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.admin-shell {
    width: min(960px, calc(100vw - 32px));
    margin: 48px auto;
}

.admin-card {
    margin-bottom: 20px;
}

.sidebar {
    width: 260px;
    padding: 40px 20px;
    background: rgba(245, 245, 247, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 40px;
    padding-left: 16px;
    letter-spacing: 0;
    color: var(--text-primary);
    cursor: default;
    user-select: none;
}

.nav-item {
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
    transition: all 0.25s ease;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
}

.nav-item.active {
    background: #fff;
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.main-content {
    flex: 1;
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.page {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    pointer-events: none;
    transition: transform var(--transition-spring), opacity var(--transition-spring);
}

.page.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.status-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
}

.inbound-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) minmax(300px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.inbound-panel {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.inbound-panel .panel-title {
    margin-bottom: 0;
}

.inbound-panel > .form-group,
.inbound-panel > .modal-grid,
.inbound-panel > .form-grid,
.inbound-panel > .inbound-total {
    margin-bottom: 0;
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.inbound-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--text-secondary);
    margin-top: 0;
}

.inbound-total strong {
    color: var(--accent-color);
    font-size: 26px;
    line-height: 1;
}

.match-card {
    min-height: 218px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.match-empty {
    color: var(--text-secondary);
    line-height: 1.8;
}

.match-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.match-meta {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.match-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.match-meta-row strong {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.scan-layout {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(260px, 340px);
    gap: 24px;
    align-items: start;
}

.scan-stage {
    position: relative;
    min-height: 420px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.62);
    border: 1px dashed rgba(0, 0, 0, 0.12);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.scan-stage.dragging {
    border-color: rgba(0, 113, 227, 0.65);
    background: rgba(0, 113, 227, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.18);
}

.scan-stage.recognizing img {
    filter: saturate(0.75) brightness(0.62);
}

.scan-stage img {
    display: none;
    width: 100%;
    height: auto;
}

.scan-stage.has-image img {
    display: block;
}

.scan-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    text-align: center;
    padding: 24px;
}

.scan-stage.has-image .scan-empty {
    display: none;
}

.scan-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.scan-busy {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    gap: 12px;
    align-content: center;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    text-align: center;
    z-index: 3;
}

.scan-stage.recognizing .scan-busy {
    display: grid;
}

.scan-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.34);
    border-top-color: #fff;
    animation: scan-spin 0.9s linear infinite;
}

.scan-busy strong {
    font-size: 30px;
    line-height: 1;
}

.scan-busy span {
    font-size: 13px;
    opacity: 0.88;
}

.scan-chip {
    position: absolute;
    max-width: min(420px, 70%);
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.scan-chip.qty {
    background: rgba(0, 113, 227, 0.82);
}

.scan-chip.order {
    background: rgba(0, 0, 0, 0.72);
}

.scan-chip.barcode {
    background: rgba(0, 0, 0, 0.68);
}

.scan-status {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.scan-summary-list {
    display: grid;
    gap: 14px;
}

.scan-table-title,
.scan-table-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.scan-table-footer {
    margin-top: 14px;
}

.missing-name,
.negative-stock {
    color: #d70015;
    font-weight: 700;
}

.scan-row-missing {
    background: rgba(215, 0, 21, 0.06);
}

.scan-edit-input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--text-primary);
    font: inherit;
    line-height: 1.25;
    padding: 7px 9px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.scan-edit-input:focus {
    border-color: rgba(0, 113, 227, 0.7);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.scan-order-input {
    width: min(220px, 100%);
    font-weight: 700;
    text-align: right;
}

.scan-barcode-input {
    min-width: 220px;
}

.scan-name-input {
    min-width: 220px;
}

.scan-boxes-input {
    max-width: 96px;
    text-align: center;
}

.pending-toolbar {
    margin-bottom: 14px;
}

.pending-toolbar input {
    width: min(420px, 100%);
}

.document-sections {
    display: grid;
    gap: 18px;
}

.document-section {
    display: grid;
    gap: 10px;
}

.document-section-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
}

.pending-list {
    display: grid;
    gap: 12px;
}

.pending-doc {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.pending-doc-main {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, auto) minmax(100px, auto) minmax(100px, auto);
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    cursor: default;
}

.pending-doc-main span {
    color: var(--text-secondary);
    font-size: 13px;
}

.pending-doc-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 14px 12px;
}

.pending-doc-actions .btn {
    white-space: nowrap;
}

.pending-doc-detail {
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 14px;
}

.pending-doc-detail.open {
    display: block;
}

.pending-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
    margin-bottom: 12px;
}

.pending-detail-head label {
    display: grid;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.accepted-doc-info {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto minmax(160px, 1fr);
    gap: 6px 12px;
    align-items: center;
}

.accepted-doc-info span {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.accepted-doc-info strong {
    color: var(--text-primary);
    font-size: 13px;
    word-break: break-word;
}

.pending-detail-table {
    width: 100%;
}

.record-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 240px));
    gap: 14px;
    margin-bottom: 18px;
}

.record-tab {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--text-secondary);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.record-tab strong {
    color: var(--text-primary);
    font-size: 20px;
}

.record-tab.active {
    background: #fff;
    border-color: rgba(0, 113, 227, 0.42);
    color: var(--text-primary);
    box-shadow: 0 8px 22px rgba(0, 113, 227, 0.08);
}

.operation-record-list {
    display: grid;
    gap: 12px;
}

.operation-record-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.operation-record-head .panel-title {
    margin-bottom: 0;
}

.operation-export-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.operation-export-tools input {
    width: auto;
    min-width: 150px;
    padding: 8px 10px;
    border-radius: 8px;
}

.operation-record-item {
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.operation-record-summary {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(420px, 1.5fr);
    gap: 18px;
    align-items: center;
    padding: 14px 16px;
}

.operation-record-summary strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.operation-record-summary span,
.operation-record-meta {
    color: var(--text-secondary);
    font-size: 13px;
}

.operation-record-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.operation-record-meta .btn {
    margin-left: 2px;
}

.operation-record-meta time {
    color: var(--text-primary);
    font-weight: 600;
}

.operation-record-detail {
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 14px 16px 16px;
}

.operation-record-detail.open {
    display: block;
}

.operation-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.operation-detail-cell {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.64);
}

.operation-detail-cell span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 12px;
}

.operation-detail-cell strong {
    color: var(--text-primary);
    font-size: 13px;
    word-break: break-word;
}

.operation-detail-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.negative-note {
    display: block;
    margin-top: 4px;
    color: #d70015;
    font-size: 12px;
    font-weight: 600;
}

@keyframes scan-spin {
    to {
        transform: rotate(360deg);
    }
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    gap: 18px;
    margin-bottom: 24px;
}

.overview-tile {
    border: var(--glass-border);
    border-radius: var(--border-radius);
    padding: 24px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.overview-tile:hover {
    transform: translateY(-2px);
}

.overview-tile:not(button) {
    cursor: default;
}

.overview-tile:not(button):hover {
    transform: none;
}

.overview-tile span,
.overview-tile small {
    display: block;
}

.overview-tile span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.overview-tile strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 42px;
    line-height: 1;
    color: var(--text-primary);
}

.overview-tile small {
    color: var(--text-secondary);
    font-size: 13px;
}

.overview-tile.alert {
    background: rgba(255, 59, 48, 0.08);
    border-color: rgba(255, 59, 48, 0.28);
}

.overview-tile.alert strong,
.overview-tile.alert small {
    color: #d70015;
}

.expiry-warning-panel {
    display: none;
}

.expiry-warning-panel.active {
    display: block;
}

.warning-control-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
}

.warning-days-control {
    display: grid;
    grid-template-columns: auto 110px auto;
    align-items: center;
    gap: 10px;
}

.warning-days-control label,
.warning-days-control span {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.warning-days-control input {
    width: 110px;
    flex: initial;
}

tbody tr.expiry-alert-row {
    background: rgba(255, 59, 48, 0.08);
}

tbody tr.expiry-alert-row td {
    color: #b42318;
    border-bottom-color: rgba(255, 59, 48, 0.18);
}

.btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn:active {
    transform: scale(0.95);
}

.btn:hover {
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.btn.secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.btn.mini {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.table-container {
    overflow-x: auto;
}

.inventory-toolbar {
    margin-bottom: 14px;
}

.inventory-toolbar input {
    width: min(460px, 100%);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

th {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

tbody tr {
    cursor: pointer;
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(0, 0, 0, 0.01);
}

.tip-banner {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    width: 100%;
    max-width: min(640px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transform: scale(0.85) translateY(30px);
    transition: transform var(--transition-spring);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
    min-width: 0;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 6px;
}

.input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

input {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: all 0.3s var(--transition-spring);
    font-family: inherit;
}

.input-row input {
    flex: 1 1 auto;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

input[readonly] {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dynamic-list {
    max-height: 90px;
    overflow-y: auto;
    padding-right: 4px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.inbound-panel .modal-footer {
    margin-top: 4px;
}

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

.modal-grid .form-group {
    margin-bottom: 0;
    min-width: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 18px;
}

.form-grid .form-group {
    margin-bottom: 0;
    min-width: 0;
}

.form-grid .span-2 {
    grid-column: 1 / -1;
}

.muted,
.product-alias {
    color: var(--text-secondary);
}

.product-alias {
    font-size: 12px;
}

.inline-icon {
    width: 16px;
    height: 16px;
}

.tip-icon {
    width: 14px;
    height: 14px;
}

.field-spacer {
    margin-top: 8px;
}

.mini-action {
    margin-top: 4px;
}

.danger-mini {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.loading-row,
.error-row {
    color: var(--text-secondary);
    text-align: center;
}

@media (max-width: 980px) {
    body {
        display: block;
        height: auto;
        overflow: auto;
    }

    .sidebar {
        width: 100%;
        padding: 20px;
        position: sticky;
        top: 0;
        flex-direction: row;
        overflow-x: auto;
    }

    .logo {
        min-width: max-content;
        margin-bottom: 0;
        padding-left: 0;
        align-self: center;
    }

    .nav-item {
        min-width: max-content;
    }

    .main-content {
        padding: 24px;
    }

    .header-container,
    .modal-grid,
    .form-grid,
    .inbound-layout,
    .scan-layout,
    .warning-control-row,
    .record-switch,
    .operation-record-head,
    .operation-record-summary,
    .accepted-doc-info {
        display: grid;
        grid-template-columns: 1fr;
    }

    .operation-record-meta {
        justify-content: flex-start;
    }

    .operation-export-tools {
        justify-content: flex-start;
    }

    .warning-days-control {
        grid-template-columns: auto 1fr auto;
    }

    .form-grid .span-2 {
        grid-column: auto;
    }

    .header-actions {
        justify-content: flex-start;
    }
}
