/*
Theme Name: AMS Portal Theme
Description: Modern, minimalist dashboard theme utilizing Bootstrap 5 and soft UI cards.
Version: 1.0.0
Author: AMS Developers
*/

:root {
    --ams-primary: #0d6efd;
    --ams-bg-light: #f8f9fa;
    --ams-border-color: #dee2e6;
    --ams-text-muted: #6c757d;
    --ams-disabled-bg: #1a1d21;
    --ams-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --ams-card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--ams-bg-light);
    color: #212529;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.navbar {
    border-bottom: 1px solid var(--ams-border-color) !important;
    background-color: #ffffff !important;
}

.card-soft {
    background: #ffffff;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: var(--ams-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card-soft.clickable {
    cursor: pointer;
}

.card-soft.clickable:hover {
    transform: translateY(-4px);
    box-shadow: var(--ams-card-shadow-hover);
}

.card-soft.disabled-lockout {
    opacity: 0.7;
    filter: grayscale(1);
    cursor: not-allowed;
    background: var(--ams-disabled-bg) !important;
    color: #ffffff !important;
}

.card-soft.disabled-lockout .text-muted,
.card-soft.disabled-lockout p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Phase 12 — ERS Inventory Help */
.ers-inventory-help-dialog {
    width: min(1120px, calc(100vw - 32px));
    max-width: none;
    height: calc(100vh - 40px);
    margin: 20px auto;
}

.ers-inventory-help-modal {
    height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.ers-inventory-help-modal .modal-header {
    flex: 0 0 auto;
    padding: 18px 22px;
    border-bottom: 1px solid #dee6f0;
}

.ers-inventory-help-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    background: #f8fafc;
}

.ers-inventory-help-frame {
    display: block;
    width: 100%;
    min-height: 2684px;
}

@media (max-width: 767.98px) {
    .ers-inventory-help-dialog {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        margin: 8px auto;
    }

    .ers-inventory-help-modal {
        border-radius: 12px;
    }

    .navbar .container > .d-flex {
        gap: 8px;
    }

    .navbar [data-bs-target="#ersInventoryHelpModal"] {
        font-size: 0.75rem;
    }
}
