/* Inbound Counting Record - Main Stylesheet */
:root {
    --primary: #1e5a8a;
    --primary-dark: #154568;
    --accent: #2d8f4e;
    --danger: #c0392b;
    --warning: #d68910;
    --bg: #f0f4f8;
    --card: #ffffff;
    --border: #d1dce6;
    --text: #1a2b3c;
    --muted: #5a6d7e;
    --shadow: 0 2px 12px rgba(30, 90, 138, 0.08);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

/* Hidden decoy fields (login autofill) */
.autofill-bait {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.auth-wrapper #login-form {
    position: relative;
}

/* Auth pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1e5a8a 0%, #2d8f4e 100%);
}

.auth-card {
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    text-align: center;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 90, 138, 0.15);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 3.5rem;
    pointer-events: auto;
}

.password-wrapper .toggle-password {
    z-index: 2;
    pointer-events: auto;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem;
}

.toggle-password:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--accent);
    color: #fff;
}

.btn-success:hover {
    background: #247a3f;
}

.btn-warning {
    background: #d97706;
    color: #fff;
}

.btn-warning:hover {
    background: #b45309;
}

.btn-count-action:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e8eef3;
    color: var(--text);
}

.btn-secondary:hover {
    background: #d1dce6;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    text-align: center;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fdecea;
    color: var(--danger);
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.alert-warning {
    background: #fff8e1;
    color: #6d4c00;
    border: 1px solid #ffe082;
}

.totp-setup-prompt {
    position: relative;
    padding-right: 2.5rem;
}

.totp-setup-prompt a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.totp-setup-prompt-close {
    position: absolute;
    top: 0.35rem;
    right: 0.45rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
}

.totp-setup-prompt-close:hover,
.totp-setup-prompt-close:focus {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

/* App layout */
.app-header {
    background: var(--primary);
    color: #fff;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.app-header h1 {
    font-size: 1.15rem;
    font-weight: 600;
}

.app-header .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.app-header a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.app-header a:hover {
    opacity: 1;
    text-decoration: underline;
}

.header-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.header-nav-backdrop {
    display: none;
}

.app-header-record {
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.header-record-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 0.5rem;
}

.header-record-actions .btn {
    width: auto;
}

.app-header-record .header-record-actions a.btn {
    color: var(--text);
    opacity: 1;
    text-decoration: none;
}

.app-header-record .header-record-actions a.btn:hover {
    text-decoration: none;
    background: #dce4ec;
}

.header-record-actions .btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.header-record-actions .shortcut-hint {
    font-size: 0.7rem;
    opacity: 0.75;
    padding: 0.2rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

.container {
    max-width: 100%;
    padding: 1.25rem 1.5rem 2rem;
}

.page-title {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Dashboard */
.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.record-card {
    background: var(--card);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.record-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.record-card .meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

/* Record form - landscape table layout per document */
.record-form-card {
    background: var(--card);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
    overflow-x: auto;
}

.date-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.date-row label {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.date-row input[type="date"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.sessions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 1100px;
}

.sessions-table thead th {
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 0.4rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--primary-dark);
}

.sessions-table tbody td {
    padding: 0.35rem 0.3rem;
    border: 1px solid var(--border);
    vertical-align: middle;
}

.sessions-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.sessions-table tbody tr:hover {
    background: #eef4fa;
}

.sessions-table input[type="text"],
.sessions-table input[type="number"],
.sessions-table input[type="time"] {
    width: 100%;
    padding: 0.35rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8rem;
}

.sessions-table .session-label {
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    white-space: nowrap;
    min-width: 70px;
}

.photo-cell {
    min-width: 140px;
}

.photo-preview {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border: 1px dashed var(--border);
    border-radius: 4px;
    background: #f5f5f5;
    display: block;
    margin-bottom: 0.25rem;
}

.photo-preview.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--muted);
    text-align: center;
}

.photo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.photo-actions input[type="file"] {
    display: none;
}

.photo-actions .btn-take-photo {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
}

.photo-actions .btn-take-photo:hover {
    background: #247a3f;
}

.inactivity-notice {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    max-width: 20rem;
    background: var(--warning);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.inactivity-notice.visible {
    display: block;
}

body.page-record .sessions-table thead th {
    position: sticky;
    top: 4.5rem;
    z-index: 50;
}

.save-toast {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    z-index: 100000;
    background: #2e7d32;
    color: #fff;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.save-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

.reset-token-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.85rem;
    word-break: break-all;
}

.install-card {
    max-width: 720px;
}

.install-section {
    margin-bottom: 1.5rem;
    text-align: left;
}

.install-section h2 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.install-hint {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.code-block {
    background: #1a2b3c;
    color: #e8eef3;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.45;
    overflow-x: auto;
    text-align: left;
    white-space: pre;
}

.code-block-scroll {
    max-height: 280px;
    overflow-y: auto;
}

.install-card .btn-primary {
    width: 100%;
    margin-top: 0.5rem;
}

/* Dashboard - inbound shipment counting */
.auth-card-wide {
    max-width: 460px;
}

.role-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.role-tab {
    flex: 1;
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    background: #e8eef3;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.role-tab.active {
    background: var(--primary);
    color: #fff;
}

.role-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.user-badge {
    background: rgba(45, 143, 78, 0.35);
}

.card-panel {
    background: var(--card);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.card-panel h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.form-grid > .form-group,
.form-grid > .form-actions {
    margin-bottom: 0;
}

.form-grid > .form-group {
    display: flex;
    flex-direction: column;
}

.form-grid > .form-actions {
    align-self: end;
}

.admin-inbound-form-grid {
    align-items: start;
}

.form-group-color .color-field-stack {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.form-group-color .color-field-stack select,
.form-group-color .color-field-stack .color-custom-input {
    width: 100%;
    margin: 0;
}

.form-group-color .color-field-stack select#line_color {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231f2937' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7l5 6 5-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
    background-position: right 0.95rem center;
}

.form-group-color .color-custom-row {
    display: block;
    width: 100%;
}

.form-group-color .color-custom-row[hidden] {
    display: none;
}

.form-group-color .color-custom-input-wrap {
    position: relative;
    width: 100%;
}

.form-group-color .color-custom-input-wrap .color-custom-input {
    padding-right: 3.2rem;
}

#line_color_custom::-webkit-calendar-picker-indicator {
    display: none;
    opacity: 0;
}

.form-group-color .color-custom-back {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    width: 1.6rem;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #1f2937;
    font-size: 0;
    cursor: pointer;
    line-height: 1;
}

.form-group-color .color-custom-back::before {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    margin: 0 auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231f2937' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7l5 6 5-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1rem 1rem;
}

.form-group-color .color-custom-back:hover {
    background: rgba(30, 90, 138, 0.08);
}

.item-lines-cell {
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: normal;
}

#carton-items-table .count-item-color {
    min-width: 7rem;
}

.form-grid-wide {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group-inline-action {
    margin-bottom: 0.15rem;
}

.admin-lines-empty-hint {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.85rem;
}

.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.form-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 8.5rem;
    width: auto;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-bar > .form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.filter-bar > .form-actions {
    grid-column: span 2;
    margin-bottom: 0;
}

.filter-bar > .form-actions .btn {
    min-width: 6.5rem;
}

.filter-date-group.hidden {
    display: none;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 700px;
}

.data-table thead th {
    background: var(--primary);
    color: #fff;
    padding: 0.65rem 0.5rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

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

.progress-cell {
    max-width: 14rem;
    font-size: 0.85rem;
    line-height: 1.35;
    white-space: normal;
}

.field-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin: 0.35rem 0 0;
}

.field-error[hidden] {
    display: none;
}

.remark-template-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.form-actions-error {
    flex: 1 1 100%;
    margin-top: 0.25rem;
}

.status-dot {
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    margin-right: 0.15rem;
}

.status-legend-in-list {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
}

.list-meta-line {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
}

.list-meta-line .list-updated-at {
    margin: 0;
}

.admin-list-hint {
    margin-bottom: 0.75rem !important;
}

.admin-list-scroll,
.user-list-scroll {
    max-height: min(32rem, 58vh);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    background: #fff;
}

.admin-list-scroll .table-wrap,
.user-list-scroll .table-wrap {
    overflow-x: auto;
    border: none;
}

.admin-list-scroll .data-table thead th,
.user-list-scroll .data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.form-actions-counting {
    gap: 0.5rem;
}

.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.col-select {
    width: 2.5rem;
    text-align: center;
    vertical-align: middle;
}

.col-select input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.admin-bulk-actions {
    margin: 0.75rem 0;
}

.admin-bulk-delete-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.actions-cell .btn {
    margin-right: 0.25rem;
}

.inline-form {
    display: inline;
}

.empty-hint {
    color: var(--muted);
    font-size: 0.9rem;
}

.variance-hint {
    color: var(--danger);
    font-size: 0.84rem;
    margin-top: 0.3rem;
}

.qty-hint {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

#admin-shipment-list tbody tr.shipment-row:hover {
    background: #eef4fa;
    cursor: pointer;
}

.photo-upload-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.photo-upload-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.photo-preview-wrap {
    flex: 0 0 auto;
}

.photo-preview-large {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: #f5f5f5;
    display: block;
}

.photo-preview-large.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    padding: 0.5rem;
}

.photo-file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.photo-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.photo-upload-actions .btn {
    width: auto;
}

.photo-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.photo-cell-inline {
    text-align: center;
}

.profile-info {
    margin: 0;
}

.profile-info-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info dt {
    font-weight: 600;
    color: var(--muted);
    margin: 0;
}

.profile-info dd {
    margin: 0;
    font-weight: 500;
}

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

.totp-setup .totp-qr {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border, #e2e8f0);
}

.totp-relink-panel {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border, #e2e8f0);
}

.totp-relink-panel .alert-info {
    margin-bottom: 1rem;
}

.totp-secret-key {
    font-size: 0.95rem;
    word-break: break-all;
    user-select: all;
}

.profile-form .form-actions .btn {
    width: auto;
}

.list-updated-at {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.counted-by-cell {
    font-size: 0.8rem;
    max-width: 140px;
}

.btn-primary:not(.auth-card .btn-primary) {
    width: auto;
}

.app-header .user-info a.nav-active {
    opacity: 1;
    font-weight: 700;
    text-decoration: underline;
}

.photo-thumb-btn {
    display: inline-block;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    line-height: 0;
}

.photo-thumb-btn .photo-thumb {
    display: block;
}

.photo-thumb-btn:hover .photo-thumb {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.photo-thumb-btn.photo-preview-enlarge-btn {
    cursor: zoom-in;
}

.photo-thumb-btn .photo-preview-large {
    display: block;
}

.photo-thumb-btn:hover .photo-preview-large {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.photo-enlarge-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
}

.photo-missing {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--danger);
    padding: 0.2rem 0.4rem;
    border: 1px dashed var(--danger);
    border-radius: 4px;
    white-space: nowrap;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.photo-lightbox.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.photo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 35, 0.72);
    backdrop-filter: blur(4px);
}

.photo-lightbox-body {
    position: relative;
    z-index: 2;
    width: min(92vw, 900px);
    max-width: 92vw;
    height: 88vh;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.photo-lightbox.is-zoomed .photo-lightbox-stage {
    cursor: grab;
}

.photo-lightbox.is-dragging .photo-lightbox-stage {
    cursor: grabbing;
}

.photo-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.photo-lightbox-hint {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    margin: 0;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-lightbox.is-open .photo-lightbox-hint {
    opacity: 1;
}

.photo-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.photo-lightbox-close:hover {
    background: #fff;
}

body.photo-lightbox-open {
    overflow: hidden;
}

.user-mgmt-form {
    max-width: 640px;
}

.user-mgmt-table {
    min-width: 520px;
}

.role-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.role-pill-admin {
    background: rgba(30, 90, 138, 0.15);
    color: var(--primary);
}

.role-pill-user {
    background: rgba(45, 143, 78, 0.15);
    color: var(--accent);
}

.row-current-user {
    background: #f0f7fc;
}

/* User counting form — one aligned row + meta line below (qty hint not inside grid cells) */
.counting-form-grid {
    display: grid;
    grid-template-columns:
        minmax(10rem, 2fr)
        minmax(5.5rem, 1fr)
        minmax(9rem, 1.55fr)
        minmax(6.5rem, 0.85fr)
        minmax(9rem, 1.05fr)
        minmax(9rem, 1.05fr)
        minmax(6rem, 1fr);
    gap: 0.5rem 0.75rem;
    align-items: start;
}

.counting-form-grid .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    min-width: 0;
}

.counting-form-grid .form-group > label {
    display: block;
    height: 1.125rem;
    line-height: 1.125rem;
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.counting-form-grid .form-group input,
.counting-form-grid .form-group select {
    width: 100%;
    min-width: 0;
    height: 2.5rem;
    padding: 0 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.25;
    box-sizing: border-box;
    background: #fff;
}

.counting-form-grid .form-group input[type="date"],
.counting-form-grid .form-group input[type="time"] {
    padding-right: 0.35rem;
}

.counting-form-grid .form-group-full,
.counting-form-grid .form-actions,
.counting-form-grid .photo-upload-group,
.counting-form-grid .counting-form-meta {
    grid-column: 1 / -1;
}

#user-count-lines-table select,
#user-count-lines-table input[type="number"] {
    width: 100%;
    min-width: 0;
    height: 2.25rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    background: #fff;
}

#user-count-lines-table td {
    vertical-align: middle;
}

#user-count-lines-table td:last-child {
    width: 5.5rem;
    white-space: nowrap;
}

.counting-form-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.5rem;
    margin: 0.1rem 0 0.25rem;
    min-height: 1.25rem;
}

.counting-form-qty-hint {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.3;
    white-space: nowrap;
}

.counting-form-meta .counting-form-hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.35;
}

