/**
 * Reef Admin Portal Stylesheet
 * Matches dashboard.css patterns with Reef brand pink (#E91E76)
 * Dark sidebar, pink header, white cards on light gray background.
 */

/* ----------------------------------------------------------------
   Box-sizing reset
   ---------------------------------------------------------------- */

.reef-admin-dashboard,
.reef-admin-dashboard *,
.reef-admin-dashboard *::before,
.reef-admin-dashboard *::after {
    box-sizing: border-box;
}

/* ----------------------------------------------------------------
   Neutralize body margin + any WordPress wrappers on portal pages
   ---------------------------------------------------------------- */

body.reef-portal-blank,
body.reef-admin-page,
body.reef-reseller-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #f0f1f3 !important;
}

body.reef-admin-page,
body.reef-reseller-page {
    overflow: hidden;
    height: 100vh;
}

body.reef-admin-page .site-main,
body.reef-admin-page main,
body.reef-admin-page .entry-content,
body.reef-admin-page .page-content,
body.reef-admin-page .post-content,
body.reef-admin-page article,
body.reef-admin-page .site-content,
body.reef-admin-page .content-area,
body.reef-admin-page #primary,
body.reef-admin-page #content,
body.reef-admin-page #page,
body.reef-admin-page .site,
body.reef-admin-page .wp-site-blocks,
body.reef-admin-page .wp-block-post-content,
body.reef-admin-page .wp-block-shortcode,
body.reef-admin-page .wp-block-group,
body.reef-admin-page .wp-block-paragraph,
body.reef-admin-page .is-layout-constrained,
body.reef-admin-page .is-layout-flow,
body.reef-admin-page .has-global-padding,
body.reef-admin-page .alignwide,
body.reef-admin-page .alignfull,
body.reef-reseller-page .site-main,
body.reef-reseller-page main,
body.reef-reseller-page .entry-content,
body.reef-reseller-page .page-content,
body.reef-reseller-page .post-content,
body.reef-reseller-page article,
body.reef-reseller-page .site-content,
body.reef-reseller-page .content-area,
body.reef-reseller-page #primary,
body.reef-reseller-page #content,
body.reef-reseller-page #page,
body.reef-reseller-page .site,
body.reef-reseller-page .wp-site-blocks,
body.reef-reseller-page .wp-block-post-content,
body.reef-reseller-page .wp-block-shortcode,
body.reef-reseller-page .wp-block-group,
body.reef-reseller-page .wp-block-paragraph,
body.reef-reseller-page .is-layout-constrained,
body.reef-reseller-page .is-layout-flow,
body.reef-reseller-page .has-global-padding,
body.reef-reseller-page .alignwide,
body.reef-reseller-page .alignfull {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
}

body.reef-admin-page .is-layout-constrained > *,
body.reef-admin-page .is-layout-flow > *,
body.reef-admin-page .wp-block-post-content > *,
body.reef-admin-page .wp-block-shortcode > *,
body.reef-reseller-page .is-layout-constrained > *,
body.reef-reseller-page .is-layout-flow > *,
body.reef-reseller-page .wp-block-post-content > *,
body.reef-reseller-page .wp-block-shortcode > * {
    max-width: none !important;
    margin: 0 !important;
}

/* ----------------------------------------------------------------
   App shell
   ---------------------------------------------------------------- */

.reef-admin-dashboard {
    display: flex !important;
    height: 100vh;
    width: 100vw !important;
    max-width: none !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reef-admin-dashboard.reef-ready {
    opacity: 1 !important;
}

.reef-admin-dashboard table,
.reef-admin-dashboard .reef-card {
    max-width: none !important;
    width: 100% !important;
}

/* ----------------------------------------------------------------
   Dark sidebar (fixed, full height, left edge)
   ---------------------------------------------------------------- */

.reef-admin-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 220px;
    background: #1c1c24;
    background: color-mix(in srgb, #E91E76 35%, #1c1c24);
    padding: 24px 12px 12px;
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    overflow-y: hidden;
    z-index: 100;
    transition: transform 0.25s ease;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.12);
}

