/* ============================================================
   RESPONSIVE – Tablet, Mobile, Small Devices
   ============================================================ */

/* Tablet & smaller laptops */
@media screen and (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 80px 20px 20px;
    }
    .menu-toggle {
        display: flex !important;
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 1001;
        background: #1a1a2e;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 8px 14px;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }
    .menu-toggle:hover {
        background: #f0b429;
        color: #1a1a2e;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }
    .sidebar-overlay.active {
        display: block;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .table-wrapper {
        overflow-x: auto;
    }
    .table {
        font-size: 13px;
        min-width: 600px;
    }
    .form-container {
        padding: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .sidebar {
        width: 100%;
        max-width: 320px;
    }
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .search-input-wrapper {
        min-width: auto;
    }
    .filter-group {
        flex-wrap: wrap;
    }
    .filter-select {
        width: 100%;
    }
    .quote-header {
        grid-template-columns: 1fr !important;
    }
    .items-header {
        display: none !important;
    }
    .item-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .row-col {
        flex: 1 1 auto !important;
        min-width: auto !important;
    }
    .quote-summary {
        max-width: 100% !important;
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    .main-content {
        padding: 70px 12px 12px;
    }
    .page-header h1 {
        font-size: 22px;
    }
    .kpi-card .kpi-value {
        font-size: 22px;
    }
    .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}