/* Approved YuppiPets visual rhythm, adapted to DANKE Consulting. */
:root { --danke-sidebar-text:#4e5d74; }
.admin-login .login-inner { width:min(506px,100%); }
.admin-login .login-form { padding:52px max(40px,9vw); }
.admin-login .login-inner img { width:176px; margin-bottom:38px; }
.admin-login .login-inner h1 { margin:0 0 8px; font-size:38px; line-height:1.08; letter-spacing:-.055em; }
.admin-login .login-inner > p { margin:0 0 34px; color:#6b778b; font-size:15px; }
.admin-login .field-v2 { gap:9px; margin:20px 0; }
.admin-login .field-v2 label { color:#242a35; font-size:14px; }
.admin-login .field-v2 input { box-sizing:border-box; min-height:58px; border-color:#e4e8ee; border-radius:13px; padding:15px 18px; font-size:15px; }
.admin-login .field-v2 input::placeholder { color:#a1adbe; opacity:1; }
.admin-login .v2-button.primary { width:100%; min-height:58px; margin-top:4px; border:0; border-radius:13px; background:#17191c; color:#fff; font-size:15px; }
.admin-login .login-art { min-height:calc(100vh - 48px); margin:24px 24px 24px 0; border-radius:26px; }
.admin-v2 { grid-template-columns:304px minmax(0,1fr); }
.side-v2 { display:flex; flex-direction:column; width:auto; min-width:0; overflow:hidden; box-sizing:border-box; padding:28px 17px 18px; }
.side-v2 img { width:171px; margin:5px 13px 36px; }
.side-v2 nav { display:grid; width:100%; min-width:0; gap:5px; overflow:hidden; }
.side-v2 .side-section { margin-top:18px; padding-top:18px; }
.side-v2 button { min-width:0; max-width:100%; min-height:54px; gap:14px; padding:0 17px; box-sizing:border-box; border-radius:17px; color:var(--danke-sidebar-text); font-size:15.5px; font-weight:500; letter-spacing:-.015em; transition:background .18s,color .18s; }
.side-v2 button b { width:22px; height:22px; flex-basis:22px; }
.side-v2 button > span { white-space:nowrap; }.side-v2 .side-menu-label { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.side-menu-count { display:grid; place-items:center; min-width:24px; height:24px; padding:0 6px; box-sizing:border-box; border-radius:999px; background:#edf0f3; color:#3e4a58; font-size:11px; font-style:normal; font-weight:800; line-height:1; }
.side-v2 button.active .side-menu-count { background:#17191c; color:#fff; }
.side-v2 button .admin-line-icon { stroke-width:1.9; }
.side-v2 button:hover { background:#f7f8fa; color:#242a35; }
.side-v2 button.active { background:#eef0f2; color:#17191c; font-weight:700; }
.side-v2 button.active b { color:#252a31; }
.side-bottom { margin-top:auto; border-top:1px solid #e6e9ed; padding-top:15px; }
.side-v2 .theme-switch { width:100%; min-height:52px; padding:0 13px; gap:12px; }
.theme-switch > span { flex:1; }
.theme-switch .theme-icon { color:#252a31; }
.theme-track { width:48px; height:28px; border-radius:30px; background:#d0d6df; padding:4px; box-sizing:border-box; }
.theme-track em { display:block; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 2px 5px #1b263426; transition:transform .18s; }
.theme-track.is-dark { background:#252a31; }
.theme-track.is-dark em { transform:translateX(20px); }
.side-foot { position:static; display:flex; align-items:flex-start; gap:11px; margin:13px 0 0; padding:16px; border:1px solid #e1e5e9; border-radius:18px; background:#f3f4f6; color:#17191c; }
.side-foot .side-security-icon { display:grid; width:23px; height:23px; flex:0 0 23px; color:#252a31; }
.side-foot b { display:block; font-size:15.5px; }
.side-foot small { display:block; margin-top:4px; color:#66717c; font-size:12.5px; }
.top-v2 > span { display:inline-flex; align-items:center; gap:9px; }
.top-date-icon, .profile-chevron, .profile-menu-icon { width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.9; }
.profile-chevron { width:18px; height:18px; }
:root[data-admin-theme="dark"] { --a-ink:#f5f7fa; --a-copy:#aeb9ca; --a-line:#303846; --a-canvas:#171c25; --a-soft:#242b36; }
:root[data-admin-theme="dark"] .admin-v2, :root[data-admin-theme="dark"] .main-v2 { background:#171c25; color:#f5f7fa; }
:root[data-admin-theme="dark"] .side-v2, :root[data-admin-theme="dark"] .top-v2, :root[data-admin-theme="dark"] .metric-v2, :root[data-admin-theme="dark"] .panel-v2, :root[data-admin-theme="dark"] .data-table, :root[data-admin-theme="dark"] .table-footer, :root[data-admin-theme="dark"] .config-tile { background:#1e2530; color:#f5f7fa; }
:root[data-admin-theme="dark"] .side-v2 { border-color:#303846; }
:root[data-admin-theme="dark"] .side-v2 button { color:#c4cddd; }
:root[data-admin-theme="dark"] .side-v2 button:hover { background:#262f3c; color:#fff; }
:root[data-admin-theme="dark"] .side-v2 button.active { background:#303947; color:#fff; }
:root[data-admin-theme="dark"] .side-bottom { border-color:#303846; }
:root[data-admin-theme="dark"] .side-foot { border-color:#285a59; background:#1c3435; color:#d8f3f0; }
:root[data-admin-theme="dark"] .side-foot small { color:#a2c9c5; }
:root[data-admin-theme="dark"] .top-v2 .admin-chip, :root[data-admin-theme="dark"] .table-search, :root[data-admin-theme="dark"] .table-filter, :root[data-admin-theme="dark"] .table-trash { background:#202734; border-color:#394353; color:#e7ebf2; }

/* Navigation icons need their own contrast rules because some have a direct light-theme color. */
:root[data-admin-theme="dark"] .side-v2 button b,
:root[data-admin-theme="dark"] .side-v2 button.active b { color:#d0d9e5; }
:root[data-admin-theme="dark"] .side-v2 button:hover b,
:root[data-admin-theme="dark"] .side-v2 button.active:hover b { color:#fff; }
:root[data-admin-theme="dark"] .side-v2 .theme-switch .theme-icon { color:#b9c5d4; }
:root[data-admin-theme="dark"] .side-v2 .theme-switch:hover .theme-icon { color:#fff; }
:root[data-admin-theme="dark"] .side-foot .side-security-icon { color:#a4d8cc; }
:root[data-admin-theme="dark"] .side-menu-count { background:#394555; color:#eef3f8; }
:root[data-admin-theme="dark"] .side-v2 button.active .side-menu-count { background:#dce4ee; color:#1b2430; }

.table-sort { display:inline-flex; align-items:center; gap:6px; padding:0; border:0; background:transparent; color:inherit; font:inherit; font-weight:800; letter-spacing:inherit; cursor:pointer; }
.table-sort:hover { color:#202a35; }
.table-sort span { font-size:13px; line-height:1; }
:root[data-admin-theme="dark"] .table-sort:hover { color:#f5f7fa; }

/* Dark mode is a complete component theme: controls never fall back to white. */
:root[data-admin-theme="dark"] input,
:root[data-admin-theme="dark"] textarea,
:root[data-admin-theme="dark"] select,
:root[data-admin-theme="dark"] option { background:#202734; border-color:#394353; color:#edf1f5; color-scheme:dark; }
:root[data-admin-theme="dark"] input::placeholder,
:root[data-admin-theme="dark"] textarea::placeholder { color:#8f9bad; }
:root[data-admin-theme="dark"] .table-search input { background:#202734; color:#edf1f5; }
:root[data-admin-theme="dark"] .table-v2 th { background:#252d39; border-color:#394353; color:#aeb9ca; }
:root[data-admin-theme="dark"] .table-v2 td { border-color:#303846; color:#edf1f5; }
:root[data-admin-theme="dark"] .table-v2 tbody tr:hover,
:root[data-admin-theme="dark"] .table-v2 tbody tr.is-selected { background:#252d39; }
:root[data-admin-theme="dark"] .table-v2 td small,
:root[data-admin-theme="dark"] .table-muted,
:root[data-admin-theme="dark"] .contract-date b { color:#aeb9ca; }
:root[data-admin-theme="dark"] .contract-date small,
:root[data-admin-theme="dark"] .contract-date.is-pending { color:#8f9bad; }
:root[data-admin-theme="dark"] .check-cell input { background:#202734; border-color:#647386; }
:root[data-admin-theme="dark"] .check-cell input:checked { background:#dce3eb; border-color:#dce3eb; }
:root[data-admin-theme="dark"] .check-cell input:checked:after { color:#1b2430; }
:root[data-admin-theme="dark"] .row-action,
:root[data-admin-theme="dark"] .v2-button.outline,
:root[data-admin-theme="dark"] .table-footer button,
:root[data-admin-theme="dark"] .select-like,
:root[data-admin-theme="dark"] .sheet-x { background:#202734; border-color:#394353; color:#edf1f5; }
:root[data-admin-theme="dark"] .row-action:hover,
:root[data-admin-theme="dark"] .v2-button.outline:hover,
:root[data-admin-theme="dark"] .table-footer button:hover,
:root[data-admin-theme="dark"] .select-like:hover { background:#2a3442; border-color:#536175; }
:root[data-admin-theme="dark"] .table-footer button:disabled,
:root[data-admin-theme="dark"] .table-trash:disabled { background:#202734; border-color:#303846; color:#687588; }
:root[data-admin-theme="dark"] .filter-popover,
:root[data-admin-theme="dark"] .modal-card-v2,
:root[data-admin-theme="dark"] .drawer-v2 { background:#1e2530; border-color:#394353; color:#edf1f5; }
:root[data-admin-theme="dark"] .filter-popover button { color:#d7dfe9; }
:root[data-admin-theme="dark"] .filter-popover button:hover { background:#293442; }
:root[data-admin-theme="dark"] .status-badge { background:#303947; color:#dce4ee; }
:root[data-admin-theme="dark"] .symbol,
:root[data-admin-theme="dark"] .config-tile .symbol { background:#303947; color:#dce4ee; }
:root[data-admin-theme="dark"] .config-tile h3,
:root[data-admin-theme="dark"] .table-empty b { color:#f5f7fa; }
:root[data-admin-theme="dark"] .theme-track { background:#445164; }
:root[data-admin-theme="dark"] .theme-track em { background:#dce4ee; }
:root[data-admin-theme="dark"] .price-lines,
:root[data-admin-theme="dark"] .price-lines div { border-color:#394353; background:#202734; color:#dce4ee; }
:root[data-admin-theme="dark"] .price-lines div:last-child { background:#293442; }
.row-action { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }
.row-action span { font-size:11px; font-weight:800; letter-spacing:.04em; }
.contract-date { display:grid; gap:3px; min-width:126px; }
.contract-date b { color:#26323c; font-size:12px; }
.contract-date small { color:#6e7f8c; font-size:10px; }
.contract-date.is-pending { display:block; color:#919ca6; font-size:11px; font-weight:650; }
.settings-group { margin-top:31px; }
.settings-group:first-of-type { margin-top:0; }
.settings-group > header { display:flex; align-items:baseline; justify-content:space-between; gap:18px; margin:0 0 13px; }
.settings-group > header p { margin:0; color:#748190; font-size:14.33px; }
.heading-v2 p { font-size:13.33px; }
.config-tile { display:grid; grid-template-columns:64px minmax(0,1fr) 24px; align-items:center; gap:16px; position:relative; min-height:126px; padding:18px 24px; transition:border-color .18s,box-shadow .18s,transform .18s; }
.config-tile:hover { border-color:#d5d9de; box-shadow:0 9px 20px #17191c0d; transform:translateY(-1px); }
.config-tile-copy { min-width:0; }
.config-tile h3 { margin:0; color:#17191c; font-size:17px; letter-spacing:-.025em; }
.config-tile p { margin:6px 0 0; color:#718094; font-size:13.33px; line-height:1.35; }
.config-tile .symbol { display:grid; place-items:center; width:64px; height:64px; border-radius:18px; background:#f0f2f4; color:#252a31; }
.config-tile .admin-config-icon { width:21px; height:21px; stroke-width:1.85; }
.config-tile-arrow { display:grid; place-items:center; color:#8190a3; }
.config-tile-arrow .admin-config-icon { width:21px; height:21px; stroke-width:1.8; }
.mercado-authorize { width:min(460px,100%); }
.icon-confirm { gap:8px; }
.active-switch { display:inline-flex; align-items:center; gap:8px; color:#5f6f7d; font-size:12px; font-weight:700; cursor:pointer; }
.active-switch input { position:absolute; opacity:0; pointer-events:none; }
.active-switch span { position:relative; width:37px; height:22px; border-radius:999px; background:#d5dbe2; transition:background .18s; }
.active-switch span::after { content:''; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 4px #17222d33; transition:transform .18s; }
.active-switch input:checked + span { background:#1c9187; }
.active-switch input:checked + span::after { transform:translateX(15px); }
.integration-status { display:grid; grid-template-columns:140px 1fr; gap:10px 16px; margin:20px 0; padding:18px; border:1px solid #dce8e7; border-radius:15px; background:#f4fbfa; font-size:13px; }
.integration-status b { color:#1b5c58; }
.integration-status span { color:#61727d; }
.audit-panel { overflow:hidden; border:1px solid #e1e6eb; border-radius:20px; background:#fff; }
.audit-filter { display:flex; align-items:center; min-height:68px; padding:0 20px; border-bottom:1px solid #e8ecef; }
.audit-filter > div { display:flex; flex-wrap:wrap; gap:8px; }
.audit-filter button { border:1px solid #dfe5ea; border-radius:999px; padding:9px 14px; background:#fff; color:#627180; font-size:12px; font-weight:750; cursor:pointer; }
.audit-filter button:hover, .audit-filter button.active { border-color:#c3e4df; background:#effaf8; color:#176d67; }
.audit-timeline { padding:6px 24px 22px; }
.audit-event { position:relative; display:grid; grid-template-columns:43px minmax(0,1fr) 34px; gap:13px; align-items:start; padding:19px 0 18px; border-bottom:1px solid #edf0f3; }
.audit-event:last-child { border-bottom:0; }
.audit-event::before { content:''; position:absolute; left:21px; top:59px; bottom:-19px; width:1px; background:#dfe7e8; }
.audit-event:last-child::before { display:none; }
.audit-event-icon { display:grid; place-items:center; width:43px; height:43px; border-radius:14px; background:#eef8f7; color:#1a766f; }
.audit-icon { width:20px; height:20px; stroke:currentColor; stroke-width:1.9; }
.audit-event-copy > div { display:flex; justify-content:space-between; gap:20px; }
.audit-event-copy span { color:#17222c; font-size:14px; font-weight:800; }
.audit-event-copy time { color:#7b8792; font-size:11px; white-space:nowrap; }
.audit-event-copy p { margin:5px 0 3px; color:#637180; font-size:13px; }
.audit-event-copy small { color:#96a0aa; font-size:11px; }
.audit-expand { display:grid; place-items:center; width:34px; height:34px; border:1px solid #e0e6eb; border-radius:10px; background:#fff; color:#647381; cursor:pointer; }
.audit-detail { display:none; grid-column:2 / -1; margin-top:2px; padding:12px 14px; border-radius:11px; background:#f6f8fa; color:#647381; font-size:11px; }
.audit-detail.is-open { display:grid; gap:4px; }
.audit-detail b { color:#26323c; font-size:12px; }
.audit-empty { padding:65px 24px; color:#748190; text-align:center; }
:root[data-admin-theme="dark"] .audit-panel { border-color:#394353; background:#1e2530; }
:root[data-admin-theme="dark"] .audit-filter { border-color:#394353; }
:root[data-admin-theme="dark"] .audit-filter button, :root[data-admin-theme="dark"] .audit-expand { border-color:#394353; background:#252d39; color:#c5ced9; }
:root[data-admin-theme="dark"] .audit-event { border-color:#303846; }
:root[data-admin-theme="dark"] .audit-event-copy span, :root[data-admin-theme="dark"] .audit-detail b { color:#f5f7fa; }
.history-page { min-width:0; }
.history-heading { margin-bottom:26px; }
.history-heading h1 { margin:6px 0 5px; color:#17191c; font-size:31px; letter-spacing:-.055em; }
.history-heading p { margin:0; color:#718094; font-size:14.33px; }
.history-controls { position:relative; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.history-periods { display:flex; overflow:hidden; border:1px solid #e1e6eb; border-radius:14px; background:#fff; }
.history-periods button { min-width:92px; min-height:47px; padding:0 17px; border:0; border-right:1px solid #edf0f3; background:#fff; color:#617082; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.history-periods button:last-child { border-right:0; }
.history-periods button:hover { background:#f3f5f7; color:#17191c; }
.history-periods button.active { background:#17191c; color:#fff; }
.history-actions { display:flex; gap:10px; }
.history-action { display:inline-flex; align-items:center; gap:9px; min-height:46px; padding:0 16px; border:1px solid #e1e6eb; border-radius:13px; background:#fff; color:#242a31; font:inherit; font-size:14px; font-weight:750; cursor:pointer; }
.history-action:hover { border-color:#aeb7c1; background:#f7f8fa; }
.history-action-icon, .history-date-icon { width:19px; height:19px; stroke:currentColor; stroke-width:1.9; }
.history-filter-row { display:flex; flex-wrap:wrap; gap:9px; margin:17px 0 13px; }
.history-filter-chip, .history-clear-filter { display:inline-flex; align-items:center; gap:7px; min-height:35px; padding:0 13px; border:1px solid #e0e5eb; border-radius:999px; background:#fff; color:#667587; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.history-filter-chip.active { border-color:#17191c; background:#17191c; color:#fff; }
.history-filter-chip:hover, .history-clear-filter:hover { border-color:#aeb7c1; background:#f3f5f7; color:#17191c; }
.history-filter-chip.active:hover { background:#30343a; color:#fff; }
.history-chip-icon { width:16px; height:16px; stroke:currentColor; stroke-width:1.9; }
.history-clear-filter { color:#6a7684; }
.history-calendar { position:absolute; z-index:7; top:56px; right:114px; width:304px; padding:17px; border:1px solid #e0e5eb; border-radius:18px; background:#fff; box-shadow:0 18px 36px #17212d1c; }
.history-calendar header { display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; }
.history-calendar header b { color:#202630; font-size:14px; text-transform:capitalize; }
.history-calendar header button, .history-day-nav { display:grid; place-items:center; width:37px; height:37px; border:1px solid #e1e6eb; border-radius:12px; background:#fff; color:#4f5e70; cursor:pointer; }
.history-calendar header button:first-child .history-calendar-icon { transform:rotate(180deg); }
.history-calendar-icon, .history-nav-icon { width:19px; height:19px; stroke:currentColor; stroke-width:1.9; }
.history-calendar-week, .history-calendar-days { display:grid; grid-template-columns:repeat(7,1fr); gap:5px; text-align:center; }
.history-calendar-week { margin-bottom:7px; color:#8a96a2; font-size:10px; font-weight:750; }
.history-calendar-days button { height:31px; border:0; border-radius:9px; background:transparent; color:#3b4653; font:inherit; font-size:12px; cursor:pointer; }
.history-calendar-days button:hover { background:#f0f2f4; }
.history-calendar-days button.active { background:#17191c; color:#fff; font-weight:800; }
.history-days { display:grid; grid-template-columns:37px minmax(0,1fr) 37px; align-items:center; gap:13px; margin:26px 0 22px; }
.history-day-list { display:grid; grid-template-columns:repeat(21,minmax(48px,1fr)); gap:3px; overflow:hidden; }
.history-day { display:grid; justify-items:center; gap:2px; min-height:76px; padding:8px 4px; border:1px solid transparent; border-radius:14px; background:transparent; color:#6a7684; font:inherit; cursor:pointer; }
.history-day:hover { background:#eef0f2; color:#202630; }
.history-day small { font-size:9px; font-weight:800; }
.history-day b { color:#262c34; font-size:17px; line-height:1; }
.history-day span { font-size:10px; }
.history-day.active { border-color:#17191c; background:#17191c; color:#fff; box-shadow:0 5px 10px #17191c22; }
.history-day.active b { color:#fff; }
.history-date-title { display:flex; align-items:center; gap:9px; margin:0 0 20px; color:#6d7b8a; }
.history-date-title b { padding:9px 14px; border-radius:999px; background:#eff1f3; color:#252b33; font-size:13px; text-transform:capitalize; }
.history-date-title span { font-size:13px; }
.history-timeline { position:relative; display:grid; gap:17px; padding:4px 0 28px; }
.history-event { display:grid; grid-template-columns:73px 38px minmax(0,1fr); gap:13px; align-items:start; }
.history-event > time { padding-top:18px; color:#748190; font-size:11px; font-weight:750; text-align:right; }
.history-event-icon { position:relative; z-index:1; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:#f0f2f4; color:#222a32; }
.history-event:not(:last-child) .history-event-icon::after { content:''; position:absolute; z-index:-1; top:38px; width:1px; height:45px; background:#e1e5e9; }
.history-event-svg { width:18px; height:18px; stroke:currentColor; stroke-width:1.9; }
.history-event-card { min-height:74px; padding:15px 18px; border:1px solid #e3e7eb; border-radius:16px; background:#fff; box-shadow:0 2px 5px #17212d08; }
.history-event-card > div { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.history-event-card h3 { margin:0; color:#1b2027; font-size:14px; letter-spacing:-.015em; }
.history-event-card p { margin:6px 0 4px; color:#657385; font-size:13px; }
.history-event-card small { color:#8994a0; font-size:11px; }
.history-event-tag { flex:0 0 auto; padding:5px 9px; border-radius:999px; background:#eef0f2; color:#566474; font-size:10px; font-weight:800; }
.history-empty { display:grid; justify-items:center; gap:8px; min-height:270px; padding-top:70px; color:#758190; }
.history-empty-icon { width:47px; height:47px; color:#c4ccd4; stroke:currentColor; stroke-width:1.55; }
.history-empty b { margin-top:5px; color:#5d6977; font-size:16px; }
.history-empty span { font-size:13px; }
:root[data-admin-theme="dark"] .history-heading h1, :root[data-admin-theme="dark"] .history-calendar header b, :root[data-admin-theme="dark"] .history-day b, :root[data-admin-theme="dark"] .history-event-card h3 { color:#f5f7fa; }
:root[data-admin-theme="dark"] .history-periods, :root[data-admin-theme="dark"] .history-periods button, :root[data-admin-theme="dark"] .history-action, :root[data-admin-theme="dark"] .history-calendar, :root[data-admin-theme="dark"] .history-event-card { border-color:#394353; background:#202734; color:#d7dfe9; }
:root[data-admin-theme="dark"] .history-periods button.active, :root[data-admin-theme="dark"] .history-calendar-days button.active, :root[data-admin-theme="dark"] .history-day.active { background:#f5f7fa; color:#17191c; }
:root[data-admin-theme="dark"] .history-day.active b { color:#17191c; }
:root[data-admin-theme="dark"] .history-date-title b, :root[data-admin-theme="dark"] .history-event-icon, :root[data-admin-theme="dark"] .history-event-tag { background:#303947; color:#d7dfe9; }
@media(max-width:900px){.history-controls{align-items:stretch;flex-direction:column}.history-actions{justify-content:flex-end}.history-calendar{right:0}.history-day-list{grid-template-columns:repeat(7,minmax(48px,1fr))}.history-day:nth-child(n+8){display:none}}
@media(max-width:600px){.history-periods{overflow:auto}.history-periods button{min-width:80px}.history-actions{flex-direction:column}.history-action{justify-content:center}.history-calendar{left:0;width:auto}.history-event{grid-template-columns:51px 34px minmax(0,1fr);gap:9px}.history-event-card{padding:13px}.history-event-card>div{align-items:flex-start;flex-direction:column;gap:7px}.history-date-title{align-items:flex-start;flex-wrap:wrap}.history-days{gap:7px;grid-template-columns:32px minmax(0,1fr) 32px}.history-day-nav{width:32px;height:32px;align-self:center}}
.fiche-drawer { width:min(780px,100%); padding:34px 36px 42px; box-sizing:border-box; overflow:auto; background:#f7f9fb; box-shadow:-18px 0 45px #17212d1a; }
.fiche-drawer h2 { margin:9px 0 5px; font-size:31px; letter-spacing:-.045em; }
.fiche-summary { display:grid; grid-template-columns:1fr 1fr; gap:1px; overflow:hidden; margin:26px 0 18px; border:1px solid #e2e6eb; border-radius:16px; background:#e2e6eb; }
.fiche-summary > div { padding:15px 18px; background:#fff; }
.fiche-summary span, .payment-status-card span, .voucher-file span { display:block; color:#778391; font-size:10px; font-weight:800; letter-spacing:.08em; }
.fiche-summary b { display:block; margin-top:6px; color:#13171d; font-size:16px; }
.fiche-tabs { display:flex; gap:7px; overflow:auto; padding:7px; border:1px solid #e0e5eb; border-radius:17px; background:#edf1f5; }
.fiche-tabs button { flex:1 0 max-content; min-height:42px; padding:0 16px; border:0; border-radius:12px; background:transparent; color:#607082; font-size:13px; font-weight:700; cursor:pointer; }
.fiche-tabs button.active { background:#fff; color:#102f35; box-shadow:0 2px 7px #1b2d3b18; }
.fiche-content { margin-top:18px; }
.fiche-section { padding:26px; border:1px solid #e3e8ed; border-radius:20px; background:#fff; }
.fiche-section h3 { margin:0 0 8px; color:#151a21; font-size:22px; letter-spacing:-.035em; }
.fiche-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; margin-top:21px; }
.fiche-field { min-height:72px; padding:14px 15px; border:1px solid #e4e8ee; border-radius:14px; box-sizing:border-box; background:#fafbfd; }
.fiche-field small { display:block; margin-bottom:6px; color:#708090; font-size:11px; font-weight:700; }
.fiche-field b { color:#202834; font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
.brief-step-grid { display:grid; grid-template-columns:1fr; gap:13px; margin-top:21px; }
.brief-step { min-height:104px; padding:19px; border:1px solid #e4e8ee; border-radius:15px; background:#fafbfd; box-sizing:border-box; }
.brief-step span { color:#16716f; font-size:11px; font-weight:800; letter-spacing:.02em; }
.brief-step p { margin:9px 0 0; color:#202834; font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.brief-contact-fields { display:grid; grid-template-columns:1fr; gap:9px; margin-top:13px; }
.brief-contact-fields > div { padding:11px 13px; border:1px solid #e1e7ec; border-radius:11px; background:#fff; }
.brief-contact-fields small { display:block; color:#718095; font-size:10px; font-weight:800; letter-spacing:.025em; }
.brief-contact-fields b { display:block; margin-top:5px; color:#202834; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.fiche-legal { margin-top:22px; padding-top:20px; border-top:1px solid #e6eaee; }
.fiche-legal h4 { margin:0 0 13px; color:#182028; font-size:15px; }
.fiche-legal span { display:block; margin-top:8px; padding:10px 12px; border:1px solid #d9eeeb; border-radius:10px; background:#f4fcfb; color:#245f5e; font-size:13px; font-weight:650; }
.fiche-legal p { margin:0; color:#74808d; font-size:14px; }
.payment-status-card { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:20px; padding:19px; border:1px solid #f0dca5; border-radius:16px; background:#fff9e9; }
.payment-status-card b { display:block; margin:5px 0; color:#704e04; font-size:19px; }
.payment-status-card small { display:block; color:#7c6d48; font-size:12px; }
.payment-status-card.is-verified { border-color:#b7e6dc; background:#effbf8; }
.payment-status-card.is-verified b { color:#147363; }
.payment-status-card.is-verified small { color:#39766e; }
.voucher-file, .voucher-empty { display:block; margin-top:14px; padding:17px; border:1px solid #e2e7ed; border-radius:14px; background:#fafbfd; }
.voucher-file b { display:block; margin:7px 0 4px; color:#202833; font-size:15px; overflow-wrap:anywhere; }
.voucher-file small, .voucher-empty { color:#6c7a88; font-size:13px; line-height:1.45; }
.review-payment__content { min-width:0; }
.review-payment__action { margin-left:auto; flex:0 0 auto; }
.verify-payment-button { width:100%; margin-top:17px; justify-content:center; }
:root[data-admin-theme="dark"] .fiche-drawer, :root[data-admin-theme="dark"] .fiche-section, :root[data-admin-theme="dark"] .fiche-summary > div { background:#1e2530; color:#f5f7fa; }
:root[data-admin-theme="dark"] .fiche-drawer h2, :root[data-admin-theme="dark"] .fiche-section h3, :root[data-admin-theme="dark"] .fiche-legal h4, :root[data-admin-theme="dark"] .fiche-field b, :root[data-admin-theme="dark"] .brief-step p, :root[data-admin-theme="dark"] .brief-contact-fields b, :root[data-admin-theme="dark"] .voucher-file b { color:#f5f7fa; }
:root[data-admin-theme="dark"] .fiche-summary, :root[data-admin-theme="dark"] .fiche-tabs, :root[data-admin-theme="dark"] .fiche-field, :root[data-admin-theme="dark"] .brief-step, :root[data-admin-theme="dark"] .voucher-file, :root[data-admin-theme="dark"] .voucher-empty { border-color:#394353; background:#252d39; }
:root[data-admin-theme="dark"] .brief-contact-fields > div { border-color:#3b4656; background:#202833; }
:root[data-admin-theme="dark"] .fiche-tabs button.active { background:#303947; color:#fff; }

/* Full-screen record details use the same dark surfaces as the rest of the workspace. */
:root[data-admin-theme="dark"] .fiche-back { color:#dce4ee; }
:root[data-admin-theme="dark"] .fiche-back:hover { color:#fff; }
:root[data-admin-theme="dark"] .fiche-summary { border-color:#394353; background:#394353; }
:root[data-admin-theme="dark"] .fiche-summary b { color:#f5f7fa; }
:root[data-admin-theme="dark"] .payment-status-card { border-color:#695b2a; background:#2b291e; }
:root[data-admin-theme="dark"] .payment-status-card b { color:#f0d58a; }
:root[data-admin-theme="dark"] .payment-status-card small { color:#d1be80; }
:root[data-admin-theme="dark"] .payment-status-card.is-verified { border-color:#286356; background:#1d342f; }
:root[data-admin-theme="dark"] .payment-status-card.is-verified b { color:#7ad5ba; }
:root[data-admin-theme="dark"] .payment-status-card.is-verified small { color:#9bcebf; }
:root[data-admin-theme="dark"] .review-payment__action { background:#e8eef5; color:#19222d; }
:root[data-admin-theme="dark"] .fiche-legal { border-color:#394353; }
:root[data-admin-theme="dark"] .fiche-legal span { border-color:#285c56; background:#1d322f; color:#a4d8cc; }
:root[data-admin-theme="dark"] .fiche-legal p,
:root[data-admin-theme="dark"] .fiche-summary span,
:root[data-admin-theme="dark"] .fiche-field small,
:root[data-admin-theme="dark"] .voucher-file span,
:root[data-admin-theme="dark"] .voucher-file small,
:root[data-admin-theme="dark"] .voucher-empty { color:#aeb9ca; }
:root[data-admin-theme="dark"] .trello-invite-field small,
:root[data-admin-theme="dark"] .review-trello-link { color:#aeb9ca; }
:root[data-admin-theme="dark"] .review-trello-link a { color:#dce4ee; }
@media (max-width:760px) { .admin-login .login-form { padding:30px 24px; } .admin-login .login-inner h1 { font-size:31px; } .admin-login .login-art { display:none; } .admin-v2 { grid-template-columns:1fr; } .side-v2 { width:100%; height:auto; position:static; overflow:visible; white-space:nowrap; padding:22px 17px 18px; display:flex; flex-direction:column; align-items:stretch; } .side-v2 img { display:block; width:157px; margin:5px 13px 26px; } .side-v2 .side-section { display:grid; border-top:1px solid #e6e9ed; margin:18px 0 0; padding-top:18px; } .side-v2 button { width:100%; } .side-v2 .side-foot { display:flex; } .settings-group > header { display:block; } .settings-group > header p { margin-top:7px; } }