.reef-admin-sidebar-logo-wrap {
    padding-bottom: 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.reef-admin-sidebar-logo {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    /* White tile so primary-color logos (very common: navy logo on navy sidebar)
       stay visible regardless of the brand background. Padding keeps the logo
       from bleeding edge-to-edge. */
    background: #ffffff;
    padding: 8px;
    box-sizing: border-box;
}

.reef-admin-sidebar-logo--text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 28px;
    font-weight: 700;
    /* Same white-tile treatment as the img variant — keeps the monogram visible
       on any primary background. Color uses --reseller-primary when present
       (reseller portal scope) and falls back to Reef pink for the admin portal. */
    color: var(--reseller-primary, #E91E76);
    padding: 0;
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background: #ffffff;
}

.reef-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.reef-nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: inherit;
}

.reef-nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.reef-nav-link.active {
    background: #E91E76;
    color: #fff;
    border-left-color: transparent;
    font-weight: 600;
}

.reef-nav-link.active svg {
    color: inherit;
}

.reef-nav-spacer {
    flex-grow: 1;
}

.reef-nav-user {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
}

.reef-logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.reef-logout-link:hover {
    color: #fff;
    background: rgba(220, 38, 38, 0.2);
    text-decoration: none;
}

.reef-logout-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Sidebar backdrop (mobile overlay) */
.reef-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* ----------------------------------------------------------------
   Main area (right of sidebar)
   ---------------------------------------------------------------- */

.reef-admin-main {
    margin-left: 220px;
    flex: 1;
    display: flex !important;
    flex-direction: column;
    height: 100vh;
    min-width: 0;
    width: calc(100vw - 220px) !important;
    max-width: none !important;
    overflow: hidden;
}

/* ----------------------------------------------------------------
   Branded header (Reef pink)
   ---------------------------------------------------------------- */

.reef-admin-header {
    background: linear-gradient(to right,
        color-mix(in srgb, #E91E76 35%, #1c1c24),
        #E91E76 48px
    );
    padding: 18px 32px 18px 64px;
    display: flex !important;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
}

.reef-admin-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    flex: 1;
}

.reef-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    line-height: 0;
}

.reef-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.reef-sidebar-toggle svg {
    width: 24px;
    height: 24px;
}

/* ----------------------------------------------------------------
   Content area
   ---------------------------------------------------------------- */

.reef-admin-content {
    background: #f5f6f8;
    flex: 1;
    padding: 8px 32px 28px;
    overflow-y: auto;
    width: 100% !important;
    max-width: none !important;
}

.reef-section {
    display: none !important;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.reef-section.reef-section--active {
    display: block !important;
    margin-top: 16px !important;
    padding-top: 24px !important;
    opacity: 1;
}

/* ----------------------------------------------------------------
   Card grid
   ---------------------------------------------------------------- */

.reef-dashboard-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100% !important;
    max-width: none !important;
}

.reef-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 24px 20px;
    transition: box-shadow 0.2s ease;
}

.reef-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.reef-card h3 {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #E91E76;
    border-left: 3px solid #E91E76;
    padding-left: 12px;
}

.reef-card p {
    margin: 0 0 6px;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.reef-card p:last-child {
    margin-bottom: 0;
}

.reef-card p strong {
    font-weight: 600;
    color: #1a1a1a;
}

.reef-big-number {
    font-size: 40px;
    font-weight: 800;
    color: #E91E76;
    margin: 0 0 4px;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ----------------------------------------------------------------
   CRM Toolbar
   ---------------------------------------------------------------- */

.reef-employee-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.reef-employee-toolbar h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.reef-count-badge {
    background: #E91E76;
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}

.reef-toolbar-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

#reef-export-all-csv {
    background: transparent;
    color: #E91E76;
    border: 1.5px solid #E91E76;
}

#reef-export-all-csv:hover {
    background: rgba(233, 30, 118, 0.06);
    box-shadow: none;
    opacity: 1;
}

/* ── Filter bar ── */
.reef-filter-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.reef-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reef-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.reef-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: #6b7280;
    background: #f3f4f6;
    border: 1.5px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.reef-filter-pill:hover {
    background: #e5e7eb;
    color: #374151;
}

.reef-filter-pill.active {
    background: rgba(233, 30, 118, 0.08);
    border-color: #E91E76;
    color: #E91E76;
    font-weight: 600;
}

.reef-filter-select {
    padding: 5px 28px 5px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: #6b7280;
    background: #f3f4f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1.5px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.reef-filter-select:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.reef-filter-select:focus {
    outline: none;
    background-color: rgba(233, 30, 118, 0.08);
    border-color: #E91E76;
    color: #E91E76;
}

