/*
 * Inspectany theme, Peach Software brand.
 * Loaded after bootstrap.min.css, beyond.min.css and dataTables.bootstrap.css and overrides them.
 * beyond.css sets several rules with !important, so matching overrides here need it too.
 */

:root {
    --ia-green-900: #004512;
    --ia-green-700: #00704a;
    --ia-green-500: #3c8400;
    --ia-green-600: #2f6a00;
    --ia-leaf: #76cc59;
    --ia-tint: #eaf4df;
    --ia-cream: #f8faef;
    --ia-line: #e1e6d2;
    --ia-line-strong: #cdd5bd;
    --ia-row-line: #eef1e4;
    --ia-ink: #101a32;
    --ia-ink-2: #3b4658;
    --ia-muted: #56614f;
    --ia-danger: #a3241b;
    --ia-danger-dark: #8f1d14;
    --ia-danger-tint: #fbe9e6;
    --ia-warn-tint: #fff1cf;
    --ia-warn-text: #6b4300;
    --ia-font: Roboto, "Segoe UI", system-ui, sans-serif;
    --ia-font-head: Manrope, "Segoe UI", system-ui, sans-serif;
    --ia-mono: ui-monospace, Consolas, "Courier New", monospace;
}

/* ---------- Base ---------- */

html {
    overflow-x: visible;
}

body {
    font-family: var(--ia-font);
    font-size: 15px;
    line-height: 1.45;
    color: var(--ia-ink);
    background: var(--ia-cream);
}

body:before {
    background-color: var(--ia-cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ia-font-head);
    font-weight: 800 !important;
    color: var(--ia-ink);
    letter-spacing: -0.01em;
}

a {
    color: var(--ia-green-600);
}

a:hover,
a:focus {
    color: var(--ia-green-900);
}

label {
    font-family: var(--ia-font-head);
    font-weight: 700;
    font-size: 13px;
    color: var(--ia-ink);
}

.text-muted {
    color: var(--ia-muted);
}

.text-danger,
.field-validation-error {
    color: var(--ia-danger-dark);
}

.field-validation-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

.validation-summary-errors {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--ia-danger-tint);
    color: var(--ia-danger-dark);
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

/* ---------- Shell ---------- */

.ia-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.ia-sidebar {
    flex: 0 0 240px;
    width: 240px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 20px 14px;
    background: #ffffff;
    border-right: 1px solid var(--ia-line);
}

.ia-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    font-family: var(--ia-font-head);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -0.02em;
    color: var(--ia-ink);
    text-decoration: none;
}

.ia-brand:hover,
.ia-brand:focus {
    color: var(--ia-ink);
    text-decoration: none;
}

.ia-brand img {
    width: 38px;
    height: 38px;
}

.ia-nav {
    flex: 1 1 auto;
}

.ia-menu,
.ia-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ia-menu ul {
    margin-top: 4px;
    padding-left: 18px;
}

.ia-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    font-family: var(--ia-font-head);
    font-weight: 600;
    font-size: 14px;
    color: var(--ia-ink-2);
    text-decoration: none;
}

.ia-menu a .fa {
    width: 18px;
    font-size: 16px;
    text-align: center;
}

.ia-menu a:hover,
.ia-menu a:focus {
    background: var(--ia-cream);
    color: var(--ia-ink);
}

.ia-menu li.active > a {
    background: var(--ia-tint);
    color: var(--ia-green-600);
    font-weight: 800;
}

.ia-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 8px 0;
    border-top: 1px solid var(--ia-line);
}

.ia-avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ia-leaf);
    color: var(--ia-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ia-font-head);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

.ia-user-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--ia-font-head);
    font-weight: 700;
    font-size: 14px;
}

.ia-signout {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ia-cream);
    color: var(--ia-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
}

.ia-signout:hover,
.ia-signout:focus {
    background: var(--ia-tint);
    color: var(--ia-green-900);
    text-decoration: none;
}

