/* Asset Management: Asset Tiger-style theme. Dark by default, light via data-theme="light". */
:root {
  --am-accent: #ffb800;
  --am-accent-ink: #1b1b1b;
  --am-bg: #181825;
  --am-sidebar: #1f1f2e;
  --am-topbar: #181825;
  --am-card: #212130;
  --am-card-head: #26263a;
  --am-line: #32324a;
  --am-text: #e6e6ef;
  --am-muted: #9a9ab0;
  --am-link: #ffa726;
  --am-table-head: #2b2b40;
  --am-input: #1a1a28;
}
[data-theme="light"] {
  --am-bg: #f1f2f7;
  --am-sidebar: #ffffff;
  --am-topbar: #ffffff;
  --am-card: #ffffff;
  --am-card-head: #f6f7fb;
  --am-line: #dfe1ec;
  --am-text: #2a2a3a;
  --am-muted: #6d6f85;
  --am-link: #c77700;
  --am-table-head: #eef0f7;
  --am-input: #ffffff;
}

/* Bootstrap utility classes such as d-flex use !important and would otherwise defeat [hidden]. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body { background: var(--am-bg); color: var(--am-text); font-size: 14px; }
a { color: var(--am-link); text-decoration: none; }
a:hover { color: var(--am-accent); }

/* shell */
.am-topbar { position: fixed; top: 0; left: 0; right: 0; height: 56px; background: var(--am-topbar);
  border-bottom: 1px solid var(--am-line); display: flex; align-items: center; padding: 0 16px; z-index: 1030; }
.am-brand { font-weight: 800; letter-spacing: .5px; font-size: 22px; color: var(--am-text); min-width: 208px; }
.am-brand span { color: var(--am-accent); }
.am-topbar .nav-link-top { color: var(--am-text); margin-right: 22px; font-size: 13px; white-space: nowrap; }
.am-topbar .nav-link-top:hover { color: var(--am-accent); }
.am-topbar .spacer { flex: 1; }

.am-sidebar { position: fixed; top: 56px; bottom: 0; left: 0; width: 208px; background: var(--am-sidebar);
  border-right: 1px solid var(--am-line); overflow-y: auto; padding-bottom: 24px; transition: transform .2s; z-index: 1020; }
.am-logo { padding: 12px; text-align: center; }
.am-logo img { max-width: 100%; max-height: 110px; background: #fff; border-radius: 4px; }
.am-user { padding: 10px 16px; font-size: 13px; color: var(--am-text); border-bottom: 1px solid var(--am-line); }

.am-menu { list-style: none; margin: 0; padding: 0; }
.am-menu > li > a, .am-menu > li > .am-group {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: var(--am-text); cursor: pointer; font-size: 14px; }
.am-menu > li > a:hover, .am-menu > li > .am-group:hover { color: var(--am-accent); }
.am-menu > li.active > a, .am-menu > li.active > .am-group {
  background: var(--am-accent); color: var(--am-accent-ink); font-weight: 600; position: relative; }
.am-menu .chev { margin-left: auto; font-size: 11px; transition: transform .15s; }
.am-menu li.open > .am-group .chev { transform: rotate(180deg); }
.am-sub { list-style: none; margin: 0; padding: 0; display: none; background: rgba(0,0,0,.12); }
li.open > .am-sub { display: block; }
.am-sub a { display: flex; align-items: center; gap: 9px; padding: 8px 16px 8px 24px; color: var(--am-text); font-size: 13px; }
.am-sub a:hover { color: var(--am-accent); }
.am-sub a.active { color: var(--am-accent); font-weight: 600; }
.am-sub .am-sub-head { padding: 8px 16px 2px 16px; font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--am-muted); }
.am-sub .am-sub-head ~ li a { padding-left: 28px; }
.am-badge { margin-left: auto; background: #dc3545; color: #fff; border-radius: 50%; min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }

.am-main { margin-left: 208px; padding: 76px 24px 40px; transition: margin .2s; }
body.sidebar-collapsed .am-sidebar { transform: translateX(-208px); }
body.sidebar-collapsed .am-main { margin-left: 0; }

.am-page-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.am-page-title h1 { font-size: 24px; font-weight: 400; margin: 0; }
.am-page-title i { color: var(--am-accent); font-size: 22px; }
.am-page-title small { color: var(--am-muted); font-size: 14px; }

/* cards */
.am-card { background: var(--am-card); border: 1px solid var(--am-line); border-radius: 4px; margin-bottom: 18px; }
.am-card-head { padding: 12px 16px; font-weight: 600; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--am-line); }
.am-card-head i { color: var(--am-accent); }
.am-card-body { padding: 16px; }
.am-help { color: var(--am-muted); margin-bottom: 14px; }

