/* Color variables are in /assets/styles/app.css */

body {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: var(--ikug-text-muted);
    min-width: 800px;
}
h1,h2,h3,h4 {
    margin-top: 0;
    color: var(--ikug-text);
}
a {
    color: var(--ikug-accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
p {
    margin-top: 0;
}
.gr-gray {
    background: #ebebeb;
    background: -moz-linear-gradient(top, #ffffff 0%, #ebebeb 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#ebebeb));
    background: -webkit-linear-gradient(top, #ffffff 0%,#ebebeb 100%);
    background: -o-linear-gradient(top, #ffffff 0%,#ebebeb 100%);
    background: -ms-linear-gradient(top, #ffffff 0%,#ebebeb 100%);
    background: linear-gradient(to bottom, #ffffff 0%,#ebebeb 100%);
}
.clearfix {
    clear: both;
}
.marginBottom10 {
    margin-bottom: 10px;
}
/* Match Bootstrap btn-sm btn-primary (brand red) */
.button {
    display: inline-block;
    background: #e62525;
    color: #fff;
    border-radius: 0.375rem;
    border: 1px solid #e62525;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.button:hover {
    background: #c41f1f;
    border-color: #c41f1f;
    color: #fff;
    text-decoration: none;
}
.button.tiny {
    padding: 0.15rem 0.4rem;
    width: auto !important;
    background: #6c757d;
    border-color: #6c757d;
    font-size: 0.75rem;
}
.button.tiny:hover {
    background: #5c636a;
    border-color: #5c636a;
}
div.button {
    float: right;
}
div.button.left {
    float: left;
}
div.button.green {
    background: var(--ikug-success);
    border-color: var(--ikug-success);
    color: #fff;
}
div.button.green:hover {
    background: #007a00;
    border-color: #007a00;
    color: #fff;
}
div.button a,
div.button.green a {
    color: #fff;
    text-decoration: none;
}
.hide {
    display: none;
}
.floatRight {
    float: right !important;
}
.floatLeft {
    float: left !important;
}
.clearBoth {
    clear: both !important;
}
.noPadding {
    padding: 0 !important;
}
.displayInlineBlock {
    display: inline-block;
}
.green {
    color: forestgreen;
}
.italic {
    font-style: italic;
}
.underline {
    text-decoration: underline !important;
}
div.full_width {
    width: 100%;
    float: left;
    clear: both;
}
div.full_width fieldset {
    width: 95%;
}
div.auto_width {
    width: auto;
    float: left;
}
div.auto_width fieldset {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    width: auto;
}
div.auto_width fieldset > legend {
    flex: 0 0 100%;
}
div.auto_width fieldset > .full_width,
div.auto_width fieldset > br {
    flex: 0 0 100%;
}
div.fifty_fifty {
    width: 50%;
    float: left;
}
div.fifty_fifty.first {
    clear: both;
}
div.fifty_fifty fieldset {
    width: 90%;
}
/* Bootstrap alert look (keep legacy class names for tests/views) */
.errorBox,
.successBox,
.noticeBox {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}
.errorBox {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
.successBox {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
.noticeBox {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}
header {
    padding: 1%;
}
nav:not(.navbar) {
    height: 30px;
    padding: 0 1%;
    border-top: #ebebeb solid 1px;
    border-bottom: #ebebeb solid 1px;
}
nav:not(.navbar) ul {
    list-style-type: none;
    display: inline;
}
nav:not(.navbar) ul li {
    line-height: 30px;
    height: 30px;
    padding: 0px 10px;
    border-right: #ebebeb solid 1px;
    float: left;
}
nav:not(.navbar) ul li.first {
    padding-left: 0;
}
main {
    padding: 1%;
}
.tabs {
    height: 30px;
    padding: 0 1%;
    border-top: #ebebeb solid 1px;
    border-bottom: #ebebeb solid 1px;
    background: #f5f5f5;
    margin-bottom: 15px;
}
.tabs .tab {
    line-height: 30px;
    height: 30px;
    padding: 0px 10px;
    border-right: #ebebeb solid 1px;
    float: left;
    cursor: pointer;
}
.tabs .tab.active, .tabs .tab.active:hover {
    background: var(--ikug-accent);
    color: white;
}
.tabs .tab:hover {
    background: #ebebeb;
}
/*forms (legacy pages only)*/
main fieldset {
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    margin-right: 20px;
    float: left;
    width: 43%;
    border-color: #DBDBDB;
    background-color: var(--white, #fff);
    clear: both;
}
main fieldset.last {
    margin-right: 0;
    clear: none;
}
main fieldset legend {
    float: left;
    width: 100%;
    padding: 0;
    margin-bottom: 15px;
    font-size: inherit;
    font-weight: bold;
    background: none;
}
main fieldset legend + * {
    clear: both;
}
main form div {
    padding-bottom: 5px;
}
main form > fieldset > div {
    clear: both;
}
main form div label {
    width: 170px;
    float: left;
    text-align: right;
    margin-right: 20px;
}
main form table div label {
    width: 120px;
    margin-right: 10px;
}
main form div input:not([type=submit]):not([type=checkbox]):not([type=radio]), main form div textarea {
    width: 160px;
}
main form table div input, main form table div textarea {
    width: auto;
}
main form div input[type=checkbox] {
    width: auto;
}
main form input, main form textarea {
    border: #DBDBDB solid 1px;
}
main select.form-select,
main .form-control {
    width: auto;
    display: inline-block;
}
main input.supersmall, main select.supersmall, main textarea.supersmall {
    width: 50px;
}
main input.small, main select.small, main textarea.small {
    width: 100px;
}
main input.medium, main select.medium, main textarea.medium {
    width: 160px;
}
main input.big, main select.big {
    width: 300px;
}
main textarea.big {
    width: 350px;
    height: 350px;
}
main form div.filter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 15px 15px 0;
}
main form div.filter label {
    font-weight: bold;
    float: none;
    text-align: left;
    width: auto;
    margin-right: 0;
}
main form div.filter input:not([type=submit]),
main form div.filter select {
    clear: none;
    float: none;
    max-width: 2000px;
}
main form div input[type=submit].margin_left {
    margin-left: 190px;
}
/*Login*/
#login {
    width: 400px;
    height: 300px;
    padding: 15px;
    border: #ebebeb solid 1px;
    margin: 50px auto 0;
}
#login form {
    padding-top: 15px;
}
#login form div{
    width: 50%;
    float: left;
    padding-bottom: 15px;
}
#login form div label {
    clear: both;
    font-weight: bold;
    float: left;
    width: auto;
}
#login form div input {
    clear: both;
    float: left;
    width: 180px;
}
/*Tables (legacy pages only) — card look, Bootstrap-inspired*/
main table {
    width: 100%;
    float: left;
    clear: both;
    margin-bottom: 1rem;
    background-color: var(--white, #fff);
    border: 1px solid #DBDBDB;
    border-radius: 5px;
    border-collapse: separate;
    border-spacing: 0;
}
main form > p {
    clear: both;
}
main table tr th, main table tr td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid #EBEBEB;
}
main table tr:first-child th,
main table tr:first-child td {
    border-top: none;
}
main table tr:first-child th:first-child,
main table tr:first-child td:first-child {
    border-top-left-radius: 5px;
}
main table tr:first-child th:last-child,
main table tr:first-child td:last-child {
    border-top-right-radius: 5px;
}
main table tr:last-child th:first-child,
main table tr:last-child td:first-child {
    border-bottom-left-radius: 5px;
}
main table tr:last-child th:last-child,
main table tr:last-child td:last-child {
    border-bottom-right-radius: 5px;
}
main table tr th {
    font-weight: 600;
    color: var(--ikug-accent);
    background: #f0f1f5;
    border-bottom: 1px solid #DBDBDB;
}
main table > tr:nth-child(even) > td,
main table > tbody > tr:nth-child(even) > td {
    background-color: rgba(0, 0, 0, 0.02);
}
main table > tr:hover > td,
main table > tbody > tr:hover > td {
    background-color: #edf4f8;
}
main table.fifty_fifty tr th {
    width: 30%;
    text-align: right;
}
main table.less_padding tr td, main table.less_padding tr th {
    padding: 0.35rem 0.5rem;
}
main table tr.highlight td {
    background: #edf4f8;
}
main table.item_table input[type=checkbox],
main table.item_table input[type=radio],
main table input[type=checkbox],
main table input[type=radio] {
    display: inline-block;
    float: none;
    margin: 0;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    position: static;
    opacity: 1;
    appearance: auto;
    -webkit-appearance: auto;
}
/* Labeled checkbox/radio in normal form rows: label column + control */
main form div.form-checkbox {
    clear: both;
    overflow: hidden;
    padding-bottom: 5px;
}
main form div.form-checkbox .form-checkbox-control {
    display: grid;
    grid-template-columns: 170px auto;
    column-gap: 20px;
    align-items: center;
    width: 100%;
    margin: 0;
    font-weight: normal;
}
main form div.form-checkbox .form-checkbox-text {
    grid-column: 1;
    text-align: right;
}
main form div.form-checkbox .form-checkbox-control > input {
    grid-column: 2;
    justify-self: start;
    width: auto;
    height: auto;
    margin: 0;
    appearance: auto;
    -webkit-appearance: auto;
}
/* Labeled checkbox/radio inside tables: compact inline */
main form table div.form-checkbox {
    clear: none;
    overflow: visible;
    padding: 0;
    display: inline-block;
    width: auto;
}
main form table div.form-checkbox .form-checkbox-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    grid-template-columns: none;
}
main form table div.form-checkbox .form-checkbox-text {
    text-align: left;
}
main form table div.form-checkbox .form-checkbox-control > input {
    order: -1;
}
/* Unwrapped table controls */
main form table .form-select,
main form table .form-control {
    width: auto;
    max-width: 100%;
    display: inline-block;
}
main form div.input_group {
    clear: both;
    overflow: hidden;
    padding-bottom: 10px;
}
main form div.input_group .input_group_label {
    width: 170px;
    float: left;
    text-align: right;
    margin-right: 20px;
    padding-top: 2px;
}
main form div.input_group .input_group_options {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: center;
    min-height: 24px;
}
main form div.input_group .input_group_option {
    display: inline-flex;
    align-items: center;
    float: none;
    width: auto;
    text-align: left;
    margin: 0;
    font-weight: normal;
    white-space: nowrap;
}
main form div.input_group .input_group_option input {
    margin: 0 6px 0 0;
    width: auto;
    float: none;
    vertical-align: middle;
    appearance: auto;
    -webkit-appearance: checkbox;
}

/*
 * Shared admin list-page layout (Orders is visual source of truth).
 *
 * Usage:
 *   <div class="admin-page">
 *     header (.h4 + .button)
 *     optional .admin-panel.admin-filter-bar > .admin-filters
 *     .admin-table-card > [.admin-bulk-bar] + .admin-table-wrap > table.item_table
 *     optional .admin-pagination-bar
 *   </div>
 *
 * Secondary links: .admin-text-link
 * Secondary buttons: .admin-btn-secondary
 * Primary filter submit: .button.admin-btn-apply
 */
main .admin-page {
    width: 100%;
    float: left;
    clear: both;
}
main .admin-page .admin-panel-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.25;
    color: var(--ikug-text);
}
main .admin-page .button {
    float: none;
}
main .admin-page .admin-panel {
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid #DBDBDB;
    border-radius: 5px;
    background-color: var(--white, #fff);
}
main .admin-page .admin-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    row-gap: 0.5rem;
    column-gap: 12px;
}
main .admin-page form div.filter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding-bottom: 0;
    clear: none;
    min-width: 0;
    box-sizing: border-box;
}
main .admin-page form div.filter label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    line-height: 1.2;
    color: #495057;
}
/* Override legacy fixed 160px widths so fields stay inside their flex column */
main .admin-page form div.filter .form-control,
main .admin-page form div.filter .form-select,
main .admin-page form div.filter input:not([type=submit]):not([type=checkbox]):not([type=radio]),
main .admin-page form div.filter select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    display: block;
    box-sizing: border-box;
    text-align: left;
}
main .admin-page form div.filter.filter-sm {
    flex: 0 1 8.5rem;
    width: 8.5rem;
    max-width: 8.5rem;
}
main .admin-page form div.filter.filter-md {
    flex: 0 1 10.5rem;
    width: 10.5rem;
    max-width: 10.5rem;
}
main .admin-page form div.filter.filter-lg {
    flex: 1 1 14rem;
    min-width: 12rem;
    max-width: 22rem;
}
main .admin-page form div.filter.filter-action {
    justify-content: flex-end;
}
main .admin-page form div.filter.filter-action label {
    display: none;
}
main .admin-page .filter-link {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.35rem;
    font-size: 0.8rem;
}
main .admin-page .admin-filter-actions .filter-action {
    padding-bottom: 0;
}
main .admin-page .admin-filter-actions .button.admin-btn-apply,
main .admin-page .admin-filter-actions .btn {
    height: calc(1.5em + 0.5rem + 2px);
    display: inline-flex;
    align-items: center;
    line-height: 1.25;
}
main .admin-page .admin-btn-secondary {
    color: #495057;
    background-color: transparent;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
}
main .admin-page .admin-btn-secondary:hover,
main .admin-page .admin-btn-secondary:focus {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #adb5bd;
    text-decoration: none;
}
main .admin-page .admin-btn-secondary[aria-expanded="true"] .admin-chevron {
    display: inline-block;
    transform: rotate(180deg);
}
main .admin-page .admin-chevron {
    display: inline-block;
    font-size: 0.7em;
    margin-left: 0.15rem;
    transition: transform 0.15s ease;
}
main .admin-page .filter-checkbox {
    padding-bottom: 0.35rem;
}
main .admin-page .admin-filters-more .filter-checkbox {
    padding-bottom: 0;
    justify-content: flex-end;
}
main .admin-page .admin-filters-more .form-switch {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    height: calc(1.5em + 0.5rem + 2px);
    min-height: calc(1.5em + 0.5rem + 2px);
    margin-bottom: 0;
}
main .admin-page .admin-filters-more .form-switch .form-check-input {
    margin-top: 0;
}
main .admin-page .admin-filters .form-switch .form-check-label {
    width: auto;
    float: none;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0.35rem;
    text-align: left;
    font-weight: 400;
}
main .admin-page .filter-checkbox .form-check-label {
    color: #495057;
    font-weight: 500;
}
main .admin-page .admin-filters-more {
    border-color: #e9ecef !important;
}
main .admin-page a.admin-text-link,
main .admin-page .admin-text-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
}
main .admin-page a.admin-text-link:hover,
main .admin-page .admin-text-link:hover {
    color: #dc3545;
    text-decoration: none;
}
main .admin-page .admin-table-card {
    float: none;
    clear: both;
    width: 100%;
    border: 1px solid #DBDBDB;
    border-radius: 5px;
    background-color: var(--white, #fff);
    overflow: hidden;
}
main .admin-page .admin-bulk-bar {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fb;
}
main .admin-page .admin-bulk-active .admin-filters {
    align-items: flex-end;
}
main .admin-page .admin-bulk-selected-label {
    display: inline-flex;
    align-items: center;
    height: calc(1.5em + 0.5rem + 2px);
    margin: 0;
    line-height: 1.25;
}
main .admin-page .admin-bulk-active .filter-action .button,
main .admin-page .admin-bulk-active .filter-action input.button,
main .admin-page .admin-bulk-active .filter-action .btn {
    height: calc(1.5em + 0.5rem + 2px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
}
main .admin-page .admin-bulk-active .filter-action .admin-text-link {
    height: calc(1.5em + 0.5rem + 2px);
    display: inline-flex;
    align-items: center;
    padding: 0 0.35rem;
    margin: 0 -0.35rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #495057;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 150ms ease;
}
main .admin-page .admin-bulk-active .filter-action .admin-text-link:hover,
main .admin-page .admin-bulk-active .filter-action .admin-text-link:focus {
    color: #495057;
    background-color: #e9ecef;
    text-decoration: none;
    box-shadow: none;
}
main .admin-page .admin-bulk-active .filter-action .admin-text-link:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
    background-color: #e9ecef;
}
main .admin-page .admin-pagination-bar {
    padding: 0.35rem 0.75rem;
    border-top: 1px solid #e9ecef;
    background-color: transparent;
}
main .admin-page .admin-per-page-select {
    width: auto;
    min-width: 3.75rem;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    font-size: 0.8125rem;
    color: #495057;
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
}
main .admin-page .admin-per-page-select:hover,
main .admin-page .admin-per-page-select:focus {
    border-color: #ced4da;
    background-color: #fff;
}
main .admin-page .admin-pagination-bar .pagination {
    --bs-pagination-padding-x: 0.35rem;
    --bs-pagination-padding-y: 0.1rem;
    --bs-pagination-font-size: 0.8125rem;
    --bs-pagination-color: #495057;
    --bs-pagination-bg: transparent;
    --bs-pagination-border-width: 0;
    --bs-pagination-border-color: transparent;
    --bs-pagination-hover-color: #dc3545;
    --bs-pagination-hover-bg: transparent;
    --bs-pagination-hover-border-color: transparent;
    --bs-pagination-focus-color: #dc3545;
    --bs-pagination-focus-bg: transparent;
    --bs-pagination-focus-box-shadow: none;
    --bs-pagination-active-color: #dc3545;
    --bs-pagination-active-bg: transparent;
    --bs-pagination-active-border-color: transparent;
    --bs-pagination-disabled-color: #adb5bd;
    --bs-pagination-disabled-bg: transparent;
    --bs-pagination-disabled-border-color: transparent;
    gap: 0.15rem;
}
main .admin-page .admin-pagination-bar .page-link {
    min-width: 1.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    text-align: center;
    line-height: 1.4;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
main .admin-page .admin-pagination-bar .page-item.active .page-link {
    color: #dc3545;
    font-weight: 600;
    border-radius: 0;
    box-shadow: inset 0 -2px 0 #dc3545 !important;
}
main .admin-page .button:focus-visible,
main .admin-page a:focus-visible,
main .admin-page .form-control:focus-visible,
main .admin-page .form-select:focus-visible,
main .admin-page .btn:focus-visible {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}
main .admin-page .admin-table-wrap {
    width: 100%;
    clear: both;
}
main .admin-page .admin-table-wrap table.item_table {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    float: none;
    width: 100%;
    background: transparent;
    --bs-table-border-color: #e9ecef;
    border-color: #e9ecef;
}
main .admin-page .admin-table-wrap table.item_table tr:first-child th:first-child,
main .admin-page .admin-table-wrap table.item_table tr:first-child td:first-child,
main .admin-page .admin-table-wrap table.item_table tr:first-child th:last-child,
main .admin-page .admin-table-wrap table.item_table tr:first-child td:last-child,
main .admin-page .admin-table-wrap table.item_table tr:last-child th:first-child,
main .admin-page .admin-table-wrap table.item_table tr:last-child td:first-child,
main .admin-page .admin-table-wrap table.item_table tr:last-child th:last-child,
main .admin-page .admin-table-wrap table.item_table tr:last-child td:last-child {
    border-radius: 0;
}
main .admin-page .admin-table-wrap table.item_table > :not(caption) > * > * {
    padding: 0.4rem 0.65rem;
    border-bottom-color: #e9ecef;
}
main .admin-page .admin-table-wrap table.item_table thead th {
    background: #f0f1f5;
    color: var(--ikug-accent);
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
}
main .admin-page .admin-table-wrap table.item_table tbody td {
    border-top-color: #e9ecef;
    border-bottom-color: #e9ecef;
}
main .admin-page .admin-table-wrap table.item_table tbody tr:nth-child(even) > * {
    background-color: rgba(0, 0, 0, 0.015);
}
main .admin-page .admin-table-wrap table.item_table tbody tr:hover > * {
    --bs-table-bg-state: #f8f9fb;
}
main .admin-page .admin-table-wrap table.item_table tbody tr.admin-row-clickable {
    cursor: pointer;
}
main .admin-page .admin-table-wrap table.item_table tbody tr.admin-row-clickable:hover > * {
    --bs-table-bg-state: #f3f4f6;
}
main .admin-page a.admin-row-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}
main .admin-page a.admin-row-link:hover {
    color: inherit;
    text-decoration: underline;
}
main .admin-page a.admin-row-link:focus-visible {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
    border-radius: 2px;
}
main .admin-page .admin-cell-truncate {
    max-width: 16rem;
}
main .admin-page .badge {
    font-weight: 500;
    font-size: 0.75rem;
}
main .admin-page.invoices-index .col-invoice-check,
main .admin-page.invoices-index .col-invoice-id,
main .admin-page.invoices-index .col-invoice-date,
main .admin-page.invoices-index .col-invoice-amount,
main .admin-page.invoices-index .col-invoice-pdf {
    width: 1%;
    white-space: nowrap;
}
main .admin-page.invoices-index .col-invoice-customer {
    width: 99%;
}
main .admin-page .admin-actions-menu {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.35rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #495057;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.25;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 150ms ease;
}
main .admin-page a.admin-actions-menu:hover,
main .admin-page a.admin-actions-menu:focus {
    color: #495057;
    text-decoration: none;
}
main .admin-page .admin-actions-menu .admin-chevron {
    font-size: 0.7em;
    opacity: 0.65;
}
main .admin-page .admin-actions-menu:hover,
main .admin-page .admin-actions-menu:focus,
main .admin-page .admin-actions-menu:active,
main .admin-page .admin-actions-menu.show {
    color: #495057;
    background-color: #e9ecef;
    border-color: transparent;
    box-shadow: none;
}
main .admin-page .admin-actions-menu:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
    background-color: #e9ecef;
}
main .admin-page .dropdown-menu {
    font-size: 0.875rem;
    border-color: #e9ecef;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.06);
}
main .admin-page .dropdown-item {
    color: #495057;
}
main .admin-page .dropdown-item:hover,
main .admin-page .dropdown-item:focus {
    color: #dc3545;
    background-color: #f8f9fa;
}

