/* ── HSSecure Reseller Portal CSS ──────────────────────────────────── */

.ovrs-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header */
.ovrs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
}
.ovrs-header h1 { margin: 0 0 4px; font-size: 1.5em; color: #1B3A5C; }
.ovrs-back { color: #2E6DA4; text-decoration: none; font-size: .9em; display: block; margin-bottom: 6px; }
.ovrs-back:hover { text-decoration: underline; }

/* Login */
.ovrs-login-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.ovrs-login-card { width: 100%; max-width: 420px; }
.ovrs-brand { text-align: center; margin-bottom: 28px; }
.ovrs-brand h1 { font-size: 1.5em; margin: 12px 0 4px; color: #1B3A5C; }
.ovrs-brand p { color: #888; margin: 0; }
.ovrs-shield {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #2E6DA4, #1B3A5C);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    font-size: 1.8em;
}
.ovrs-shield svg { width: 32px; height: 32px; stroke: #fff; }

/* Cards */
.ovrs-card {
    background: #fff;
    border: 1px solid #DDE3EC;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

/* Stats */
.ovrs-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.ovrs-stat-card {
    background: #fff;
    border: 1px solid #DDE3EC;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.ovrs-stat-num   { font-size: 2.2em; font-weight: 700; color: #2E6DA4; line-height: 1; }
.ovrs-stat-label { color: #888; font-size: .85em; margin-top: 4px; }

/* Companies grid */
.ovrs-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.ovrs-company-card {
    background: #fff;
    border: 2px solid #DDE3EC;
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.ovrs-company-card:hover {
    border-color: #2E6DA4;
    box-shadow: 0 4px 16px rgba(46,109,164,.15);
    color: inherit;
}
.ovrs-company-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ovrs-company-header h3 { margin: 0; font-size: 1em; color: #1B3A5C; }
.ovrs-sub-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ovrs-company-meta { display: flex; gap: 12px; font-size: .82em; color: #888; flex-wrap: wrap; }

/* Section */
.ovrs-section {
    background: #fff;
    border: 1px solid #DDE3EC;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.ovrs-section-title { font-size: 1.05em; font-weight: 700; color: #1B3A5C; margin: 0 0 16px; }

/* Sub current */
.ovrs-sub-current {
    background: #f0faf4;
    border: 1.5px solid #27AE60;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 8px;
}

/* Badges */
.ovrs-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .75em;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}
.ovrs-badge-active    { background: #d4edda; color: #155724; }
.ovrs-badge-trial     { background: #fff3cd; color: #856404; }
.ovrs-badge-cancelled { background: #f8d7da; color: #721c24; }

/* Table */
.ovrs-table { width: 100%; border-collapse: collapse; font-size: .9em; }
.ovrs-table th { background: #f4f6f9; padding: 8px 12px; text-align: left; font-weight: 600; color: #555; border-bottom: 2px solid #e0e4ea; }
.ovrs-table td { padding: 8px 12px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.ovrs-table tr:last-child td { border-bottom: none; }
.ovrs-table code { background: #f4f6f9; padding: 2px 6px; border-radius: 4px; font-size: .9em; }

/* Forms */
.ovrs-field { margin-bottom: 16px; }
.ovrs-field label { display: block; font-weight: 600; margin-bottom: 6px; color: #333; font-size: .9em; }
.ovrs-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #DDE3EC;
    border-radius: 8px;
    font-size: .95em;
    box-sizing: border-box;
    transition: border-color .2s;
}
.ovrs-input:focus { outline: none; border-color: #2E6DA4; }
.ovrs-iprange-form { background: #f8f9fb; border: 1px solid #DDE3EC; border-radius: 8px; padding: 16px; margin-bottom: 12px; }

/* Buttons */
.ovrs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: .9em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all .2s;
    white-space: nowrap;
}
.ovrs-btn-primary { background: #2E6DA4; color: #fff; }
.ovrs-btn-primary:hover { background: #1B3A5C; color: #fff; }
.ovrs-btn-outline { background: transparent; color: #2E6DA4; border: 1.5px solid #2E6DA4; }
.ovrs-btn-outline:hover { background: #2E6DA4; color: #fff; }
.ovrs-btn-sm { padding: 6px 12px; font-size: .82em; }
.ovrs-btn-full { width: 100%; margin-top: 8px; padding: 12px; font-size: 1em; }

/* Notices */
.ovrs-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: .9em; font-weight: 500; }
.ovrs-notice-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.ovrs-notice-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Empty state */
.ovrs-empty {
    text-align: center;
    padding: 48px 24px;
    color: #aaa;
    border: 2px dashed #DDE3EC;
    border-radius: 12px;
}

/* details/summary styling */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* Responsive */
@media (max-width: 640px) {
    .ovrs-stats-grid    { grid-template-columns: 1fr 1fr; }
    .ovrs-companies-grid { grid-template-columns: 1fr; }
    .ovrs-header        { flex-direction: column; gap: 12px; }
}

/* Verberg WordPress admin balk voor niet-admins */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }
