/* GC3 (W3) — the one list toolbar (mk-emp-list): Export and More as menus beside the main button; quiet row actions. */
.lt-bar { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-inline-end: 8px; }
.lt-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 10px; }
.lt-row .idx-search { flex: 1 1 260px; max-width: 420px; }
.lt-menu { position: relative; display: inline-block; }
.lt-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.lt-menu > summary::-webkit-details-marker { display: none; }
.lt-pop { position: absolute; z-index: 40; top: calc(100% + 6px); inset-inline-end: 0; min-width: 240px; max-height: 70vh; overflow: auto;
  background: var(--bg-card, #fff); border: 1px solid var(--bd, #e2e8f0); border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
  padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.lt-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 7px 10px; border: 0; border-radius: 7px;
  background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: start; text-decoration: none; cursor: pointer; }
.lt-item:hover, .lt-item:focus-visible { background: var(--bg-soft, #f1f5f9); outline: none; }
.lt-sub { font-size: 12px; color: var(--mu, #64748b); padding: 6px 10px 2px; }
.lt-pop .idx-cc-wrap { position: static; }
.lt-pop .idx-cc-wrap .idx-cc-btn { display: none; }
.lt-pop .idx-cc-wrap .idx-cc-pop { position: static; display: block !important; box-shadow: none; border: 0; min-width: 0; }
.lt-adv { margin-inline-start: 6px; }
@media (max-width: 640px), (pointer: coarse) {
  .lt-item { min-height: 44px; }
  .lt-pop { min-width: 220px; }
}

/* T2 — row actions are quiet: a coloured Approve / Reject / Delete is not repeated on every row; the colour shows on hover
   and focus, and the button keeps its text, so the row reads as data and the action is one deliberate step */
#page-body table tbody .btn, #page-body table tbody button.btn, #page-body table tbody a.btn {
  background: transparent; color: var(--ac, #0f766e); border: 1px solid color-mix(in srgb, var(--ac, #0f766e) 40%, transparent); box-shadow: none; }
#page-body table tbody .btn:hover, #page-body table tbody .btn:focus-visible { background: var(--ac, #0f766e); color: #fff; }
#page-body table tbody .btn.ghost, #page-body table tbody .btn.se { color: var(--tx, #0f172a); border-color: var(--bd, #cbd5e1); }
#page-body table tbody .btn.ghost:hover, #page-body table tbody .btn.se:hover { background: var(--bg-soft, #f1f5f9); color: var(--tx, #0f172a); }
#page-body table tbody .btn.ok { color: var(--gn, #15803d); border-color: color-mix(in srgb, var(--gn, #15803d) 45%, transparent); }
#page-body table tbody .btn.warn { color: var(--am, #b45309); border-color: color-mix(in srgb, var(--am, #b45309) 45%, transparent); }
#page-body table tbody .btn.err, #page-body table tbody .btn.rd, #page-body table tbody .btn.danger, #page-body table tbody .btn.dg { color: var(--rd, #b91c1c); border-color: color-mix(in srgb, var(--rd, #b91c1c) 45%, transparent); }
#page-body table tbody .btn.ok:hover, #page-body table tbody .btn.ok:focus-visible { background: var(--gn, #15803d); color: #fff; }
#page-body table tbody .btn.warn:hover, #page-body table tbody .btn.warn:focus-visible { background: var(--am, #b45309); color: #fff; }
#page-body table tbody .btn.err:hover, #page-body table tbody .btn.rd:hover, #page-body table tbody .btn.danger:hover, #page-body table tbody .btn.dg:hover,
#page-body table tbody .btn.err:focus-visible, #page-body table tbody .btn.rd:focus-visible, #page-body table tbody .btn.danger:focus-visible, #page-body table tbody .btn.dg:focus-visible { background: var(--rd, #b91c1c); color: #fff; }

/* mk-emp-list — the count cards, the one search with its filter chips, and the quiet "Open" on each row */
.lt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 4px 0 14px; }
.lt-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--bg-card, #fff);
  border: 1px solid var(--bd, #e2e8f0); border-top: 3px solid var(--ac, #0f766e); color: inherit; text-decoration: none; }
.lt-card:hover, .lt-card:focus-visible { box-shadow: 0 6px 18px rgba(15, 23, 42, .08); }
.lt-card.tone-am { border-top-color: var(--am, #d97706); } .lt-card.tone-rd { border-top-color: var(--rd, #dc2626); } .lt-card.tone-gn { border-top-color: var(--gn, #16a34a); }
.lt-card:nth-child(2):not(.tone-gn):not(.tone-rd) { border-top-color: var(--am, #d97706); }
.lt-card:nth-child(3):not(.tone-gn):not(.tone-am), .lt-card:nth-child(4):not(.tone-gn):not(.tone-am) { border-top-color: var(--rd, #dc2626); }
.lt-card-t { font-size: 13px; color: var(--mu, #64748b); }
.lt-card-v { font-size: 26px; line-height: 1.15; }
.lt-card-s { font-size: 12px; color: var(--mu, #64748b); }
.lt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lt-search { flex: 1 1 260px; max-width: 360px; display: flex; gap: 6px; align-items: center; }
.lt-search input[type=search] { flex: 1; min-width: 0; }
.lt-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lt-chip > summary { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--bd, #cbd5e1); background: var(--bg-card, #fff); }
.lt-chip.on > summary { border-color: var(--ac, #0f766e); color: var(--ac2, #0b5d57); background: color-mix(in srgb, var(--ac, #0f766e) 8%, transparent); font-weight: 600; }   /* T1: the chosen chip's words on its teal tint, 6:1 (the brand teal read 4.3:1) */
.lt-chip .lt-pop { inset-inline-end: auto; inset-inline-start: 0; }
.lt-spacer { flex: 1 1 auto; }
.lt-open { color: var(--ac, #0f766e); text-decoration: none; font-weight: 500; }
.lt-open:hover, .lt-open:focus-visible { text-decoration: underline; }
@media (max-width: 640px), (pointer: coarse) { .lt-chip > summary { min-height: 44px; } .lt-search { max-width: none; } }

/* GC5 (mk-nav-tree, mk-emp-list) — the name-and-role chip and its menu; the branch picker in the menu; the menu's foot */
.u-chip > summary.u-chip-s { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 6px; border-radius: 12px;
  border: 1px solid var(--bd, #e2e8f0); background: var(--bg-card, #fff); cursor: pointer; }
.u-chip .u-id { display: flex; flex-direction: column; line-height: 1.2; text-align: start; }
.u-chip .u-name { font-size: 13px; font-weight: 600; }
.u-chip .role-chip { font-size: 11px; color: var(--mu, #64748b); background: none; padding: 0; }
.u-pop { min-width: 250px; }
.u-pop form { margin: 0; }
.u-pop .lt-item svg { flex: 0 0 auto; }
.u-lang { justify-content: space-between; cursor: default; }
.u-lang:hover { background: transparent; }
.srch .srch-k { font: 11px/1 var(--mono, monospace); padding: 3px 6px; border: 1px solid var(--bd, #e2e8f0); border-radius: 6px; color: var(--mu, #64748b); margin-inline-start: auto; }
.sb .sb-branch { display: flex; margin: 8px 12px 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.sb .sb-branch label { display: flex; align-items: center; gap: 6px; width: 100%; font-size: 13px; color: inherit; }
.sb .sb-branch select { flex: 1; min-width: 0; background: transparent; color: inherit; border: 0; font: inherit; }
.sb .sb-branch select option { color: #0f172a; }
.sb-foot { margin-top: auto; padding: 10px 12px 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
@media (min-width: 1100px) { .tb-actions .br-chip .br-k { display: inline; } }   /* GC5: the drawn chip reads "الفرع: كل الفروع" */
.sb .sb-branch .br-k { display: inline; }
.sb .sb-branch label { color: #cbd5e1; }
.sb .sb-branch select { color: #f1f5f9; height: 30px; width: auto; border: 0; background: transparent; font-weight: 600; }