/* ── Org status badge ── */
.reef-org-status-badge {
    display: inline-block;
    margin-left: 7px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    vertical-align: middle;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.reef-status--inactive {
    background: #fef3c7;
    color: #92400e;
}

/* ── Deactivate / Activate action buttons ── */
.reef-btn--deactivate {
    color: #d97706;
}

.reef-btn--deactivate:hover {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
}

.reef-btn--activate {
    color: #16a34a;
}

.reef-btn--activate:hover {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
}

.reef-btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.reef-btn--loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: reef-spin 0.6s linear infinite;
}

@keyframes reef-spin {
    to { transform: rotate(360deg); }
}

.reef-search-wrap {
    position: relative;
}

.reef-employee-search {
    width: 220px;
    padding: 12px 36px 12px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.reef-employee-search:focus {
    border-color: #E91E76;
    box-shadow: 0 0 0 3px rgba(233, 30, 118, 0.12);
}

.reef-search-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid #d0d5dd;
    border-top-color: #E91E76;
    border-radius: 50%;
    animation: reef-admin-spin 0.6s linear infinite;
}

.reef-add-employee-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #E91E76;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.reef-add-employee-btn:hover:not(:disabled) {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.reef-add-employee-btn:disabled {
    background: #ccc;
    cursor: default;
    opacity: 0.7;
}

/* ----------------------------------------------------------------
   Employee table
   ---------------------------------------------------------------- */

.reef-table-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    overflow-x: auto;
    padding: 0;
    border-radius: 12px;
}

.reef-employee-table {
    width: 100% !important;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    table-layout: auto;
}

.reef-employee-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: #E91E76;
    border: none;
    white-space: nowrap;
}

.reef-employee-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.reef-employee-table thead th:last-child {
    border-radius: 0 8px 0 0;
    width: 1%;
    white-space: nowrap;
}

.reef-employee-table tbody tr {
    transition: opacity 0.2s ease, background-color 0.3s ease;
}

.reef-employee-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #333;
    font-size: 14px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reef-employee-table tbody tr:last-child td {
    border-bottom: none;
}

.reef-employee-table tbody tr:hover td {
    background: #f3f4f6;
}

.reef-employee-table tbody td.reef-actions-cell {
    width: 1%;
    white-space: nowrap;
    overflow: visible;
    padding: 6px 10px;
}

.reef-action-btn {
    background: none;
    border: 1px solid transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    color: #E91E76;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    line-height: 1;
    margin-right: 2px;
    vertical-align: middle;
}

.reef-action-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

.reef-export-org-btn {
    color: #059669;
}

.reef-export-org-btn:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.reef-remove-btn,
.reef-delete-org-btn {
    color: #dc2626;
}

.reef-remove-btn:hover,
.reef-delete-org-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.reef-no-results td {
    text-align: center;
    padding: 40px 14px;
    color: #999;
    font-size: 14px;
}

/* ----------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------- */

.reef-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px;
    font-size: 13px;
    color: #666;
}

.reef-pagination-info {
    font-size: 13px;
    color: #666;
}

.reef-pagination-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.reef-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.reef-page-link:hover {
    background: #f3f4f6;
    border-color: #d0d5dd;
    text-decoration: none;
}

.reef-page-link--active {
    background: #E91E76;
    color: #fff;
    border-color: #E91E76;
}

.reef-page-link--active:hover {
    background: #E91E76;
    color: #fff;
}

/* ----------------------------------------------------------------
   Modal
   ---------------------------------------------------------------- */

.reef-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    align-items: center;
    justify-content: center;
}

.reef-modal-overlay.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.reef-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 640px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow-x: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.reef-modal-overlay.active .reef-modal {
    transform: translateY(0);
    opacity: 1;
}

.reef-modal--large {
    max-width: 900px;
}

.reef-modal--confirm {
    max-width: 440px;
}