/* Order details — modern tabs + info cards (scoped; does not affect customer tabs) */
main .admin-page.order-detail .tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    float: none;
    height: auto;
    margin: 0 0 1rem;
    padding: 0;
    border: none;
    border-bottom: 1px solid #e9ecef;
    background: transparent;
}
main .admin-page.order-detail .tabs .tab {
    float: none;
    height: auto;
    line-height: 1.25;
    padding: 0.55rem 0.85rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: #495057;
    font-weight: 500;
    text-decoration: none;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
main .admin-page.order-detail .tabs .tab:hover {
    background: transparent;
    color: #212529;
    text-decoration: none;
}
main .admin-page.order-detail .tabs .tab.active,
main .admin-page.order-detail .tabs .tab.active:hover {
    background: transparent;
    color: #e62525;
    border-bottom-color: #e62525;
}
main .admin-page.order-detail .tabs .tab:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}
main .admin-page.order-detail .admin-detail-cards {
    max-width: 1400px;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
}
main .admin-page.order-detail .admin-detail-card {
    float: none;
    clear: none;
    width: 100%;
    height: auto;
    margin: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: none;
    overflow: hidden;
}
main .admin-page.order-detail .admin-detail-card .card-header.admin-detail-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0;
    padding: 0.7rem 1rem;
    background: #fff;
    border: none;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
}
main .admin-page.order-detail .admin-detail-card-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    color: #212529;
}
main .admin-page.order-detail .admin-detail-card .card-body.admin-detail-card-body {
    padding: 0.35rem 1rem 0.55rem;
}
main .admin-page.order-detail .admin-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f3f5;
}
main .admin-page.order-detail .admin-detail-row:last-child {
    border-bottom: none;
}
main .admin-page.order-detail .admin-detail-label {
    flex: 0 0 180px;
    width: 180px;
    max-width: 40%;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    color: #6c757d;
    text-align: left;
}
main .admin-page.order-detail .admin-detail-value {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.35;
    color: #212529;
    text-align: left;
}
main .admin-page.order-detail .admin-detail-value-link {
    color: #495057;
    text-decoration: none;
    font-weight: inherit;
    border-radius: 0.25rem;
    transition: color 150ms ease, background-color 150ms ease;
}
main .admin-page.order-detail .admin-detail-value-link:hover {
    color: #212529;
    background-color: #e9ecef;
    text-decoration: none;
}
main .admin-page.order-detail .admin-detail-value-link:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}