/* stat cards */
.am-stat { background: var(--am-card); border: 1px solid var(--am-line); border-radius: 4px; padding: 14px 16px 12px 80px;
  position: relative; text-align: right; min-height: 78px; }
.am-stat .ico { position: absolute; left: 14px; top: -10px; width: 46px; height: 46px; border-radius: 4px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; }
.am-stat .lbl { color: var(--am-muted); font-size: 13px; }
.am-stat .val { font-size: 26px; font-weight: 500; line-height: 1.2; }
.am-stat .sub { color: var(--am-muted); font-size: 11px; }

/* tables */
table.am-table { width: 100% !important; color: var(--am-text); }
table.am-table thead th { background: var(--am-table-head); border-bottom: 1px solid var(--am-line); font-weight: 600;
  white-space: nowrap; color: var(--am-text); }
table.am-table td { border-color: var(--am-line); vertical-align: middle; color: var(--am-text); background: transparent; }
table.am-table tbody tr:hover td { background: rgba(255,184,0,.06); }
.dt-container, .dt-container label, .dt-container .dt-info { color: var(--am-text); }
.dt-container .page-link { background: var(--am-card); border-color: var(--am-line); color: var(--am-text); }
.dt-container .active > .page-link { background: var(--am-accent); border-color: var(--am-accent); color: var(--am-accent-ink); }

/* reports */
table.report-table th.num, table.report-table td.num { text-align: right; white-space: nowrap; }
table.report-table tr.grp td { background: var(--am-card-head); font-weight: 600; color: var(--am-accent); }
table.report-table tr.sub td, table.report-table tr.tot td { font-weight: 600; background: var(--am-card-head); }
table.report-table tr.tot td { border-top: 2px solid var(--am-accent); }
table.report-table td.empty { text-align: center; color: var(--am-muted); padding: 24px; }

/* forms */
.form-control, .form-select { background-color: var(--am-input); border-color: var(--am-line); color: var(--am-text); }
.form-control:focus, .form-select:focus { background-color: var(--am-input); color: var(--am-text);
  border-color: var(--am-accent); box-shadow: 0 0 0 .15rem rgba(255,184,0,.2); }