.ia-menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ia-line-strong);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ia-ink);
    font-size: 16px;
}

.ia-main {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ia-band {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 30px 32px 84px;
    background: linear-gradient(100deg, var(--ia-green-700) 0%, var(--ia-green-900) 60%);
    color: #ffffff;
}

.ia-band h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.ia-crumbs {
    margin-bottom: 6px;
    font-size: 13px;
    color: #d3e6d6;
}

.ia-crumbs a {
    color: #d3e6d6;
    text-decoration: none;
}

.ia-crumbs a:hover,
.ia-crumbs a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.ia-crumbs .ia-sep {
    margin: 0 6px;
    opacity: 0.7;
}

/* Long titles wrap inside their own block so the action buttons stay on the right */
.ia-band > div:first-child {
    flex: 1 1 320px;
    min-width: 0;
}

.ia-band-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ia-content {
    flex: 1 1 auto;
    margin-top: -56px;
    padding: 0 32px 32px;
}

.ia-content > .row {
    margin-left: 0;
    margin-right: 0;
}

.ia-content > .row > [class*="col-"],
.ia-content > [class*="col-"] {
    float: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
}

.ia-footer {
    padding: 0 32px 24px;
    font-size: 13px;
    color: var(--ia-muted);
}

/* ---------- Cards ---------- */

.panel,
.panel-default {
    margin-bottom: 20px;
    border: 1px solid var(--ia-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 40px -28px rgba(16, 26, 50, 0.4);
    overflow: hidden;
}

.panel > .panel-heading,
.panel-default > .panel-heading {
    padding: 20px 24px 0;
    border: 0;
    background: transparent;
    font-family: var(--ia-font-head);
    font-weight: 800;
    font-size: 19px;
    color: var(--ia-ink);
}

.panel-heading h5 {
    display: inline-block;
    margin: 0;
    font-size: 19px;
}

.panel-body {
    padding: 24px;
}

.panel-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--ia-line);
    background: var(--ia-cream);
}

.panel-footer .form-group {
    margin: 0;
}