/* Order details — expandable products table */
main .admin-page.order-detail .order-products-panel {
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
}
main .admin-page.order-detail .order-products-table .col-product-toggle {
    width: 1%;
    white-space: nowrap;
    padding-right: 0.25rem;
}
main .admin-page.order-detail .order-products-table thead th {
    background: #f0f1f5;
}
main .admin-page.order-detail .order-products-table tbody tr.admin-product-row > td,
main .admin-page.order-detail .order-products-table tbody tr.admin-product-row > th {
    background-color: #fff;
}
main .admin-page.order-detail .order-products-table tbody tr.admin-product-row.is-alt > td,
main .admin-page.order-detail .order-products-table tbody tr.admin-product-row.is-alt > th {
    background-color: #fff;
}
main .admin-page.order-detail .order-products-table tbody tr.admin-product-row.is-expandable {
    cursor: pointer;
}
main .admin-page.order-detail .order-products-table tbody tr.admin-product-row.is-expandable:hover > td,
main .admin-page.order-detail .order-products-table tbody tr.admin-product-row.is-expandable:hover > th {
    background-color: #f3f4f6 !important;
    --bs-table-bg-state: #f3f4f6;
}
main .admin-page.order-detail .order-products-table tbody tr.admin-product-row.is-expanded > td,
main .admin-page.order-detail .order-products-table tbody tr.admin-product-row.is-expanded > th,
main .admin-page.order-detail .order-products-table tbody tr.admin-product-row.is-expanded:hover > td,
main .admin-page.order-detail .order-products-table tbody tr.admin-product-row.is-expanded:hover > th {
    background-color: #f8f9fa !important;
}
main .admin-page.order-detail .admin-product-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.1rem 0.25rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #6c757d;
    line-height: 1;
    vertical-align: middle;
    box-shadow: none;
}
main .admin-page.order-detail .admin-product-toggle:hover,
main .admin-page.order-detail .admin-product-toggle:focus {
    background-color: #e9ecef;
    color: #495057;
    box-shadow: none;
}
main .admin-page.order-detail .admin-product-toggle:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}
main .admin-page.order-detail .admin-product-toggle .admin-chevron {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    color: #6c757d;
    transform: rotate(0deg);
    transition: transform 150ms ease;
}
main .admin-page.order-detail .admin-product-row.is-expanded .admin-product-toggle .admin-chevron {
    transform: rotate(90deg);
}
main .admin-page.order-detail .admin-product-details-row > td {
    padding: 0 !important;
    border-top: none !important;
    background: #f8f9fa !important;
}
main .admin-page.order-detail .admin-product-details {
    padding: 0.55rem 1rem 0.7rem 2.25rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}
