/* =============================================================
   Scheer & Schuim Besteladvies — Admin Styles v1.7.0
   ============================================================= */

/* ------------------------------------------------------------------
   Page layout
------------------------------------------------------------------ */
.ss-page-intro {
    color: #646970;
    margin: 4px 0 16px;
    font-size: 14px;
}

/* ------------------------------------------------------------------
   Toolbar (filter form + action buttons)
------------------------------------------------------------------ */
.ss-toolbar {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    padding: 16px 20px;
    margin: 0 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.ss-toolbar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1 1 auto;
}

.ss-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.ss-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #1d2327;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ss-filter-group input[type="number"],
.ss-filter-group select {
    height: 30px;
    font-size: 13px;
    border-radius: 3px;
}

.ss-filter-group input[type="number"] {
    width: 70px;
}

.ss-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* ------------------------------------------------------------------
   Summary cards
------------------------------------------------------------------ */
.ss-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.ss-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    padding: 16px 18px;
}

.ss-card-label {
    font-size: 11px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.ss-card-value {
    font-size: 26px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.2;
}

.ss-card-sub {
    font-size: 12px;
    color: #646970;
    margin-top: 4px;
}

/* Seasonal highlight card */
.ss-card--seasonal {
    border-left: 3px solid #2271b1;
    background: #f0f6fc;
}

.ss-card--seasonal .ss-card-value {
    color: #2271b1;
}

/* ------------------------------------------------------------------
   Brand / supplier blocks
------------------------------------------------------------------ */
.ss-block {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    margin-bottom: 16px;
}

.ss-block-head {
    padding: 12px 16px;
    border-bottom: 1px solid #dcdcde;
    background: #f6f7f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ss-block-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
}

.ss-block-meta {
    font-size: 13px;
    color: #646970;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.ss-block-note {
    font-size: 12px;
    color: #646970;
    margin-top: 3px;
}

/* ------------------------------------------------------------------
   Status badges
------------------------------------------------------------------ */
.ss-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.ss-badge-red    { background: #fbeaea; color: #b32d2e; }
.ss-badge-yellow { background: #fff8e5; color: #996800; }
.ss-badge-green  { background: #edf7ed; color: #1e6b34; }
.ss-badge-blue   { background: #eaf2ff; color: #1d4f91; }
.ss-badge-purple { background: #f5f0ff; color: #5b3f9b; }

/* ------------------------------------------------------------------
   Tables — keep them readable without overflow
------------------------------------------------------------------ */
.ss-block .widefat {
    border: none;
    border-radius: 0;
}

.ss-block .widefat th {
    font-size: 12px;
    font-weight: 600;
    color: #646970;
    padding: 8px 10px;
    white-space: nowrap;
}

.ss-block .widefat td {
    font-size: 13px;
    padding: 8px 10px;
    vertical-align: top;
}

/* Column width hints */
.ss-col-name   { min-width: 160px; }
.ss-col-sku    { width: 80px; }
.ss-col-num    { width: 60px; text-align: right; }
.ss-col-money  { width: 90px; text-align: right; white-space: nowrap; }
.ss-col-badge  { width: 110px; }
.ss-col-small  { font-size: 12px; color: #646970; }

/* Highlight the "to order" column */
.ss-col-order  {
    width: 70px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
}

/* ------------------------------------------------------------------
   Seasonal notice banner
------------------------------------------------------------------ */
.ss-seasonal-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f6fc;
    border: 1px solid #72aee6;
    border-radius: 3px;
    padding: 10px 14px;
    margin: 0 0 16px;
    font-size: 13px;
    color: #1d2327;
}

.ss-seasonal-banner strong {
    color: #2271b1;
}

.ss-seasonal-banner-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
   Settings / form pages
------------------------------------------------------------------ */
.ss-settings-box {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    padding: 20px 24px;
    max-width: 760px;
    margin-top: 16px;
}

.ss-settings-box h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f1;
}

.ss-settings-box .form-table th {
    width: 200px;
    font-size: 13px;
    padding: 12px 10px 12px 0;
}

.ss-settings-box .form-table td {
    padding: 10px 0;
}

/* Seasonal percent inputs */
.ss-percent-input {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ss-percent-input input[type="number"] {
    width: 80px;
}

.ss-percent-label {
    font-size: 13px;
    color: #646970;
}

/* Suppliers table */
.ss-suppliers-table td input[type="text"] {
    width: 100%;
}

/* ------------------------------------------------------------------
   Utility
------------------------------------------------------------------ */
.ss-muted  { color: #646970; }
.ss-small  { font-size: 12px; color: #646970; }
.ss-nowrap { white-space: nowrap; }
.ss-right  { text-align: right; }
.ss-strong { font-weight: 600; }

.ss-divider {
    border: none;
    border-top: 1px solid #f0f0f1;
    margin: 20px 0;
}

/* Info row for found suppliers count */
.ss-info-box {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    padding: 12px 16px;
    font-size: 13px;
    color: #1d2327;
    max-width: 760px;
    margin-top: 16px;
}

.ss-info-box p {
    margin: 0 0 6px;
}

.ss-info-box p:last-child {
    margin-bottom: 0;
}


/* Decision-first layout */
.ss-decision-table .ss-col-name { width: 34%; }
.ss-decision-table .ss-col-supplier { width: 22%; }
.ss-decision-table .ss-col-num { width: 10%; text-align: right; }
.ss-decision-table .ss-col-order { width: 16%; white-space: nowrap; }
.ss-decision-table .ss-col-badge { width: 12%; }
.ss-decision-table .ss-col-toggle { width: 6%; text-align: right; }

.ss-decision-table th,
.ss-decision-table td {
    vertical-align: middle;
}

.ss-order-qty {
    display: inline-block;
    font-size: 18px;
    line-height: 1.2;
    min-width: 28px;
}

.ss-order-extra {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: #b32d2e;
    white-space: nowrap;
}

.ss-toggle-details {
    text-decoration: none;
    font-size: 12px;
}

.ss-detail-row td {
    background: #fbfbfc;
    border-top: none;
}

.ss-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 14px;
    padding: 8px 0;
}

.ss-detail-grid strong {
    font-size: 12px;
    color: #646970;
}

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


.ss-inline-details {
    display: block;
}

.ss-inline-details summary {
    cursor: pointer;
    font-size: 12px;
    color: #2271b1;
    user-select: none;
}

.ss-inline-details-box {
    margin-top: 10px;
    padding: 12px;
    min-width: 420px;
    background: #fbfbfc;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.ss-inline-details[open] summary {
    margin-bottom: 8px;
}

@media (max-width: 1100px) {
    .ss-inline-details-box {
        min-width: 280px;
    }
}


.ss-inline-details summary,
.ss-inline-details summary::marker,
.ss-inline-details summary::-webkit-details-marker {
    cursor: pointer;
}

.ss-inline-details summary:hover {
    color: #135e96;
}

.ss-order-block {
    background: #fff;
    border: 1px solid #dcdcde;
    margin: 18px 0;
}

.ss-order-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #dcdcde;
    background: #f6f7f7;
}

.ss-order-block-head h2 {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.ss-order-block-actions {
    white-space: nowrap;
}


.ss-order-block-actions .button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
}

.ss-inline-details summary,
.ss-inline-details summary *,
.ss-inline-details summary::marker,
.ss-inline-details summary::-webkit-details-marker {
    cursor: pointer !important;
}

/* ------------------------------------------------------------------
   Levertijden / veiligheidsvoorraad
------------------------------------------------------------------ */
.ss-badge-teal  { background: #e6f7f2; color: #0a5c47; }
.ss-order-buffer { display:inline-block; margin-left:6px; font-size:12px; color:#1e6b34; white-space:nowrap; }
.ss-leadtime-input { display:flex; align-items:center; gap:6px; }
.ss-leadtime-hint  { transition: color 0.15s; }

/* ------------------------------------------------------------------
   Account UI
------------------------------------------------------------------ */

.ss-license-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    margin-top: 8px;
    font-size: 12px;
    color: #646970;
    border-top: 1px solid #f0f0f1;
}

.ss-sales-grid{
    display:grid;
    grid-template-columns:1.15fr 1fr;
    gap:16px;
    margin:18px 0 20px;
}
.ss-sales-card{
    background:#fff;
    border:1px solid #dcdcde;
    padding:20px;
}
.ss-sales-card h2{
    margin:0 0 8px;
    font-size:22px;
    line-height:1.2;
}
.ss-sales-card p{
    margin:0;
    color:#3c434a;
}
.ss-sales-eyebrow{
    font-size:12px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:#646970;
    margin-bottom:10px;
}
.ss-sales-card--action{
    border-left:4px solid #b32d2e;
    background:linear-gradient(180deg,#ffffff 0%,#fff9f9 100%);
}
.ss-sales-actions{
    margin-top:16px;
}
.ss-priority-list{
    list-style:none;
    padding:0;
    margin:6px 0 0;
}
.ss-priority-list li{
    padding:10px 0;
    border-top:1px solid #f0f0f1;
}
.ss-priority-list li:first-child{
    border-top:none;
}
.ss-priority-main{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:flex-start;
}
.ss-priority-main strong{
    font-size:14px;
}
.ss-priority-qty{
    font-weight:700;
    white-space:nowrap;
}
.ss-priority-meta{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:4px;
    color:#646970;
    font-size:12px;
}
.ss-priority-alert{
    color:#b32d2e;
    font-weight:700;
}
.ss-missing-supplier{
    color:#b32d2e;
    font-weight:600;
}
@media (max-width: 1100px){
    .ss-sales-grid{
        grid-template-columns:1fr;
    }
}


/* Compacte bovenlaag */
.ss-compact-top{
    margin:14px 0 18px;
}
.ss-compact-action{
    background:#fff;
    border:1px solid #dcdcde;
}
.ss-compact-action-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:10px 12px;
    border-bottom:1px solid #dcdcde;
    background:#f6f7f7;
}
.ss-compact-priority-table th,
.ss-compact-priority-table td{
    vertical-align:middle;
}
.ss-compact-priority-table td:nth-child(2),
.ss-compact-priority-table td:nth-child(3){
    white-space:nowrap;
}
@media (max-width: 900px){
    .ss-compact-action-head{
        flex-direction:column;
        align-items:flex-start;
    }
}

.ss-calc-method{
    margin-top:2px;
    color:#646970;
    font-style:italic;
}

/* Binnenkort nodig badge */
.ss-badge-orange {
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffc107;
}

/* Binnenkort nodig rijen */
.ss-row-coming-soon {
    opacity: 0.75;
}
.ss-row-coming-soon td {
    background: #fffdf5 !important;
}

/* ------------------------------------------------------------------
   Missed revenue warning card
------------------------------------------------------------------ */
.ss-missed-revenue-card {
    background: #fff8f0;
    border: 1px solid #e87c2c;
    border-left: 4px solid #b32d2e;
    border-radius: 3px;
    margin: 0 0 16px;
    overflow: hidden;
}

.ss-missed-revenue-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: #fdeee3;
    border-bottom: 1px solid #e8c9a8;
}

.ss-missed-revenue-icon {
    font-size: 18px;
    line-height: 1.2;
    color: #b32d2e;
    flex-shrink: 0;
}

.ss-missed-revenue-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ss-missed-revenue-header-text strong {
    font-size: 14px;
    color: #7a1e1e;
}

.ss-missed-revenue-sub {
    font-size: 12px;
    color: #9b4f1a;
}

.ss-missed-brand {
    border-top: 1px solid #e8c9a8;
}

.ss-missed-brand:first-of-type {
    border-top: none;
}

.ss-missed-brand-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 13px;
    color: #1d2327;
}

.ss-missed-brand-summary::-webkit-details-marker { display: none; }
.ss-missed-brand-summary::marker { display: none; }

.ss-missed-brand-summary:hover {
    background: #fde8d4;
}

.ss-missed-brand-name {
    font-weight: 600;
}

.ss-missed-brand-name::before {
    content: '\25B6\00A0';
    font-size: 10px;
    color: #b32d2e;
    display: inline-block;
    transition: transform 0.15s;
}

details[open] .ss-missed-brand-name::before {
    transform: rotate(90deg);
}

.ss-missed-brand-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #646970;
    font-size: 12px;
    white-space: nowrap;
}

.ss-missed-brand-amount {
    font-weight: 700;
    color: #b32d2e;
    font-size: 13px;
}

.ss-missed-product-list {
    list-style: none;
    margin: 0;
    padding: 0 16px 8px 32px;
    background: #fff8f0;
}

.ss-missed-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
    border-top: 1px solid #f2dccb;
    font-size: 12px;
}

.ss-missed-product-item:first-child {
    border-top: none;
}

.ss-missed-product-name {
    color: #1d2327;
}

.ss-missed-product-meta {
    color: #9b4f1a;
    white-space: nowrap;
}