.panel-footer .form-group > [class*="col-"] {
    float: none;
    width: auto;
    margin-left: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.panel .panel,
.tab-content .panel {
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* ---------- Buttons ---------- */

.btn {
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    box-shadow: none;
    font-family: var(--ia-font-head);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
}

.btn:focus,
.btn:active:focus {
    outline: 3px solid rgba(60, 132, 0, 0.35);
    outline-offset: 2px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-xs {
    padding: 6px 13px;
    font-size: 12px;
}

.btn-xs > .fa,
.btn-sm > .fa,
.btn > .fa {
    margin-right: 4px;
    font-size: inherit;
}

.btn-primary,
.btn-primary:focus,
.btn-success,
.btn-success:focus {
    background-color: var(--ia-green-500) !important;
    border-color: var(--ia-green-500) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:active,
.btn-success:hover,
.btn-success:active {
    background-color: var(--ia-green-600) !important;
    border-color: var(--ia-green-600) !important;
    color: #ffffff !important;
}

.btn-default,
.btn-default:focus,
.btn-info,
.btn-info:focus {
    background-color: #ffffff !important;
    border-color: var(--ia-line-strong) !important;
    color: var(--ia-ink) !important;
}

.btn-default:hover,
.btn-default:active,
.btn-info:hover,
.btn-info:active {
    background-color: var(--ia-cream) !important;
    border-color: var(--ia-muted) !important;
    color: var(--ia-ink) !important;
}

.btn-warning,
.btn-warning:focus {
    background-color: var(--ia-warn-tint) !important;
    border-color: var(--ia-warn-tint) !important;
    color: var(--ia-warn-text) !important;
}

.btn-warning:hover,
.btn-warning:active {
    background-color: #ffe4a3 !important;
    border-color: #ffe4a3 !important;
    color: var(--ia-warn-text) !important;
}

.btn-danger,
.btn-danger:focus {
    background-color: var(--ia-danger) !important;
    border-color: var(--ia-danger) !important;
    color: #ffffff !important;
}

.btn-danger:hover,
.btn-danger:active {
    background-color: var(--ia-danger-dark) !important;
    border-color: var(--ia-danger-dark) !important;
    color: #ffffff !important;
}

/* Leaf-green action on the dark header band */
.btn.ia-btn-leaf,
.btn.ia-btn-leaf:focus {
    padding: 12px 22px;
    background-color: var(--ia-leaf) !important;
    border-color: var(--ia-leaf) !important;
    color: var(--ia-ink) !important;
    font-weight: 800;
    font-size: 15px;
}

.btn.ia-btn-leaf:hover,
.btn.ia-btn-leaf:active {
    background-color: #8fdb73 !important;
    border-color: #8fdb73 !important;
    color: var(--ia-ink) !important;
}

/* Round icon-only remove button in table rows */
.btn.ia-btn-remove,
.btn.ia-btn-remove:focus {
    width: 38px;
    height: 38px;
    padding: 0;
    background-color: var(--ia-danger-tint) !important;
    border-color: var(--ia-danger-tint) !important;
    color: var(--ia-danger) !important;
    font-size: 15px;
    line-height: 36px;
}

.btn.ia-btn-remove:hover,
.btn.ia-btn-remove:active {
    background-color: var(--ia-danger) !important;
    border-color: var(--ia-danger) !important;
    color: #ffffff !important;
}

.btn.ia-btn-remove > .fa {
    margin: 0;
}

.ia-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* ---------- Forms ---------- */

.form-control,
textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="tel"],
input[type="url"] {
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--ia-line-strong);
    border-radius: 14px !important;
    background-color: var(--ia-cream);
    box-shadow: none;
    font-family: var(--ia-font);
    font-size: 15px;
    color: var(--ia-ink);
}

textarea,
textarea.form-control {
    height: auto;
    padding: 12px 16px;
    line-height: 1.5;
}

select.form-control {
    padding: 0 12px;
    border-radius: 14px !important;
}

.form-control.input-sm,
.input-sm {
    height: 40px;
    padding: 0 12px;
    border-radius: 12px !important;
    font-size: 14px;
}

.form-control:hover,
textarea:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="search"]:hover {
    border-color: var(--ia-muted);
}

.form-control:focus,
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus {
    border-color: var(--ia-green-500);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(60, 132, 0, 0.18);
    color: var(--ia-ink);
    outline: 0;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #7a8472;
}

.form-group {
    margin-bottom: 18px;
}

/* Labels sit above their field instead of beside it */
.form-horizontal .form-group {
    margin-left: 0;
    margin-right: 0;
}

.form-horizontal .form-group > .control-label,
.form-horizontal .form-group > div[class*="col-"] {
    float: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

.form-horizontal .form-group > .control-label {
    display: block;
    margin-bottom: 6px;
    padding-top: 0;
    padding-left: 4px;
}

.panel-body > .form-group {
    max-width: 640px;
}

.has-error .form-control {
    border-color: var(--ia-danger) !important;
    background-color: var(--ia-danger-tint) !important;
    box-shadow: none !important;
}

/* beyond.css draws its own checkbox on the .text span */
input[type=checkbox] ~ .text:before {
    border-color: var(--ia-line-strong);
    border-radius: 6px;
    background-color: #ffffff;
}

input[type=checkbox]:checked ~ .text:before {
    border-color: var(--ia-green-500);
    background-color: var(--ia-green-500);
    color: #ffffff;
}

/* ---------- Tables ---------- */

.table {
    margin-bottom: 0;
    background: transparent;
    font-size: 15px;
}

.table > thead > tr > th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ia-line);
    background-color: transparent;
    font-family: var(--ia-font-head);
    font-weight: 700;
    font-size: 13px;
    color: var(--ia-muted);
    vertical-align: middle;
    white-space: nowrap;
}