.reef-modal--confirm .reef-modal-body {
    padding: 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.reef-modal--confirm .reef-modal-body strong {
    font-weight: 600;
    color: #1a1a1a;
}

.reef-modal--confirm .reef-modal-footer {
    justify-content: flex-end;
    gap: 10px;
}

.reef-modal--confirm .reef-confirm-btn--danger {
    background: #dc2626;
}

.reef-modal--confirm .reef-confirm-btn--danger:hover {
    background: #b91c1c;
}

.reef-modal-header {
    background: #E91E76;
    color: #fff;
    padding: 18px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reef-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.reef-modal-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

.reef-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.reef-modal-body {
    padding: 12px 24px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.reef-modal-body .reef-table-card,
.reef-modal-body .reef-employees-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#reef-org-detail-overlay .reef-modal-body {
    height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
}

#reef-org-detail-overlay .reef-employees-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.reef-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.reef-modal-cancel {
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #555;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.reef-modal-cancel:hover {
    background: #f3f4f6;
}

.reef-modal-submit {
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #E91E76;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
}

.reef-modal-submit:hover:not(:disabled) {
    opacity: 0.9;
}

.reef-modal-submit:disabled {
    background: #ccc;
    opacity: 0.7;
    cursor: default;
}

/* ----------------------------------------------------------------
   Tabs (detail modal)
   ---------------------------------------------------------------- */

.reef-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

.reef-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.reef-tab:hover {
    color: #333;
}

.reef-tab.active {
    color: #E91E76;
    border-bottom-color: #E91E76;
}

.reef-tab-content {
    display: none;
    min-height: 160px;
}

.reef-tab-content.active {
    display: block;
}

.reef-tab-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* ----------------------------------------------------------------
   Org Info Tab
   ---------------------------------------------------------------- */

.reef-org-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reef-info-list {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
}

.reef-info-list dt,
.reef-info-list dd {
    padding: 10px 12px;
    margin: 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f1f3;
}

.reef-info-list dt {
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
}

.reef-info-list dd {
    color: #111827;
    font-weight: 500;
}

.reef-info-list dt:last-of-type,
.reef-info-list dd:last-of-type {
    border-bottom: none;
}

.reef-org-info-logo {
    padding: 4px 0;
}

.reef-org-info-logo img {
    max-width: 140px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    padding: 8px;
    background: #fff;
}

.reef-org-info-actions {
    display: flex;
    gap: 10px;
    padding-top: 4px;
}

#reef-export-org-csv {
    background: transparent;
    color: #E91E76;
    border: 1.5px solid #E91E76;
}

#reef-export-org-csv:hover {
    background: rgba(233, 30, 118, 0.06);
    box-shadow: none;
    opacity: 1;
}

/* ----------------------------------------------------------------
   Toggle switch (benefit on/off)
   ---------------------------------------------------------------- */

.reef-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.reef-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.reef-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d0d5dd;
    transition: 0.2s;
    border-radius: 24px;
}

.reef-toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.reef-toggle input:checked + .reef-toggle-slider {
    background-color: #E91E76;
}

.reef-toggle input:checked + .reef-toggle-slider::before {
    transform: translateX(20px);
}

.reef-toggle input:focus + .reef-toggle-slider {
    box-shadow: 0 0 0 3px rgba(233, 30, 118, 0.2);
}

/* ----------------------------------------------------------------
   Benefits editor (card-row style)
   ---------------------------------------------------------------- */

.reef-benefits-editor {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reef-benefits-list {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.reef-benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f1f3;
    transition: background 0.15s ease;
}

.reef-benefit-item:last-child {
    border-bottom: none;
}

.reef-benefit-item.is-active {
    background: rgba(233, 30, 118, 0.03);
}

.reef-benefit-item .reef-benefit-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #9ca3af;
    transition: color 0.15s ease;
}

.reef-benefit-item.is-active .reef-benefit-name {
    color: #111827;
}

