/* gc14.css — GC14, advances, custody, penalties, settings, SW House and performance laid out as the plan draws them
   (static styles; CSP 'self'). */

/* a page title with its Action menu on the far side */
.g14-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.g14-head .btn { min-height: 40px; }
.g14-cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g14-cards { margin-top: 0; }
@media (max-width: 760px) { .g14-cards3 { grid-template-columns: 1fr; } }
.g14-rowmenu { display: inline-block; vertical-align: middle; }
.g14-rowmenu .lt-pop { min-width: 180px; }
.g14-rowmenu form.lt-item { margin: 0; }
td .lt-menu > summary.btn { list-style: none; }

/* two panels side by side (settings, hosting, the evaluation's notes) */
.g14-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.g14-two > .panel { margin: 0; }
@media (max-width: 900px) { .g14-two { grid-template-columns: 1fr; } }
.g14-form2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.g14-form2 .md-row { margin: 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.g14-form2 .md-row > label { font-size: 13px; font-weight: 600; color: var(--t2, #475569); }
.g14-form2 input, .g14-form2 select { width: 100%; min-height: 40px; }
.g14-h { font-size: 15px; margin: 0 0 12px; }

/* status words drawn as a soft chip */
.g14-muted-row td { color: var(--t3, #64748b); }

/* the employee of the month: one card per branch */
.g14-eom { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.g14-eom-card { margin: 0; }
.g14-eom-none { opacity: .85; }
.g14-eom-who { display: flex; align-items: center; gap: 12px; }
.g14-eom-av { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
  background: color-mix(in srgb, var(--ac, #0f766e) 12%, transparent); color: var(--ac, #0f766e); flex: 0 0 auto; }
.g14-eom-name { font-weight: 700; font-size: 15px; }
.g14-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.g14-sel select { min-height: 36px; }

/* view-as: the red banner on every page while SW House works as a user, and the pick window's list */
.g14-viewas { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 12px 16px;
  border-radius: 12px; background: #fdecec; border: 1px solid #f2a3a3; color: #8a1c1c; }
.g14-viewas-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.g14-viewas .btn { background: #fff; color: #8a1c1c; border-color: #f2a3a3; min-height: 40px; }
.g14-pick { max-height: 300px; overflow: auto; border: 1px solid var(--bd, #e2e8f0); border-radius: 10px; margin-top: 8px; }
.g14-pick tr[data-viewas-row] { cursor: pointer; }
.g14-pick tr.sel td { background: color-mix(in srgb, var(--ac, #0f766e) 8%, transparent); }
.g14-pick-l { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* the licence: the form beside its usage, the modules table with the layer's colour bar */
.g14-lic-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.g14-lic-top > .panel { margin: 0; }
@media (max-width: 900px) { .g14-lic-top { grid-template-columns: 1fr; } }
.g14-use { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 1.2fr) auto; gap: 8px; align-items: center; }
.g14-lic-table td { vertical-align: middle; }
.g14-lic-layer { border-inline-start: 3px solid var(--ac, #0f766e); font-weight: 700; white-space: nowrap; }
.g14-grow { flex: 1 1 320px; }

/* the settings page: the latest activity as a short list */
.g14-act { list-style: none; margin: 0 0 10px; padding: 0; }
.g14-act li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 4px; border-top: 1px solid var(--bd, #e2e8f0); }
.g14-act li:first-child { border-top: 0; }
.g14-act .mono { min-width: 48px; color: var(--t2, #475569); }
.g14-more > summary { cursor: pointer; padding: 8px 0; }

/* the permission matrix as drawn: the toolbar on one line with Undo and Save, the module rows carrying their pills */
.g14-mtx-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g14-mtx-bar .btn { min-height: 38px; }
.g14-mtx-more { position: relative; }
.g14-mtx-pop { display: flex; flex-direction: column; gap: 8px; padding: 10px; min-width: 260px; }
.g14-mtx-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.g14-own { display: inline-block; margin-inline-start: 4px; font-size: 10.5px; color: var(--t2, #475569); }
.ar-roles tr.mtx-modrow td.mtx-cell { cursor: default; color: inherit; font-weight: 400; }
.ar-roles .mtx .mtx-sticky { min-width: 200px; }
.ar-roles .mtx th, .ar-roles .mtx td { padding: 6px 6px; }

/* a chip that is a plain link (All · Waiting for me · Not returned · Held), drawn like the toolbar's menu chips */
a.lt-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: 14px; text-decoration: none;
  border: 1px solid var(--bd, #e2e8f0); background: var(--bg-card, #fff); color: var(--t1, #0f172a); }
a.lt-chip.on { 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) */
@media (max-width: 640px), (pointer: coarse) { a.lt-chip { min-height: 44px; } }
td.g14-acts { white-space: nowrap; }
td.g14-acts form, td.g14-acts details { display: inline-block; vertical-align: middle; }
/* the eight roles side by side at 1366: smaller pills, short cells, the role names wrapping under each other */
.ar-roles .mtx .ar-pill span { width: 17px; height: 18px; font-size: 9.5px; }
.ar-roles .mtx .ar-pills { gap: 2px; }
.ar-roles .mtx th, .ar-roles .mtx td { padding: 5px 4px; }
.ar-roles .mtx th.mtx-role { white-space: normal; min-width: 92px; max-width: 110px; line-height: 1.25; }
.ar-roles .mtx .mtx-sticky { min-width: 170px; max-width: 220px; }
.ar-roles .mtx .g14-own { display: block; margin: 1px 0 0; font-size: 9.5px; line-height: 1; }
/* the licence's usage: the label, its bar and its share on one line */
.g14-use { grid-template-columns: auto minmax(60px, 1fr) auto; }
.g14-use > span:first-child { white-space: nowrap; }
/* a field shown only for one choice (the settlement's instalments) stays hidden until then */
.hire-grid2 .md-row[hidden], .g14-form2 .md-row[hidden] { display: none !important; }
/* the view-as banner sits in the page's column, like the page under it */
.g14-viewas { margin: 12px 22px; }
@media (max-width: 640px) { .g14-viewas { margin: 10px 16px; } }
.g14-form2 input.ro, .wizf-grid input.ro { background: var(--s2, #f1f5f9); color: var(--t2, #475569); }
/* the advances list fits the page: the level and the names wrap, the row's buttons stay on one line */
[data-adv-list] table { table-layout: auto; width: 100%; }
[data-adv-list] td { white-space: normal; }
[data-adv-list] td.g14-acts { white-space: nowrap; width: 1%; }
[data-adv-list] td:nth-child(8) { min-width: 120px; max-width: 170px; font-size: 12px; }
.g14-log th { text-align: start; font-size: 12px; color: var(--t2, #475569); background: var(--s2, #f1f5f9); }
