/* Main Container */
.avoska-sc-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 20px auto;
}

.avoska-sc-wrap h1 {
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 20px;
}

/* Cards */
.avoska-sc-wrap .card {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avoska-sc-wrap .card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.avoska-sc-wrap h2,
.avoska-sc-wrap h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #333;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 10px;
}

/* Form Styling */
.avoska-sc-filters table.form-table th {
    font-weight: 600;
    width: 200px;
}

.avoska-sc-filters input[type="text"],
.avoska-sc-filters input[type="date"],
.avoska-sc-filters input[type="number"],
.avoska-sc-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s;
    font-size: 14px;
    min-width: 280px;
}

.avoska-sc-filters input:focus,
.avoska-sc-filters select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.avoska-sc-filters .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    padding: 10px 24px;
    font-size: 15px;
    border-radius: 6px;
    height: auto;
    transition: background 0.2s;
}

.avoska-sc-filters .button-primary:hover {
    background: #135e96;
}

/* Stats Box - Premium Look */
.avoska-sc-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ddd;
}

.stat-box:nth-child(1)::before {
    background: #4caf50;
}

/* Revenue */
.stat-box:nth-child(2)::before {
    background: #ff9800;
}

/* Margin */
.stat-box:nth-child(4)::before {
    background: #9c27b0;
}

/* Markup */

/* Highlight Box (Pay to Supplier) */
.stat-box.highlight {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border: 1px solid #b8cdd6;
    transform: scale(1.02);
    z-index: 2;
}

.stat-box.highlight::before {
    background: #2196f3;
}

.stat-box .label {
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-box .value {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
}

.stat-box.highlight .value {
    color: #0d47a1;
}

/* Breakdown Table */
#avoska-sc-breakdown {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

#avoska-sc-breakdown table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

#avoska-sc-breakdown th {
    background: #f8f9fa;
    color: #444;
    font-weight: 600;
}

/* History Table */
.avoska-sc-history table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.avoska-sc-history th {
    font-weight: 700;
}

.avoska-mark-paid {
    background: #4caf50 !important;
    border-color: #43a047 !important;
    color: #fff !important;
    transition: background 0.2s;
}

.avoska-mark-paid:hover {
    background: #388e3c !important;
}

/* Suggestions Dropdown */
.avoska-sc-suggestions {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    list-style: none;
    margin: 5px 0 0;
    padding: 5px 0;
    position: absolute;
    width: 280px;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.avoska-sc-suggestions li {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #444;
    margin: 0;
    transition: background 0.1s;
}

.avoska-sc-suggestions li:last-child {
    border-bottom: none;
}

/* Brand Grid */
#avoska-sc-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.brand-btn {
    background: #f0f0f1;
    border: 1px solid #ccd0d4;
    padding: 10px 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s;
    height: 100%;
}

.brand-btn:hover {
    background: #fff;
    border-color: #2271b1;
    color: #2271b1;
}

.brand-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.avoska-sc-suggestions li:hover {
    background: #f0f7ff;
    color: #2271b1;
}