.reef-benefit-price-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.reef-price-currency {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.reef-price-unit {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

.reef-benefit-price {
    width: 80px;
    padding: 7px 6px 7px 8px;
    font-size: 14px;
    font-family: inherit;
    text-align: right;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    background: #fff;
    color: #111827;
}

.reef-benefit-price::-webkit-inner-spin-button {
    opacity: 1;
}

.reef-benefit-price:focus {
    border-color: #E91E76;
    box-shadow: 0 0 0 3px rgba(233, 30, 118, 0.1);
}

.reef-benefit-price:disabled {
    background: #f9fafb;
    color: #d0d5dd;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

.reef-benefits-summary {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
}

.reef-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.reef-summary-row:last-child {
    border-bottom: none;
}

.reef-summary-total {
    background: #fff;
}

.reef-summary-total strong {
    font-size: 16px;
    font-weight: 700;
    color: #E91E76;
}

.reef-benefits-actions {
    display: flex;
    justify-content: flex-end;
}

.reef-benefit-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.4;
    flex-shrink: 0;
}

.reef-benefit-status--active {
    background: rgba(233, 30, 118, 0.08);
    color: #E91E76;
}

.reef-benefit-status--inactive {
    background: #f3f4f6;
    color: #9ca3af;
}

.reef-benefit-price-ro {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
}

#reef-edit-tab-benefits {
    padding-top: 4px;
}

.reef-benefits-create-note {
    font-size: 13px;
    color: #6b7280;
    text-align: right;
    margin: 0;
    padding: 2px 0;
}

/* ----------------------------------------------------------------
   Form fields
   ---------------------------------------------------------------- */

.reef-form-field {
    margin-bottom: 18px;
}

.reef-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.reef-form-field--full {
    grid-column: 1 / -1;
}

.reef-modal-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 20px;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    line-height: 1.5;
}

.reef-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.reef-required {
    color: #dc2626;
}

.reef-form-field input[type="text"],
.reef-form-field input[type="email"],
.reef-form-field input[type="tel"],
.reef-form-field input[type="number"],
.reef-form-field input[type="date"],
.reef-form-field select {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.reef-form-field input::placeholder {
    color: #9ca3af;
}

.reef-form-field input:focus,
.reef-form-field select:focus {
    border-color: #E91E76;
    box-shadow: 0 0 0 3px rgba(233, 30, 118, 0.12);
}

.reef-form-field input:disabled,
.reef-form-field select:disabled {
    background: #f3f4f6;
    color: #666;
    cursor: not-allowed;
}

.reef-form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.reef-field-error {
    display: none;
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}

.reef-form-field.has-error .reef-field-error {
    display: block;
}

.reef-form-field.has-error input,
.reef-form-field.has-error select {
    border-color: #dc2626;
}

/* ----------------------------------------------------------------
   Spinner (CSS-only)
   ---------------------------------------------------------------- */

.reef-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #E91E76;
    border-radius: 50%;
    animation: reef-admin-spin 0.6s linear infinite;
}

.reef-spinner--small {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

@keyframes reef-admin-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ----------------------------------------------------------------
   Toast notifications
   ---------------------------------------------------------------- */

.reef-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.reef-toast {
    padding: 14px 40px 14px 16px;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: reef-admin-slideIn 0.3s ease;
    position: relative;
    pointer-events: auto;
    max-width: 400px;
    line-height: 1.4;
}

.reef-toast a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.reef-toast--error {
    background: #dc2626;
    color: #fff;
}

.reef-toast--success {
    background: #16a34a;
    color: #fff;
}

.reef-toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    padding: 2px 4px;
    line-height: 1;
}

.reef-toast-close:hover {
    opacity: 1;
}

@keyframes reef-admin-slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ----------------------------------------------------------------
   Table loading shimmer
   ---------------------------------------------------------------- */

.reef-table--loading tbody {
    position: relative;
}

.reef-table--loading tbody::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, 0.6) 50%, transparent 75%);
    background-size: 200% 100%;
    animation: reef-admin-shimmer 1.5s ease infinite;
    pointer-events: none;
}

@keyframes reef-admin-shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

/* ----------------------------------------------------------------
   Scroll lock
   ---------------------------------------------------------------- */

body.reef-modal-open {
    overflow: hidden;
}

body.reef-modal-open .reef-admin-content {
    overflow: hidden;
}

/* ----------------------------------------------------------------
   Focus visibility (WCAG 2.4.7)
   ---------------------------------------------------------------- */

.reef-admin-dashboard :focus-visible {
    outline: 2px solid #E91E76;
    outline-offset: 2px;
}

.reef-admin-dashboard input:focus-visible,
.reef-admin-dashboard select:focus-visible,
.reef-admin-dashboard textarea:focus-visible {
    outline: none;
}

/* ----------------------------------------------------------------
   Reduced motion (WCAG 2.3.3)
   ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .reef-admin-dashboard *,
    .reef-admin-dashboard *::before,
    .reef-admin-dashboard *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----------------------------------------------------------------
   Responsive — <= 900px (tablet / small laptop)
   ---------------------------------------------------------------- */

