/* Panel polish: gold accents to match the homepage. Styles only — no layout, positioning or behaviour changes. */

html.panel-theme { --tp-gold: #d4a72c; --tp-gold-soft: #f0d98f; --tp-gold-ring: rgba(212, 167, 44, 0.14); }
html.theme-light.panel-theme { --tp-gold: #9a7b2e; --tp-gold-soft: #7a611f; --tp-gold-ring: rgba(154, 123, 46, 0.16); }

/* thin themed scrollbars */
html.panel-theme * { scrollbar-width: thin; scrollbar-color: rgba(138, 154, 120, 0.45) transparent; }

/* top bar + sidebar */
html.panel-theme .panel-navbar { box-shadow: inset 0 -1px 0 rgba(212, 167, 44, 0.16); }
html.panel-theme .sidebar-link.active { box-shadow: inset -3px 0 0 var(--tp-gold); }
html.panel-theme .sidebar-link.active .icon svg .ei-ink { fill: var(--tp-gold); }
html.panel-theme .sidebar-link.active .icon svg .ei-line { stroke: var(--tp-gold); }
html.panel-theme .sidebar-link { transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }

/* overview numbers */
html.panel-theme .metric-val { font-variant-numeric: tabular-nums; }
html.panel-theme .metric-stat:hover .metric-val,
html.panel-theme .metric-stat:focus-visible .metric-val { color: var(--tp-gold-soft); }
html.panel-theme .metric-stat:focus-visible { outline-color: var(--tp-gold); }

/* inputs: gold focus */
html.panel-theme .search-input:focus,
html.panel-theme .form-input:focus,
html.panel-theme textarea.form-input:focus,
html.panel-theme select.form-input:focus,
html.panel-theme input:focus,
html.panel-theme textarea:focus,
html.panel-theme select:focus {
    border-color: var(--tp-gold);
    box-shadow: 0 0 0 3px var(--tp-gold-ring);
}

/* dropdowns: gold arrow, dark native list */
html.panel-theme select:not([multiple]):not([size]) {
    -webkit-appearance: none; appearance: none;
    color-scheme: dark;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23d4a72c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 0.75rem center !important;
    background-size: 0.9rem !important;
    padding-left: 2.1rem;
}
html.panel-theme select:not([multiple]):not([size]):hover { border-color: rgba(212, 167, 44, 0.45); }
html.panel-theme select option, html.panel-theme select optgroup { background: #1a1d16; color: #ecdfcc; }
html.theme-light.panel-theme select:not([multiple]):not([size]) {
    color-scheme: light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%239a7b2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
html.theme-light.panel-theme select option, html.theme-light.panel-theme select optgroup { background: #fffcf6; color: #1c2118; }

/* selected choices: filters, billing period, plan pick */
html.panel-theme .invoice-filter.active,
html.panel-theme .ticket-filter.active,
html.panel-theme .subfilter-pill.active,
html.panel-theme .plan-view-btn.active,
html.panel-theme .period-option.active {
    border-color: var(--tp-gold);
    box-shadow: 0 0 0 1px var(--tp-gold-ring);
}
html.panel-theme .plan-pick-card.selected,
html.panel-theme .plan-sheet-row.selected { border-color: var(--tp-gold); box-shadow: inset -3px 0 0 var(--tp-gold); }

/* tables */
html.panel-theme .data-table tr:hover td { background: rgba(212, 167, 44, 0.055); }
html.theme-light.panel-theme .data-table tr:hover td { background: rgba(154, 123, 46, 0.08); }

/* dialogs */
html.panel-theme .modal-content { border-top: 2px solid var(--tp-gold); }

/* cards */
html.panel-theme .glass-card { transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
html.panel-theme .glass-card:hover { border-color: rgba(212, 167, 44, 0.3); }
