/* Tariq Rice Mill Admin: scoped to avoid styling other WordPress pages. */
.trm-shell { --trm-ink:#182536; --trm-muted:#627085; --trm-line:#dde5ee; --trm-bg:#f4f7fb; --trm-main:#176553; --trm-main-deep:#104f41; --trm-highlight:#f0f8f4; color:var(--trm-ink); font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:14px; line-height:1.5; box-sizing:border-box; width:100%; max-width:1400px; margin:0 auto; }
.trm-shell *, .trm-shell *::before, .trm-shell *::after { box-sizing:border-box; }
.trm-wp-admin { margin:16px 20px 20px 0!important; }
.trm-shell h1, .trm-shell h2, .trm-shell h3, .trm-shell p { padding:0; margin:0; color:inherit; line-height:1.36; }
.trm-shell h1 { font-size:clamp(25px,3vw,34px); font-weight:750; letter-spacing:-.8px; }
.trm-shell h2 { font-size:25px; font-weight:720; letter-spacing:-.55px; }
.trm-shell h3 { font-size:18px; font-weight:700; }
.trm-shell p { line-height:1.65; }
.trm-shell a { color:var(--trm-main); text-decoration:none; }
.trm-shell a:hover { text-decoration:underline; }
.trm-hero { background:#152e35; color:#fff; border-radius:19px 19px 0 0; padding:27px 30px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; position:relative; overflow:hidden; }
.trm-hero::after { content:""; position:absolute; top:-90px; right:12%; width:245px; height:245px; border-radius:100%; border:38px solid rgba(255,255,255,.038); pointer-events:none; }
.trm-hero p { color:#d0e1df; margin-top:5px; font-size:13px; }
.trm-eyebrow { color:#a9d7c4; font-weight:800; letter-spacing:1.4px; font-size:10px; margin-bottom:10px; }
.trm-hero-action { z-index:1; }
.trm-nav { display:flex; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; gap:3px; background:white; padding:12px 18px; border:1px solid var(--trm-line); border-top:0; white-space:nowrap; }
.trm-nav .trm-nav-item { font-size:13px; color:#536273; padding:10px 13px; border-radius:9px; font-weight:650; text-decoration:none; }
.trm-nav .trm-nav-item:hover { background:#edf5f2; color:var(--trm-main); text-decoration:none; }
.trm-nav .trm-nav-item.trm-active { background:#e3f2ec; color:#0d674f; }
.trm-main { background:var(--trm-bg); padding:25px; min-height:60vh; border-left:1px solid var(--trm-line); border-right:1px solid var(--trm-line); }
.trm-page-heading { margin-bottom:18px; }
.trm-page-heading p { color:var(--trm-muted); margin-top:5px; }
.trm-footer { font-size:12px; padding:16px 24px; color:#6e7b87; background:#fff; border:1px solid var(--trm-line); border-top:0; border-radius:0 0 17px 17px; }
.trm-btn, .trm-shell button.trm-btn { appearance:none; border:1px solid transparent; padding:11px 17px; border-radius:10px; min-height:41px; cursor:pointer; font-size:13px; font-family:inherit; font-weight:750; display:inline-flex; gap:7px; align-items:center; justify-content:center; white-space:nowrap; text-decoration:none; box-shadow:none; transition:background .16s ease,border-color .16s ease; }
.trm-btn:hover { text-decoration:none!important; }
.trm-btn-primary, .trm-shell button.trm-btn-primary { background:#177e61; color:#fff!important; }
.trm-btn-primary:hover, .trm-shell button.trm-btn-primary:hover { background:#0e694e; }
.trm-btn-muted, .trm-shell button.trm-btn-muted { background:white; color:var(--trm-main); border-color:#cfded8; }
.trm-btn-muted:hover { background:#eaf4ef; }
.trm-hero .trm-btn-primary { background:#eef9f3; color:#13513c!important; }
.trm-hero .trm-btn-primary:hover { background:white; }
.trm-btn:focus-visible, .trm-shell a:focus-visible, .trm-shell input:focus-visible, .trm-shell textarea:focus-visible, .trm-shell select:focus-visible, .trm-shell button:focus-visible { outline:3px solid #76c1a8; outline-offset:2px; }
.trm-alert { padding:13px 16px; border-radius:10px; border:1px solid; font-size:13px; margin:0 0 20px; }
.trm-alert a { font-weight:750; }
.trm-success { background:#eaf8f0; border-color:#b9e0cc; color:#17583e; }
.trm-warn { background:#fff8e9; border-color:#f0dfb3; color:#76521e; }
.trm-section-title { margin:26px 0 12px; color:#64758a; font-size:11px; font-weight:800; letter-spacing:1.15px; }
.trm-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin-bottom:18px; }
.trm-stat { background:white; border:1px solid var(--trm-line); border-radius:14px; padding:20px 18px; min-width:0; box-shadow:0 3px 12px rgba(40,61,90,.025); }
.trm-stat-label { font-size:12px; color:var(--trm-muted); font-weight:650; }
.trm-stat-value { font-size:clamp(22px,2.5vw,30px); line-height:1.2; font-weight:770; letter-spacing:-.7px; overflow-wrap:anywhere; margin:10px 0 7px; }
.trm-stat-sub { color:#748296; font-size:11.5px; }
.trm-two-col { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin:17px 0 22px; align-items:start; }
.trm-panel { padding:21px; background:#fff; border:1px solid var(--trm-line); border-radius:14px; margin-bottom:17px; min-width:0; }
.trm-panel h3 { margin-bottom:11px; }
.trm-panel p { margin:8px 0; color:#596979; }
.trm-quick { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:17px; }
.trm-quick .trm-tile { display:flex; min-height:55px; align-items:center; justify-content:center; text-align:center; background:#f2f9f6; border:1px solid #deeee6; border-radius:10px; padding:12px; font-size:13px; font-weight:700; color:#23644c; }
.trm-quick .trm-tile:hover { background:#def0e6; text-decoration:none; }
.trm-check { display:flex; gap:12px; align-items:start; margin:12px 0; }
.trm-check span { background:#e9f3ed; color:#0e7455; border-radius:50%; width:25px; height:25px; flex:0 0 25px; display:inline-grid; place-items:center; font-weight:800; }
.trm-check p { margin:0; }
.trm-note { background:#e9f1f8; color:#2f506b; border-radius:9px; padding:13px 16px; font-size:12.5px; margin-bottom:20px; line-height:1.6; }
.trm-season-bar { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-bottom:5px; }
.trm-season-bar label { font-weight:750; color:var(--trm-muted); }
.trm-shell select, .trm-shell input:not([type="checkbox"]), .trm-shell textarea { display:block; width:100%; max-width:100%; min-height:43px; border:1px solid #cbd5df; border-radius:9px; background:#fff; color:var(--trm-ink); font-size:14px; font-family:inherit; font-weight:450; padding:10px 11px; box-shadow:none; line-height:1.3; }
.trm-shell input[type="checkbox"] { accent-color:#198366; width:18px; height:18px; }
.trm-shell textarea { min-height:85px; resize:vertical; }
.trm-shell select { padding-right:30px; }
.trm-season-bar select { width:auto; min-width:185px; }
.trm-field { display:flex; flex-direction:column; gap:6px; min-width:0; font-weight:650; font-size:13px; }
.trm-field span { color:#35465a; }
.trm-field em { color:#78889a; font-size:11px; font-style:normal; font-weight:450; }
.trm-field small, .trm-helper { color:#768597!important; font-size:11.5px; font-weight:450; line-height:1.5; }
.trm-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 16px; }
.trm-form.trm-panel { max-width:960px; padding:24px; }
.trm-field-wide { margin-top:17px; }
.trm-form-footer { display:flex; gap:15px; justify-content:space-between; align-items:center; flex-wrap:wrap; border-top:1px solid var(--trm-line); margin-top:21px; padding-top:18px; }
.trm-form-footer p { font-size:12px; color:#708092; flex:1; }
.trm-shell [data-trm-show][hidden] { display:none!important; }
.trm-table-panel { margin-top:18px; }
.trm-panel-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
.trm-panel-head h3, .trm-panel-head p { margin:0; }
.trm-table-scroll { width:100%; overflow-x:auto; border-radius:8px; }
.trm-table { width:100%; min-width:630px; border-collapse:collapse; table-layout:auto; font-size:12.5px; border:0; background:transparent; }
.trm-table thead tr { background:#f0f4f8; }
.trm-table th { color:#5b6b7c; text-align:left; font-size:11px; letter-spacing:.4px; font-weight:750; }
.trm-table th, .trm-table td { padding:13px 11px; vertical-align:top; border-bottom:1px solid #e9eef3; white-space:normal; }
.trm-table tbody tr:hover { background:#fbfcfe; }
.trm-table td small { display:block; margin-top:5px; font-size:11px; color:#708098; line-height:1.5; overflow-wrap:anywhere; }
.trm-table td strong { font-weight:720; }
.trm-nowrap { white-space:nowrap!important; }
.trm-empty { color:#8490a0!important; text-align:center; padding:25px!important; }
.trm-pill { font-weight:700; font-size:10.5px; display:inline-flex; padding:5px 9px; border-radius:22px; white-space:nowrap; }
.trm-verified { color:#0f6748; background:#e3f5e9; }
.trm-pending { color:#866019; background:#fff4d9; }
.trm-removed { color:#8e4545; background:#f9eaea; }
.trm-filters { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin-bottom:20px; }
.trm-filters label { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:700; min-width:125px; flex:1 1 170px; }
.trm-filters .trm-check-filter { display:flex; flex-direction:row; align-items:center; flex:0 1 auto; min-height:43px; white-space:nowrap; }
.trm-filters .trm-btn { margin:0; }
.trm-inline-form { display:inline-block; margin:2px 6px 2px 0; }
.trm-inline-link, .trm-shell button.trm-inline-link { padding:0; background:none; border:0; color:#176b56; font:inherit; font-size:11.5px; font-weight:750; cursor:pointer; text-decoration:underline; display:inline-block; }
.trm-action-cell { min-width:155px; }
.trm-action-cell>a { margin:2px 8px 2px 0; }
.trm-pagination { display:flex; justify-content:space-between; align-items:center; margin-top:18px; font-weight:650; }
.trm-pagination a { border:1px solid #d5e1db; background:#f7fcf9; border-radius:8px; padding:9px 11px; }
.trm-master-layout { grid-template-columns:minmax(260px, 2fr) minmax(260px, 3fr); }
.trm-master-layout .trm-form { display:flex; flex-direction:column; gap:15px; }
.trm-master-row { display:flex; justify-content:space-between; gap:8px; padding:13px 0; border-bottom:1px solid #e9eef2; align-items:center; }
.trm-master-row:last-child { border-bottom:0; }
.trm-master-row strong { display:block; }
.trm-master-row small { display:block; color:#738395; margin-top:4px; }
.trm-master-row a { font-weight:700; white-space:nowrap; }
.trm-checkbox { display:flex; gap:9px; align-items:center; }
.trm-export-form { margin:12px 0 18px; }
.trm-negative { color:#ac3d35; }
.trm-shell details { max-width:470px; }
.trm-shell details summary { cursor:pointer; color:#176b56; font-weight:700; }
.trm-shell details pre { white-space:pre-wrap; word-break:break-word; background:#f3f6f9; color:#3d4f65; border-radius:8px; padding:10px; max-height:180px; overflow:auto; font-size:11px; }
.trm-steps { margin:15px 0 5px!important; padding-left:20px!important; list-style:decimal outside!important; color:#4f6074; }
.trm-steps li { margin-bottom:10px; line-height:1.65; }
.trm-shell ul.trm-steps { list-style:disc outside!important; }
.trm-code { display:block; background:#eef4f1; border:1px solid #d1e4da; border-radius:9px; padding:13px 16px; color:#185a43; font-size:15px; font-weight:750; margin:12px 0; }
.trm-auth { background:#f8f8f8; border:1px solid #e1e4e9; border-radius:9px; padding:18px; }
.trm-shell [disabled] { opacity:.65; cursor:wait; }
@media (max-width:1050px) { .trm-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:740px) {
  .trm-wp-admin { margin:10px 10px 10px 0!important; }
  .trm-hero { padding:22px 18px; border-radius:13px 13px 0 0; }
  .trm-hero-action .trm-btn { width:100%; }
  .trm-hero-action { width:100%; }
  .trm-nav { padding:8px; gap:2px; }
  .trm-nav .trm-nav-item { padding:9px 11px; font-size:12px; }
  .trm-main { padding:14px 11px; }
  .trm-page-heading h2 { font-size:22px; }
  .trm-two-col, .trm-master-layout { grid-template-columns:1fr; gap:0; }
  .trm-form-grid { grid-template-columns:1fr; gap:14px; }
  .trm-form.trm-panel, .trm-panel { padding:16px; }
  .trm-stat { padding:15px 13px; }
  .trm-stat-value { font-size:25px; }
  .trm-season-bar label { width:100%; }
  .trm-season-bar select { width:100%; }
  .trm-form-footer .trm-btn { width:100%; }
  .trm-filters label { flex:1 1 100%; }
  .trm-filters .trm-check-filter { flex:1 1 100%; }
  .trm-filters button { width:100%; }
  .trm-footer { padding:14px; }
}
@media (max-width:380px) {
  .trm-stats { grid-template-columns:1fr 1fr; gap:8px; }
  .trm-stat-value { font-size:21px; }
  .trm-stat-sub { font-size:10px; }
  .trm-quick { grid-template-columns:1fr 1fr; }
}