.table > thead > tr > th strong {
    font-weight: 700;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th {
    padding: 12px 16px;
    border-top: 1px solid var(--ia-row-line);
    vertical-align: middle;
}

.table > tbody > tr > th {
    background: var(--ia-cream);
    font-family: var(--ia-font-head);
    font-weight: 800;
    color: var(--ia-green-900);
}

.table-striped > tbody > tr:nth-of-type(odd),
.table-striped > tbody > tr:nth-child(odd) > td {
    background-color: transparent;
}

/* Button columns on list pages: only as wide as their buttons */
.table .ia-col-actions {
    width: 1% !important;
    padding-right: 4px;
    white-space: nowrap;
}

.table-hover > tbody > tr:hover > td {
    background-color: var(--ia-cream);
}

.table-bordered,
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
    border-color: var(--ia-row-line);
}

.table-bordered {
    border-radius: 14px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.table > tbody > tr.active > td,
.table-striped > tbody > tr.active:nth-child(odd) > td {
    background-color: var(--ia-cream);
    color: var(--ia-green-900);
}

.table > tbody > tr.info > td {
    background-color: var(--ia-tint);
    color: var(--ia-green-600);
}

.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > td {
    padding: 8px 10px;
}

.table td .form-control {
    height: 40px;
    padding: 0 12px;
    border-radius: 12px !important;
    background-color: #ffffff;
    font-size: 14px;
}

.table td textarea.form-control {
    height: auto;
    padding: 10px 12px;
}

.table td .checkbox {
    margin: 0;
}

/* Question editor field table: keep the row buttons on one line (the view floats them) */
#data-table > tbody > tr > td:last-child {
    white-space: nowrap;
}

#data-table > tbody > tr > td:last-child .btn {
    float: none !important;
    margin: 0 2px !important;
}

.table-responsive {
    border: 0;
}

/* DataTables */

.dataTables_wrapper .dataTables_filter {
    float: none;
    margin-bottom: 16px;
    text-align: left;
}

div.dataTables_filter label {
    float: none;
    display: inline-block;
    margin: 0;
}

.dataTables_filter label:before {
    width: 44px;
    max-width: 44px;
    padding-top: 13px;
    color: var(--ia-muted);
    font-size: 14px;
}

.dataTables_filter input,
.dataTables_filter input.form-control.input-sm {
    width: 22em;
    max-width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 18px 0 42px;
    border-radius: 999px !important;
    font-size: 15px;
}

/* Per-column search row added under the header */
.table > thead > tr[role="row"] + tr > th {
    padding: 8px 10px;
}

.table > thead .seach_coll {
    height: 38px;
    padding: 0 12px;
    border-radius: 12px !important;
    background-color: #ffffff;
    font-family: var(--ia-font);
    font-weight: 400;
    font-size: 14px;
}

table.table thead .sorting,
table.table thead .sorting_asc,
table.table thead .sorting_desc {
    padding-right: 26px;
}

div.dataTables_info {
    float: left;
    padding: 20px 4px 0;
    font-size: 14px;
    color: var(--ia-muted);
}

div.dataTables_paginate {
    padding-top: 14px;
}

div.dataTables_paginate ul.pagination {
    margin: 0;
}

.pagination > li > a,
.pagination > li > span {
    min-width: 40px;
    height: 40px;
    margin-left: 6px;
    padding: 0 14px;
    border: 1px solid var(--ia-line-strong);
    border-radius: 999px !important;
    background: #ffffff;
    color: var(--ia-muted);
    font-size: 14px;
    line-height: 38px;
    text-align: center;
}

