/* Sales Module CSS */

.sales-card {
    background: #16213e;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #30475e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sales-stat-card {
    background: linear-gradient(135deg, #1f4068 0%, #16213e 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #30475e;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sales-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.sales-stat-value {
    font-size: 2.2em;
    font-weight: 700;
    color: #4ecca3;
    margin: 10px 0;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
}

.sales-table th,
.sales-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #30475e;
}

.sales-table th {
    background: #0f3460;
    color: #4ecca3;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.sales-btn {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.sales-btn-primary {
    background: #e94560;
    color: white;
}

.sales-btn-success {
    background: #4ecca3;
    color: #1a1a2e;
}

.sales-btn-secondary {
    background: #0f3460;
    color: white;
    border: 1px solid #30475e;
}

.sales-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.sales-form-group {
    margin-bottom: 15px;
}

.sales-label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

.sales-input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    background: #0f3460;
    border: 1px solid #30475e;
    color: white;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Utils */
.ltr-val {
    direction: ltr !important;
    display: inline-block;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* Badges */
.sales-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(78, 204, 163, 0.2);
    color: #4ecca3;
    border: 1px solid rgba(78, 204, 163, 0.3);
}

.badge-danger {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.badge-info {
    background: rgba(0, 188, 212, 0.2);
    color: #00bcd4;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

/* Settings Specific */
.settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #30475e;
}

.settings-info-box {
    background: rgba(0, 188, 212, 0.05);
    border-left: 4px solid #00bcd4;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #ccc;
}

/* Base Grid Layout */
.sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.sales-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border: 1px solid #30475e;
    border-radius: 8px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .sales-grid {
        grid-template-columns: 1fr !important;
    }

    .sales-card {
        padding: 15px;
    }

    .sales-stat-value {
        font-size: 1.6em;
    }

    .filters-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .filters-row form,
    .filters-row div {
        width: 100% !important;
        margin: 0 !important;
    }

    .sales-table {
        font-size: 0.85em;
    }

    .sales-table th,
    .sales-table td {
        padding: 8px 5px;
    }

    .sales-input[style*="width"] {
        width: 100% !important;
    }

    .sales-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
        box-sizing: border-box;
    }

    .settings-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}