.form-control::placeholder { color: var(--am-muted); }
.form-label, label { color: var(--am-text); }
.form-section { font-weight: 600; margin: 22px 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--am-line); }
.form-row-h { display: flex; align-items: flex-start; margin-bottom: 14px; }
.form-row-h > label { width: 180px; text-align: right; padding: 8px 14px 0 0; font-size: 13px; }
.form-row-h > .field { flex: 1; min-width: 0; }
.req::after { content: " *"; color: #ff4d5e; }
.input-group-text { background: var(--am-card-head); border-color: var(--am-line); color: var(--am-text); }
@media (max-width: 768px) { .form-row-h { display: block; } .form-row-h > label { width: auto; text-align: left; padding: 0 0 4px; } }

/* buttons */
.btn-am { background: var(--am-accent); border-color: var(--am-accent); color: var(--am-accent-ink); font-weight: 600; }
.btn-am:hover { background: #ffc933; border-color: #ffc933; color: var(--am-accent-ink); }
.btn-soft { background: var(--am-card-head); border: 1px solid var(--am-line); color: var(--am-text); }
.btn-soft:hover { border-color: var(--am-accent); color: var(--am-accent); }
.btn-green { background: #198754; border-color: #198754; color: #fff; }
.btn-green:hover { background: #20a164; color: #fff; }

/* status badges */
.st { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: 12px; background: rgba(13,202,240,.12); color: #5bd6f0; }
.st-available { background: rgba(25,135,84,.18); color: #4cd08a; }
.st-checked_out { background: rgba(13,202,240,.14); color: #4dd0e8; }
.st-leased { background: rgba(111,66,193,.2); color: #b794f6; }
.st-under_repair, .st-broken { background: rgba(220,53,69,.18); color: #ff6b7a; }
.st-lost, .st-disposed, .st-donated, .st-sold { background: rgba(154,154,176,.2); color: var(--am-muted); }

/* tabs */
.am-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--am-line); }
.am-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--am-text);
  padding: 12px 16px; font-size: 13px; }
.am-tabs button.active { border-bottom-color: var(--am-accent); font-weight: 600; }
.am-tabs button:hover { color: var(--am-accent); }
.am-tabpane { display: none; padding: 16px; }
.am-tabpane.active { display: block; }
.kv { display: grid; grid-template-columns: 170px 1fr; border: 1px solid var(--am-line); margin-bottom: 14px; }
.kv > div { padding: 7px 10px; border-bottom: 1px solid var(--am-line); }
.kv > div:nth-child(odd) { color: var(--am-muted); background: var(--am-card-head); }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--am-card-head); border: 1px solid var(--am-line);
  border-radius: 3px; padding: 4px 8px; font-size: 12px; margin: 0 6px 6px 0; }
.chip b { color: var(--am-muted); font-size: 10px; text-transform: uppercase; display: block; }
.chip a { color: #ff5a6a; }

table.cal { table-layout: fixed; color: var(--am-text); border-color: var(--am-line); }
table.cal th { text-align: center; background: var(--am-table-head); font-size: 12px; }
table.cal td { height: 64px; vertical-align: top; padding: 3px 5px; background: transparent; border-color: var(--am-line); }
table.cal td.cal-today { background: rgba(255,184,0,.12); }
.cal-ev { background: #3f8fce; color: #fff !important; border-radius: 2px; padding: 0 4px; font-size: 10px; margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert { border-radius: 3px; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-box { width: 100%; max-width: 380px; }
.asset-photo { max-width: 100%; max-height: 220px; background: #fff; border-radius: 4px; display: block; margin: 0 auto; }
.photo-ph { height: 180px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--am-line);
  color: var(--am-muted); border-radius: 4px; }

@media (max-width: 992px) {
  .am-sidebar { transform: translateX(-208px); }
  .am-main { margin-left: 0; }
  body.sidebar-open .am-sidebar { transform: none; }
  .am-brand { min-width: 0; margin-right: 12px; }
  .am-topbar .nav-link-top span { display: none; }
}
@media print {
  .am-topbar, .am-sidebar, .no-print { display: none !important; }
  .am-main { margin: 0; padding: 0; }
  body { background: #fff; color: #000; }
}

/* nested dropdown groups (Reports) */
.am-sub .am-subgroup > .am-group { display: flex; align-items: center; gap: 9px; padding: 8px 16px 8px 24px; font-size: 13px; cursor: pointer; color: var(--am-text); }
.am-sub .am-subgroup > .am-group:hover { color: var(--am-accent); }
.am-sub .am-subgroup > .am-sub { background: rgba(0,0,0,.1); }
.am-sub .am-subgroup .am-sub a { padding-left: 40px; }
.am-sub li.open > .am-group .chev { transform: rotate(180deg); }
/* Asset Tiger style: right chevron that turns down when open, bulleted report links */
.am-sub .am-subgroup > .am-group .chev { margin-left: auto; font-size: 11px; transition: transform .15s; }
.am-sub .am-subgroup.open > .am-group .chev { transform: rotate(90deg); }
.am-sub .am-subgroup .am-sub a::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.am-sub .am-subgroup .am-sub a { padding-left: 32px; }

/* wizard step indicators: green once a step is completed */
.form-section.step-ok { color: #22c55e; border-bottom-color: rgba(34,197,94,.45); display: flex; align-items: center; gap: 8px; }
.form-section.step-ok .step-done { margin-left: auto; font-size: 12px; font-weight: 500; background: rgba(34,197,94,.15); border-radius: 10px; padding: 2px 10px; }

/* Select2 (bootstrap-5 theme) in the dark theme */
.select2-container--bootstrap-5 .select2-selection { background-color: var(--am-input); border-color: var(--am-line); color: var(--am-text); }

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered { color: var(--am-text); }
.select2-container--bootstrap-5 .select2-selection__placeholder { color: var(--am-text) !important; opacity: .75; }
.select2-container--bootstrap-5 .select2-search__field::placeholder { color: var(--am-text); opacity: .6; }
.select2-container--bootstrap-5 .select2-selection__clear { color: var(--am-text); }

.select2-container--bootstrap-5 .select2-dropdown { background-color: var(--am-input); border-color: var(--am-line); color: var(--am-text); }

.select2-container--bootstrap-5 .select2-search__field { background-color: var(--am-input); color: var(--am-text); border-color: var(--am-line); }

.select2-container--bootstrap-5 .select2-results__option--highlighted { background-color: var(--am-accent); color: #000; }

.select2-container--bootstrap-5 .select2-results__message { color: var(--bs-secondary-color); }
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice { background-color: rgba(255,255,255,.08); border-color: var(--am-line); color: var(--am-text); }
.select2-container { max-width: 100%; }

/* the theme's own search-box rule is more specific than the one above, so match it */
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field { background-color: var(--am-input); color: var(--am-text); border-color: var(--am-line); caret-color: var(--am-text); }
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus { border-color: var(--am-accent); box-shadow: none; }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__option { color: var(--am-text); }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__option--highlighted { color: #000; }

/* Select2 loads its theme after app.css, so repeat the dark styling with a stronger selector (body prefix) */
body .select2-container--bootstrap-5 .select2-selection,
body .select2-container--bootstrap-5.select2-container--focus .select2-selection,
body .select2-container--bootstrap-5.select2-container--open .select2-selection { background-color: var(--am-input); border-color: var(--am-line); color: var(--am-text); }
body .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered,
body .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered .select2-selection__placeholder { color: var(--am-text); }
body .select2-container--bootstrap-5 .select2-dropdown { background-color: var(--am-input); border-color: var(--am-line); color: var(--am-text); }
body .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field { background-color: var(--am-input); color: var(--am-text); border-color: var(--am-line); }
body .select2-container--bootstrap-5 .select2-dropdown .select2-results__message,
body .select2-container--bootstrap-5 .select2-dropdown .select2-results__option { color: var(--am-text); background-color: transparent; }
body .select2-container--bootstrap-5 .select2-dropdown .select2-results__option--highlighted,
body .select2-container--bootstrap-5 .select2-dropdown .select2-results__option--selected { background-color: var(--am-accent); color: #000; }
body .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b { border-color: var(--am-text) transparent transparent; }

/* success pop-up (toast) shown after any successful action */
.am-toasts { z-index: 2000; }
.am-toast-success { background: #123524; border: 1px solid #22c55e; color: #d1fae5; min-width: 300px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.am-toast-success .toast-body { font-size: 14px; font-weight: 500; }
.am-toast-success .am-toast-icon { color: #22c55e; font-size: 22px; margin-left: 14px; }
.am-toast-success .btn-close { filter: invert(1); opacity: .7; }
[data-theme="light"] .am-toast-success { background: #ecfdf5; color: #065f46; border-color: #16a34a; }
[data-theme="light"] .am-toast-success .btn-close { filter: none; }

/* ===== Semantic tokens (UI standard v1) ===== */
:root {
  --am-success: #4cd08a; --am-info: #4dd0e8; --am-warning: #ff9f43; --am-danger: #ff6b7a;
  --am-neutral: #9a9ab0; --am-purple: #b794f6;
  --am-ev-assets: #3f8fce; --am-ev-maintenance: #7e57c2; --am-ev-contracts: #17a2a2; --am-ev-warranty: #e0703a;
}
[data-theme="light"] {
  --am-success: #157347; --am-info: #0a7f95; --am-warning: #b85400; --am-danger: #c62839;
  --am-neutral: #6d6f85; --am-purple: #6a3fb8;
}
.tone-success { --tone: var(--am-success); } .tone-info { --tone: var(--am-info); } .tone-warning { --tone: var(--am-warning); }
.tone-danger { --tone: var(--am-danger); } .tone-neutral { --tone: var(--am-neutral); } .tone-purple { --tone: var(--am-purple); }

/* ===== Dashboard ===== */
.kpi { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; background: var(--am-card);
  border: 1px solid var(--am-line); border-radius: 6px; color: var(--am-text); transition: border-color .15s; }
a.kpi:hover { border-color: var(--am-accent); color: var(--am-text); }
.kpi-ico { flex: none; width: 46px; height: 46px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, transparent); }
.kpi-body { min-width: 0; }
.kpi-lbl { color: var(--am-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.kpi-val { font-size: 25px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--am-muted); font-size: 12px; }

.att-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.att { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--am-card-head); color: var(--am-text);
  border: 1px solid var(--am-line); border-left: 3px solid var(--tone, var(--am-line)); border-radius: 4px; }
.att > i { font-size: 18px; color: var(--tone, var(--am-muted)); }
.att-n { font-size: 22px; font-weight: 600; min-width: 26px; font-variant-numeric: tabular-nums; color: var(--tone, var(--am-text)); }
.att-l { font-size: 13px; line-height: 1.3; }
.att-l small { display: block; color: var(--am-muted); font-size: 11px; }
a.att:hover { color: var(--am-text); border-color: var(--tone, var(--am-accent)); }
.att.is-clear { opacity: .6; } .att.is-clear .att-n { color: var(--am-muted); }

.sbar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; margin-bottom: 14px; background: var(--am-card-head); }
.sbar > span { background: var(--tone); min-width: 3px; }
.slist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 22px; }
.slist a { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--am-text); font-size: 13px; border-bottom: 1px dashed var(--am-line); }
.slist a:hover { color: var(--am-accent); }
.slist .dot { flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--tone); }
.slist b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

.cbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; margin-bottom: 11px; font-size: 13px; }
.cbar:last-child { margin-bottom: 0; }
.cbar .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.cbar-track { grid-column: 1 / -1; height: 6px; border-radius: 3px; overflow: hidden; background: var(--am-card-head); }
.cbar-track > span { display: block; height: 100%; border-radius: 3px; background: var(--am-accent); }

.cal-legend button { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; font-size: 12px; font-weight: 500;
  color: var(--am-text); background: transparent; border: 1px solid var(--am-line); border-radius: 20px; }
.cal-legend button:hover { border-color: var(--ev); }
.cal-legend button .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ev); }
.cal-legend button.off { opacity: .45; text-decoration: line-through; }
.ev-assets { --ev: var(--am-ev-assets); } .ev-maintenance { --ev: var(--am-ev-maintenance); }
.ev-contracts { --ev: var(--am-ev-contracts); } .ev-warranty { --ev: var(--am-ev-warranty); }
.cal-ev { background: var(--ev, #3f8fce); font-size: 10.5px; padding: 1px 5px; border-radius: 3px; }
.cal-ev:hover { filter: brightness(1.15); }
.cal-ev.past { box-shadow: inset 3px 0 0 var(--am-danger); }
table.cal td.cal-out { background: transparent; opacity: .4; }
table.cal td.cal-weekend { background: color-mix(in srgb, var(--am-card-head) 55%, transparent); }
.cal-day { font-size: 12px; color: var(--am-muted); margin-bottom: 2px; }
td.cal-today { box-shadow: inset 0 0 0 2px var(--am-accent); }
td.cal-today .cal-day { color: var(--am-accent); font-weight: 700; }
.cal-more { font-size: 11px; color: var(--am-link); cursor: help; }

.am-tabs .cnt { margin-left: 6px; padding: 0 7px; border-radius: 10px; font-size: 11px; color: var(--am-muted);
  background: var(--am-card-head); border: 1px solid var(--am-line); }
.am-tabs button.active .cnt { color: var(--am-accent-ink); background: var(--am-accent); border-color: var(--am-accent); }

/* Dashboard pie charts with side legend */
:root { --am-cat-0: #ffb800; --am-cat-1: #4dd0e8; --am-cat-2: #4cd08a; --am-cat-3: #b794f6;
  --am-cat-4: #ff9f43; --am-cat-5: #ff6b7a; --am-cat-6: #17a2a2; --am-cat-7: #9a9ab0; }
[data-theme="light"] { --am-cat-0: #e0a200; --am-cat-1: #0a9fba; --am-cat-2: #1f9d5c; --am-cat-3: #7c4dcc;
  --am-cat-4: #e07020; --am-cat-5: #d63a4c; --am-cat-6: #128a8a; --am-cat-7: #7d7f95; }
.pie-wrap { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: center; }
.pie-box { position: relative; height: 190px; }
.pie-legend { grid-template-columns: 1fr; }
.pie-legend .pct { width: 42px; text-align: right; color: var(--am-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pie-legend .cat-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; border-bottom: 1px dashed var(--am-line); }
.pie-legend .cat-row .dot { flex: none; width: 9px; height: 9px; border-radius: 2px; }
.pie-legend .cat-row b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 575px) { .pie-wrap { grid-template-columns: 1fr; } .pie-box { max-width: 220px; margin: 0 auto; width: 100%; } }

/* Quick-add person panel under "Assign to" */
.tx-add-person { flex: none; }
.tx-add-person.active { border-color: var(--am-accent); color: var(--am-accent); }
.tx-newperson { margin-top: 10px; max-width: 470px; padding: 12px 14px; background: var(--am-card-head);
  border: 1px solid var(--am-line); border-left: 3px solid var(--am-accent); border-radius: 4px; }
.tx-newperson .np-head { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.tx-newperson .np-head i { color: var(--am-accent); margin-right: 4px; }
.np-ok { margin-top: 6px; font-size: 12px; color: var(--am-success); }