main .admin-page.order-detail .admin-product-details .admin-detail-row {
    gap: 0.65rem;
    padding: 0.35rem 0;
}
main .admin-page.order-detail .admin-product-details .admin-detail-label {
    flex: 0 0 130px;
    width: 130px;
    max-width: 45%;
}

/* Order details — document tabs (confirmations, zaaglijsten, pakbonnen, facturen) */
main .admin-page.order-detail .order-documents-panel {
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
}
main .admin-page.order-detail .order-doc-table .col-doc-id {
    width: 10%;
}
main .admin-page.order-detail .order-doc-table .col-doc-name {
    width: 65%;
}
main .admin-page.order-detail .order-doc-table .col-doc-date {
    width: 25%;
}
main .admin-page.order-detail .order-invoices-table .col-invoice-id {
    width: 10%;
}
main .admin-page.order-detail .order-invoices-table .col-invoice-name {
    width: 40%;
}
main .admin-page.order-detail .order-invoices-table .col-invoice-date {
    width: 20%;
}
main .admin-page.order-detail .order-invoices-table .col-invoice-amount {
    width: 18%;
}
main .admin-page.order-detail .order-invoices-table .col-invoice-actions {
    width: 12%;
}
main .admin-page.order-detail .order-doc-table tbody tr.admin-row-clickable {
    cursor: pointer;
}
main .admin-page.order-detail .order-doc-table tbody tr.admin-row-clickable:hover > * {
    --bs-table-bg-state: #f3f4f6;
    background-color: #f3f4f6 !important;
}
main .admin-page.order-detail .order-doc-table a.admin-row-link,
main .admin-page.order-detail .order-doc-table a.admin-row-link:hover,
main .admin-page.order-detail .order-doc-table a.admin-row-link:focus {
    text-decoration: none;
    color: inherit;
}