.counting-form-grid .form-group textarea {
    width: 100%;
    min-height: 4.5rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.input-readonly {
    background: #f4f7fa;
    color: var(--text);
    cursor: not-allowed;
}

.counting-form-grid .form-group-shipment {
    overflow: visible;
    position: relative;
    z-index: 1;
}

.counting-form-grid .form-group-shipment:focus-within {
    z-index: 200;
}

.counting-form-grid .form-group-cartons input {
    font-size: 0.78rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

#box_count_display {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.searchable-select {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.searchable-select-control {
    display: block;
    width: 100%;
    max-width: 100%;
}

.searchable-select-input::placeholder {
    color: #94a3b8;
}

.searchable-select-input {
    width: 100%;
    height: 2.5rem;
    padding: 0 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
    background: #fff;
}

.searchable-select-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 90, 138, 0.15);
}

.searchable-select-list {
    position: absolute;
    z-index: 5000;
    left: 0;
    top: calc(100% + 3px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    max-height: 15rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.searchable-select-list[hidden] {
    display: none !important;
}

.searchable-select-option {
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1.35;
    background-color: #ffffff;
    color: var(--text);
}

.searchable-select-option:hover,
.searchable-select-option.is-active {
    background: #eef4fa;
}

.searchable-select-empty {
    padding: 0.55rem 0.65rem;
    color: var(--muted);
    font-size: 0.85rem;
    background-color: #ffffff;
}

#counting-form-section .counting-form-grid {
    overflow: visible;
}

.counting-time-input,
.counting-date-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 2.5rem;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    box-sizing: border-box;
}

