* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
}

a {
    color: inherit;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.login-card h1 {
    margin-top: 0;
    font-size: 34px;
}

.login-card label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 16px;
}

button,
.button-link {
    display: inline-block;
    width: 100%;
    margin-top: 20px;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button-link:hover {
    background: #1d4ed8;
}

.small-link {
    display: block;
    margin-top: 18px;
    color: #2563eb;
    text-align: center;
    text-decoration: none;
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin: 16px 0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.kiosk-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
}

.kiosk-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
}

.kiosk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kiosk-header a {
    color: #93c5fd;
    text-decoration: none;
}

.kiosk-card {
    margin-top: 80px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}

.kiosk-card h2 {
    font-size: 42px;
    margin-top: 0;
}

.kiosk-card p {
    color: #d1d5db;
    font-size: 18px;
}

.kiosk-card input {
    max-width: 360px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 24px;
    text-transform: uppercase;
}

.kiosk-card button {
    max-width: 360px;
}

.admin-layout {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 250px;
    background: #111827;
    color: white;
    padding: 24px;
}

.sidebar h2 {
    margin-top: 0;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar nav a {
    padding: 12px 14px;
    border-radius: 10px;
    color: #d1d5db;
    text-decoration: none;
}

.sidebar nav a:hover {
    background: #1f2937;
    color: white;
}

.admin-main {
    flex: 1;
    padding: 32px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar h1 {
    margin-bottom: 4px;
}

.topbar p {
    margin-top: 0;
    color: #6b7280;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.stat-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.stat-card span {
    color: #6b7280;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 32px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.form-card h2 {
    margin-top: 0;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.feature-list span {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 13px;
}

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

.form-actions {
    display: flex;
    align-items: end;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

th {
    color: #374151;
    font-size: 14px;
    background: #f9fafb;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-gray {
    background: #e5e7eb;
    color: #374151;
}

.small-button {
    width: auto;
    margin-top: 0;
    padding: 8px 12px;
    font-size: 13px;
}

.kiosk-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.kiosk-button {
    display: block;
    padding: 28px 20px;
    border-radius: 18px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}

.kiosk-button:hover {
    background: #1d4ed8;
}

.kiosk-button.secondary {
    background: #059669;
}

.kiosk-button.secondary:hover {
    background: #047857;
}

.kiosk-button.danger {
    background: #dc2626;
    color: #ffffff;
}

.kiosk-button.danger:hover {
    background: #b91c1c;
    color: #ffffff;
}

.kiosk-back {
    display: inline-block;
    margin-top: 28px;
    color: #93c5fd;
    text-decoration: none;
}

.kiosk-result {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    padding: 20px;
    margin: 24px 0;
    text-align: left;
}

.kiosk-result h3 {
    margin-top: 0;
    font-size: 24px;
}

.kiosk-result p {
    margin: 8px 0;
    color: #f9fafb;
}

.badge-red {
    background: #fee2e2;
    color: #991b1b;
}

.danger-button {
    background: #dc2626;
}

.danger-button:hover {
    background: #b91c1c;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.inline-link {
    display: inline-block;
    margin-top: 16px;
    color: #2563eb;
    font-weight: bold;
    text-decoration: none;
}

.inline-link:hover {
    text-decoration: underline;
}

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .grid-form {
        grid-template-columns: 1fr;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font-weight: bold;
}

.checkbox-label input {
    width: auto;
}

.small-link-button {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    background: #4b5563;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-right: 6px;
}

.small-link-button:hover {
    background: #374151;
}

.small-link-button {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    background: #4b5563;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-right: 6px;
}

.small-link-button:hover {
    background: #374151;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: end;
}

.filter-actions button {
    width: auto;
    margin-top: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-header h2 {
    margin-bottom: 4px;
}

.section-header p {
    margin-top: 0;
    color: #6b7280;
}

.badge-yellow {
    background: #fef3c7;
    color: #92400e;
}

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

@media (max-width: 700px) {
    .filter-form {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions .small-link-button {
        text-align: center;
    }
}

.muted-text {
    color: #6b7280;
    margin-top: -6px;
}

.success-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
    border-radius: 999px;
    background: #22c55e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    font-weight: bold;
    box-shadow: 0 18px 50px rgba(34, 197, 94, 0.35);
}

.kiosk-success-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
}

.kiosk-button.muted {
    background: #4b5563;
}

.kiosk-button.muted:hover {
    background: #374151;
}

.kiosk-open-items {
    margin-top: 34px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    text-align: left;
}

.kiosk-open-items h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 24px;
    text-align: center;
}

.kiosk-open-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kiosk-open-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.10);
}

.kiosk-open-row strong {
    display: block;
    font-size: 18px;
}

.kiosk-open-row span {
    display: block;
    margin-top: 4px;
    color: #d1d5db;
    font-size: 14px;
}

.kiosk-open-qty {
    white-space: nowrap;
    font-size: 22px;
    font-weight: bold;
    color: #facc15;
}

.kiosk-empty-text {
    text-align: center;
    color: #d1d5db;
}

.inline-transfer-form {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) 110px minmax(160px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.inline-transfer-form input,
.inline-transfer-form select {
    padding: 9px 10px;
    font-size: 14px;
}

.inline-transfer-form .small-button {
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .inline-transfer-form {
        grid-template-columns: 1fr;
    }
}

.inventory-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.inventory-preview > div {
    padding: 18px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.inventory-preview span {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.inventory-preview strong {
    display: block;
    font-size: 22px;
}

.inventory-preview p {
    margin-bottom: 0;
    color: #6b7280;
}

@media (max-width: 900px) {
    .inventory-preview {
        grid-template-columns: 1fr;
    }
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.filter-checkbox {
    margin-top: 28px;
}

.field-help {
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

.auto-redirect-text {
    color: #d1d5db;
    font-size: 16px;
    margin-top: -8px;
    margin-bottom: 18px;
}

.kiosk-select-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.10);
}

.kiosk-select-row strong {
    display: block;
    font-size: 18px;
}

.kiosk-select-row span {
    display: block;
    margin-top: 4px;
    color: #d1d5db;
    font-size: 14px;
}

.kiosk-actions-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.full-width-button {
    width: 100%;
    height: 100%;
}

.kiosk-button small {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}

.kiosk-live-results {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.override-button-form {
    margin-top: 18px;
}

@media (max-width: 900px) {
    .kiosk-actions-3 {
        grid-template-columns: 1fr;
    }
}

.kiosk-pending-overrides {
    margin-top: 24px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(250, 204, 21, 0.10);
    border: 1px solid rgba(250, 204, 21, 0.35);
    text-align: left;
}

.kiosk-pending-overrides h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 24px;
    text-align: center;
    color: #fde68a;
}

.kiosk-override-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.10);
}

.kiosk-override-row strong {
    display: block;
    font-size: 18px;
}

.kiosk-override-row span {
    display: block;
    margin-top: 4px;
    color: #d1d5db;
    font-size: 14px;
}

.kiosk-override-status {
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    background: #facc15;
    color: #713f12;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 800px) {
    .kiosk-override-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .kiosk-override-status {
        white-space: normal;
    }
}

.kiosk-approved-overrides {
    margin-top: 24px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.35);
    text-align: left;
}

.kiosk-approved-overrides h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 24px;
    text-align: center;
    color: #bbf7d0;
}