/* Order details — history log */
main .admin-page.order-detail .order-history-table .col-history-note {
    width: 65%;
}
main .admin-page.order-detail .order-history-table .col-history-user {
    width: 15%;
}
main .admin-page.order-detail .order-history-table .col-history-date {
    width: 20%;
}
main .admin-page.order-detail .order-history-table tbody tr {
    cursor: default;
}

/* Order product edit form */
main .admin-page.order-product-edit .order-product-edit-content {
    max-width: 1100px;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
}
main .admin-page.order-product-edit .admin-form-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.85rem 1rem 1rem;
    box-shadow: none;
}
main .admin-page.order-product-edit .admin-form-section-title {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    color: #495057;
}
main .admin-page.order-product-edit .admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    align-items: start;
}
main .admin-page.order-product-edit .admin-form-grid > div,
main .admin-page.order-product-edit .admin-form-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
main .admin-page.order-product-edit .admin-form-grid > div label,
main .admin-page.order-product-edit .admin-form-field label {
    float: none !important;
    width: auto !important;
    margin: 0 0 0.25rem !important;
    text-align: left !important;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #495057;
}
main .admin-page.order-product-edit .admin-form-grid > div .form-control,
main .admin-page.order-product-edit .admin-form-grid > div .form-select,
main .admin-page.order-product-edit .admin-form-grid > div input:not([type=submit]):not([type=checkbox]):not([type=radio]),
main .admin-page.order-product-edit .admin-form-grid > div select,
main .admin-page.order-product-edit .admin-form-field .form-control,
main .admin-page.order-product-edit .admin-form-field .form-select,
main .admin-page.order-product-edit .admin-form-field input:not([type=submit]):not([type=checkbox]):not([type=radio]),
main .admin-page.order-product-edit .admin-form-field select {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    float: none !important;
    clear: none !important;
    box-sizing: border-box;
}
main .admin-page.order-product-edit .admin-form-field-sm {
    max-width: 16rem;
}
main .admin-page.order-product-edit .admin-form-actions {
    margin-top: 0.25rem;
}
main .admin-page.order-product-edit .admin-form-actions .button,
main .admin-page.order-product-edit .admin-form-actions .admin-btn-apply {
    float: none;
    height: calc(1.5em + 0.5rem + 2px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
main .admin-page.order-product-edit .admin-detail-value-link {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.25rem;
    transition: color 150ms ease, background-color 150ms ease;
}
main .admin-page.order-product-edit .admin-detail-value-link:hover {
    color: #212529;
    background-color: #e9ecef;
    text-decoration: none;
}
main .admin-page.order-product-edit .admin-detail-value-link:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}
@media (max-width: 767.98px) {
    main .admin-page.order-product-edit .admin-form-grid {
        grid-template-columns: 1fr;
    }
    main .admin-page.order-product-edit .admin-form-field-sm {
        max-width: none;
    }
}

/* Customer add — wider two-column page + compact extras */
main .admin-page.customer-add .order-product-edit-content {
    max-width: 1400px;
}
/* Customer edit — single Klantgegevens card (same fields/styling as add) */
main .admin-page.customer-edit .order-product-edit-content {
    max-width: 700px;
}
main .admin-page.customer-add .admin-form-field-span {
    grid-column: 1 / -1;
}
main .admin-page.customer-add .admin-form-subsection-title {
    margin: 1rem 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: #6c757d;
}
main .admin-page.customer-add .admin-form-checkbox {
    display: flex;
    align-items: center;
}
main .admin-page.customer-add .admin-form-checkbox .form-checkbox-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: normal;
    font-size: 0.875rem;
    color: #495057;
}
main .admin-page.customer-add .admin-form-checkbox .form-checkbox-control > input {
    width: auto;
    height: auto;
    margin: 0;
    appearance: auto;
    -webkit-appearance: checkbox;
}
main .admin-page.customer-add .admin-form-checkbox .form-checkbox-text {
    text-align: left;
}
main .admin-page.customer-add .admin-form-group-label {
    display: block;
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #495057;
}
main .admin-page.customer-add .admin-form-type-group {
    margin-top: 0.65rem;
}
main .admin-page.customer-add .admin-form-type-group:first-of-type {
    margin-top: 0;
}
main .admin-page.customer-add .input_group {
    clear: none;
    overflow: visible;
    padding-bottom: 0;
}
main .admin-page.customer-add .input_group .input_group_label {
    float: none;
    display: block;
    width: auto;
    text-align: left;
    margin: 0 0 0.35rem;
    padding: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6c757d;
}
main .admin-page.customer-add .input_group .input_group_options {
    gap: 0.4rem 1rem;
}
main .admin-page.customer-add .input_group .input_group_option {
    font-size: 0.8125rem;
    color: #495057;
}
main .admin-page.customer-add .admin-form-type-codes .input_group_options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(2.25rem, 1fr));
    gap: 0.35rem 0.5rem;
    align-items: center;
}
main .admin-page.customer-add .admin-form-type-codes .input_group_option {
    white-space: nowrap;
}