@media (max-width: 900px) {
    .reef-admin-nav {
        transform: translateX(-220px);
    }

    .reef-sidebar-open .reef-admin-nav {
        transform: translateX(0);
    }

    .reef-sidebar-open .reef-sidebar-backdrop {
        display: block;
        opacity: 1;
    }

    .reef-admin-main {
        margin-left: 0;
        width: 100vw;
    }

    .reef-sidebar-toggle {
        display: block;
    }

    .reef-admin-header {
        padding: 14px 20px 14px 20px;
    }

    .reef-admin-header h2 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .reef-admin-content {
        padding: 10px 20px 20px;
    }
}

/* ----------------------------------------------------------------
   Responsive — <= 768px (phone landscape / small tablet)
   ---------------------------------------------------------------- */

@media (max-width: 768px) {
    .reef-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }

    .reef-modal--large {
        max-width: 100%;
    }

    /* Employee table -> card layout */
    .reef-table-card {
        padding: 12px;
        background: transparent;
        border: none;
    }

    .reef-employee-table thead,
    .reef-employee-table colgroup {
        display: none;
    }

    .reef-employee-table,
    .reef-employee-table tbody,
    .reef-employee-table tr,
    .reef-employee-table td {
        display: block;
    }

    .reef-employee-table tbody tr {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 14px 16px;
        margin-bottom: 12px;
    }

    .reef-employee-table tbody tr:hover td {
        background: transparent;
    }

    .reef-employee-table tbody td {
        padding: 4px 0;
        border-bottom: none;
        display: flex;
        gap: 8px;
        font-size: 14px;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }

    .reef-employee-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        min-width: 100px;
        flex-shrink: 0;
        color: #6b7280;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding-top: 2px;
    }

    .reef-actions-cell {
        padding-top: 8px !important;
        border-top: 1px solid #f0f1f3;
        margin-top: 6px;
        justify-content: flex-start;
    }

    .reef-actions-cell::before {
        display: none;
    }

    .reef-action-btn {
        min-height: 44px;
        min-width: 44px;
        width: 44px;
        height: 44px;
    }

    .reef-employee-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .reef-toolbar-actions {
        margin-left: 0;
        flex-direction: column;
    }

    .reef-search-wrap {
        width: 100%;
    }

    .reef-employee-search {
        width: 100%;
    }

    .reef-add-employee-btn {
        width: 100%;
        justify-content: center;
    }

    .reef-tabs {
        flex-wrap: wrap;
    }

    .reef-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .reef-benefit-row {
        flex-wrap: wrap;
    }

    .reef-benefit-price-input {
        width: 80px;
    }

    .reef-pagination {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .reef-page-link {
        min-height: 44px;
        padding: 10px 16px;
    }
}

/* ----------------------------------------------------------------
   Responsive — <= 480px (phone portrait)
   ---------------------------------------------------------------- */

@media (max-width: 480px) {
    .reef-admin-content {
        padding: 8px 16px 16px;
    }

    .reef-dashboard-cards {
        grid-template-columns: 1fr !important;
    }

    .reef-card {
        padding: 20px 18px 16px;
    }

    .reef-big-number {
        font-size: 34px;
    }

    .reef-modal-header {
        padding: 14px 16px;
    }

    .reef-modal-body {
        padding: 16px;
    }

    #reef-org-detail-overlay .reef-modal-body {
        height: 420px;
    }

    .reef-nav-link svg {
        display: none;
    }

    .reef-logout-link svg {
        display: none;
    }
}

/* ----------------------------------------------------------------
   Touch-specific
   ---------------------------------------------------------------- */

@media (hover: none) and (pointer: coarse) {
    .reef-card:hover {
        box-shadow: none;
    }

    .reef-employee-table tbody tr:hover td {
        background: transparent;
    }

    .reef-action-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .reef-nav-link {
        padding: 12px 14px;
    }
}

/* ----------------------------------------------------------------
   Stripe-aware status badges
   ---------------------------------------------------------------- */

.reef-org-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.02em;
}

.reef-status--inactive {
    background: #e5e7eb;
    color: #6b7280;
}

.reef-status--trialing {
    background: #dbeafe;
    color: #2563eb;
}

.reef-status--needs-payment {
    background: #fef3c7;
    color: #d97706;
}