.kiosk-reason-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0 22px;
}

.kiosk-reason-button {
    display: block;
    cursor: pointer;
}

.kiosk-reason-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.kiosk-reason-button span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.10);
    border: 2px solid rgba(255,255,255,0.16);
    color: #f9fafb;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: 0.15s ease;
}

.kiosk-reason-button:hover span {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.28);
}

.kiosk-reason-button input:checked + span {
    background: #facc15;
    border-color: #fde047;
    color: #713f12;
    box-shadow: 0 12px 30px rgba(250, 204, 21, 0.25);
}

@media (max-width: 800px) {
    .kiosk-reason-buttons {
        grid-template-columns: 1fr;
    }
}

.partial-insert-block {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
}

.partial-insert-block h3 {
    margin-top: 0;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-section-title {
    margin: 8px 0 2px;
    padding: 0 12px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar nav.admin-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 600;
}

.sidebar nav.admin-menu a:hover {
    background: rgba(255,255,255,0.10);
}

.sidebar nav.admin-menu a.active {
    background: #2563eb;
    color: #ffffff;
}

.sidebar nav.admin-menu a.logout-link {
    color: #fecaca;
}

.sidebar nav.admin-menu a.logout-link:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #ffffff;
}

.sidebar-user-box {
    margin: 14px 0 22px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.sidebar-user-label {
    margin-bottom: 6px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-user-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
}

.sidebar-user-role {
    margin-top: 4px;
    color: #bfdbfe;
    font-size: 13px;
}

.sidebar-user-card {
    margin-top: 4px;
    color: #d1d5db;
    font-size: 12px;
}

.sidebar nav.admin-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.menu-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #facc15;
    color: #713f12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.kiosk-session-timer {
    margin: 0 auto 18px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.kiosk-session-timer strong {
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0.04em;
}

.kiosk-session-timer.is-warning {
    background: rgba(220, 38, 38, 0.16);
    border-color: rgba(248, 113, 113, 0.45);
}

.kiosk-session-timer.is-warning strong {
    color: #fecaca;
}

.sharpening-transfer-form {
    grid-template-columns: 90px minmax(180px, 1fr) auto;
}

.sharpening-transfer-form input[type="text"] {
    min-width: 180px;
}

@media (max-width: 1200px) {
    .sharpening-transfer-form {
        grid-template-columns: 1fr;
    }
}

.kiosk-target-box {
    margin-top: 18px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.40);
}