/* Order add — Nieuwe order */
main .admin-page.order-add .order-product-edit-content {
    max-width: 1400px;
}
main .admin-page.order-add .order-add-address-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
main .admin-page.order-add .order-add-address-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    transition: border-color 150ms ease, background-color 150ms ease;
}
main .admin-page.order-add .order-add-address-card:has(input:checked) {
    border-color: #adb5bd;
    background: #f8f9fa;
}
main .admin-page.order-add .order-add-address-card-select {
    flex: 0 0 auto;
    padding-top: 0.1rem;
}
main .admin-page.order-add .order-add-address-card-select .form-checkbox-control {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-weight: normal;
    font-size: 0.75rem;
    color: #6c757d;
}
main .admin-page.order-add .order-add-address-card-select .form-checkbox-control > input {
    width: auto;
    height: auto;
    margin: 0;
    appearance: auto;
    -webkit-appearance: radio;
}
main .admin-page.order-add .order-add-address-card-select .form-checkbox-text {
    text-align: left;
}
main .admin-page.order-add .order-add-address-card-body {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #495057;
}
main .admin-page.order-add .order-add-status-wrap {
    display: flex;
    justify-content: flex-start;
}
main .admin-page.order-add .order-add-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    background: #f0fff4;
    cursor: pointer;
}
main .admin-page.order-add .order-add-status:hover,
main .admin-page.order-add .order-add-status:focus-visible {
    background: #e6f9ec;
    outline: none;
}
main .admin-page.order-add .order-add-status:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6c757d;
}
main .admin-page.order-add .order-add-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #28a745;
    flex: 0 0 auto;
}
main .admin-page.order-add .order-add-status a {
    color: #1e7e34;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
}
main .admin-page.order-add .order-add-products-table {
    float: none;
    width: 100%;
    margin: 0;
}
main .admin-page.order-add .order-add-products-table thead th {
    background: #f0f1f5;
    font-size: 0.75rem;
    white-space: nowrap;
}
main .admin-page.order-add .order-add-products-table .col-product-toggle {
    width: 1%;
    white-space: nowrap;
    padding-right: 0.25rem;
}
main .admin-page.order-add .order-add-products-table tbody tr.admin-product-row > td {
    background-color: #fff;
    vertical-align: middle;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
main .admin-page.order-add .order-add-products-table tbody tr.admin-product-row.is-alt > td {
    background-color: #f8f9fa;
}
main .admin-page.order-add .order-add-products-table tbody tr.admin-product-row.is-expandable {
    cursor: pointer;
}
main .admin-page.order-add .order-add-products-table tbody tr.admin-product-row.is-expandable:hover > td {
    background-color: #f3f4f6 !important;
}
main .admin-page.order-add .order-add-products-table tbody tr.admin-product-row.is-expanded > td,
main .admin-page.order-add .order-add-products-table tbody tr.admin-product-row.is-expanded:hover > td {
    background-color: #f8f9fa !important;
}
main .admin-page.order-add .admin-product-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.1rem 0.25rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #6c757d;
    line-height: 1;
    vertical-align: middle;
    box-shadow: none;
}
main .admin-page.order-add .admin-product-toggle:hover,
main .admin-page.order-add .admin-product-toggle:focus {
    background-color: #e9ecef;
    color: #495057;
    box-shadow: none;
}
main .admin-page.order-add .admin-product-toggle:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}
main .admin-page.order-add .admin-product-toggle .admin-chevron {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    color: #6c757d;
    transform: rotate(0deg);
    transition: transform 150ms ease;
}
main .admin-page.order-add .admin-product-row.is-expanded .admin-product-toggle .admin-chevron {
    transform: rotate(90deg);
}
main .admin-page.order-add .admin-product-details-row > td {
    padding: 0 !important;
    border-top: none !important;
    background: #f8f9fa !important;
}
main .admin-page.order-add .admin-product-details {
    padding: 0.75rem 1rem 0.85rem 2.25rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}
main .admin-page.order-add .order-add-product-options {
    float: none;
    width: 100%;
    max-width: 100%;
}
main .admin-page.order-add .order-add-products-table td input:not([type=checkbox]):not([type=radio]),
main .admin-page.order-add .order-add-products-table td select {
    max-width: 100%;
}
main .admin-page.order-add .order-add-products-table td input[type=checkbox] {
    width: auto;
    margin: 0;
    appearance: auto;
    -webkit-appearance: checkbox;
}
@media (max-width: 991.98px) {
    main .admin-page.order-add .order-add-address-card {
        flex-direction: column;
        gap: 0.4rem;
    }
}

/* Customer detail — compact 2×2 layout */
.admin-page.customer-detail .customer-detail-layout,
main .admin-page.customer-detail .customer-detail-layout {
    max-width: 1400px;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
}
.admin-page.customer-detail .customer-detail-grid,
main .admin-page.customer-detail .customer-detail-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 0.85rem;
    align-items: stretch;
    width: 100%;
}
.admin-page.customer-detail .customer-detail-cell,
main .admin-page.customer-detail .customer-detail-cell {
    min-width: 0;
    display: flex;
    float: none !important;
    clear: none !important;
    width: auto !important;
}
.admin-page.customer-detail .customer-detail-card,
main .admin-page.customer-detail .customer-detail-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin: 0;
    float: none !important;
    clear: none !important;
}
.admin-page.customer-detail .customer-detail-card > .admin-detail-card-body,
main .admin-page.customer-detail .customer-detail-card > .admin-detail-card-body {
    flex: 1 1 auto;
    padding: 0.5rem 0.95rem 0.6rem !important;
}
.admin-page.customer-detail .customer-detail-card > .admin-detail-card-header,
main .admin-page.customer-detail .customer-detail-card > .admin-detail-card-header {
    padding: 0.55rem 0.95rem !important;
}
.admin-page.customer-detail .admin-detail-card-footer,
main .admin-page.customer-detail .admin-detail-card-footer {
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 0.5rem 0.95rem;
    margin-top: auto;
}
.admin-page.customer-detail .admin-detail-card-footer .button,
.admin-page.customer-detail .admin-detail-card-footer .admin-btn-apply,
main .admin-page.customer-detail .admin-detail-card-footer .button,
main .admin-page.customer-detail .admin-detail-card-footer .admin-btn-apply {
    float: none;
    margin: 0;
    height: auto;
    min-height: calc(1.5em + 0.5rem + 2px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-page.customer-detail .customer-detail-kv-grid,
main .admin-page.customer-detail .customer-detail-kv-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1.25rem;
    row-gap: 0.2rem;
}
.admin-page.customer-detail .customer-detail-kv,
main .admin-page.customer-detail .customer-detail-kv {
    display: grid;
    grid-template-columns: 10.75rem minmax(0, 1fr);
    column-gap: 0.5rem;
    align-items: baseline;
    min-width: 0;
    padding: 0.18rem 0;
}
.admin-page.customer-detail .customer-detail-kv-span,
main .admin-page.customer-detail .customer-detail-kv-span {
    grid-column: 1 / -1;
}
.admin-page.customer-detail .customer-detail-k,
main .admin-page.customer-detail .customer-detail-k {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    color: #6c757d;
    white-space: nowrap;
}
.admin-page.customer-detail .customer-detail-v,
main .admin-page.customer-detail .customer-detail-v {
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.35;
    color: #212529;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}
.admin-page.customer-detail .customer-detail-contact-list,
main .admin-page.customer-detail .customer-detail-contact-list {
    display: flex;
    flex-direction: column;
}
.admin-page.customer-detail .customer-detail-contact-row,
main .admin-page.customer-detail .customer-detail-contact-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(7.5rem, 0.85fr);
    grid-template-areas:
        "main prefs"
        "actions actions";
    column-gap: 1.25rem;
    row-gap: 0.35rem;
    align-items: start;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f3f5;
}
.admin-page.customer-detail .customer-detail-contact-row:first-child,
main .admin-page.customer-detail .customer-detail-contact-row:first-child {
    padding-top: 0.2rem;
}
.admin-page.customer-detail .customer-detail-contact-row:last-child,
main .admin-page.customer-detail .customer-detail-contact-row:last-child {
    border-bottom: none;
    padding-bottom: 0.1rem;
}
.admin-page.customer-detail .customer-detail-contact-main,
main .admin-page.customer-detail .customer-detail-contact-main {
    grid-area: main;
    min-width: 0;
}
.admin-page.customer-detail .customer-detail-contact-prefs,
main .admin-page.customer-detail .customer-detail-contact-prefs {
    grid-area: prefs;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-content: start;
    justify-content: flex-start;
    min-width: 7.5rem;
    margin-top: 1.1rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #495057;
}
.admin-page.customer-detail .customer-detail-contact-name,
main .admin-page.customer-detail .customer-detail-contact-name {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #212529;
}
.admin-page.customer-detail .customer-detail-contact-role,
.admin-page.customer-detail .customer-detail-contact-phone,
.admin-page.customer-detail .customer-detail-contact-email,
main .admin-page.customer-detail .customer-detail-contact-role,
main .admin-page.customer-detail .customer-detail-contact-phone,
main .admin-page.customer-detail .customer-detail-contact-email {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #495057;
}
.admin-page.customer-detail .customer-detail-contact-email,
main .admin-page.customer-detail .customer-detail-contact-email {
    overflow-wrap: break-word;
    word-break: normal;
}
.admin-page.customer-detail .customer-detail-contact-actions,
main .admin-page.customer-detail .customer-detail-contact-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.1rem;
}
.admin-page.customer-detail .customer-detail-address-list,
main .admin-page.customer-detail .customer-detail-address-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.admin-page.customer-detail .customer-detail-address-card,
main .admin-page.customer-detail .customer-detail-address-card {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.45rem 0.7rem 0.4rem;
    background: #fff;
}
.admin-page.customer-detail .customer-detail-address-toolbar,
main .admin-page.customer-detail .customer-detail-address-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #f1f3f5;
}
.admin-page.customer-detail .customer-detail-address-toolbar-start,
main .admin-page.customer-detail .customer-detail-address-toolbar-start {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}
.admin-page.customer-detail .customer-detail-address-toolbar-end,
main .admin-page.customer-detail .customer-detail-address-toolbar-end {
    flex: 0 0 auto;
    margin-left: auto;
}
.admin-page.customer-detail .customer-detail-address-badge,
main .admin-page.customer-detail .customer-detail-address-badge {
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 600;
    color: #198754;
}
.admin-page.customer-detail .customer-detail-address-toolbar .button.tiny,
main .admin-page.customer-detail .customer-detail-address-toolbar .button.tiny {
    float: none;
    height: auto;
    margin: 0;
    padding: 0.15rem 0.5rem;
}
.admin-page.customer-detail .customer-detail-address-toolbar form,
main .admin-page.customer-detail .customer-detail-address-toolbar form {
    display: inline;
    margin: 0;
}
@media (max-width: 767.98px) {
    .admin-page.customer-detail .customer-detail-grid,
    main .admin-page.customer-detail .customer-detail-grid {
        grid-template-columns: 1fr !important;
    }
    .admin-page.customer-detail .customer-detail-kv-grid,
    main .admin-page.customer-detail .customer-detail-kv-grid {
        grid-template-columns: 1fr;
    }
    .admin-page.customer-detail .customer-detail-contact-row,
    main .admin-page.customer-detail .customer-detail-contact-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "prefs"
            "actions";
    }
}
main .admin-page.customer-detail .customer-detail-note {
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f3f5;
}
main .admin-page.customer-detail .customer-detail-note:last-child {
    border-bottom: none;
}
main .admin-page.customer-detail .customer-detail-note-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
}
main .admin-page.customer-detail .customer-detail-note-body {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #212529;
}
main .admin-page.customer-detail .customer-detail-note-form .admin-form-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0.35rem 0 0 !important;
}
main .admin-page.customer-detail .customer-detail-note-form .admin-form-field label {
    float: none !important;
    width: auto !important;
    margin: 0 0 0.25rem !important;
    text-align: left !important;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #495057;
}
main .admin-page.customer-detail .customer-detail-note-form .admin-note-textarea,
main .admin-page.customer-detail .customer-detail-note-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 130px;
    height: 130px;
    display: block;
    float: none !important;
    resize: vertical;
    box-sizing: border-box;
}

