/* LIME999 panel · light theme fixes. Loaded only by panel.html, after everything else. Every rule is scoped to
   [data-theme=light], so the dark theme and the player site are untouched. */
[data-theme=light]{--pl-text:#111827;--pl-muted:#4b5563;--pl-pos:#047857;--pl-neg:#dc2626;--pl-btn:#eef0f3;--pl-btn-h:#e2e5ea;--pl-border:#d1d5db;--pl-card:#ffffff;--pl-soft:#f9fafb;--pl-active:#ecfccb;--pl-active-t:#365314}

/* ordinary buttons were a near-black box with dark text */
[data-theme=light] .btn:not(.mint):not(.primary):not(.red):not(.green):not(.blue){background:var(--pl-btn);color:var(--pl-text);border:1px solid var(--pl-border)}
[data-theme=light] .btn:not(.mint):not(.primary):not(.red):not(.green):not(.blue):hover{background:var(--pl-btn-h);color:var(--pl-text)}
[data-theme=light] .actions-cell button{background:var(--pl-btn);color:var(--pl-text);border:1px solid var(--pl-border)}
[data-theme=light] .actions-cell button:hover,[data-theme=light] .section-h .more:hover,[data-theme=light] .sbar:hover{background:var(--pl-btn-h);color:var(--pl-text)}

/* text that was hard-coded white */
[data-theme=light] #crumbTop,[data-theme=light] .crumbs a,[data-theme=light] .balpill b,[data-theme=light] .kpi b,
[data-theme=light] .method b,[data-theme=light] .paydetails .kv b,[data-theme=light] .gt .gt-b b,[data-theme=light] .gt.big .gt-h,
[data-theme=light] .subtabs a b,[data-theme=light] .tabs button.active,[data-theme=light] .seg button.active,[data-theme=light] .section-h h2{color:var(--pl-text)}
[data-theme=light] .balpill i{color:var(--pl-neg)}
[data-theme=light] .balpill{background:var(--pl-btn);border:1px solid var(--pl-border)}

/* menu: the current page was white on near-white */
[data-theme=light] .sb-group a.active{background:var(--pl-active);color:var(--pl-active-t);font-weight:600}
[data-theme=light] .sb-group a.active .ic{color:var(--pl-active-t)}
[data-theme=light] .sb-group a:hover:not(.active){background:var(--pl-soft);color:var(--pl-text)}

/* chips and period buttons: the selected one was white on white */
[data-theme=light] .chip.active,[data-theme=light] .periodbar .chip.active{background:var(--brand);border-color:var(--brand);color:#fff}
[data-theme=light] .chip:not(.active){color:var(--pl-text)}

/* inputs, selects and textareas (filters, popups, search) */
[data-theme=light] .filters input:not([type=checkbox]):not([type=radio]),[data-theme=light] .filters select,
[data-theme=light] .field56 input,[data-theme=light] .field56 select,
[data-theme=light] .modal input:not([type=checkbox]):not([type=radio]),[data-theme=light] .modal select,[data-theme=light] .modal textarea,
[data-theme=light] .search input,[data-theme=light] .wrap input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),[data-theme=light] .wrap select,[data-theme=light] .wrap textarea{
  color:var(--pl-text);background:#fff;border:1px solid var(--pl-border);color-scheme:light}
[data-theme=light] .filters input:focus,[data-theme=light] .filters select:focus,[data-theme=light] .modal input:focus,[data-theme=light] .modal select:focus,[data-theme=light] .wrap input:focus,[data-theme=light] .wrap select:focus,[data-theme=light] .wrap textarea:focus{border-color:var(--brand);outline:0}
[data-theme=light] input::placeholder,[data-theme=light] textarea::placeholder{color:#9ca3af}

/* profit / loss numbers: the bright green and orange were too faint on white */
[data-theme=light] .pos,[data-theme=light] .num.pos,[data-theme=light] b.pos,[data-theme=light] span.pos{color:var(--pl-pos)}
[data-theme=light] .neg,[data-theme=light] .num.neg,[data-theme=light] b.neg,[data-theme=light] span.neg{color:var(--pl-neg)}

/* status tags and pills had dark-theme backgrounds */
[data-theme=light] .tag.WON{background:#dcfce7;color:#166534}
[data-theme=light] .tag.LOST{background:#fee2e2;color:#991b1b}
[data-theme=light] .tag.OPEN{background:#fef3c7;color:#92400e}
[data-theme=light] .tag.VOID{background:#e5e7eb;color:#374151}
[data-theme=light] .pill.bad{background:#fee2e2;color:#b91c1c}
[data-theme=light] .note{background:#fffbeb;color:#78350f;border-color:#fcd34d}

/* "You've been signed out" box */
[data-theme=light] .sg-bg{background:rgba(17,24,39,.45)}
[data-theme=light] .sg-card{background:#fff;color:var(--pl-text);box-shadow:0 20px 60px rgba(0,0,0,.25)}
[data-theme=light] .sg-card h1,[data-theme=light] .sg-card h2,[data-theme=light] .sg-card h3,[data-theme=light] .sg-card b,[data-theme=light] .sg-card strong{color:var(--pl-text)}
[data-theme=light] .sg-card p,[data-theme=light] .sg-card small{color:var(--pl-muted)}

/* tables and sections: visible edges on white */
[data-theme=light] .section,[data-theme=light] .kpi{border:1px solid #e5e7eb}
[data-theme=light] table.tbl th{color:var(--pl-muted)}

/* mobile drawer and card tables (panel-mobile.css) */
[data-theme=light] .pm-acct{background:var(--pl-soft);border:1px solid #e5e7eb}
[data-theme=light] .pm-acct .who,[data-theme=light] .pm-acct .nums b{color:var(--pl-text)}
[data-theme=light] .pm-acct .nums .exp b{color:var(--pl-neg)}
[data-theme=light] .pm-foot button{background:var(--pl-btn);color:var(--pl-text);border:1px solid var(--pl-border)}
[data-theme=light] .pm-foot button.out{background:#dc2626;border-color:#dc2626;color:#fff}
[data-theme=light] .pm-x{background:var(--pl-btn);color:var(--pl-text)}
[data-theme=light] #pmBurger span{background:var(--pl-text)}
[data-theme=light] #pmScrim{background:rgba(17,24,39,.4)}
[data-theme=light] table.pm-cards tr{background:#fff;border:1px solid #e5e7eb}
[data-theme=light] table.pm-cards td.pm-title{border-bottom:1px solid #e5e7eb!important}
[data-theme=light] table.pm-cards td.pm-acts{border-top:1px solid #e5e7eb!important}
[data-theme=light] table.pm-cards tr.pm-total{background:var(--pl-soft);border:1px dashed var(--pl-border)}

/* round 2: variables and badges found by the page-by-page contrast scan */
[data-theme=light]{--ink:#111827}
[data-theme=light] .subtabs a.on{color:var(--pl-text)}
[data-theme=light] a.pl b{color:#1d4ed8}
[data-theme=light] .auditbadge.ok{background:#dcfce7;color:#166534}
[data-theme=light] .pill.ok{background:#dcfce7;color:#166534}
[data-theme=light] .stag.APPROVED{background:#dcfce7;color:#166534}
[data-theme=light] .stag.PENDING{background:#fef3c7;color:#92400e}
[data-theme=light] .stag.HOLD{background:#ffedd5;color:#9a3412}
[data-theme=light] .stag.REJECTED{background:#fee2e2;color:#991b1b}
[data-theme=light] span.live,[data-theme=light] .live:not(.btn){color:#dc2626}
[data-theme=light] table.tbl td a:not(.btn){color:#3f6212;font-weight:600}
[data-theme=light] #app :is(a,b,span,div,td,strong,small)[style*="color:#fff"]:not([style*="background"]),[data-theme=light] #modal :is(a,b,span,div,td,strong,small)[style*="color:#fff"]:not([style*="background"]){color:var(--pl-text)!important}
[data-theme=light] .btn:disabled,[data-theme=light] button.btn[disabled]{background:#f3f4f6!important;color:#9ca3af!important;border:1px solid #e5e7eb!important;cursor:not-allowed}