.counting-form-grid .datetime-field .counting-time-input {
    width: auto;
}

.datetime-readout {
    flex: 1;
    min-width: 0;
    height: 2.5rem;
    display: flex;
    align-items: center;
    padding: 0 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f4f7fa;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.datetime-field {
    display: flex;
    gap: 0.35rem;
    align-items: stretch;
}

.btn-count-action {
    width: auto;
    flex-shrink: 0;
    height: 2.5rem;
    padding: 0 0.7rem;
    white-space: nowrap;
}

.btn-count-action.btn-active {
    filter: brightness(0.92);
}

.shipment-search-row {
    display: flex;
    gap: 0.4rem;
    align-items: stretch;
}

.shipment-search-row .searchable-select {
    flex: 1;
    min-width: 0;
}

.btn-scan-label {
    flex-shrink: 0;
    height: 2.5rem;
    padding: 0 0.75rem;
    white-space: nowrap;
}

.shipment-selected-label {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
}

.reference-compare-box {
    max-width: 220px;
}

.reference-empty-msg {
    margin: 0;
    padding: 0.5rem 0.6rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text-muted, #64748b);
    background: #f1f5f9;
    border: 1px dashed var(--border, #cbd5e1);
    border-radius: 8px;
}

.counting-remarks-block {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 10.5rem);
    gap: 0.5rem 1.25rem;
    align-items: start;
}

.counting-remarks-block .remarks-main {
    min-width: 0;
}

.counting-remarks-block .reference-compare-group {
    margin-bottom: 0;
}

.counting-remarks-block .reference-compare-group > label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.counting-remarks-block .reference-compare-box {
    max-width: 100%;
}

.counting-remarks-block .photo-thumb-btn .photo-thumb {
    max-width: 100%;
    max-height: 7rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .counting-remarks-block {
        grid-template-columns: 1fr;
    }

    .counting-remarks-block .reference-compare-box {
        max-width: 12rem;
    }
}

.scan-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.scan-modal[hidden] {
    display: none;
}

.scan-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 35, 0.72);
}