/* Invoice detail — Factuur #… */
main .admin-page.invoice-detail .invoice-detail-paid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
main .admin-page.invoice-detail .invoice-detail-paid form {
    display: inline;
    margin: 0;
}
main .admin-page.invoice-detail .invoice-detail-paid .button.tiny {
    float: none;
    height: auto;
    margin: 0;
    padding: 0.15rem 0.5rem;
}
main .admin-page.invoice-detail .invoice-detail-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
main .admin-page.invoice-detail .invoice-detail-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.35rem 0 0.25rem;
}
main .admin-page.invoice-detail .invoice-detail-actions form {
    margin: 0;
    width: 100%;
}
main .admin-page.invoice-detail .invoice-detail-actions .button,
main .admin-page.invoice-detail .invoice-detail-actions .admin-btn-apply {
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    height: auto;
    min-height: calc(1.5em + 0.5rem + 2px);
    box-sizing: border-box;
    text-align: center;
}
main .admin-page.invoice-detail .invoice-detail-actions .button a {
    display: block;
    width: 100%;
    text-align: center;
}
main .admin-page.invoice-detail .invoice-detail-notes {
    padding: 0.15rem 0 0.25rem;
}
main .admin-page.invoice-detail .invoice-detail-note {
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f3f5;
}
main .admin-page.invoice-detail .invoice-detail-note:last-child {
    border-bottom: none;
}
main .admin-page.invoice-detail .invoice-detail-note-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
}
main .admin-page.invoice-detail .invoice-detail-note-body {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #212529;
}
main .admin-page.invoice-detail .invoice-detail-note-form .admin-form-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0.35rem 0 0 !important;
}
main .admin-page.invoice-detail .invoice-detail-note-form .admin-form-field label {
    float: none !important;
    width: auto !important;
    margin: 0 0 0.25rem !important;
    text-align: left !important;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #495057;
}
main .admin-page.invoice-detail .invoice-detail-note-form .admin-note-textarea,
main .admin-page.invoice-detail .invoice-detail-note-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 130px;
    height: 130px;
    display: block;
    float: none !important;
    resize: vertical;
    box-sizing: border-box;
}
main .admin-page.invoice-detail .invoice-detail-rows-panel {
    float: none;
    clear: both;
    width: 100%;
    max-width: 1400px;
}
main .admin-page.invoice-detail .invoice-detail-rows-table {
    float: none;
    width: 100%;
    margin: 0;
}
main .admin-page.invoice-detail .invoice-detail-rows-table thead th {
    background: #f0f1f5;
}

/* Customer address add/edit — Factuur-/verzendadres */
main .admin-page.customer-address-form .order-product-edit-content {
    max-width: 700px;
}

/* Contact person add/edit — Contactpersoon toevoegen / wijzigen */
main .admin-page.contact-person-form .order-product-edit-content {
    max-width: 700px;
}
main .admin-page.contact-person-form .admin-form-field-span {
    grid-column: 1 / -1;
}
main .admin-page.contact-person-form .admin-form-subsection-title {
    margin: 1rem 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: #6c757d;
}

/* Customer group add — Klantgroep toevoegen */
main .admin-page.customer-group-add .order-product-edit-content {
    max-width: 760px;
}

/* Invoice row edit — Factuurregel wijzigen */
main .admin-page.invoice-row-edit .order-product-edit-content {
    max-width: 700px;
}
main .admin-page.invoice-row-edit .admin-form-field-span {
    grid-column: 1 / -1;
}