.kiosk-target-box h3 {
    margin-top: 0;
    color: #bbf7d0;
}

.kiosk-target-box.warning {
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.40);
}

.kiosk-target-box.warning h3 {
    color: #fde68a;
}

.consignment-handover-form {
    grid-template-columns: 90px minmax(180px, 1fr) auto;
}

.consignment-handover-form input[type="text"] {
    min-width: 180px;
}

@media (max-width: 1200px) {
    .consignment-handover-form {
        grid-template-columns: 1fr;
    }
}

.kiosk-target-box {
    margin-top: 22px;
    padding: 28px;
    border-radius: 26px;
    background: rgba(34, 197, 94, 0.16);
    border: 2px solid rgba(34, 197, 94, 0.55);
    text-align: center;
}

.kiosk-target-box.warning {
    background: rgba(250, 204, 21, 0.14);
    border-color: rgba(250, 204, 21, 0.55);
}

.kiosk-target-label {
    margin-bottom: 10px;
    color: #bbf7d0;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.kiosk-target-box.warning .kiosk-target-label {
    color: #fde68a;
}

.kiosk-target-code {
    margin: 10px 0;
    color: #ffffff;
    font-size: 46px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.kiosk-target-name {
    color: #e5e7eb;
    font-size: 22px;
    font-weight: 700;
}

.kiosk-target-meta {
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 15px;
}

.kiosk-target-quantity {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(0,0,0,0.22);
    color: #e5e7eb;
    font-size: 17px;
}

.kiosk-target-quantity strong {
    color: #ffffff;
    font-size: 20px;
}

.kiosk-auto-redirect {
    margin: 14px auto 18px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.42);
    color: #dbeafe;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.kiosk-auto-redirect strong {
    color: #ffffff;
    font-size: 20px;
}

.kiosk-target-box.withdraw {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.55);
}

.kiosk-target-box.withdraw .kiosk-target-label {
    color: #bfdbfe;
}

