/* Azure: the type, chrome and component polish on top of the tokens in
   theme-custom.css. Loaded last from base.html. Every colour here is read
   from a token or is one of the Azure status set; nothing is sand.

   ROLLBACK: remove the two azure links in templates/base.html and restore the
   lantern skin link beside them. */

/* ---- type ---- */
body, .content-body, .btn, .form-control, input, select, textarea, button {
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body { font-size: 14.5px; line-height: 1.5; color: var(--gc-ink-2); -webkit-font-smoothing: antialiased; }
.content-body { font-size: 14.5px; }
h1, h2, h3, h4, h5, .rp-title, .panel-title, .sh-name, .pay-title, .gc-title { color: var(--gc-ink); letter-spacing: -.015em; font-weight: 800; }
.mono, .az-num, table .num, .text-right b { font-variant-numeric: tabular-nums; }
.az-mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }

/* ---- the header bar: dark, with a letter mark ---- */
.page-header { background: var(--bar-bg); border-bottom: 0; }
.page-header h2 {
	color: var(--bar-ink); font-size: 16px; font-weight: 800; letter-spacing: -.01em;
	display: flex; align-items: center; height: 50px; margin: 0; padding-left: 14px;
}
.page-header h2::first-letter {
	background: var(--gc-accent); color: #fff; border-radius: 8px;
	padding: 3px 9px; margin-right: 9px; font-weight: 800;
}
.page-header h2 .hw { color: var(--bar-ink-dim); font-weight: 600; font-size: 13px; margin-left: 10px; }
.page-header .userbox .role, .page-header .breadcrumbs a, .page-header .breadcrumbs i { color: var(--bar-ink-dim); }
.page-header .userbox > a:hover .role { color: var(--bar-ink); }
.page-header .userbox .profile-picture { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); }
.page-header .userbox .profile-picture .fa { color: var(--bar-ink); }

/* ---- the menu bar: a light band under the dark header ---- */
.tn-top { font-size: 14px; font-weight: 700; border-bottom-width: 3px; }
.tn-item.tn-active > .tn-top { color: var(--tn-link-hover-ink); background: var(--tn-link-hover-bg); border-bottom-color: var(--tn-mark); }
.tn-top .fa { font-size: 13px; opacity: .7; }
.tn-head { font-size: 11.5px; letter-spacing: .08em; color: var(--gc-accent); border-bottom-color: var(--gc-line); }
.tn-panel a, .tn-panel .tn-dead { font-size: 13.5px; font-weight: 600; padding: 6px 8px; }
.tn-panel { border-top-width: 3px; border-radius: 0 0 12px 12px; padding: 16px 20px; }

/* ---- the module band under the menu: where am I, and what dates are open ----
   A tint of the module's colour with a rule in the colour itself (2026-10-15).
   As a solid fill it was the loudest thing on the page -- on Sales the same
   blue as the Filters and Save buttons -- and white on the stock teal was
   3.96:1. The ink is the module's deep shade, every pair at 7:1 or better.
   One line at every width: the full posting rule is in the title. */