.reef-status--past-due {
    background: #fee2e2;
    color: #dc2626;
}

.reef-status--cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.reef-billing-log-type--info {
    background: #dbeafe;
    color: #2563eb;
}

.reef-billing-log-type--error {
    background: #fee2e2;
    color: #dc2626;
}

/* ----------------------------------------------------------------
   Payment setup pills (two-sided: reseller + org)
   ---------------------------------------------------------------- */

.reef-payment-pills {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

.reef-payment-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: help;
}

.reef-payment-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: 0 0 6px;
    background: currentColor;
    display: inline-block;
}

/* Only blocked pills render; OK rows use a standalone green checkmark
   reusing the Revive column's SVG, so no ready/dot styles are needed. */
.reef-payment-pill--blocked {
    background: #fee2e2;
    color: #b91c1c;
}

.reef-billing-log-type--payment_success {
    background: #dcfce7;
    color: #16a34a;
}

.reef-billing-log-type--payment_failed {
    background: #fee2e2;
    color: #dc2626;
}

.reef-billing-log-type--subscription_cancelled {
    background: #fef3c7;
    color: #d97706;
}

/* ─── System Log Level Badges ─── */

.reef-system-log-level--debug {
    background: #f3f4f6;
    color: #6b7280;
}

.reef-system-log-level--info {
    background: #dbeafe;
    color: #2563eb;
}

.reef-system-log-level--warning {
    background: #fef3c7;
    color: #d97706;
}

.reef-system-log-level--error {
    background: #fee2e2;
    color: #dc2626;
}

.reef-system-log-channel {
    font-family: monospace;
    font-size: 0.8em;
    color: #6b7280;
}

.reef-log-view-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}

.reef-log-view-btn:hover {
    color: #E91E76;
    background: rgba(233, 30, 118, 0.06);
}

.reef-log-detail-row td {
    padding: 0 !important;
    border-top: none !important;
}

.reef-log-detail-inner {
    background: #f9fafb;
    border-top: 1px dashed #e5e7eb;
    padding: 10px 16px;
    font-family: monospace;
    font-size: 0.82em;
    color: #374151;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ─── Settings ─── */

.reef-setting-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.reef-setting-info {
    flex: 1;
}

.reef-setting-title {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
}

.reef-field-hint {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.reef-settings-status {
    font-size: 13px;
    margin-top: 12px;
    min-height: 20px;
    transition: opacity 0.2s ease;
}

/* Toggle switch */
.reef-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.reef-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.reef-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: background-color 0.2s ease;
    border-radius: 24px;
}

.reef-switch-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: transform 0.2s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.reef-switch input:checked + .reef-switch-slider {
    background-color: #E91E76;
}

.reef-switch input:checked + .reef-switch-slider::before {
    transform: translateX(20px);
}

.reef-switch input:focus-visible + .reef-switch-slider {
    outline: 2px solid #E91E76;
    outline-offset: 2px;
}

/* Revenue split input */
.reef-split-input {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.reef-split-field {
    flex: 1;
}

.reef-split-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.reef-split-input-wrap {
    position: relative;
}

.reef-split-input-wrap input {
    width: 100%;
    padding: 8px 30px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.reef-split-input-wrap input::-webkit-outer-spin-button,
.reef-split-input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.reef-split-input-wrap input:disabled {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.reef-split-suffix {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

/* ----------------------------------------------------------------
   Invite status badges
   ---------------------------------------------------------------- */
.reef-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.reef-badge--green { background: #dcfce7; color: #166534; }
.reef-badge--yellow { background: #fef3c7; color: #92400e; }
.reef-badge--red { background: #fee2e2; color: #991b1b; }
.reef-badge--tag {
    background: #ede9fe;
    color: #5b21b6;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin: 1px 2px;
}

.reef-benefit-prices {
    display: flex;
    gap: 12px;
    padding: 8px 12px 12px 56px;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-top: -1px;
    margin-bottom: 8px;
}

.reef-benefit-prices[hidden] {
    display: none;
}

.reef-tier-col {
    flex: 1;
}

.reef-tier-col label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.reef-tier-col input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    text-align: right;
    box-sizing: border-box;
}

.reef-tier-col input:focus {
    outline: none;
    border-color: #E91E76;
    box-shadow: 0 0 0 3px rgba(233, 30, 118, 0.12);
}