.dashboard-alert-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-alert-card {
    display: block;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dashboard-alert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.dashboard-alert-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-alert-card span {
    font-size: 13px;
    color: #6b7280;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-alert-card strong {
    font-size: 34px;
    line-height: 1;
}

.dashboard-alert-card p {
    margin: 12px 0 0;
    color: #4b5563;
    font-size: 14px;
}

.dashboard-alert-card.is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.dashboard-alert-card.is-ok strong {
    color: #16a34a;
}

.dashboard-alert-card.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.dashboard-alert-card.is-warning strong {
    color: #d97706;
}

.dashboard-alert-card.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.dashboard-alert-card.is-danger strong {
    color: #dc2626;
}

.dashboard-alert-card.is-info {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.dashboard-alert-card.is-info strong {
    color: #2563eb;
}

@media (max-width: 1400px) {
    .dashboard-alert-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .dashboard-alert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-alert-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin sötét mód */

html.admin-dark-mode body {
    background: #0f172a;
    color: #e5e7eb;
}

html.admin-dark-mode .admin-main {
    background: #0f172a;
    color: #e5e7eb;
}

html.admin-dark-mode .topbar,
html.admin-dark-mode .form-card,
html.admin-dark-mode .stat-card {
    background: #1e293b;
    color: #e5e7eb;
    border-color: #334155;
}

html.admin-dark-mode .form-card h2,
html.admin-dark-mode .topbar h1,
html.admin-dark-mode .admin-main h1,
html.admin-dark-mode .admin-main h2,
html.admin-dark-mode .admin-main h3 {
    color: #f8fafc;
}

html.admin-dark-mode .topbar p,
html.admin-dark-mode .form-card p,
html.admin-dark-mode .muted-text,
html.admin-dark-mode small {
    color: #cbd5e1;
}

html.admin-dark-mode input,
html.admin-dark-mode select,
html.admin-dark-mode textarea {
    background: #0f172a;
    color: #f8fafc;
    border-color: #475569;
}

html.admin-dark-mode input::placeholder,
html.admin-dark-mode textarea::placeholder {
    color: #94a3b8;
}

html.admin-dark-mode table {
    color: #e5e7eb;
}

html.admin-dark-mode th {
    background: #111827;
    color: #f8fafc;
    border-color: #334155;
}

html.admin-dark-mode td {
    border-color: #334155;
}

html.admin-dark-mode tr {
    background: #1e293b;
}

html.admin-dark-mode tr:nth-child(even) {
    background: #172033;
}

html.admin-dark-mode .table-wrapper {
    background: #1e293b;
    border-color: #334155;
}

html.admin-dark-mode .section-header {
    color: #e5e7eb;
}

html.admin-dark-mode .small-link-button,
html.admin-dark-mode .inline-link {
    background: #2563eb;
    color: #ffffff;
}

html.admin-dark-mode .small-link-button:hover,
html.admin-dark-mode .inline-link:hover {
    background: #1d4ed8;
}

html.admin-dark-mode .small-button,
html.admin-dark-mode button {
    border-color: #475569;
}

html.admin-dark-mode .alert-success {
    background: #064e3b;
    color: #d1fae5;
    border-color: #047857;
}

html.admin-dark-mode .alert-error {
    background: #7f1d1d;
    color: #fee2e2;
    border-color: #dc2626;
}

html.admin-dark-mode .dashboard-alert-card {
    background: #1e293b;
    color: #e5e7eb;
    border-color: #334155;
}

html.admin-dark-mode .dashboard-alert-card span {
    color: #cbd5e1;
}

html.admin-dark-mode .dashboard-alert-card p {
    color: #cbd5e1;
}

html.admin-dark-mode .dashboard-alert-card.is-ok {
    background: #052e1a;
    border-color: #166534;
}

html.admin-dark-mode .dashboard-alert-card.is-warning {
    background: #451a03;
    border-color: #92400e;
}

html.admin-dark-mode .dashboard-alert-card.is-danger {
    background: #450a0a;
    border-color: #991b1b;
}

html.admin-dark-mode .dashboard-alert-card.is-info {
    background: #172554;
    border-color: #1d4ed8;
}

html.admin-dark-mode .badge-gray {
    background: #334155;
    color: #e5e7eb;
}

.admin-theme-switcher {
    margin: 14px 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.admin-theme-switcher-title {
    margin-bottom: 10px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-theme-switcher-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.admin-theme-icon {
    font-size: 18px;
    line-height: 1;
}

.admin-theme-switch {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 30px;
}

.admin-theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-theme-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: linear-gradient(135deg, #facc15, #fb923c);
    border-radius: 999px;
    transition: 0.22s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}

.admin-theme-slider::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.22s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.28);
}

.admin-theme-switch input:checked + .admin-theme-slider {
    background: linear-gradient(135deg, #1e293b, #2563eb);
}

.admin-theme-switch input:checked + .admin-theme-slider::before {
    transform: translateX(28px);
}

html.admin-dark-mode .admin-theme-switcher {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.28);
}

html.admin-dark-mode .admin-theme-switcher-title {
    color: #e5e7eb;
}

/* Kioszk világos mód kapcsoló */

.kiosk-theme-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.kiosk-theme-switcher-title {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.kiosk-theme-switcher-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kiosk-theme-icon {
    font-size: 17px;
    line-height: 1;
}

.kiosk-theme-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.kiosk-theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.kiosk-theme-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: linear-gradient(135deg, #1e293b, #2563eb);
    border-radius: 999px;
    transition: 0.22s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.20);
}

.kiosk-theme-slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.22s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
}

.kiosk-theme-switch input:checked + .kiosk-theme-slider {
    background: linear-gradient(135deg, #facc15, #fb923c);
}

.kiosk-theme-switch input:checked + .kiosk-theme-slider::before {
    transform: translateX(28px);
}

/* Kioszk világos mód */

html.kiosk-light-mode body.kiosk-page {
    background: #f3f4f6;
    color: #111827;
}

html.kiosk-light-mode .kiosk-wrapper {
    background: #f3f4f6;
}

html.kiosk-light-mode .kiosk-card,
html.kiosk-light-mode .kiosk-result,
html.kiosk-light-mode .kiosk-select-row {
    background: #ffffff;
    color: #111827;
    border-color: #e5e7eb;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

html.kiosk-light-mode .kiosk-header {
    color: #111827;
}

html.kiosk-light-mode .kiosk-header h1,
html.kiosk-light-mode .kiosk-card h2,
html.kiosk-light-mode .kiosk-card h3,
html.kiosk-light-mode .kiosk-result h3 {
    color: #111827;
}

html.kiosk-light-mode .kiosk-card p,
html.kiosk-light-mode .kiosk-result p,
html.kiosk-light-mode .kiosk-select-row span,
html.kiosk-light-mode .field-help {
    color: #374151;
}

html.kiosk-light-mode .kiosk-header a,
html.kiosk-light-mode .kiosk-back {
    color: #2563eb;
}

html.kiosk-light-mode input,
html.kiosk-light-mode select,
html.kiosk-light-mode textarea {
    background: #ffffff;
    color: #111827;
    border-color: #cbd5e1;
}

html.kiosk-light-mode input::placeholder,
html.kiosk-light-mode textarea::placeholder {
    color: #64748b;
}

html.kiosk-light-mode label {
    color: #111827;
}

html.kiosk-light-mode .kiosk-reason-button span {
    background: #f8fafc;
    color: #111827;
    border-color: #cbd5e1;
}

html.kiosk-light-mode .kiosk-reason-button input:checked + span {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

html.kiosk-light-mode .kiosk-live-results {
    background: transparent;
}

html.kiosk-light-mode .kiosk-empty-text {
    color: #64748b;
}

html.kiosk-light-mode .alert-success {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

html.kiosk-light-mode .alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

html.kiosk-light-mode .success-icon {
    background: #dcfce7;
    color: #16a34a;
}

html.kiosk-light-mode .kiosk-target-box {
    background: #ecfdf5;
    color: #111827;
    border-color: #86efac;
}

html.kiosk-light-mode .kiosk-target-box.withdraw {
    background: #eff6ff;
    border-color: #93c5fd;
}

html.kiosk-light-mode .kiosk-target-box.warning {
    background: #fffbeb;
    border-color: #fde68a;
}

html.kiosk-light-mode .kiosk-target-label {
    color: #166534;
}

html.kiosk-light-mode .kiosk-target-box.withdraw .kiosk-target-label {
    color: #1d4ed8;
}

html.kiosk-light-mode .kiosk-target-box.warning .kiosk-target-label {
    color: #92400e;
}

html.kiosk-light-mode .kiosk-target-code {
    color: #111827;
}

html.kiosk-light-mode .kiosk-target-name {
    color: #1f2937;
}

html.kiosk-light-mode .kiosk-target-meta {
    color: #4b5563;
}

html.kiosk-light-mode .kiosk-target-quantity {
    background: rgba(15, 23, 42, 0.08);
    color: #111827;
}

html.kiosk-light-mode .kiosk-target-quantity strong {
    color: #111827;
}

html.kiosk-light-mode .kiosk-auto-redirect {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

html.kiosk-light-mode .kiosk-auto-redirect strong {
    color: #1d4ed8;
}

html.kiosk-light-mode .kiosk-theme-switcher {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(100, 116, 139, 0.22);
}

html.kiosk-light-mode .kiosk-theme-switcher-title {
    color: #334155;
}

@media (max-width: 760px) {
    .kiosk-theme-switcher {
        width: 100%;
        justify-content: center;
        margin: 10px 0 0;
        border-radius: 16px;
    }
}

.audit-json {
    max-width: 520px;
    max-height: 260px;
    overflow: auto;
    margin: 8px 0 12px;
    padding: 12px;
    border-radius: 12px;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 12px;
    white-space: pre-wrap;
}

html.admin-dark-mode .audit-json {
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #334155;
}

/* Login oldal sötét mód */

.login-theme-switcher {
    margin: 20px 0 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.login-theme-switcher-title {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.login-theme-switcher-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-theme-icon {
    font-size: 18px;
    line-height: 1;
}

.login-theme-switch {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 30px;
}

.login-theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.login-theme-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: linear-gradient(135deg, #facc15, #fb923c);
    border-radius: 999px;
    transition: 0.22s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}

.login-theme-slider::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.22s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.28);
}

.login-theme-switch input:checked + .login-theme-slider {
    background: linear-gradient(135deg, #1e293b, #2563eb);
}

.login-theme-switch input:checked + .login-theme-slider::before {
    transform: translateX(28px);
}

html.admin-dark-mode body.login-page {
    background: #0f172a;
    color: #e5e7eb;
}

html.admin-dark-mode .login-card {
    background: #1e293b;
    color: #e5e7eb;
    border: 1px solid #334155;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

html.admin-dark-mode .login-card h1 {
    color: #f8fafc;
}

html.admin-dark-mode .login-card p {
    color: #cbd5e1;
}

html.admin-dark-mode .login-card label {
    color: #e5e7eb;
}

html.admin-dark-mode .login-card input {
    background: #0f172a;
    color: #f8fafc;
    border-color: #475569;
}

html.admin-dark-mode .login-card input::placeholder {
    color: #94a3b8;
}

html.admin-dark-mode .login-card .small-link {
    color: #93c5fd;
}

html.admin-dark-mode .login-theme-switcher {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.28);
}

html.admin-dark-mode .login-theme-switcher-title {
    color: #e5e7eb;
}

.license-status-card {
    border-left: 6px solid #64748b;
}

.license-status-success {
    border-left-color: #22c55e;
}

.license-status-warning {
    border-left-color: #f59e0b;
}

.license-status-danger {
    border-left-color: #ef4444;
}

.admin-dark-mode .license-status-card {
    background: #111827;
}