@media only screen and (min-width: 768px) { .tn { height: auto; } }
.tn-band {
	--mod: #2458e6; --mod-soft: #e4ebfd; --mod-ink: #163fb4;
	display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; overflow: hidden;
	min-height: 34px; padding: 4px 20px; font-size: 13px; white-space: nowrap;
	color: var(--gc-ink-2); background: var(--mod-soft); border-bottom: 3px solid var(--mod);
}
.tn-band[data-mod="stock"] { --mod: #0f8f87; --mod-soft: #d8f2ef; --mod-ink: #0b5f59; }
.tn-band[data-mod="banking"] { --mod: #6d3fd9; --mod-soft: #ece6fb; --mod-ink: #4c2a9e; }
.tn-band[data-mod="reports"] { --mod: #3f5168; --mod-soft: #e4e9f1; --mod-ink: #2a3749; }
.tn-band[data-mod="master-files"] { --mod: #2a3749; --mod-soft: #e4e9f1; --mod-ink: #0b1424; }
.tn-band .tb-mod { color: var(--mod-ink); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tn-band .tb-sep { opacity: .5; }
.tn-band .tb-user { font-weight: 600; }
.tn-band .tb-win { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.tn-band .tb-win b { color: var(--mod-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tn-band .tb-win .fa { color: var(--mod); margin-right: 3px; }
.tn-band .tb-win .tb-info { margin: 0 0 0 4px; opacity: .7; }
.tn-band .tb-win:focus-visible { outline: 2px solid var(--mod); outline-offset: 2px; border-radius: 4px; }
@media only screen and (max-width: 767px) {
	.tn-band { padding: 4px 14px; }
	/* the name is in the header above; the dates are what a phone needs */
	.tn-band .tb-sep, .tn-band .tb-user, .tn-band .tb-count, .tn-band .tb-info { display: none; }
}

/* ---- the header on every width: name, home, user, in one dark row ----
   theme.css floats these, and on a phone the user box fell out of the bar
   onto a pale row below it (the name and Logout at 1.6:1), with the name's
   4px underline and the empty right-sidebar toggle left showing as two
   stray lines. */
.page-header { display: flex; align-items: center; }
.page-header h2 { float: none; flex: 1 1 auto; min-width: 0; border-bottom: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-header .right-wrapper { float: none; order: 2; display: flex; align-items: center; }
.page-header .header-right { float: none; order: 3; height: auto; padding-right: 12px; }
.page-header .sidebar-right-toggle { display: none; }
.page-header .breadcrumbs { display: flex; margin: 0 12px 0 0; padding: 0; }
.page-header .breadcrumbs li:after { content: none; }
.page-header .breadcrumbs a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%; color: var(--bar-ink-dim);
}
.page-header .breadcrumbs a:hover, .page-header .breadcrumbs a:focus { color: var(--bar-ink); background: rgba(255, 255, 255, .1); }
.page-header .breadcrumbs .fa-home { font-size: 16px; margin: 0; }
@media only screen and (max-width: 767px) {
	.page-header { height: 52px; padding: 0; }
	.page-header h2 { height: 52px; line-height: 52px; padding: 0 0 0 12px; font-size: 15px; }
	.page-header .breadcrumbs { display: flex; margin-right: 4px; }
	.page-header .header-right { padding-right: 8px; }
}
@media only screen and (max-width: 480px) {
	/* the person and the way out stay; their words go */
	.page-header .userbox .profile-info { display: none; }
	.page-header .header-right .userbox .dropdown-menu a { font-size: 0; padding: 8px 10px; }
	.page-header .header-right .userbox .dropdown-menu a .fa { font-size: 14px; margin: 0; }
}

/* ---- the phone menu row: a labelled, full-width control ---- */
.tn-burger-label { display: none; }
@media only screen and (max-width: 767px) {
	.tn { background: var(--tn-bg); border-bottom: 1px solid var(--tn-line); }
	.tn-burger { height: 48px; padding: 0 16px; font-size: 15px; font-weight: 700; color: var(--tn-ink-strong); }
	.tn-burger .fa { font-size: 17px; margin-right: 10px; }
	.tn-burger-label { display: inline; }
	.tn-burger-label .tn-burger-mod { color: var(--tn-mark); font-weight: 600; }
	.tn-top { font-size: 15px; min-height: 46px; }
}

/* ---- surfaces and tables ---- */
.panel, .rp-sheet, .sh-panel, .pay-panel { border-radius: 14px; box-shadow: 0 1px 2px rgba(11, 20, 36, .05), 0 6px 18px rgba(11, 20, 36, .05); }
.rp-sheet { padding: 20px 22px; }
.rp-head { border-bottom-color: var(--gc-line); }
.rp-title, h1.rp-title, .rp-head h1 { color: var(--gc-ink); font-size: 22px; }
.rp-eyebrow, .sh-eyebrow, .pay-eyebrow { color: var(--gc-ink-3); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.rp-actions a { color: var(--gc-accent); border-color: var(--gc-line); font-size: 13.5px; font-weight: 700; padding: 8px 14px; border-radius: 10px; }
.rp-actions a:hover { background: var(--gc-accent-soft); border-color: var(--gc-accent); color: var(--ln-terra-ink); }
table.rp-table th, .table > thead > tr > th {
	background: var(--gc-surface-2); color: var(--gc-ink-2);
	font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 10px 12px;
}
.table > tbody > tr > td, table.rp-table td { padding: 9px 12px; font-size: 14px; }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-color: var(--gc-line-soft); }
.table-striped > tbody > tr:nth-child(odd) > td { background: var(--gc-surface-2); }
.table-hover > tbody > tr:hover > td, table.rp-table tbody tr:hover td { background: var(--gc-accent-soft); }
table.sh-table, table.gd-lines { font-size: 13.5px; }
table.sh-table th { font-size: 11.5px; }

/* ---- controls ---- */
.btn { font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 10px; }
body .btn-primary { background-color: var(--gc-accent); border-color: var(--gc-accent); color: #fff; }
body .btn-primary:hover, body .btn-primary:focus, body .btn-primary:active { background-color: var(--ln-terra-2); border-color: var(--ln-terra-2) !important; color: #fff; }
body .btn-success { background-color: #0f8f87; border-color: #0f8f87; }
body .btn-success:hover, body .btn-success:focus, body .btn-success:active { background-color: #0b6e68; border-color: #0b6e68 !important; }
.form-control, .input-group .form-control { border-color: var(--ln-line-2); padding: 9px 12px; font-size: 14.5px; }
label, .control-label { color: var(--gc-ink-2); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.help-block, .form-text { font-size: 12.5px; }
.pagination > li > a, .pagination > li > span { border-radius: 10px !important; margin: 0 3px; border-color: var(--ln-line-2); color: var(--gc-ink-2); font-weight: 700; }
.pagination > .active > a, .pagination > .active > span { background: var(--gc-ink); border-color: var(--gc-ink); color: #fff; }
.nav-tabs > li > a { font-weight: 700; color: var(--gc-ink-2); border-radius: 10px 10px 0 0; }
.nav-tabs > li.active > a { color: var(--ln-terra-ink); border-bottom: 3px solid var(--gc-accent); }
.modal-content { border-radius: 16px; border: 1px solid var(--gc-line); box-shadow: 0 24px 60px rgba(11, 20, 36, .22); }
.label { border-radius: 999px; font-weight: 700; padding: .25em .7em; }

/* ---- the Azure parts: chips, KPIs, notes (used by the rebuilt report pages) ---- */
.az-chip {
	display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
	padding: 3px 10px; border-radius: 999px; background: var(--ln-paper-3); color: var(--gc-ink-2); white-space: nowrap;
}
.az-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.az-chip.plain::before { display: none; }
.az-chip.good { background: var(--gc-ok-soft); color: var(--gc-ok); }
.az-chip.warn { background: var(--gc-warn-soft); color: var(--gc-warn); }
.az-chip.crit { background: var(--gc-bad-soft); color: var(--gc-bad); }
.az-chip.info { background: var(--gc-accent-soft); color: var(--ln-terra-ink); }
.az-chip.teal { background: var(--ln-sky-soft); color: #0b6e68; }
.az-chip.violet { background: #ede6fb; color: #5a2fc0; }
.az-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0 4px; }
.az-kpi { background: var(--gc-surface); border: 1px solid var(--gc-line); border-radius: 14px; overflow: hidden; }
.az-kpi::before { content: ""; display: block; height: 6px; background: var(--gc-accent); }
.az-kpi.good::before { background: #16a34a; } .az-kpi.warn::before { background: #f59e0b; } .az-kpi.crit::before { background: #dc2626; }
.az-kpi.teal::before { background: #0f8f87; } .az-kpi.violet::before { background: #6d3fd9; } .az-kpi.slate::before { background: #3f5168; }
.az-kpi .b { padding: 12px 16px 14px; }
.az-kpi .l { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gc-ink-3); }
.az-kpi .v { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--gc-ink); margin-top: 4px; line-height: 1.1; }
.az-kpi .v small { font-family: "Manrope", system-ui, sans-serif; font-size: 13px; font-weight: 600; color: var(--gc-ink-2); letter-spacing: 0; }
.az-kpi .n { font-size: 13px; color: var(--gc-ink-2); margin-top: 4px; }
.az-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; background: var(--gc-surface-2); font-size: 14px; color: var(--gc-ink); margin: 12px 0 0; }
.az-note.warn { background: var(--gc-warn-soft); } .az-note.crit { background: var(--gc-bad-soft); } .az-note.good { background: var(--gc-ok-soft); }
.az-note .m { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--gc-ink-3); }
.az-note.warn .m { background: #f59e0b; color: #3d2a00; } .az-note.crit .m { background: #dc2626; } .az-note.good .m { background: #16a34a; }
.az-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.az-filters label { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ln-line-2); background: var(--gc-surface); font-size: 13.5px; font-weight: 700; color: var(--gc-ink-2); margin: 0; }
.az-filters label input, .az-filters label select { border: 0; font: inherit; font-weight: 600; color: var(--gc-ink); background: transparent; outline: none; }
.az-filters .btn { height: 40px; padding: 0 16px; }
.az-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.az-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gc-ink-2); background: var(--gc-surface-2); padding: 10px 12px; border-bottom: 1px solid var(--gc-line); white-space: nowrap; }
.az-table td { padding: 9px 12px; border-bottom: 1px solid var(--gc-line-soft); color: var(--gc-ink-2); vertical-align: top; }
.az-table td.no { color: var(--gc-ink); font-weight: 700; }
.az-table th.num, .az-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.az-table tbody tr:hover td { background: var(--gc-accent-soft); }
.az-table tbody tr:last-child td { border-bottom: none; }
.az-table tfoot td { background: var(--gc-surface-2); font-weight: 800; color: var(--gc-ink); border-top: 2px solid var(--ln-line-2); }
.az-table tr.flag td { background: #fffaf0; } .az-table tr.flag td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
.az-scroll { overflow-x: auto; border: 1px solid var(--gc-line); border-radius: 12px; margin-top: 12px; }
.az-dim { color: var(--gc-ink-3); font-size: 13px; }
.az-sub { font-size: 13.5px; color: var(--gc-ink-2); margin-top: 4px; }

@media print {
	.page-header, .tn, .tn-band { display: none !important; }
	.az-kpi::before { height: 2px; }
	.az-chip, .az-kpi, .az-note { background: #fff !important; border: 1px solid #bbb; }
}

/* ---- the sign-out pill on the dark header: it was white on white until hovered ---- */
.page-header .userbox .dropdown-menu a {
	color: var(--bar-ink); background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .22);
	font-size: 13px; font-weight: 700; padding: 6px 13px;
}
.page-header .userbox .role { color: var(--bar-ink); }
.page-header .userbox .profile-picture { background: rgba(255, 255, 255, .12); }

/* ---- the master-file CRUD pages: a form card beside a list card ----
   Forty-two templates share one shape (atozmaster/ and outletsmaster/ crud/),
   so they are restyled here rather than one at a time. */
.panel { overflow: hidden; }
.panel > .panel-heading { background: var(--gc-surface-2); border-bottom: 1px solid var(--gc-line); padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.panel > .panel-heading .panel-title { font-size: 17px; font-weight: 800; letter-spacing: -.015em; color: var(--gc-ink); margin: 0; flex: 1; }
.panel > .panel-heading .panel-actions { float: none; order: 2; margin: 0; display: flex; gap: 4px; }
.panel > .panel-heading .panel-actions a { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--gc-ink-3); background: var(--gc-surface); border: 1px solid var(--gc-line); font-size: 13px; }
.panel > .panel-heading .panel-actions a:hover { color: var(--ln-terra-ink); border-color: var(--gc-accent); }
.panel > .panel-heading .panel-actions a[href="#"] { display: none; }
.panel > .panel-body { padding: 18px; }
.panel > .panel-footer { background: var(--gc-surface-2); border-top: 1px solid var(--gc-line); padding: 12px 18px; }
.panel .btn-xs, .panel .btn-sm, .btn-xs, .btn-sm { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; line-height: 1.4; }
.panel .btn-xs .fa, .panel .btn-sm .fa { margin-right: 4px; }
body .panel table.table .btn-primary.btn-xs, body .panel table.table .btn-primary.btn-sm { background: var(--gc-accent-soft); border-color: var(--gc-accent-line); color: var(--ln-terra-ink); }
body .panel table.table .btn-primary.btn-xs:hover, body .panel table.table .btn-primary.btn-sm:hover { background: var(--gc-accent); border-color: var(--gc-accent) !important; color: #fff; }
.panel .table.mb-none { margin-bottom: 0; }
.panel .table > thead > tr > th { background: var(--gc-surface-2); }
.panel .table > tbody > tr > td { vertical-align: middle; }
.panel .table td code { background: var(--ln-paper-3); color: var(--gc-ink); border-radius: 6px; padding: 2px 6px; font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.label-default { background: var(--ln-paper-3); color: var(--gc-ink-2); }
.label-warning { background: var(--gc-warn-soft); color: var(--gc-warn); }
.label-success { background: var(--gc-ok-soft); color: var(--gc-ok); }
.label-danger { background: var(--gc-bad-soft); color: var(--gc-bad); }
.label-primary, .label-info { background: var(--gc-accent-soft); color: var(--ln-terra-ink); }
/* the DataTables chrome around every CRUD list: search, page length, info, pager */
.dataTables_wrapper .dataTables_filter { margin-bottom: 12px; }
.dataTables_wrapper .dataTables_filter label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gc-ink-3); }
.dataTables_wrapper .dataTables_filter input { height: 38px; border: 1px solid var(--ln-line-2); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--gc-ink); background: var(--gc-surface); min-width: 220px; }
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--gc-accent); box-shadow: var(--gc-focus); outline: 0; }
.dataTables_wrapper .dataTables_length { margin-bottom: 12px; }
.dataTables_wrapper .dataTables_length label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gc-ink-3); }
.dataTables_wrapper .dataTables_length select { height: 38px; border: 1px solid var(--ln-line-2); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--gc-ink); background: var(--gc-surface); }
.dataTables_wrapper .dataTables_info { font-size: 13px; color: var(--gc-ink-3); padding-top: 14px; }
.dataTables_wrapper .dataTables_paginate { padding-top: 8px; }
.dataTables_wrapper .pagination > li > a { padding: 6px 12px; font-size: 13px; }
.dataTables_wrapper table.dataTable thead .sorting, .dataTables_wrapper table.dataTable thead .sorting_asc, .dataTables_wrapper table.dataTable thead .sorting_desc { cursor: pointer; }
.dataTables_wrapper table.dataTable thead .sorting_asc, .dataTables_wrapper table.dataTable thead .sorting_desc { color: var(--ln-terra-ink); }
.dataTables_wrapper .dataTables_empty { color: var(--gc-ink-3); padding: 20px 12px !important; }

/* ---- report sheets: a form's footer, a wrapper, a stray panel footer ---- */
.rp-wrap { max-width: 980px; }
.rp-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gc-line); }
.rp-sheet .panel-footer { background: transparent; border-top: 1px solid var(--gc-line); margin: 18px -22px -20px; padding: 14px 22px; border-radius: 0 0 14px 14px; }
.rp-sheet .panel-footer .row, .rp-sheet .panel-footer [class*="col-sm"] { display: contents; }
.rp-title .az-chip { vertical-align: middle; margin-left: 8px; font-size: 13px; }
.rp-sheet .form-horizontal .control-label { text-align: left; padding-top: 10px; }

/* ---- buttons that wrap a link, links that wrap buttons, and the dead ones ----
   The CRUD pages write `<span class="btn"><a style="color:white">`,
   `<button class="btn"><a>` and `<a><button class="btn">` in roughly equal
   measure, and the panel-actions strip styles any anchor as an icon box: a
   button in it came out as a white box with white text. */
.btn a, a .btn { color: inherit !important; text-decoration: none !important; }
.btn a { display: inline-flex; align-items: center; gap: 4px; }
span.btn { display: inline-flex; align-items: center; cursor: default; }
.panel > .panel-heading .panel-actions .btn,
.panel > .panel-heading .panel-actions a.btn,
.panel > .panel-heading .panel-actions .btn a {
	width: auto; height: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
	border-radius: 999px; font-size: 12.5px; font-weight: 700; color: inherit; border: 0; background: none;
}
.panel > .panel-heading .panel-actions .btn-primary, .panel > .panel-heading .panel-actions span.btn-primary { background: var(--gc-accent); color: #fff; }
.panel > .panel-heading .panel-actions .btn-primary a { color: #fff !important; }
.panel > .panel-heading .panel-actions .btn-primary:hover { background: var(--ln-terra-2); }
.panel-title > .btn:empty, h2 > .btn:empty, h1 > .btn:empty { display: none; }
/* the outlined default pill was transparent on a white card, which reads as missing */
body .btn-default.btn-xs, body .btn-default.btn-sm, body table .btn-default { background-color: var(--gc-surface-2); border-color: var(--ln-line-2); color: var(--gc-ink-2); }
body .btn-default.btn-xs:hover, body .btn-default.btn-sm:hover, body table .btn-default:hover { background-color: var(--gc-accent-soft); border-color: var(--gc-accent) !important; color: var(--ln-terra-ink); }
body .btn-info { background-color: var(--ln-sky-soft); border-color: #9fdcd5; color: #0b6e68; }
body .btn-info:hover, body .btn-info:focus { background-color: #0f8f87; border-color: #0f8f87 !important; color: #fff; }
body table .btn-danger.btn-xs, body table .btn-danger.btn-sm { background-color: var(--gc-bad-soft); border-color: var(--gc-bad-line); color: var(--gc-bad); }
body table .btn-danger.btn-xs:hover, body table .btn-danger.btn-sm:hover { background-color: var(--gc-bad); border-color: var(--gc-bad) !important; color: #fff; }
/* the "float-right ml-2" checkout pills: Bootstrap 3 has no ml-2, so give the gap here */
.btn.float-right { float: right; } .btn.ml-2 { margin-left: 8px; }

/* ---- label-above fields on the rebuilt sheets ---- */
.az-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gc-ink-3); }
.az-field .form-control { height: 44px; padding: 0 12px; font-size: 15px; font-weight: 600; }
.az-field input[type="file"].form-control { padding-top: 9px; }

/* ---- the standalone batch pages share the modal's sheet ---- */
.pay-panel { overflow: hidden; }
.pay-panel::before { content: ""; display: block; height: 6px; background: #6d3fd9; }
.pay-head { background: var(--gc-surface-2); }
.pay-title { font-size: 22px; font-weight: 800; }
.pay-sub { font-size: 14px; }
.pay-body { padding: 18px 20px; }

/* ---- every other dialog: the 224 search and confirm modals ----
   They all share modals.css's "adminpro" shape: a coloured header band
   (sky blue or tomato red by template habit, not by meaning), a centred body
   with 50px of padding, and a close button hanging outside the corner.
   Restated as the Azure sheet the entry modals and the forms wear. */
.modal-adminpro-general .modal-content { border-radius: 16px; border: 1px solid var(--gc-line); box-shadow: 0 24px 60px rgba(11, 20, 36, .24); overflow: hidden; position: relative; }
.modal-adminpro-general .modal-content::before { content: ""; display: block; height: 6px; background: var(--gc-accent); }
.modal .modal-header.header-color-modal, .modal .modal-header.header-color-modal.bg-color-1, .modal .modal-header.header-color-modal.bg-color-2,
.modal .modal-header.header-color-modal.bg-color-3, .modal .modal-header.header-color-modal.bg-color-4, .modal .modal-header.header-color-modal.bg-color-5 {
	background: var(--gc-surface-2); color: var(--gc-ink); padding: 14px 20px; border-bottom: 1px solid var(--gc-line); display: flex; align-items: center; gap: 12px; position: relative;
}
.modal .header-color-modal h4, .modal .header-color-modal .modal-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.015em; color: var(--gc-ink); flex: 1; }
.modal .header-color-modal .modal-title::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--gc-accent); margin-right: 10px; vertical-align: middle; }
.modal .modal-close-area, .modal .modal-close-area.modal-close-df { position: static; right: auto; top: auto; margin-left: auto; }
.modal .modal-close-area a, .modal .modal-close-area a.close, .modal .FullColor-popup-DangerModal .modal-close-area .close, .FullColor-popup-DangerModal .modal-close-area .close {
	width: 34px; height: 34px; line-height: 32px; border-radius: 50%; border: 1px solid var(--ln-line-2); background: var(--gc-surface); color: var(--gc-ink-3); font-size: 14px; opacity: 1; display: inline-block; text-align: center;
}
.modal .modal-close-area a:hover { border-color: var(--gc-ink-2); color: var(--gc-ink); background: var(--gc-surface); }
.modal-adminpro-general .modal-body { text-align: left; padding: 18px 20px 6px; }
.modal-adminpro-general .modal-body h4, .modal-adminpro-general .modal-body h2 { margin: 0 0 12px; font-size: 14px; color: var(--gc-ink-2); font-weight: 600; }
.modal-adminpro-general .modal-body label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gc-ink-3); margin: 10px 0 6px; }
.modal-adminpro-general .modal-body .form-control, .modal-adminpro-general .modal-body input[type="text"], .modal-adminpro-general .modal-body input[type="date"], .modal-adminpro-general .modal-body input[type="number"], .modal-adminpro-general .modal-body select {
	height: 44px; padding: 0 12px; font-size: 15px; font-weight: 600; border: 1px solid var(--ln-line-2); border-radius: 10px; color: var(--gc-ink); background: var(--gc-surface); width: 100%; box-shadow: none;
}
.modal-adminpro-general .modal-body .input-group .form-control:first-of-type { border-radius: 0; }
.modal-adminpro-general .modal-body .input-group-addon { background: var(--gc-surface-2); border-color: var(--ln-line-2); color: var(--gc-ink-3); font-weight: 700; }
.modal-adminpro-general .modal-body p { text-align: left; font-size: 14px; color: var(--gc-ink-2); }
.modal-adminpro-general .modal-body .modal-check-pro { display: none; }
.modal-adminpro-general .modal-footer { background: var(--gc-surface-2); border-top: 1px solid var(--gc-line); padding: 12px 20px; display: flex; gap: 10px; align-items: center; justify-content: flex-end; text-align: right; }
.modal-adminpro-general .modal-footer .btn { height: 44px; padding: 0 18px; font-size: 14.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; }
body .modal-adminpro-general .modal-footer .btn-info, body .modal-adminpro-general .modal-footer .btn-default { background: var(--gc-surface); border-color: var(--ln-line-2); color: var(--gc-ink-2); }
body .modal-adminpro-general .modal-footer .btn:last-child, body .modal-adminpro-general .modal-footer .btn-primary, body .modal-adminpro-general .modal-footer .btn[type="submit"] { background: var(--gc-accent); border-color: var(--gc-accent); color: #fff; }
body .modal-adminpro-general .modal-footer .btn-danger:last-child, body .modal-adminpro-general .modal-footer .btn-danger[type="submit"] { background: var(--gc-bad); border-color: var(--gc-bad); color: #fff; }
body .modal-adminpro-general .modal-footer .btn:last-child:hover { filter: brightness(.92); }
.modal-adminpro-general .modal-footer a:before { display: none; }
.modal-backdrop.in { opacity: .55; background: #0b1424; }

/* ---- the remaining label-left search forms on report sheets ----
   Bootstrap's form-horizontal puts a 2-column label beside a 7-column field;
   on a sheet that reads as a short line hugging the left edge. Each group
   becomes a stacked field, label above, laid out across the width. */
.rp-sheet .form-horizontal .form-group, .rp-sheet form .form-group { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: flex-end; margin: 0 0 14px; }
.rp-sheet .form-group > .control-label { float: none; width: 100%; text-align: left; padding: 0; margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gc-ink-3); }
.rp-sheet .form-group > [class*="col-md-"], .rp-sheet .form-group > [class*="col-sm-"] { float: none; width: auto; flex: 1 1 240px; padding: 0; min-width: 0; }
.rp-sheet .form-group > [class*="col-md-"]:has(> .btn:only-child), .rp-sheet .form-group > [class*="col-md-"]:has(> button:only-child) { flex: 0 0 auto; }
.rp-sheet .form-group .input-daterange { max-width: 520px; }
.rp-sheet .form-group .checkbox-inline { font-size: 14px; font-weight: 600; color: var(--gc-ink); margin: 0 14px 6px 0; padding-left: 0; display: inline-flex; align-items: center; gap: 6px; }
.rp-sheet .form-group .checkbox-inline input { position: static; margin: 0; width: 16px; height: 16px; }
.rp-sheet .form-group .help-block { width: 100%; margin: 4px 0 0; }
.rp-sheet .form-group .btn-primary { height: 44px; display: inline-flex; align-items: center; gap: 8px; }

/* ---- a banking the bank has not confirmed, or that was voided ----
   Void: on the record, struck through, red, counting for nothing anywhere.
   Held: posted, awaiting the statement; listed in amber and not yet money. */
table tr.bank-void td, table.gd-lines tr.gd-void td, table tr.sh-void td { color: var(--gc-bad) !important; text-decoration: line-through; text-decoration-color: var(--gc-bad); background: var(--gc-bad-soft) !important; }
table tr.bank-void td a, table tr.sh-void td a { color: var(--gc-bad); }
table tr.bank-void td .label, table tr.bank-void td .az-chip, table tr.bank-void td .btn { text-decoration: none; }
table tr.bank-held td { background: #fffaf0 !important; }
table tr.bank-held td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }

/* ---- the list headers and status pills, on every legacy page ----
   Two rules further up meet markup they were not written for, on some
   seventy list pages at once. Those pages put labelled links in the action
   strip -- <span><i></i><a>Search by Date</a></span> -- and open their
   search boxes from href="#" links that carry data-toggle. The icon-box rule
   squeezed the words into 32px squares, so they spilled over the card edge
   and over each other, and the dead-link rule hid the modal triggers, which
   took every list's date, salesman and reference search off the page.
   Fixed here, for all of them, rather than template by template. */
.panel > .panel-heading { flex-wrap: wrap; row-gap: 8px; }
.panel > .panel-heading .panel-title { min-width: 180px; }
.panel > .panel-heading .panel-actions { flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; max-width: 100%; position: static; }
/* a span holding a link is a labelled pill, not an icon box */
.panel > .panel-heading .panel-actions > span:has(a):not(.btn):not(.nb-listbar) {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
	border-radius: 8px; border: 1px solid var(--gc-line); background: var(--gc-surface);
	color: var(--gc-ink-2) !important; font-size: 12.5px; font-weight: 650; white-space: nowrap;
}
.panel > .panel-heading .panel-actions > span:has(a):not(.btn):not(.nb-listbar):hover { border-color: var(--gc-accent); }
.panel > .panel-heading .panel-actions > span:has(a):not(.btn) a {
	width: auto; height: auto; display: inline; padding: 0; border: 0; background: none;
	color: inherit; font-size: inherit; text-decoration: none;
}
.panel > .panel-heading .panel-actions > span:has(a):not(.btn) i { font-size: 12px; color: var(--gc-ink-3); }
/* a link that opens a search box is not a dead link */
.panel > .panel-heading .panel-actions a[href="#"][data-toggle] { display: inline; }
/* plain text in the strip ("Showing 30 latest entries") reads as a caption */
.panel > .panel-heading .panel-actions > span:not(:has(a)):not(.btn):not(.nb-listbar) {
	font-size: 12px; font-weight: 600; color: var(--gc-ink-3) !important; white-space: nowrap;
}
.panel > .panel-heading .panel-actions > span:not(:has(a)) i:empty { display: none; }

/* status pills: a soft fill needs an edge, or on a tinted row it disappears */
.label { display: inline-block; border: 1px solid transparent; font-size: 11px; letter-spacing: .02em; line-height: 1.45; white-space: nowrap; }
.label-success { border-color: var(--gc-ok-line); }
.label-warning { border-color: var(--gc-warn-line); }
.label-danger { border-color: var(--gc-bad-line); }
.label-primary, .label-info { border-color: var(--gc-accent-line); }
.label-default { border-color: var(--gc-line); }
/* on a voided or held row the cell is already tinted: the pill goes solid */
table tr.bank-void td .label, table tr.sh-void td .label { background: var(--gc-bad) !important; border-color: var(--gc-bad) !important; color: #fff !important; }
table tr.bank-held td .label-info { background: var(--gc-accent) !important; border-color: var(--gc-accent) !important; color: #fff !important; }
/* a date in a list cell stays on one line */
.panel .table > tbody > tr > td:has(> time), .panel .table td.nowrap { white-space: nowrap; }
/* the newer lists' Filters / New pills sit in the same strip: they keep their own shape */
.panel > .panel-heading .panel-actions .nb-listbar a.nb-pill,
.panel > .panel-heading .panel-actions .nb-listbar button.nb-pill {
	width: auto; height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px;
	border-radius: 8px; font-size: 12.5px; font-weight: 650; white-space: nowrap;
}
.panel > .panel-heading .panel-actions .nb-listbar a.nb-pill:not(.primary) { background: var(--gc-surface); border: 1px solid var(--gc-line); color: var(--gc-ink-2); }
/* a table wider than its card scrolls inside the card instead of being cut
   off by .panel's overflow:hidden -- the narrow master-file cards lost their
   last column and the search box ran past the edge */
.panel > .panel-body { overflow-x: auto; }
.dataTables_wrapper { overflow-x: auto; }
.dataTables_wrapper .dataTables_filter input { min-width: 0; max-width: 100%; width: 220px; }
.dataTables_wrapper .dataTables_filter label { max-width: 100%; }
/* the Filters panel and its chips live inside the card header, which the
   theme lays out as a row: each takes the full width, under the title */
.panel > .panel-heading > .nb-head { flex: 1 1 100%; }
.panel > .panel-heading > .nb-filters, .panel > .panel-heading > .nb-chips { flex: 1 1 100%; margin: 0 -18px; }
.panel > .panel-heading > .nb-filters[hidden] { display: none; }
/* the root of the header clashes: only a link whose class IS its icon
   (<a class="fa fa-times">) is an icon square. Any other link in the strip
   carries words -- inside a span, a button, or bare -- and is a pill. */
.panel > .panel-heading .panel-actions > a:not([class*="fa-"]):not(.btn) {
	width: auto; height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px;
	border-radius: 8px; font-size: 12.5px; font-weight: 650; white-space: nowrap;
	color: var(--gc-ink-2); background: var(--gc-surface); border: 1px solid var(--gc-line);
}
.panel > .panel-heading .panel-actions > a:not([class*="fa-"]):not(.btn) span { color: inherit !important; display: inline-flex; align-items: center; gap: 6px; }
.panel > .panel-heading .panel-actions > a:not([class*="fa-"]):not(.btn):hover { border-color: var(--gc-accent); color: var(--ln-terra-ink); }
/* a header with more in it than fits wraps under the title instead of
   overflowing the card */
.panel > .panel-heading > .panel-title, .panel > .panel-heading > h2 { min-width: 0; overflow-wrap: anywhere; }