.pagination > li > a:hover,
.pagination > li > a:focus {
    border-color: var(--ia-muted);
    background: var(--ia-cream);
    color: var(--ia-ink);
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span {
    border-color: var(--ia-green-900);
    background: var(--ia-green-900);
    color: #ffffff;
}

.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > span {
    border-color: var(--ia-line);
    background: #ffffff;
    color: #9aa392;
}

.dataTables_processing {
    position: absolute;
    top: 96px;
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    padding: 10px 22px;
    border: 1px solid var(--ia-line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 12px 30px -16px rgba(16, 26, 50, 0.5);
    font-family: var(--ia-font-head);
    font-weight: 700;
    font-size: 13px;
    color: var(--ia-green-600);
}

td.dataTables_empty {
    padding: 32px 16px !important;
    color: var(--ia-muted);
    text-align: center;
}

/* Escalation priority on report rows */

.ia-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    font-family: var(--ia-font-head);
    font-weight: 800;
    font-size: 12px;
    color: #ffffff;
}

.ia-badge-high {
    background: var(--ia-danger);
}

.ia-badge-medium {
    background: #b45309;
}

.ia-badge-low {
    background: var(--ia-muted);
}

/* Escalation Rules popup: one tick box per option of the chosen field */
.table td.escalation-values .checkbox {
    display: inline-block;
    margin: 0 14px 4px 0;
}

/* Status pills */

.ia-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

.ia-pill:before {
    content: "";
    width: 8px;
    height: 8px;
    box-sizing: border-box;
    border-radius: 50%;
}

.ia-pill-ok {
    background: var(--ia-tint);
    color: var(--ia-green-600);
}

.ia-pill-ok:before {
    background: var(--ia-green-500);
}

.ia-pill-off {
    background: #eceee6;
    color: var(--ia-ink-2);
}

.ia-pill-off:before {
    border: 1.5px solid var(--ia-muted);
}

/* ---------- Tabs ---------- */

.tabbable {
    border: 1px solid var(--ia-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 40px -28px rgba(16, 26, 50, 0.4);
    overflow: hidden;
}

.nav-tabs {
    top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 24px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.nav-tabs:before,
.nav-tabs:after {
    display: none;
}

.nav-tabs > li {
    float: none;
    margin: 0;
}

.nav-tabs > li > a,
.nav-tabs > li > a:focus {
    margin: 0;
    padding: 10px 18px;
    border: 1px solid var(--ia-line-strong) !important;
    border-radius: 999px !important;
    background: #ffffff;
    box-shadow: none !important;
    font-family: var(--ia-font-head);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ia-ink-2);
}

.nav-tabs > li > a:hover {
    background: var(--ia-cream);
    color: var(--ia-ink);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border-color: var(--ia-green-900) !important;
    background: var(--ia-green-900);
    color: #ffffff;
}

.tab-content {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* ---------- Popups ---------- */

.modal-backdrop {
    background-color: #00280e;
}

.modal-backdrop.in {
    opacity: 0.55;
}

.modal-dialog {
    margin-top: 12vh;
}

.modal-content {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal-header {
    padding: 24px 28px 0;
    border: 0;
    background: transparent;
}

.modal-title {
    font-size: 22px;
    line-height: 1.25;
}

.modal-header .close,
.modal-content .close {
    width: 40px;
    height: 40px;
    margin: -6px -8px 0 12px;
    border-radius: 50%;
    background: var(--ia-cream);
    color: var(--ia-muted);
    font-size: 22px;
    font-weight: 400;
    line-height: 38px;
    text-shadow: none;
    opacity: 1;
}

.modal-header .close:hover,
.modal-header .close:focus {
    background: var(--ia-tint);
    color: var(--ia-green-900);
}

.modal-body {
    padding: 18px 28px 8px;
}

.modal-body h4 {
    margin: 0 0 6px;
    padding-left: 4px;
    font-size: 13px;
    font-weight: 700 !important;
}

.modal-footer {
    padding: 14px 28px 26px;
    border: 0;
    background: transparent;
}

.modal-footer .btn + .btn {
    margin-left: 8px;
}

.ia-confirm .modal-dialog {
    max-width: 460px;
}

.ia-confirm .modal-body {
    color: var(--ia-ink-2);
}

/* ---------- Dashboard ---------- */

.ia-dash-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.ia-stat,
.ia-card {
    flex: 1 1 220px;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid var(--ia-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 40px -28px rgba(16, 26, 50, 0.4);
}

.ia-stat {
    padding: 18px 20px;
}

.ia-stat-label {
    font-family: var(--ia-font-head);
    font-weight: 700;
    font-size: 13px;
    color: var(--ia-muted);
}

.ia-stat-value {
    font-family: var(--ia-font-head);
    font-weight: 800;
    font-size: 30px;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.ia-stat-value small {
    font-size: 16px;
    font-weight: 700;
    color: var(--ia-muted);
}

.ia-stat-note {
    font-size: 13px;
    color: var(--ia-muted);
}

.ia-stat-note.ia-stat-alert {
    font-weight: 500;
    color: var(--ia-danger-dark);
}

.ia-card {
    flex-basis: 280px;
    padding: 20px 24px;
}

.ia-card.ia-card-wide {
    flex: 2 1 420px;
}

.ia-card h2 {
    margin: 0;
    font-size: 17px;
}

.ia-card-note {
    margin: 2px 0 14px;
    font-size: 13px;
    color: var(--ia-muted);
}

.ia-card-link {
    display: inline-block;
    margin-top: 6px;
    font-family: var(--ia-font-head);
    font-weight: 700;
    font-size: 13px;
}

.ia-empty {
    padding: 28px 16px;
    border-radius: 12px;
    background: var(--ia-cream);
    font-size: 13px;
    color: var(--ia-muted);
    text-align: center;
}

/* Column chart: bars grow from one baseline, grid lines at half and full scale */

.ia-chart {
    display: flex;
    gap: 10px;
}

.ia-chart-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* 12px taller than the plot and shifted up 6px, so each label is centred on its grid line */
    height: 162px;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1;
    color: var(--ia-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ia-chart-plot {
    flex: 1 1 auto;
    min-width: 0;
}

.ia-chart-columns {
    position: relative;
    height: 172px;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid var(--ia-line-strong);
}

.ia-chart-columns:before,
.ia-chart-columns:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid var(--ia-row-line);
}

.ia-chart-columns:before {
    bottom: 75px;
}

.ia-chart-columns:after {
    bottom: 150px;
}

.ia-chart-slot {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.ia-chart-slot:hover {
    background: rgba(60, 132, 0, 0.06);
}

.ia-chart-value {
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.ia-chart-bar {
    width: 22px;
    max-width: 70%;
    border-radius: 4px 4px 0 0;
    background: var(--ia-green-500);
}

.ia-chart-bar-other {
    background: #c3c9b8;
}

.ia-chart-bar-other + .ia-chart-bar {
    border-radius: 0;
}

.ia-chart-labels {
    display: flex;
    margin-top: 6px;
    font-size: 12px;
    color: var(--ia-muted);
}

.ia-chart-labels span {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
}

.ia-legend {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--ia-muted);
}

.ia-legend-key {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 2px;
    background: var(--ia-green-500);
}

.ia-legend-key.ia-legend-key-other {
    background: #c3c9b8;
}

/* Horizontal bars: label above, value at the tip */

.ia-hbar {
    margin-bottom: 10px;
}

.ia-hbar-label {
    margin-bottom: 4px;
    font-size: 13px;
}

.ia-hbar-track {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.ia-hbar-track span {
    flex: 0 1 auto;
    min-width: 2px;
    max-width: calc(100% - 70px);
    height: 14px;
    border-radius: 0 4px 4px 0;
    background: var(--ia-green-500);
}

.ia-hbar-track b {
    font-weight: 500;
}

.ia-hbar-track em {
    font-style: normal;
    color: var(--ia-muted);
}

/* Open escalations: colour plus label and marker shape, never colour alone */

.ia-priority {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    font-family: var(--ia-font-head);
    font-weight: 700;
}

.ia-priority span {
    flex: 1 1 auto;
}

.ia-priority strong {
    font-weight: 800;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.ia-priority i {
    width: 10px;
    height: 10px;
    box-sizing: border-box;
}

.ia-priority-high {
    background: var(--ia-danger-tint);
}

.ia-priority-high i {
    border-radius: 50%;
    background: var(--ia-danger);
}

.ia-priority-medium {
    background: var(--ia-warn-tint);
}

.ia-priority-medium i {
    border-radius: 2px;
    background: #b45309;
}

.ia-priority-low {
    background: #eceee6;
}

.ia-priority-low i {
    border: 2px solid var(--ia-muted);
    border-radius: 50%;
}

.ia-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.ia-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--ia-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 40px -28px rgba(16, 26, 50, 0.4);
    color: var(--ia-ink);
    text-decoration: none;
}

.ia-tile:hover,
.ia-tile:focus {
    border-color: var(--ia-green-500);
    color: var(--ia-ink);
    text-decoration: none;
}

.ia-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--ia-tint);
    color: var(--ia-green-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ia-tile-title {
    font-family: var(--ia-font-head);
    font-weight: 800;
    font-size: 19px;
}

.ia-tile-text {
    color: var(--ia-muted);
}

/* ---------- Sign-in ---------- */

.ia-login {
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: linear-gradient(100deg, var(--ia-green-700) 0%, var(--ia-green-900) 60%);
    overflow: hidden;
}

.ia-login:before,
.ia-login:after {
    content: "";
    position: absolute;
    background: rgba(118, 204, 89, 0.14);
}

.ia-login:before {
    top: -240px;
    left: -200px;
    width: 640px;
    height: 640px;
    border-radius: 50%;
}

.ia-login:after {
    right: -80px;
    bottom: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50% 0 50% 50%;
    transform: rotate(18deg);
}

.ia-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    padding: 40px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}

.ia-login-logo {
    display: block;
    width: 170px;
    height: auto;
    margin: 0 auto 20px;
}

.ia-login-head {
    margin-bottom: 22px;
    text-align: center;
}

.ia-login-head h1 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.ia-login-head p {
    margin: 0;
    color: var(--ia-muted);
}

.ia-login-card label {
    padding-left: 4px;
}

.ia-login-card .form-control {
    height: 50px;
    padding: 0 18px;
}

.btn.ia-login-submit {
    margin-top: 4px;
    padding: 14px 22px;
    font-weight: 800;
    font-size: 16px;
}

.ia-login-help {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--ia-muted);
    text-align: center;
}

.ia-login-foot {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: #d3e6d6;
}

/* ---------- Small screens ---------- */

@media (max-width: 991px) {
    .ia-shell {
        display: block;
    }

    .ia-sidebar {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--ia-line);
    }

    .ia-menu-toggle {
        display: block;
    }

    .ia-nav,
    .ia-user {
        display: none;
        flex: 1 1 100%;
    }

    .ia-nav-open .ia-nav {
        display: block;
    }

    .ia-nav-open .ia-user {
        display: flex;
    }

    .ia-band {
        padding: 22px 16px 76px;
    }

    .ia-band h1 {
        font-size: 26px;
    }

    .ia-content {
        padding: 0 16px 24px;
    }

    .ia-footer {
        padding: 0 16px 20px;
    }

    .panel-body {
        padding: 16px;
    }

    .ia-login-card {
        padding: 28px 22px;
    }
}

@media print {
    .ia-sidebar,
    .ia-band,
    .ia-footer {
        display: none;
    }

    .ia-content {
        margin: 0;
        padding: 0;
    }
}