.scan-modal-panel {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    width: min(100%, 420px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.scan-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.qr-reader {
    width: 100%;
    min-height: 260px;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.confirm-modal[hidden] {
    display: none;
}

body.confirm-modal-open {
    overflow: hidden;
}

.confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 35, 0.72);
}

.confirm-modal-panel {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    width: min(100%, 420px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    animation: confirm-modal-in 0.22s ease-out;
}

.confirm-modal-title {
    margin: 0 0 0.65rem;
    font-size: 1.1rem;
}

.confirm-modal-message {
    margin: 0 0 1.15rem;
    color: #334155;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.confirm-modal-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}

.confirm-modal--alert .confirm-modal-panel {
    text-align: center;
    padding: 1.6rem 1.5rem 1.4rem;
}

.confirm-modal--alert .confirm-modal-title {
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
}

.confirm-modal--alert .confirm-modal-message {
    margin-bottom: 1.25rem;
    white-space: pre-line;
}

.confirm-modal--alert .confirm-modal-actions {
    justify-content: center;
}

.confirm-modal--alert .confirm-modal-actions .btn {
    min-width: 7rem;
}

.confirm-modal--warning .confirm-modal-icon {
    display: flex;
    color: #b45309;
    background: #fef3c7;
    border: 2px solid #fcd34d;
}

.confirm-modal--warning .confirm-modal-title {
    color: #92400e;
}

.confirm-modal--info .confirm-modal-icon {
    display: flex;
    color: #1d4ed8;
    background: #dbeafe;
    border: 2px solid #93c5fd;
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 600;
}

@keyframes confirm-modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.label-sheet-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.label-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.label-code-block h4 {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.label-reference-img {
    max-width: 200px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.label-qr-mount {
    min-width: 180px;
    min-height: 180px;
}

.label-qr-mount img {
    display: block;
}

.label-barcode-svg {
    max-width: 100%;
    height: auto;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.qr-label-panel {
    padding: 1rem 1.15rem;
    border: 2px solid var(--primary);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(26, 54, 93, 0.06) 0%, rgba(26, 54, 93, 0.02) 100%);
}

.qr-label-panel-head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.qr-label-panel-icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    line-height: 1;
}

.qr-label-panel-title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    color: var(--primary);
}

.qr-label-panel-desc {
    margin: 0;
}

.btn-qr-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 0.65rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-qr-create:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.qr-label-save-first {
    margin: 0.5rem 0 0;
}

.qr-label-auto-open {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

.count-breakdown {
    font-size: 0.8rem;
    line-height: 1.45;
}

.count-breakdown-cell {
    min-width: 120px;
}

.required-mark {
    color: var(--danger);
    font-weight: 700;
}

.counting-account-line {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
}

.counting-account-note {
    color: var(--text-muted, #5c6b7a);
    font-size: 0.85rem;
    font-weight: 400;
}

.shipment-ref-warning {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.search-no-ref-tag {
    color: var(--text-muted, #5c6b7a);
    font-size: 0.85em;
    font-weight: 400;
}

.card-panel-danger-outline {
    border: 1px solid rgba(192, 57, 43, 0.35);
    background: rgba(192, 57, 43, 0.04);
}

@media print {
    .app-header,
    .form-actions,
    .page-title,
    .empty-hint,
    .label-no-print {
        display: none !important;
    }

    body.shipment-label-page {
        background: #fff;
    }

    body.shipment-label-page .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .label-sheet {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    .label-codes {
        page-break-inside: avoid;
    }
}

.you-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(30, 90, 138, 0.12);
    border-radius: 4px;
    vertical-align: middle;
}

@media (max-width: 1100px) {
    .counting-form-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .counting-form-grid .form-group-shipment,
    .counting-form-grid .form-group-product {
        grid-column: span 2;
    }

    .counting-form-grid .form-group-cartons,
    .counting-form-grid .form-group-date,
    .counting-form-grid .form-group-time,
    .counting-form-grid .form-group-qty {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .counting-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .counting-form-grid .form-group-shipment,
    .counting-form-grid .form-group-product,
    .counting-form-grid .form-group-cartons,
    .counting-form-grid .form-group-date {
        grid-column: span 2;
    }

    .counting-form-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .app-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .app-header.app-header-nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 0.75rem 0.9rem;
        gap: 0.75rem;
        position: sticky;
        top: 0;
        z-index: 1100;
    }

    .app-header.app-header-nav h1 {
        font-size: 1rem;
        line-height: 1.25;
        margin: 0;
    }

    .app-header.app-header-nav .header-menu-btn {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .app-header.app-header-nav .header-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1190;
    }

    .app-header.app-header-nav .header-nav-backdrop[hidden] {
        display: none !important;
    }

    .app-header.app-header-nav .user-info.header-nav-drawer {
        position: fixed;
        right: 0;
        top: 0;
        width: min(84vw, 320px);
        height: 100vh;
        padding: 1rem 0.85rem;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        color: var(--text);
        z-index: 1200;
        box-shadow: -14px 0 30px rgba(15, 23, 42, 0.24);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        transform: translateX(100%);
        transition: transform 0.2s ease-in-out;
        overflow-y: auto;
    }

    .app-header.app-header-nav.drawer-open .user-info.header-nav-drawer {
        transform: translateX(0);
    }

    .app-header.app-header-nav .user-info.header-nav-drawer > .role-badge {
        align-self: flex-start;
        margin: 0.1rem 0 0.15rem;
    }

    .app-header.app-header-nav .user-info.header-nav-drawer > span:not(.role-badge) {
        margin: 0 0 0.5rem;
        padding: 0.65rem 0.7rem;
        border-radius: 10px;
        background: #eef3f9;
        font-weight: 700;
    }

    .app-header.app-header-nav .user-info.header-nav-drawer a {
        color: var(--text);
        opacity: 1;
        text-decoration: none;
        padding: 0.72rem 0.7rem;
        border-radius: 10px;
        font-weight: 600;
        border: 1px solid transparent;
    }

    .app-header.app-header-nav .user-info.header-nav-drawer a:hover {
        background: #eaf2fb;
        border-color: #d9e6f7;
        text-decoration: none;
    }

    .app-header.app-header-nav .user-info.header-nav-drawer a.nav-active {
        background: #1e5a8a;
        border-color: #1e5a8a;
        color: #fff;
        text-decoration: none;
        box-shadow: 0 6px 16px rgba(30, 90, 138, 0.25);
    }

    .app-header-record {
        flex-direction: column;
        align-items: stretch;
    }

    .header-record-actions {
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
        order: 3;
        width: 100%;
    }

    body.page-record .sessions-table thead th {
        top: 7.5rem;
    }

    .inactivity-notice {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 1rem;
        max-width: none;
    }
}

body.drawer-lock {
    overflow: hidden;
}