/* Invoice add — Nieuwe factuur */
main .admin-page.invoice-add .order-product-edit-content {
    max-width: 1400px;
}
main .admin-page.invoice-add .invoice-add-rows-table {
    float: none;
    width: 100%;
    margin: 0;
    table-layout: fixed;
}
main .admin-page.invoice-add .invoice-add-rows-table thead th {
    background: #f0f1f5;
    font-size: 0.75rem;
    white-space: nowrap;
}
main .admin-page.invoice-add .invoice-add-rows-table .col-row-num {
    width: 4%;
}
main .admin-page.invoice-add .invoice-add-rows-table .col-verwerk {
    width: 8%;
}
main .admin-page.invoice-add .invoice-add-rows-table .col-description {
    width: 48%;
}
main .admin-page.invoice-add .invoice-add-rows-table .col-price {
    width: 22%;
}
main .admin-page.invoice-add .invoice-add-rows-table .col-quantity {
    width: 18%;
}
main .admin-page.invoice-add .invoice-add-rows-table tbody tr.invoice-add-row > td {
    background-color: #fff;
    vertical-align: middle;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
main .admin-page.invoice-add .invoice-add-rows-table tbody tr.invoice-add-row.is-alt > td {
    background-color: #f8f9fa;
}
main .admin-page.invoice-add .invoice-add-rows-table td input:not([type=checkbox]):not([type=radio]) {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    float: none !important;
    box-sizing: border-box;
}
main .admin-page.invoice-add .invoice-add-rows-table td input[type=checkbox] {
    width: auto;
    margin: 0;
    appearance: auto;
    -webkit-appearance: checkbox;
}

/* Products list — compact two-column layout */
main .admin-page.products-index .col-product-id {
    width: 12%;
}
main .admin-page.products-index .col-product-name {
    width: 88%;
}

/* Product add/edit — Product toevoegen / wijzigen */
main .admin-page.product-form .order-product-edit-content {
    max-width: 700px;
}
main .admin-page.product-form .admin-form-field-span {
    grid-column: 1 / -1;
}
main .admin-page.product-edit .order-product-edit-content {
    max-width: 1100px;
}
main .admin-page.product-edit .product-attributes-section .admin-form-section-title {
    margin-bottom: 0;
}
main .admin-page.product-edit .product-attributes-table {
    float: none;
    width: 100%;
    margin: 0;
}
main .admin-page.product-edit .product-attributes-table thead th {
    background: #f0f1f5;
    font-size: 0.75rem;
}

/* Product attribute add/edit/delete */
main .admin-page.product-attribute-form .order-product-edit-content {
    max-width: 760px;
}
main .admin-page.product-attribute-delete .product-attribute-delete-message {
    font-size: 0.875rem;
    line-height: 1.4;
}
main .admin-page.product-attribute-delete .product-attribute-delete-message .error,
main .admin-page.product-attribute-delete .product-attribute-delete-message p.error {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 0.375rem;
    padding: 0.65rem 0.85rem;
    margin: 0;
}
main .admin-page.product-attribute-delete .admin-form-actions .btn-danger {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: calc(1.5em + 0.5rem + 2px);
}

/* Order boxes — Aantal dozen opgeven */
main .admin-page.order-boxes .order-product-edit-content {
    max-width: 900px;
}
main .admin-page.order-boxes .order-boxes-table {
    float: none;
    width: 100%;
    margin: 0;
}
main .admin-page.order-boxes .order-boxes-table thead th {
    background: #f0f1f5;
    font-size: 0.75rem;
}
main .admin-page.order-boxes .order-boxes-input-cell {
    width: 9rem;
    max-width: 9rem;
}
main .admin-page.order-boxes .order-boxes-input-cell input {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    float: none !important;
    box-sizing: border-box;
}

/* Order pre-import — Orders importeren */
main .admin-page.order-pre-import .order-product-edit-content {
    max-width: 1200px;
}
main .admin-page.order-pre-import .admin-form-subsection-title {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: #6c757d;
}
main .admin-page.order-pre-import .order-pre-import-meta-table,
main .admin-page.order-pre-import .order-pre-import-products-table {
    float: none;
    width: 100%;
    margin: 0;
}
main .admin-page.order-pre-import .order-pre-import-meta-table thead th,
main .admin-page.order-pre-import .order-pre-import-products-table thead th {
    background: #f0f1f5;
    font-size: 0.75rem;
}
main .admin-page.order-pre-import .order-pre-import-meta-table select,
main .admin-page.order-pre-import .order-pre-import-week select {
    width: auto;
    min-width: 4.5rem;
    max-width: 100%;
    display: inline-block;
    float: none !important;
}
main .admin-page.order-pre-import .order-pre-import-address .admin-detail-row {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 0.35rem 0.75rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f1f3f5;
    align-items: baseline;
}
main .admin-page.order-pre-import .order-pre-import-address .admin-detail-row:last-child {
    border-bottom: none;
}
main .admin-page.order-pre-import .order-pre-import-address .admin-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
}
main .admin-page.order-pre-import .order-pre-import-address .admin-detail-value {
    font-size: 0.875rem;
    color: #212529;
    word-break: break-word;
}
main .admin-page.order-pre-import .order-pre-import-attrs {
    font-size: 0.8125rem;
    line-height: 1.35;
}
main .admin-page.order-pre-import .order-pre-import-jambs input[type=number] {
    width: 4.5rem !important;
    max-width: 100%;
    display: inline-block;
    float: none !important;
    margin-left: 0.35rem;
    box-sizing: border-box;
}
@media (max-width: 575.98px) {
    main .admin-page.order-pre-import .order-pre-import-address .admin-detail-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

/* Report detail pages — Omzet / planning */
main .admin-page.report-detail .report-amounts-table {
    float: none;
    width: 100%;
    margin: 0;
}
main .admin-page.report-detail .report-amounts-table th:last-child,
main .admin-page.report-detail .report-amounts-table td:last-child {
    width: 10rem;
}
main .admin-page.report-detail .report-status-amounts-table {
    float: none;
    width: 100%;
    margin: 0;
}
main .admin-page.report-detail .report-status-amounts-table thead th {
    white-space: nowrap;
}
main .admin-page.report-detail table.item_table tbody tr.highlight > * {
    background-color: #edf4f8;
    --bs-table-bg-state: #edf4f8;
}
main .admin-page.report-detail table.item_table tbody tr.highlight:hover > * {
    background-color: #e2eef5;
    --bs-table-bg-state: #e2eef5;
}

/* Reports overview — compact navigation cards */
main .admin-page.reports-index .reports-content {
    max-width: 1100px;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
}
/* Two ~330px cards per row, left-aligned */
main .admin-page.reports-index .reports-card-grid {
    max-width: 672px;
}
main .admin-page.reports-index .reports-section + .reports-section {
    margin-top: 32px;
}
main .admin-page.reports-index .reports-section-title {
    margin: 0 0 0.5rem;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: #495057;
    text-transform: none;
    letter-spacing: 0;
}
main .admin-page.reports-index .report-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    height: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #fff;
    color: #343a40;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 150ms ease, border-color 150ms ease;
    cursor: pointer;
}
main .admin-page.reports-index .report-card:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #343a40;
    text-decoration: none;
}
main .admin-page.reports-index .report-card:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #343a40;
    text-decoration: none;
}
main .admin-page.reports-index .report-card-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
}
main .admin-page.reports-index .report-card-chevron {
    flex: 0 0 auto;
    color: #adb5bd;
    font-size: 1.1rem;
    line-height: 1;
}
