:root {
    color-scheme: light;
    --ink: var(--tone-253f52,#253f52);
    --muted: var(--tone-748795,#748795);
    --blue: var(--tone-24739f,#24739f);
    --blue-dark: var(--tone-1c5577,#1c5577);
    --blue-light: var(--tone-dcebf4,#dcebf4);
    --line: var(--tone-d3dfe7,#d3dfe7);
    --panel: #fff;
    --canvas: var(--tone-edf2f5,#edf2f5);
    --green: #2b8065;
    --danger: #a83d40;
    --shadow: 0 18px 65px var(--tone-173d5940,#173d5940);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
}
button,
input,
select,
textarea {
    font: inherit;
}
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--tone-c2d1dc,#c2d1dc);
    background: linear-gradient(#fff, var(--tone-f0f5f8,#f0f5f8));
    color: var(--ink);
    border-radius: 3px;
    min-height: 31px;
    padding: 5px 12px;
    cursor: pointer;
    white-space: nowrap;
}
button:hover {
    border-color: var(--tone-8eb6cf,#8eb6cf);
    background: var(--tone-e8f3fa,#e8f3fa);
}
button:disabled {
    opacity: 0.48;
    cursor: default;
}
button.primary {
    background: var(--tone-2477a5,#2477a5);
    border-color: var(--tone-216d98,#216d98);
    color: #fff;
}
button.primary:hover {
    background: var(--tone-1e638c,#1e638c);
}
button.danger,
.danger {
    color: var(--danger);
}
button.positive {
    color: var(--green);
}
a {
    color: var(--blue);
}
input,
select,
textarea {
    border: 1px solid var(--tone-c2d0da,#c2d0da);
    background: #fff;
    color: var(--ink);
    border-radius: 3px;
    min-height: 33px;
    padding: 6px 9px;
    outline: none;
    max-width: 100%;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--tone-3a8dbc,#3a8dbc);
    box-shadow: 0 0 0 2px var(--tone-3a8dbc20,#3a8dbc20);
}
input[type="checkbox"] {
    min-height: auto;
    accent-color: var(--blue);
}
textarea {
    resize: vertical;
    min-height: 75px;
}
label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}
label.checkbox {
    flex-direction: row;
    align-items: center;
    font-weight: 400;
    gap: 8px;
    padding: 5px 0;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -0.7px;
    margin-bottom: 7px;
}
h2 {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.3px;
}
h3 {
    font-size: 14px;
    font-weight: 600;
}
p {
    line-height: 1.65;
}
small,
.muted {
    color: var(--muted);
}
.icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    vertical-align: middle;
}
.icon-button {
    background: transparent;
    border-color: transparent;
    min-width: 31px;
    padding: 4px;
}
.text-button {
    border: 0;
    background: none;
    min-height: 24px;
    padding: 0;
    color: var(--blue);
    text-align: left;
    justify-content: flex-start;
}
.text-button:hover {
    background: none;
    text-decoration: underline;
}
.account-link {
    font-weight: 600;
}
.full {
    width: 100%;
}
.eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--tone-69869a,#69869a);
    margin-bottom: 9px;
}
.application {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    min-width: 780px;
}
.topbar {
    height: 62px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    background: linear-gradient(100deg, var(--tone-bed6e6,#bed6e6), var(--tone-d8e7f0,#d8e7f0));
    border-top: 3px solid var(--tone-3483ad,#3483ad);
    border-bottom: 1px solid var(--tone-aec6d6,#aec6d6);
    box-shadow: 0 1px 3px var(--tone-163e5610,#163e5610);
    z-index: 5;
}
.brand {
    text-decoration: none;
    color: var(--tone-245e83,#245e83);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1.6px;
    white-space: nowrap;
}
.brand span {
    font-weight: 400;
    color: var(--tone-437d9e,#437d9e);
}
.top-divider {
    height: 22px;
    width: 1px;
    background: var(--tone-a7c2d4,#a7c2d4);
}
.tenant-name {
    font-size: 12px;
    font-weight: 600;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.global-search {
    height: 34px;
    width: 450px;
    max-width: 40vw;
    margin-left: auto;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--tone-f6fafce8,#f6fafce8);
    border: 1px solid var(--tone-a7c1d3,#a7c1d3);
    border-radius: 3px;
    padding: 0 10px;
    gap: 8px;
}
.global-search > span {
    font-size: 23px;
    color: var(--tone-61849b,#61849b);
}
.global-search input {
    border: 0;
    background: transparent;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    padding: 6px 0;
    font-size: 12px;
}
.global-search kbd {
    font: 10px Arial;
    background: var(--tone-e5edf3,#e5edf3);
    color: var(--tone-638094,#638094);
    padding: 3px 5px;
    border-radius: 2px;
    white-space: nowrap;
}
.search-results {
    position: absolute;
    left: 0;
    top: 40px;
    width: 100%;
    max-height: 70vh;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 7px;
}
.search-results button {
    display: flex;
    justify-content: space-between;
    min-height: 38px;
    width: 100%;
    border: 0;
    background: none;
    padding: 8px 10px;
}
.search-results button:hover {
    background: var(--tone-e6f0f7,#e6f0f7);
}
.search-category {
    padding: 8px 10px 4px;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--muted);
    font-weight: 600;
}
.search-results small {
    font-size: 10px;
}
.session-user {
    font-size: 12px;
    white-space: nowrap;
}
.avatar {
    height: 31px;
    width: 31px;
    min-width: 31px;
    border-radius: 50%;
    padding: 0;
    background: var(--tone-7a9cb4,#7a9cb4);
    border-color: var(--tone-6f94ac,#6f94ac);
    color: #fff;
    font-weight: 600;
}
.app-body {
    flex: 1;
    display: flex;
    min-height: 0;
}
.sidebar {
    width: 254px;
    min-width: 254px;
    background: var(--tone-f9fbfd,#f9fbfd);
    border-right: 1px solid var(--tone-bdcedb,#bdcedb);
    display: flex;
    flex-direction: column;
}
.sidebar-heading {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    font-size: 10px;
    letter-spacing: 1.3px;
    color: var(--tone-7a8c99,#7a8c99);
    border-bottom: 1px solid var(--tone-e1e9ef,#e1e9ef);
}
.sidebar-heading span {
    font-size: 10px;
    letter-spacing: 0;
}
.sidebar nav {
    overflow: auto;
    padding: 12px 0 20px;
    flex: 1;
}
.tree-group > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 12px;
    list-style: none;
}
.tree-group > summary::-webkit-details-marker {
    display: none;
}
.tree-group > summary:before {
    content: "›";
    font-size: 17px;
    color: var(--tone-7894a7,#7894a7);
    width: 8px;
    line-height: 15px;
}
.tree-group[open] > summary:before {
    transform: rotate(90deg);
}
.tree-group > summary .icon {
    color: var(--tone-7e9eb3,#7e9eb3);
    width: 16px;
    height: 16px;
}
.tree-item {
    width: 100%;
    justify-content: flex-start;
    gap: 9px;
    min-height: 35px;
    border: 0;
    border-radius: 0;
    background: none;
    padding: 8px 17px;
    border-left: 3px solid transparent;
    font-size: 12px;
}
.tree-group .tree-item {
    padding-left: 43px;
    font-size: 12px;
    position: relative;
}
.tree-group .tree-item:before {
    content: "";
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    border-left: 1px dotted var(--tone-bbccd8,#bbccd8);
}
.tree-item .icon {
    width: 15px;
    height: 15px;
    color: var(--tone-728fa3,#728fa3);
}
.tree-item.active {
    background: var(--tone-dfedf6,#dfedf6);
    border-left-color: var(--tone-287fae,#287fae);
    color: var(--tone-195e88,#195e88);
    font-weight: 600;
}
.tree-item.active .icon {
    color: var(--tone-287fae,#287fae);
}
.tree-item:hover {
    background: var(--tone-eaf2f7,#eaf2f7);
}
.tree-section-label {
    padding: 16px 18px 8px;
    color: var(--tone-90a1ad,#90a1ad);
    font-size: 10px;
    letter-spacing: 1px;
}
.sidebar-bottom {
    height: 40px;
    border-top: 1px solid var(--tone-dae4eb,#dae4eb);
    padding: 12px 17px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: var(--tone-728b9d,#728b9d);
}
.online-dot {
    width: 6px;
    height: 6px;
    background: #3d987a;
    border-radius: 50%;
    display: inline-block;
}
.sidebar-mode {
    margin-left: auto;
    color: var(--tone-8b9ca8,#8b9ca8);
}
.statusbar {
    height: 26px;
    flex-shrink: 0;
    border-top: 1px solid var(--tone-c7d7e3,#c7d7e3);
    background: var(--tone-e3edf4,#e3edf4);
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--tone-688093,#688093);
}
.statusbar span:first-child {
    color: #3d7769;
}
.breadcrumbs {
    height: 39px;
    border-bottom: 1px solid var(--tone-d4e0e9,#d4e0e9);
    background: var(--tone-f6f9fb,#f6f9fb);
    display: flex;
    align-items: center;
    padding: 0 25px;
    gap: 10px;
    color: var(--tone-7f919f,#7f919f);
    font-size: 11px;
}
.breadcrumbs button {
    border: 0;
    background: none;
    padding: 0;
    min-height: 20px;
    color: var(--tone-5d7d92,#5d7d92);
    font-size: 11px;
}
.breadcrumbs #work-date {
    margin-left: auto;
}
#main {
    min-width: 0;
    flex: 1;
    overflow: auto;
    position: relative;
}
#workspace {
    padding: 24px 27px 35px;
    max-width: 1850px;
    margin: auto;
}
.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}
.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}
.actions {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
    margin-bottom: 18px;
}
.panel-heading {
    border-bottom: 1px solid var(--tone-e1e8ee,#e1e8ee);
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.panel-heading h3 {
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}
.panel-body {
    padding: 18px;
}
.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 13px 15px;
    background: var(--tone-f8fafc,#f8fafc);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.filter-bar input[name="q"] {
    width: 260px;
}
.filter-bar label {
    font-size: 10px;
    gap: 4px;
    color: var(--tone-6e8496,#6e8496);
}
.filter-bar input,
.filter-bar select {
    height: 31px;
    min-height: 31px;
}
.table-wrap {
    overflow: auto;
}
.data-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.data-table th {
    font-size: 10px;
    letter-spacing: 0.25px;
    background: var(--tone-eef4f8,#eef4f8);
    color: var(--tone-6e879a,#6e879a);
    font-weight: 600;
    padding: 11px 14px;
    border-bottom: 1px solid var(--tone-d4e0e9,#d4e0e9);
    text-align: left;
    white-space: nowrap;
}
.data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--tone-e8eef3,#e8eef3);
    vertical-align: middle;
    height: 42px;
}
.data-table tr:last-child td {
    border-bottom: 0;
}
.data-table tbody tr:hover {
    background: var(--tone-f5f9fc,#f5f9fc);
}
.data-table td.num {
    text-align: right;
}
.num {
    text-align: right !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.row-number {
    font-size: 11px;
    color: var(--tone-7b93a4,#7b93a4);
    font-variant-numeric: tabular-nums;
}
.empty {
    text-align: center;
    color: var(--tone-93a2ae,#93a2ae);
    padding: 35px !important;
}
.pager {
    padding: 11px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--tone-8396a4,#8396a4);
    font-size: 11px;
    border-top: 1px solid var(--tone-e1e9f0,#e1e9f0);
}
.pager > div {
    display: flex;
    gap: 10px;
    align-items: center;
}
.pager button {
    min-height: 26px;
    font-size: 11px;
}
.badge {
    display: inline-block;
    font-size: 10px;
    line-height: 18px;
    padding: 0 7px;
    color: var(--tone-6e879b,#6e879b);
    background: var(--tone-edf3f7,#edf3f7);
    border: 1px solid var(--tone-dce6ee,#dce6ee);
    border-radius: 3px;
    white-space: nowrap;
}
.badge.success {
    color: #327e66;
    background: #ecf7f1;
    border-color: #cce5d8;
}
.badge.warning {
    color: #9b782e;
    background: #fff8e6;
    border-color: #efe1bc;
}
.balance-positive {
    color: #2b7d65;
}
.balance-negative {
    color: #a55d46;
}
.modal {
    padding: 0;
    border: 1px solid var(--tone-9db9cc,#9db9cc);
    border-radius: 5px;
    color: var(--ink);
    background: #fff;
    width: 570px;
    max-width: calc(100vw - 35px);
    max-height: calc(100dvh - 45px);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.modal::backdrop {
    background: var(--tone-254b652e,#254b652e);
    backdrop-filter: blur(1px);
}
.modal.wide {
    width: 1010px;
}
.modal.account-modal {
    width: 1160px;
}
.modal-title {
    height: 39px;
    min-height: 39px;
    padding: 0 12px 0 18px;
    background: linear-gradient(var(--tone-d9e8f2,#d9e8f2), var(--tone-c8deed,#c8deed));
    border-bottom: 1px solid var(--tone-b6cfdf,#b6cfdf);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--tone-3c627c,#3c627c);
}
.modal-body {
    max-height: calc(100dvh - 90px);
    overflow: auto;
    padding: 22px;
}
.account-modal .modal-body {
    padding: 0;
    background: var(--tone-f4f7fa,#f4f7fa);
}
.modal-body > p {
    font-size: 12px;
    color: var(--tone-728997,#728997);
}
.modal form {
    display: grid;
    gap: 14px;
}
.modal form.filter-bar {
    display: flex;
    gap: 8px;
    margin: -22px -22px 15px;
    padding: 13px 20px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-grid .span-2 {
    grid-column: span 2;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
    border-top: 1px solid var(--tone-e4ebf0,#e4ebf0);
    padding-top: 15px;
}
.error {
    background: #fff1f0;
    border: 1px solid #e9b8b5;
    color: #9e4446;
    border-radius: 3px;
    padding: 11px 13px;
    font-size: 12px;
    white-space: pre-line;
    line-height: 1.6;
}
.info {
    background: var(--tone-edf5fa,#edf5fa);
    border: 1px solid var(--tone-d4e5f0,#d4e5f0);
    border-radius: 3px;
    color: var(--tone-5a7a91,#5a7a91);
    padding: 11px 13px;
    font-size: 12px;
    line-height: 1.6;
}
.success-note {
    background: #eff8f3;
    border: 1px solid #d8eadd;
    color: #44826b;
    padding: 12px;
}
.toast {
    padding: 12px 17px;
    border: 1px solid #a5cdbc;
    background: #f3fcf7;
    color: #31765b;
    box-shadow: 0 4px 20px var(--tone-23445a20,#23445a20);
    border-radius: 4px;
    font-size: 12px;
    max-width: 520px;
    white-space: pre-line;
}
.toast.danger {
    background: #fff6f4;
    border-color: #e2b0ac;
    color: #a34747;
}
#toasts {
    position: fixed;
    bottom: 42px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 200;
}
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--tone-8a9eac,#8a9eac);
    padding: 50px;
    min-height: 120px;
}
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--tone-c6deeb,#c6deeb);
    border-top-color: var(--tone-347da8,#347da8);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.account-head {
    padding: 18px 22px 13px;
    background: linear-gradient(110deg, var(--tone-edf5fa,#edf5fa), #fff);
    border-bottom: 1px solid var(--tone-d3e1ec,#d3e1ec);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.account-head h2 {
    font-size: 23px;
    margin: 0 0 7px;
    color: var(--tone-2e5d7c,#2e5d7c);
}
.account-head .meta {
    display: flex;
    gap: 19px;
    font-size: 11px;
    color: var(--tone-718ca0,#718ca0);
}
.account-head .meta b {
    color: var(--tone-3e6b87,#3e6b87);
    font-weight: 600;
    margin-left: 4px;
}
.account-head input[type="month"] {
    min-height: 30px;
    font-size: 11px;
}
.account-toolbar {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--tone-f8fbfd,#f8fbfd);
    border-bottom: 1px solid var(--tone-d6e2ec,#d6e2ec);
    padding: 5px 17px;
    min-height: 41px;
}
.account-toolbar > button,
.account-toolbar > details > summary {
    background: none;
    border: 0;
    padding: 6px 12px;
    font-size: 11px;
    color: var(--tone-536f84,#536f84);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 7px;
    border-right: 1px solid var(--tone-dce5ec,#dce5ec);
}
.account-toolbar details {
    position: relative;
}
.account-toolbar > small {
    margin-left: auto;
}
.dropdown-menu {
    position: absolute;
    top: 30px;
    left: 0;
    min-width: 195px;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--tone-c5d8e5,#c5d8e5);
    box-shadow: 0 6px 20px var(--tone-2c546530,#2c546530);
    padding: 5px;
}
.dropdown-menu button {
    display: flex;
    justify-content: flex-start;
    background: none;
    border: 0;
    width: 100%;
    padding: 8px;
    font-size: 11px;
}
.dropdown-menu button:hover {
    background: var(--tone-e7f1f7,#e7f1f7);
}
.account-summary {
    padding: 17px 21px;
    display: grid;
    grid-template-columns: 90px 1fr 1.22fr 1.1fr;
    gap: 12px;
}
.customer-photo {
    background: linear-gradient(140deg, var(--tone-c5dce9,#c5dce9), var(--tone-e6f0f6,#e6f0f6));
    border: 1px solid var(--tone-bfd4e3,#bfd4e3);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    color: var(--tone-7195af,#7195af);
    font-size: 36px;
    font-weight: 300;
    overflow: hidden;
}
.customer-photo img {
    width: 100%;
    height: 100%;
    max-height: 100px;
    object-fit: cover;
}
.summary-tile {
    background: #fff;
    border: 1px solid var(--tone-d7e3ec,#d7e3ec);
    border-left: 3px solid var(--tone-8bb5d0,#8bb5d0);
    border-radius: 3px;
    padding: 13px 16px;
    position: relative;
    min-height: 97px;
}
.summary-tile .caption {
    font-size: 11px;
    color: var(--tone-7d94a5,#7d94a5);
    margin-bottom: 9px;
}
.summary-tile strong {
    display: block;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -0.6px;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}
.summary-tile small {
    font-size: 11px;
    display: block;
    margin-top: 5px;
}
.summary-tile .icon {
    position: absolute;
    right: 12px;
    top: 12px;
    color: var(--tone-a4c1d6,#a4c1d6);
    width: 18px;
    height: 18px;
}
.summary-tile.milk-tile {
    border-left-color: var(--tone-3f8bb7,#3f8bb7);
}
.summary-tile.balance-tile {
    background: #f7fcf9;
    border-color: #d1e5db;
    border-left-color: #6ca38b;
}
.summary-tile.balance-tile strong {
    color: #367e62;
}
.summary-tile.balance-tile small {
    color: #598e76;
}
.account-columns {
    padding: 0 21px 21px;
    display: grid;
    grid-template-columns: 0.76fr 1.07fr 1.18fr;
    gap: 12px;
    align-items: start;
}
.account-column {
    background: #fff;
    border: 1px solid var(--tone-d0dfea,#d0dfea);
    border-radius: 3px;
    overflow: hidden;
}
.column-title {
    padding: 10px 12px;
    height: 36px;
    background: linear-gradient(var(--tone-e8f1f7,#e8f1f7), var(--tone-e0ecf4,#e0ecf4));
    border-bottom: 1px solid var(--tone-cedeea,#cedeea);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--tone-4a7190,#4a7190);
}
.column-title .icon {
    width: 14px;
    height: 14px;
}
.account-column .column-form {
    padding: 10px;
    background: var(--tone-f8fbfd,#f8fbfd);
    min-height: 64px;
    display: flex;
    gap: 5px;
    align-items: flex-end;
    border-bottom: 1px solid var(--tone-dee9f0,#dee9f0);
}
.column-form input {
    min-height: 29px;
    padding: 5px 6px;
    font-size: 11px;
    width: 100%;
    min-width: 0;
}
.column-form input[type="date"] {
    width: 112px;
    flex-shrink: 0;
    font-size: 10px;
}
.column-form select {
    min-height: 29px;
    font-size: 10px;
    padding: 4px;
    width: 100px;
}
.column-form button {
    min-height: 29px;
    padding: 4px 7px;
}
.column-form label {
    min-width: 0;
    gap: 4px;
    font-size: 9px;
    color: var(--tone-7b95a8,#7b95a8);
}
.column-form .wide-field {
    flex: 1;
}
.account-column .column-form.commerce-form {
    flex-wrap: wrap;
    align-items: center;
}
.commerce-form input[name="description"] {
    flex: 1;
    min-width: 80px;
}
.commerce-form input[name="amount"] {
    width: 76px;
}
.account-column .data-table {
    font-size: 11px;
}
.account-column .data-table th {
    font-size: 9px;
    padding: 9px 10px;
}
.account-column .data-table td {
    padding: 10px 10px;
    height: 38px;
}
.account-column .pager {
    font-size: 10px;
    padding: 7px;
}
.account-column .pager button {
    font-size: 10px;
    min-height: 22px;
    padding: 2px 5px;
}
.account-column .pager > div {
    gap: 4px;
}
.note-entry {
    padding: 12px;
    border-bottom: 1px solid var(--tone-e5edf3,#e5edf3);
    font-size: 11px;
    line-height: 1.7;
    white-space: pre-wrap;
    color: var(--tone-607b90,#607b90);
}
.note-entry small {
    display: block;
    font-size: 9px;
    color: var(--tone-9aaab5,#9aaab5);
    margin-top: 7px;
}
.note-entry button {
    float: right;
    font-size: 9px;
}
.note-add {
    width: 100%;
    margin: 0;
    padding: 11px;
    background: var(--tone-fafcfd,#fafcfd);
    border: 0;
    border-top: 1px dashed var(--tone-d2e2ee,#d2e2ee);
    border-radius: 0;
    font-size: 10px;
    color: var(--tone-6a91ac,#6a91ac);
}
.cart-callout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px;
    background: var(--tone-edf6fc,#edf6fc);
    color: var(--tone-3578a3,#3578a3);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.35px;
    border: 0;
    border-bottom: 1px solid var(--tone-dbe8f2,#dbe8f2);
    width: 100%;
    border-radius: 0;
}
.column-total {
    padding: 11px 12px;
    background: var(--tone-eef5fa,#eef5fa);
    border-top: 1px solid var(--tone-d5e3ed,#d5e3ed);
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--tone-5c7f97,#5c7f97);
}
.column-total b {
    color: var(--tone-365f7b,#365f7b);
}
.account-footer {
    padding: 11px 22px;
    background: var(--tone-e9f1f7,#e9f1f7);
    border-top: 1px solid var(--tone-d2e0eb,#d2e0eb);
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 10px;
    color: var(--tone-7992a5,#7992a5);
}
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}
.welcome-panel {
    background: linear-gradient(110deg, var(--tone-d4e6f1,#d4e6f1), var(--tone-ecf5fa,#ecf5fa));
    border: 1px solid var(--tone-c7dce9,#c7dce9);
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    min-height: 165px;
    margin-bottom: 20px;
}
.welcome-panel:after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid var(--tone-b2d2e5,#b2d2e5);
    border-radius: 50%;
    right: 20px;
    top: -100px;
    box-shadow:
        0 0 0 24px var(--tone-bdd7e630,#bdd7e630),
        0 0 0 50px var(--tone-bdd7e620,#bdd7e620),
        0 0 0 76px var(--tone-bdd7e615,#bdd7e615);
    pointer-events: none;
}
.welcome-panel h2 {
    font-size: 25px;
    color: var(--tone-386b8a,#386b8a);
    margin-bottom: 10px;
}
.welcome-panel p {
    color: var(--tone-7191a8,#7191a8);
    margin-bottom: 0;
    font-size: 12px;
}
.overview-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.metric {
    background: #fff;
    border: 1px solid var(--tone-d3e1eb,#d3e1eb);
    border-radius: 3px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: center;
}
.metric .metric-icon {
    background: var(--tone-eaf3f9,#eaf3f9);
    padding: 12px;
    color: var(--tone-5289ae,#5289ae);
    border: 1px solid var(--tone-d9e8f2,#d9e8f2);
}
.metric strong {
    display: block;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.6px;
}
.metric small {
    display: block;
    font-size: 10px;
    margin-bottom: 5px;
}
.quick-shortcuts {
    display: flex;
    flex-direction: column;
}
.quick-shortcuts button {
    display: flex;
    justify-content: space-between;
    background: none;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--tone-e5edf2,#e5edf2);
    padding: 14px 17px;
    text-align: left;
    font-size: 12px;
}
.quick-shortcuts button span {
    display: flex;
    align-items: center;
    gap: 12px;
}
.quick-shortcuts .icon {
    color: var(--tone-6f9ab7,#6f9ab7);
}
.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 145px;
    gap: 14px;
    padding: 15px 20px 0;
}
.chart-bar {
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}
.chart-bar meter {
    writing-mode: vertical-lr;
    direction: rtl;
    height: 90px;
    width: 20px;
}
.chart-bar small {
    font-size: 9px;
}
.chart-bar b {
    font-weight: 400;
    font-size: 10px;
    color: var(--tone-7b94a6,#7b94a6);
}
.mini-stats {
    display: flex;
    gap: 20px;
    padding: 15px 17px;
    border-top: 1px solid var(--tone-e2eaf0,#e2eaf0);
}
.mini-stats strong {
    display: block;
    font-weight: 500;
    font-size: 18px;
    color: var(--tone-4c7c99,#4c7c99);
}
.mini-stats small {
    font-size: 10px;
}
.route-grid {
    display: grid;
    grid-template-columns: 245px 1fr;
    gap: 18px;
}
.route-list button {
    justify-content: space-between;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--tone-dbe5ed,#dbe5ed);
    background: #fff;
    border-radius: 0;
    min-height: 55px;
    text-align: left;
}
.route-list button small {
    display: block;
    font-size: 10px;
    margin-top: 4px;
}
.route-list button.selected {
    background: var(--tone-e7f2fa,#e7f2fa);
    border-left: 3px solid var(--tone-438cb6,#438cb6);
}
.route-row-form {
    display: flex;
    gap: 6px;
    align-items: center;
}
.route-row-form input {
    width: 90px;
}
.route-row-form button {
    padding: 5px 8px;
}
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.settings-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--tone-bdcfdd,#bdcfdd);
    margin-bottom: 20px;
}
.settings-tabs button {
    background: var(--tone-e8f0f6,#e8f0f6);
    border: 1px solid var(--tone-ccdce8,#ccdce8);
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    padding: 10px 17px;
}
.settings-tabs button.active {
    background: white;
    color: var(--tone-276f9c,#276f9c);
}
.permission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 260px;
    overflow: auto;
    padding: 10px;
    background: var(--tone-f5f9fc,#f5f9fc);
    border: 1px solid var(--line);
    gap: 3px 15px;
}
.permission-grid label {
    font-size: 11px;
}
.choice-list {
    max-height: 300px;
    overflow: auto;
    border: 1px solid var(--line);
    padding: 10px;
}
.choice-list label {
    border-bottom: 1px solid var(--tone-e8eef3,#e8eef3);
    padding: 8px;
}
.sortable-list {
    padding: 0;
    list-style: none;
    max-height: 450px;
    overflow: auto;
}
.sortable-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    background: var(--tone-f9fbfd,#f9fbfd);
}
.sortable-list li span {
    flex: 1;
}
.sortable-list li button {
    font-size: 11px;
    min-height: 25px;
    padding: 3px 7px;
}
.tabular {
    font-variant-numeric: tabular-nums;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--tone-eff5fa,#eff5fa);
    padding: 15px;
    font-size: 14px;
    border: 1px solid var(--line);
}
.cart-total strong {
    font-size: 23px;
    font-weight: 500;
    color: var(--tone-2c729b,#2c729b);
}
.login-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tone-e5edf3,#e5edf3);
    padding: 30px;
}
.login-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 870px;
    min-height: 520px;
    background: #fff;
    border: 1px solid var(--tone-bfceda,#bfceda);
    box-shadow: 0 14px 70px var(--tone-244a6020,#244a6020);
    border-radius: 4px;
    overflow: hidden;
}
.login-story {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, var(--tone-b5d3e5,#b5d3e5), var(--tone-d9e9f2,#d9e9f2));
    padding: 37px 39px;
    display: flex;
    flex-direction: column;
}
.brand.large {
    font-size: 33px;
    margin-bottom: 38px;
}
.login-story .eyebrow {
    font-size: 9px;
    margin-bottom: 16px;
}
.login-story h1 {
    font-size: 31px;
    line-height: 1.4;
    color: var(--tone-2a6284,#2a6284);
    letter-spacing: -1px;
    z-index: 1;
}
.login-story p {
    font-size: 13px;
    color: var(--tone-5b83a0,#5b83a0);
    margin-top: 12px;
    z-index: 1;
}
.login-story small {
    margin-top: auto;
    font-size: 10px;
    color: var(--tone-7394ac,#7394ac);
    padding-top: 45px;
}
.story-lines {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid var(--tone-9ebfd450,#9ebfd450);
    right: -145px;
    bottom: 15px;
    border-radius: 50%;
    box-shadow:
        0 0 0 25px var(--tone-a9c8db20,#a9c8db20),
        0 0 0 50px var(--tone-a9c8db20,#a9c8db20),
        0 0 0 75px var(--tone-a9c8db20,#a9c8db20),
        0 0 0 100px var(--tone-a9c8db10,#a9c8db10);
}
.login-form {
    padding: 60px 45px 35px;
}
.login-form h2 {
    font-size: 25px;
    margin: 14px 0 8px;
}
.login-form p {
    font-size: 12px;
    margin-bottom: 27px;
}
.login-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.login-form input {
    height: 38px;
}
.login-form button {
    height: 39px;
    margin-top: 7px;
}
.secure-note {
    font-size: 10px;
    line-height: 1.7;
    color: var(--tone-91a3b0,#91a3b0);
    margin-top: 23px;
    padding-top: 18px;
    border-top: 1px solid var(--tone-e6edf3,#e6edf3);
}
.enrollment {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
}
.enrollment textarea {
    width: 100%;
    height: 160px;
    font: 11px monospace;
}
#print-sheet {
    display: none;
}
[hidden] {
    display: none !important;
}
@media (min-width: 1550px) {
    .account-modal {
        width: 1220px !important;
    }
    .account-summary {
        grid-template-columns: 100px 1fr 1.3fr 1.1fr;
    }
    .account-columns {
        grid-template-columns: 0.8fr 1.1fr 1.2fr;
    }
    .summary-tile {
        min-height: 104px;
        padding: 15px 20px;
    }
}
@media (max-width: 1100px) {
    .sidebar {
        width: 215px;
        min-width: 215px;
    }
    .tenant-name {
        display: none;
    }
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .account-summary {
        grid-template-columns: 70px 1fr 1fr 1fr;
        padding: 13px;
    }
    .summary-tile strong {
        font-size: 21px;
    }
    .account-columns {
        padding: 0 13px 15px;
        gap: 8px;
        grid-template-columns: 0.7fr 1fr 1.1fr;
    }
    .account-column .column-form {
        flex-wrap: wrap;
    }
    .account-column .data-table td {
        padding: 9px 7px;
    }
    .session-user {
        display: none;
    }
    #workspace {
        padding: 20px;
    }
    .route-grid {
        grid-template-columns: 200px 1fr;
    }
    .global-search {
        max-width: 50vw;
    }
}
@media (max-width: 780px) {
    .application {
        min-width: 0;
    }
    .topbar {
        gap: 10px;
        padding: 0 10px;
        height: 54px;
    }
    .top-divider,
    .tenant-name,
    .session-user,
    .global-search kbd {
        display: none;
    }
    .brand {
        font-size: 21px;
    }
    .global-search {
        max-width: none;
        width: auto;
        flex: 1;
    }
    .global-search input {
        font-size: 11px;
    }
    .sidebar {
        display: none;
        position: absolute;
        top: 54px;
        bottom: 26px;
        z-index: 50;
        box-shadow: 10px 0 20px var(--tone-23465c30,#23465c30);
        width: 250px;
    }
    .show-tree .sidebar {
        display: flex;
    }
    .breadcrumbs {
        padding: 0 15px;
    }
    #workspace {
        padding: 18px 12px;
    }
    .page-heading {
        align-items: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }
    .page-heading h1 {
        font-size: 23px;
    }
    .overview-metrics {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .metric {
        padding: 12px;
    }
    .overview-grid,
    .split,
    .route-grid {
        grid-template-columns: 1fr;
    }
    .route-list {
        display: flex;
        overflow: auto;
    }
    .route-list button {
        min-width: 150px;
    }
    .statusbar span:nth-child(2) {
        display: none;
    }
    .account-summary {
        grid-template-columns: 58px 1fr 1fr;
    }
    .account-summary .balance-tile {
        grid-column: span 3;
        min-height: auto;
        padding: 9px 14px;
        display: flex;
        align-items: center;
        gap: 14px;
    }
    .balance-tile .caption {
        margin: 0;
    }
    .balance-tile strong {
        font-size: 23px;
    }
    .balance-tile small {
        margin: 0;
    }
    .balance-tile .icon {
        display: none;
    }
    .summary-tile {
        min-height: 78px;
        padding: 11px;
    }
    .summary-tile strong {
        font-size: 20px;
    }
    .summary-tile .icon {
        display: none;
    }
    .account-columns {
        display: flex;
        flex-direction: column;
    }
    .account-column {
        width: 100%;
    }
    .notes-column {
        order: 3;
    }
    .account-head {
        padding: 15px;
    }
    .account-head h2 {
        font-size: 20px;
    }
    .account-head .meta {
        gap: 8px;
        flex-wrap: wrap;
        font-size: 10px;
    }
    .account-toolbar {
        padding: 4px 8px;
    }
    .account-toolbar > small {
        display: none;
    }
    .account-toolbar > button,
    .account-toolbar > details > summary {
        padding: 6px 10px;
    }
    .account-footer {
        font-size: 9px;
    }
    .modal {
        max-width: calc(100vw - 15px);
        max-height: calc(100dvh - 20px);
    }
    .modal-body {
        max-height: calc(100dvh - 60px);
        padding: 16px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-grid .span-2 {
        grid-column: span 1;
    }
    .filter-bar input[name="q"] {
        width: 180px;
    }
    .page-heading .actions button {
        font-size: 11px;
    }
    .login-shell {
        grid-template-columns: 1fr;
        width: 400px;
    }
    .login-story {
        display: none;
    }
    .login-form {
        padding: 35px 30px;
    }
    .permission-grid {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
@media print {
    body > * {
        display: none !important;
    }
    body.printing #print-sheet {
        display: block !important;
        color: #000;
        padding: 0;
        font-family: Arial, sans-serif;
        font-size: 10px;
    }
    #print-sheet h1 {
        font-size: 19px;
    }
    #print-sheet h2 {
        font-size: 15px;
    }
    .table-wrap {
        overflow: visible;
    }
    .data-table {
        font-size: 10px;
    }
    .data-table th,
    .data-table td {
        padding: 7px;
    }
    .account-columns {
        grid-template-columns: 0.6fr 1fr 1fr;
        padding: 0;
        gap: 8px;
    }
    .account-summary {
        padding: 10px 0;
    }
    .summary-tile strong {
        font-size: 17px;
    }
    .account-head,
    .account-toolbar,
    .account-footer {
        display: none;
    }
    #print-sheet .panel,
    #print-sheet .account-column {
        break-inside: auto;
    }
    .data-table tr {
        break-inside: avoid;
    }
    dialog {
        display: none !important;
    }
}
.inline-unit {
    display: inline !important;
    font-size: 12px !important;
    font-weight: 400;
    margin: 0 0 0 3px !important;
    color: var(--tone-7894a7,#7894a7) !important;
}
.metric .inline-unit {
    display: inline;
    font-size: 12px;
    margin: 0;
}
.small-strong {
    font-size: 14px !important;
}
.block {
    display: block;
    margin-top: 4px;
    font-size: 10px;
}
.without-milk {
    grid-template-columns: 0.8fr 2fr;
}
.cart-add-qty {
    width: 60px;
}
.choices {
    max-height: 55vh;
    overflow: auto;
}
pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 11px;
    padding: 12px;
    background: var(--tone-f2f6f9,#f2f6f9);
}
details > summary:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--tone-3386b4,#3386b4);
    outline-offset: 2px;
}
.setup-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #fff;
    width: 1000px;
    max-width: 100%;
    min-height: 620px;
    border: 1px solid var(--tone-bdd1e0,#bdd1e0);
    box-shadow: 0 18px 65px var(--tone-173d5920,#173d5920);
    border-radius: 5px;
    overflow: hidden;
}
.setup-side {
    padding: 35px;
    background: linear-gradient(145deg, var(--tone-c1dcea,#c1dcea), var(--tone-e1edf5,#e1edf5));
    display: flex;
    flex-direction: column;
}
.setup-side h1 {
    font-size: 34px;
    line-height: 1.35;
    color: var(--tone-3d6e8b,#3d6e8b);
}
.setup-side .brand {
    margin-bottom: 35px;
}
.setup-side ol {
    padding: 10px 0 25px;
    list-style: none;
    counter-reset: steps;
}
.setup-side li {
    padding: 14px 0;
    display: flex;
    gap: 13px;
    align-items: center;
    color: var(--tone-839cae,#839cae);
    font-size: 12px;
    counter-increment: steps;
}
.setup-side li:before {
    content: counter(steps);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tone-a8c5d8,#a8c5d8);
    border-radius: 50%;
    width: 26px;
    height: 26px;
}
.setup-side li.active {
    color: var(--tone-246b94,#246b94);
    font-weight: 600;
}
.setup-side li.active:before {
    background: var(--tone-2e7ba7,#2e7ba7);
    color: #fff;
    border-color: var(--tone-2e7ba7,#2e7ba7);
}
.setup-side small {
    margin-top: auto;
    line-height: 1.7;
}
.setup-main {
    padding: 40px;
    max-height: 90dvh;
    overflow: auto;
}
.setup-main h2 {
    font-size: 24px;
}
.setup-main form {
    display: grid;
    gap: 15px;
}
.setup-main .info {
    margin: 15px 0 0;
}
.setup-main .requirements {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.setup-main code {
    overflow-wrap: anywhere;
}
#totp-secret {
    font-size: 15px;
    letter-spacing: 1px;
    user-select: all;
    display: block;
    margin: 12px 0;
}
.setup-main .form-grid {
    gap: 15px;
}
.setup-main p {
    font-size: 12px;
}
.platform-notice {
    padding: 18px;
    background: var(--tone-edf5fa,#edf5fa);
    border: 1px solid var(--tone-cbdfed,#cbdfed);
    font-size: 12px;
    line-height: 1.8;
}
.license-key {
    width: 100%;
    font: 12px monospace;
    overflow-wrap: anywhere;
}
.platform-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.platform-summary .metric {
    padding: 13px;
}
.platform-summary strong {
    font-size: 22px;
}
.invite-url {
    width: 100%;
    font: 12px monospace;
    word-break: break-all;
    padding: 12px;
    background: var(--tone-f3f7fa,#f3f7fa);
    border: 1px solid var(--tone-d3e0e9,#d3e0e9);
    user-select: all;
}
.subscription-card {
    border: 1px solid var(--tone-d3e0e9,#d3e0e9);
    background: var(--tone-f7fbfd,#f7fbfd);
    padding: 17px;
    margin-bottom: 17px;
}
.subscription-card strong {
    font-size: 21px;
    font-weight: 500;
    display: block;
    margin: 7px 0;
}
@media (max-width: 780px) {
    .setup-shell {
        grid-template-columns: 1fr;
    }
    .setup-side {
        padding: 20px;
    }
    .setup-side h1,
    .setup-side small,
    .setup-side .eyebrow {
        display: none;
    }
    .setup-side .brand {
        margin: 0;
    }
    .setup-side ol {
        display: flex;
        gap: 10px;
        margin: 8px 0 0;
        padding: 0;
        flex-wrap: wrap;
    }
    .setup-side li {
        font-size: 10px;
        gap: 5px;
        padding: 5px 0;
    }
    .setup-side li:before {
        width: 21px;
        height: 21px;
    }
    .setup-main {
        padding: 25px;
        max-height: none;
    }
    .platform-summary {
        grid-template-columns: 1fr 1fr;
    }
    .application:has([data-platform]) .sidebar {
        display: flex;
        position: static;
        width: 180px;
        min-width: 180px;
    }
    .application:has([data-platform]) .tree-item {
        white-space: normal;
        font-size: 11px;
        text-align: left;
    }
}

.report-frame{display:block;width:100%;height:72vh;border:0;background:var(--tone-e9eef2,#e9eef2)}.summary-tile.balance-tile.is-debtor{background:#fff0f0;border-color:#d99b9b}.summary-tile.balance-tile.is-debtor strong,.summary-tile.balance-tile.is-debtor small{color:#b4262c}.summary-tile.balance-tile.is-creditor strong{color:#1b6550}a.button{display:inline-flex;gap:6px;align-items:center;text-decoration:none;border:1px solid var(--tone-9db9cc,#9db9cc);border-radius:3px;padding:7px 12px;color:inherit;background:#fff}a.button.primary{background:var(--tone-25749b,#25749b);color:#fff;border-color:var(--tone-25749b,#25749b)}

.period-warning{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 24px 0;padding:12px 16px;background:#fff5d8;border:1px solid #e5c768;border-radius:8px;color:#6b4b00}.period-warning[hidden]{display:none}.carry-record{display:inline-flex;flex-direction:column;margin-right:12px}.carry-record small{color:var(--muted)}.carry-choices{padding:8px 16px;border-left:3px solid var(--tone-e5ebf0,#e5ebf0);margin:12px 0}

.sortable-list .drag-handle { touch-action: none; cursor: grab; user-select: none; min-width: 42px; min-height: 42px; font-size: 24px; }
.sortable-list .dragging { outline: 2px solid var(--accent, var(--tone-177195,#177195)); background: var(--tone-e4f2fa,#e4f2fa); }

.database-browser{display:grid;grid-template-columns:230px minmax(0,1fr);border-top:1px solid var(--line)}#database-tables{padding:10px;border-right:1px solid var(--line);max-height:70vh;overflow:auto}#database-tables button{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;margin-bottom:5px;padding:10px;font-size:12px}#database-tables small{font-size:10px;color:var(--muted)}#database-tables button.active{background:var(--tone-e2f0f8,#e2f0f8);border-color:var(--tone-75a7be,#75a7be)}.database-content{padding:15px;min-width:0}.database-table th{max-width:190px;white-space:normal}.database-cell{max-width:230px;white-space:normal;overflow-wrap:anywhere;text-align:left;min-height:30px}.database-value{max-height:65vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:800px){.database-browser{grid-template-columns:1fr}#database-tables{max-height:200px;border-right:0;border-bottom:1px solid var(--line)}}

.site-announcement{display:flex;align-items:center;gap:14px;background:#fff6d9;border-bottom:1px solid #e7cf83;padding:12px 20px;color:#6a5015;font-size:13px}.site-announcement>b{flex-shrink:0}.site-announcement>span{white-space:pre-wrap;overflow-wrap:anywhere}.announcement-detail{white-space:pre-wrap;overflow-wrap:anywhere}.site-announcement[hidden]{display:none}

.operation-progress{margin:18px 0;padding:14px 16px;border:1px solid var(--line,var(--tone-d5e0e5,#d5e0e5));border-radius:6px;background:var(--tone-f4f8fa,#f4f8fa)}.operation-progress progress{display:block;width:100%;height:18px;margin:12px 0;accent-color:var(--tone-2783a0,#2783a0)}.operation-progress .operation-detail{font-size:12px;margin:0;color:var(--tone-526b77,#526b77)}.operation-progress .operation-percent{font-variant-numeric:tabular-nums}

.export-progress{max-width:580px;margin-top:18px}.export-progress progress{width:85%;height:22px;vertical-align:middle;accent-color:var(--tone-25799f,#25799f)}.export-progress strong{margin-left:12px}.invoice-live-total{margin-left:auto;font-size:18px}.invoice-cell{width:100%;min-width:110px;padding:7px 5px;border:1px solid transparent;background:transparent;font:inherit}.invoice-cell:focus{background:#fff;border-color:var(--tone-2c80a7,#2c80a7);outline:none}.invoice-cell.unsaved{border-bottom-color:#b27c22}.invoice-cell.save-error{border-color:#c13b42}.account-date-filter{justify-content:flex-end}

[hidden]{display:none!important}

html[data-theme="pink"]{--tone-163e5610:#6b1b4010;--tone-173d5920:#6b1c3c20;--tone-173d5940:#6b1c3c40;--tone-23445a20:#6b2a4620;--tone-23465c30:#6f2a4930;--tone-244a6020:#752c4e20;--tone-254b652e:#782c4d2e;--tone-2c546530:#7d365c30;--tone-3a8dbc20:#ce609420;--tone-9ebfd450:#dbaec250;--tone-a9c8db10:#e1b8cb10;--tone-a9c8db20:#e1b8cb20;--tone-bdd7e615:#ebcada15;--tone-bdd7e620:#ebcada20;--tone-bdd7e630:#ebcada30;--tone-f6fafce8:#fdf8fae8;--tone-177195:#c51e79;--tone-195e88:#a71f5d;--tone-1c5577:#932356;--tone-1e638c:#ad2564;--tone-216d98:#bd296f;--tone-245e83:#9f2c5f;--tone-246b94:#b72d6d;--tone-24739f:#c62d76;--tone-2477a5:#cd2d79;--tone-253f52:#5f2b41;--tone-25749b:#c52f7a;--tone-25799f:#cc3081;--tone-276f9c:#be3070;--tone-2783a0:#d03f95;--tone-287fae:#d23c85;--tone-2a6284:#a13365;--tone-2c729b:#be3675;--tone-2c80a7:#cd428a;--tone-2e5d7c:#943760;--tone-2e7ba7:#ca3e80;--tone-3386b4:#ce528d;--tone-347da8:#c64882;--tone-3483ad:#ca4f8b;--tone-3578a3:#c2437b;--tone-365f7b:#903f62;--tone-386b8a:#a54370;--tone-3a8dbc:#ce6094;--tone-3c627c:#904565;--tone-3d6e8b:#a54973;--tone-3e6b87:#9f4970;--tone-3f8bb7:#c96191;--tone-437d9e:#b75684;--tone-438cb6:#c66592;--tone-4a7190:#a35473;--tone-4c7c99:#ae5c81;--tone-526b77:#845b70;--tone-5289ae:#ba6b8d;--tone-536f84:#925c72;--tone-5a7a91:#9f657d;--tone-5b83a0:#ab6b86;--tone-5c7f97:#a46982;--tone-5d7d92:#9f6981;--tone-607b90:#9b697d;--tone-61849b:#a67087;--tone-638094:#9e6f83;--tone-688093:#9b7282;--tone-69869a:#a27689;--tone-6a91ac:#b67b94;--tone-6e8496:#9d7785;--tone-6e879a:#a17989;--tone-6e879b:#a27889;--tone-6f94ac:#b68097;--tone-6f9ab7:#c1839d;--tone-718ca0:#a87d8e;--tone-7191a8:#b17f94;--tone-7195af:#b88198;--tone-728997:#9f7c8c;--tone-728b9d:#a47d8d;--tone-728fa3:#ab7f92;--tone-7394ac:#b58197;--tone-748795:#9b7c89;--tone-75a7be:#ca8fad;--tone-7894a7:#af8497;--tone-7992a5:#ac8494;--tone-7a8c99:#9f828e;--tone-7a9cb4:#bd899f;--tone-7b93a4:#ab8595;--tone-7b94a6:#ad8696;--tone-7b95a8:#af8697;--tone-7d94a5:#ac8796;--tone-7e9eb3:#bc8da1;--tone-7f919f:#a58792;--tone-8396a4:#aa8b98;--tone-839cae:#b58e9e;--tone-8a9eac:#b293a0;--tone-8b9ca8:#ae929e;--tone-8bb5d0:#d89fb9;--tone-8eb6cf:#d7a2ba;--tone-90a1ad:#b297a3;--tone-91a3b0:#b699a5;--tone-93a2ae:#b399a3;--tone-9aaab5:#baa1ac;--tone-9db9cc:#d3aabc;--tone-a4c1d6:#dcb2c3;--tone-a7c1d3:#d9b3c3;--tone-a7c2d4:#dab4c5;--tone-a8c5d8:#deb6c8;--tone-aec6d6:#dcb9c8;--tone-b2d2e5:#ebc3d5;--tone-b5d3e5:#eac4d6;--tone-b6cfdf:#e4c2d1;--tone-bbccd8:#ddc3ce;--tone-bdcedb:#dfc5cf;--tone-bdcfdd:#e1c5d0;--tone-bdd1e0:#e4c6d3;--tone-bed6e6:#ebcad8;--tone-bfceda:#dec6cf;--tone-bfd4e3:#e7c9d6;--tone-c1dcea:#efcfdf;--tone-c2d0da:#dec8d1;--tone-c2d1dc:#e0c9d2;--tone-c5d8e5:#e9ceda;--tone-c5dce9:#eed1de;--tone-c6deeb:#efd3e1;--tone-c7d7e3:#e7ced8;--tone-c7dce9:#edd2de;--tone-c8deed:#f1d3e0;--tone-cbdfed:#f0d5e1;--tone-ccdce8:#ebd4dd;--tone-cedeea:#edd6df;--tone-d0dfea:#edd7e0;--tone-d2e0eb:#eed9e1;--tone-d2e2ee:#f1dae3;--tone-d3dfe7:#ead9e0;--tone-d3e0e9:#ecd9e1;--tone-d3e1eb:#eedae2;--tone-d3e1ec:#efdae2;--tone-d4e0e9:#ecdae1;--tone-d4e5f0:#f3dde7;--tone-d4e6f1:#f4dde8;--tone-d5e0e5:#e8dbe2;--tone-d5e3ed:#f0dce4;--tone-d6e2ec:#efdce3;--tone-d7e3ec:#efdde4;--tone-d8e7f0:#f3e0e9;--tone-d9e8f2:#f5e1e9;--tone-d9e9f2:#f5e1eb;--tone-dae4eb:#eedfe5;--tone-dbe5ed:#efe0e6;--tone-dbe8f2:#f4e1e9;--tone-dce5ec:#eee0e6;--tone-dce6ee:#f0e1e7;--tone-dcebf4:#f6e4ec;--tone-dee9f0:#f2e3ea;--tone-dfedf6:#f8e6ee;--tone-e0ecf4:#f6e6ed;--tone-e1e8ee:#f0e4e8;--tone-e1e9ef:#f1e5ea;--tone-e1e9f0:#f2e5e9;--tone-e1edf5:#f7e7ee;--tone-e2eaf0:#f2e6eb;--tone-e2f0f8:#faeaf1;--tone-e3edf4:#f6e8ee;--tone-e4ebf0:#f2e7ec;--tone-e4f2fa:#fbecf3;--tone-e5ebf0:#f2e8eb;--tone-e5edf2:#f4e9ee;--tone-e5edf3:#f5e9ee;--tone-e6edf3:#f5e9ed;--tone-e6f0f6:#f8ebf1;--tone-e6f0f7:#f9ebf1;--tone-e7f1f7:#f9ecf2;--tone-e7f2fa:#fbedf3;--tone-e8eef3:#f4ebee;--tone-e8f0f6:#f8ecf1;--tone-e8f1f7:#f9edf2;--tone-e8f3fa:#fbeef4;--tone-e9eef2:#f3ebee;--tone-e9f1f7:#f8edf2;--tone-eaf2f7:#f9eef3;--tone-eaf3f9:#faeff4;--tone-ecf5fa:#fbf1f6;--tone-edf2f5:#f6eff3;--tone-edf3f7:#f8f0f4;--tone-edf5fa:#fbf1f6;--tone-edf6fc:#fdf2f7;--tone-eef4f8:#f9f1f5;--tone-eef5fa:#fbf2f6;--tone-eff5fa:#fbf2f5;--tone-f0f5f8:#f9f3f6;--tone-f2f6f9:#faf4f6;--tone-f3f7fa:#fbf5f7;--tone-f4f7fa:#fbf5f7;--tone-f4f8fa:#fbf6f9;--tone-f5f9fc:#fdf7f9;--tone-f6f9fb:#fcf7f9;--tone-f7fbfd:#fef9fb;--tone-f8fafc:#fcf9fa;--tone-f8fbfd:#fdfafb;--tone-f9fbfd:#fdfafb;--tone-fafcfd:#fdfbfc}

html[data-theme="green"]{--tone-163e5610:#11432c10;--tone-173d5920:#11422e20;--tone-173d5940:#11422e40;--tone-23445a20:#1c493520;--tone-23465c30:#1c4b3630;--tone-244a6020:#1e4f3820;--tone-254b652e:#1d503b2e;--tone-2c546530:#27583e30;--tone-3a8dbc20:#2e976620;--tone-9ebfd450:#84c8aa50;--tone-a9c8db10:#91d1b410;--tone-a9c8db20:#91d1b420;--tone-bdd7e615:#aadfc615;--tone-bdd7e620:#aadfc620;--tone-bdd7e630:#aadfc630;--tone-f6fafce8:#f4fbf7e8;--tone-177195:#137941;--tone-195e88:#136640;--tone-1c5577:#165c3b;--tone-1e638c:#176b44;--tone-216d98:#19754a;--tone-245e83:#1c6545;--tone-246b94:#1c734a;--tone-24739f:#1c7c4e;--tone-2477a5:#1c8050;--tone-253f52:#1e4334;--tone-25749b:#1e7c4d;--tone-25799f:#1e814d;--tone-276f9c:#1e784f;--tone-2783a0:#228b4c;--tone-287fae:#1f8856;--tone-2a6284:#216948;--tone-2c729b:#237a52;--tone-2c80a7:#248855;--tone-2e5d7c:#256348;--tone-2e7ba7:#248457;--tone-3386b4:#298f5e;--tone-347da8:#29865b;--tone-3483ad:#2a8c5c;--tone-3578a3:#2a815a;--tone-365f7b:#2c654d;--tone-386b8a:#2e7253;--tone-3a8dbc:#2e9766;--tone-3c627c:#326851;--tone-3d6e8b:#337556;--tone-3e6b87:#347156;--tone-3f8bb7:#339467;--tone-437d9e:#388461;--tone-438cb6:#379569;--tone-4a7190:#3e7861;--tone-4c7c99:#418365;--tone-526b77:#4c6f5d;--tone-5289ae:#449170;--tone-536f84:#497463;--tone-5a7a91:#4f806c;--tone-5b83a0:#4e8a71;--tone-5c7f97:#51856f;--tone-5d7d92:#53836e;--tone-607b90:#56806f;--tone-61849b:#568a73;--tone-638094:#598573;--tone-688093:#5e8576;--tone-69869a:#5e8c78;--tone-6a91ac:#55997c;--tone-6e8496:#63897b;--tone-6e879a:#628d7b;--tone-6e879b:#618d7c;--tone-6f94ac:#5a9c7f;--tone-6f9ab7:#52a481;--tone-718ca0:#62927f;--tone-7191a8:#5e9980;--tone-7195af:#599e81;--tone-728997:#698e7d;--tone-728b9d:#65917f;--tone-728fa3:#629680;--tone-7394ac:#5d9c82;--tone-748795:#6a8c7e;--tone-75a7be:#59b183;--tone-7894a7:#669b84;--tone-7992a5:#679985;--tone-7a8c99:#6f9183;--tone-7a9cb4:#60a588;--tone-7b93a4:#6b9986;--tone-7b94a6:#6a9b87;--tone-7b95a8:#699c87;--tone-7d94a5:#6d9a88;--tone-7e9eb3:#68a68b;--tone-7f919f:#739688;--tone-8396a4:#779b8c;--tone-839cae:#72a38e;--tone-8a9eac:#7ea393;--tone-8b9ca8:#81a093;--tone-8bb5d0:#65c198;--tone-8eb6cf:#6dc19b;--tone-90a1ad:#86a698;--tone-91a3b0:#86a89a;--tone-93a2ae:#89a69b;--tone-9aaab5:#91aea2;--tone-9db9cc:#88c1a9;--tone-a4c1d6:#8acab0;--tone-a7c1d3:#93c9b2;--tone-a7c2d4:#92cab2;--tone-a8c5d8:#91ceb3;--tone-aec6d6:#9ccdb8;--tone-b2d2e5:#97dcbc;--tone-b5d3e5:#9cdcbf;--tone-b6cfdf:#a3d7c0;--tone-bbccd8:#afd1c3;--tone-bdcedb:#afd4c5;--tone-bdcfdd:#aed5c6;--tone-bdd1e0:#acd8c6;--tone-bed6e6:#a9dec7;--tone-bfceda:#b3d3c7;--tone-bfd4e3:#addbc8;--tone-c1dcea:#aee4c9;--tone-c2d0da:#b8d4c9;--tone-c2d1dc:#b7d6c9;--tone-c5d8e5:#b6decd;--tone-c5dce9:#b4e3cd;--tone-c6deeb:#b5e5ce;--tone-c7d7e3:#badcce;--tone-c7dce9:#b7e3cf;--tone-c8deed:#b2e6d0;--tone-cbdfed:#b8e6d3;--tone-ccdce8:#bee2d3;--tone-cedeea:#bfe4d5;--tone-d0dfea:#c3e4d7;--tone-d2e0eb:#c5e5d9;--tone-d2e2ee:#c2e8d9;--tone-d3dfe7:#cbe3d8;--tone-d3e0e9:#c9e4d9;--tone-d3e1eb:#c8e6d9;--tone-d3e1ec:#c6e6d9;--tone-d4e0e9:#cae4da;--tone-d4e5f0:#c5ebda;--tone-d4e6f1:#c5ecda;--tone-d5e0e5:#d1e2d9;--tone-d5e3ed:#c9e8db;--tone-d6e2ec:#cae7dc;--tone-d7e3ec:#cde7dd;--tone-d8e7f0:#cdecde;--tone-d9e8f2:#cceddf;--tone-d9e9f2:#cdeede;--tone-dae4eb:#d3e7df;--tone-dbe5ed:#d2e9e0;--tone-dbe8f2:#ceede1;--tone-dce5ec:#d5e8e0;--tone-dce6ee:#d3eae1;--tone-dcebf4:#d0f0e1;--tone-dee9f0:#d6ece3;--tone-dfedf6:#d2f2e4;--tone-e0ecf4:#d6f0e5;--tone-e1e8ee:#dbebe5;--tone-e1e9ef:#dbece5;--tone-e1e9f0:#d9ece5;--tone-e1edf5:#d6f1e6;--tone-e2eaf0:#dcede6;--tone-e2f0f8:#d6f5e6;--tone-e3edf4:#daf1e7;--tone-e4ebf0:#dfede7;--tone-e4f2fa:#d6f7e8;--tone-e5ebf0:#e0ede8;--tone-e5edf2:#e0efe8;--tone-e5edf3:#def0e9;--tone-e6edf3:#dff0ea;--tone-e6f0f6:#def3ea;--tone-e6f0f7:#dcf4ea;--tone-e7f1f7:#dff4eb;--tone-e7f2fa:#d9f7eb;--tone-e8eef3:#e3f0eb;--tone-e8f0f6:#e1f3ec;--tone-e8f1f7:#e0f4ec;--tone-e8f3fa:#ddf8ec;--tone-e9eef2:#e5f0ec;--tone-e9f1f7:#e1f4ed;--tone-eaf2f7:#e4f5ed;--tone-eaf3f9:#e1f7ed;--tone-ecf5fa:#e5f8ef;--tone-edf2f5:#eaf3ef;--tone-edf3f7:#e9f5f0;--tone-edf5fa:#e6f8f0;--tone-edf6fc:#e2faf0;--tone-eef4f8:#e9f6f1;--tone-eef5fa:#e7f8f1;--tone-eff5fa:#e8f8f2;--tone-f0f5f8:#edf7f2;--tone-f2f6f9:#eff7f4;--tone-f3f7fa:#eff9f5;--tone-f4f7fa:#f1f8f6;--tone-f4f8fa:#f2f9f5;--tone-f5f9fc:#f1fbf7;--tone-f6f9fb:#f4faf7;--tone-f7fbfd:#f4fcf8;--tone-f8fafc:#f6fbf9;--tone-f8fbfd:#f5fcf9;--tone-f9fbfd:#f6fcfa;--tone-fafcfd:#f9fdfb}

html[data-theme="orange"]{--tone-163e5610:#57311610;--tone-173d5920:#54321620;--tone-173d5940:#54321640;--tone-23445a20:#593a2220;--tone-23465c30:#5c3b2330;--tone-244a6020:#623d2520;--tone-254b652e:#6240242e;--tone-2c546530:#6f453030;--tone-3a8dbc20:#c2713c20;--tone-9ebfd450:#d4b59e50;--tone-a9c8db10:#dbbeaa10;--tone-a9c8db20:#dbbeaa20;--tone-bdd7e615:#e7cfbf15;--tone-bdd7e620:#e7cfbf20;--tone-bdd7e630:#e7cfbf30;--tone-f6fafce8:#fcf9f7e8;--tone-177195:#af4a1b;--tone-195e88:#894719;--tone-1c5577:#79421c;--tone-1e638c:#8f4c1f;--tone-216d98:#9e5322;--tone-245e83:#824c24;--tone-246b94:#985325;--tone-24739f:#a65826;--tone-2477a5:#ac5a26;--tone-253f52:#4f3724;--tone-25749b:#a85728;--tone-25799f:#b15829;--tone-276f9c:#9c5827;--tone-2783a0:#c55930;--tone-287fae:#b7602a;--tone-2a6284:#85502a;--tone-2c729b:#9e5b2d;--tone-2c80a7:#b86030;--tone-2e5d7c:#7a4e2d;--tone-2e7ba7:#ac612f;--tone-3386b4:#bb6935;--tone-347da8:#ab6535;--tone-3483ad:#b66737;--tone-3578a3:#a26335;--tone-365f7b:#785335;--tone-386b8a:#8b5a38;--tone-3a8dbc:#c2713c;--tone-3c627c:#7a563b;--tone-3d6e8b:#8d5e3e;--tone-3e6b87:#875d3e;--tone-3f8bb7:#bb7241;--tone-437d9e:#a26a45;--tone-438cb6:#ba7445;--tone-4a7190:#896646;--tone-4c7c99:#9a6c4d;--tone-526b77:#7b6255;--tone-5289ae:#ac7850;--tone-536f84:#806751;--tone-5a7a91:#8e7058;--tone-5b83a0:#9c7759;--tone-5c7f97:#95745b;--tone-5d7d92:#91735c;--tone-607b90:#8c735d;--tone-61849b:#9a7960;--tone-638094:#927762;--tone-688093:#8f7965;--tone-69869a:#997d67;--tone-6a91ac:#aa8567;--tone-6e8496:#927e6a;--tone-6e879a:#987f6a;--tone-6e879b:#988069;--tone-6f94ac:#ab886e;--tone-6f9ab7:#b68c6d;--tone-718ca0:#9e846e;--tone-7191a8:#a6876e;--tone-7195af:#ad8a6d;--tone-728997:#978272;--tone-728b9d:#9b8370;--tone-728fa3:#a28670;--tone-7394ac:#aa8a6f;--tone-748795:#938172;--tone-75a7be:#c3977f;--tone-7894a7:#a68b76;--tone-7992a5:#a38a75;--tone-7a8c99:#988678;--tone-7a9cb4:#b29177;--tone-7b93a4:#a38c79;--tone-7b94a6:#a48c79;--tone-7b95a8:#a68d78;--tone-7d94a5:#a38d7a;--tone-7e9eb3:#b2947d;--tone-7f919f:#9d8c7c;--tone-8396a4:#a29081;--tone-839cae:#ac9480;--tone-8a9eac:#ab9888;--tone-8b9ca8:#a7978a;--tone-8bb5d0:#d0a88a;--tone-8eb6cf:#cfa98e;--tone-90a1ad:#ac9c8f;--tone-91a3b0:#af9d8f;--tone-93a2ae:#ac9e90;--tone-9aaab5:#b4a599;--tone-9db9cc:#cbb09b;--tone-a4c1d6:#d4b8a0;--tone-a7c1d3:#d2b9a5;--tone-a7c2d4:#d3b9a6;--tone-a8c5d8:#d8bca7;--tone-aec6d6:#d5bead;--tone-b2d2e5:#e5c8b3;--tone-b5d3e5:#e5c9b6;--tone-b6cfdf:#dfc7b6;--tone-bbccd8:#d7c7b9;--tone-bdcedb:#d9c9ba;--tone-bdcfdd:#dbcaba;--tone-bdd1e0:#dfcbba;--tone-bed6e6:#e6cebd;--tone-bfceda:#d8cabc;--tone-bfd4e3:#e2cdbd;--tone-c1dcea:#ebd3c5;--tone-c2d0da:#d9ccc1;--tone-c2d1dc:#dbccc0;--tone-c5d8e5:#e4d2c4;--tone-c5dce9:#ead5c7;--tone-c6deeb:#ecd6c9;--tone-c7d7e3:#e2d2c5;--tone-c7dce9:#e9d5c7;--tone-c8deed:#ecd7c6;--tone-cbdfed:#ecd9c9;--tone-ccdce8:#e7d7ca;--tone-cedeea:#e9d9cb;--tone-d0dfea:#e9dace;--tone-d2e0eb:#eadccf;--tone-d2e2ee:#edddcf;--tone-d3dfe7:#e7dbd2;--tone-d3e0e9:#e8dcd2;--tone-d3e1eb:#eaddd1;--tone-d3e1ec:#ebddd0;--tone-d4e0e9:#e8dcd2;--tone-d4e5f0:#f0e0d4;--tone-d4e6f1:#f1e0d4;--tone-d5e0e5:#e6dcd7;--tone-d5e3ed:#ecdfd3;--tone-d6e2ec:#ebded3;--tone-d7e3ec:#ebdfd5;--tone-d8e7f0:#f0e2d9;--tone-d9e8f2:#f2e3d8;--tone-d9e9f2:#f2e4da;--tone-dae4eb:#ebe1d9;--tone-dbe5ed:#ece2d9;--tone-dbe8f2:#f1e4d8;--tone-dce5ec:#ebe2da;--tone-dce6ee:#ede3da;--tone-dcebf4:#f4e6dd;--tone-dee9f0:#f0e6de;--tone-dfedf6:#f6e9df;--tone-e0ecf4:#f4e8df;--tone-e1e8ee:#ede6df;--tone-e1e9ef:#eee7e0;--tone-e1e9f0:#efe7df;--tone-e1edf5:#f5e9e0;--tone-e2eaf0:#efe8e1;--tone-e2f0f8:#f8ece3;--tone-e3edf4:#f4eae2;--tone-e4ebf0:#f0e9e3;--tone-e4f2fa:#faeee5;--tone-e5ebf0:#efe9e4;--tone-e5edf2:#f2eae5;--tone-e5edf3:#f2ebe4;--tone-e6edf3:#f2ebe4;--tone-e6f0f6:#f6ede6;--tone-e6f0f7:#f7ede5;--tone-e7f1f7:#f7eee7;--tone-e7f2fa:#faefe5;--tone-e8eef3:#f2ece7;--tone-e8f0f6:#f5eee7;--tone-e8f1f7:#f7eee8;--tone-e8f3fa:#faefe8;--tone-e9eef2:#f1ede8;--tone-e9f1f7:#f7efe8;--tone-eaf2f7:#f7efea;--tone-eaf3f9:#f9f0e9;--tone-ecf5fa:#faf2ed;--tone-edf2f5:#f5f0ed;--tone-edf3f7:#f7f1ed;--tone-edf5fa:#faf2ed;--tone-edf6fc:#fcf3ec;--tone-eef4f8:#f8f2ee;--tone-eef5fa:#faf3ed;--tone-eff5fa:#f9f3ed;--tone-f0f5f8:#f8f3f0;--tone-f2f6f9:#f9f5f1;--tone-f3f7fa:#faf6f2;--tone-f4f7fa:#f9f6f3;--tone-f4f8fa:#faf7f5;--tone-f5f9fc:#fcf8f4;--tone-f6f9fb:#fbf8f6;--tone-f7fbfd:#fdfaf8;--tone-f8fafc:#fcf9f7;--tone-f8fbfd:#fdfaf8;--tone-f9fbfd:#fdfaf8;--tone-fafcfd:#fdfbfa}

html[data-theme="purple"]{--tone-163e5610:#4d218210;--tone-173d5920:#50207d20;--tone-173d5940:#50207d40;--tone-23445a20:#532f7920;--tone-23465c30:#54307e30;--tone-244a6020:#58328620;--tone-254b652e:#5c32882e;--tone-2c546530:#5d3e8f30;--tone-3a8dbc20:#9d71d320;--tone-9ebfd450:#c7b2dd50;--tone-a9c8db10:#cebce310;--tone-a9c8db20:#cebce320;--tone-bdd7e615:#dbceec15;--tone-bdd7e620:#dbceec20;--tone-bdd7e630:#dbceec30;--tone-f6fafce8:#faf9fde8;--tone-177195:#7f44e2;--tone-195e88:#7627d3;--tone-1c5577:#6a2bb5;--tone-1e638c:#7b31d3;--tone-216d98:#8341d6;--tone-245e83:#7534be;--tone-246b94:#8141d1;--tone-24739f:#884bd6;--tone-2477a5:#8c50d9;--tone-253f52:#4c2f68;--tone-25749b:#864ed5;--tone-25799f:#8854d7;--tone-276f9c:#8746d1;--tone-2783a0:#8963d9;--tone-287fae:#925bd9;--tone-2a6284:#783cbd;--tone-2c729b:#874ecd;--tone-2c80a7:#8e5fd5;--tone-2e5d7c:#713ea8;--tone-2e7ba7:#8f59d1;--tone-3386b4:#9767d4;--tone-347da8:#905dcd;--tone-3483ad:#9364d1;--tone-3578a3:#8d58c9;--tone-365f7b:#71469f;--tone-386b8a:#7e4db7;--tone-3a8dbc:#9d71d3;--tone-3c627c:#734c9c;--tone-3d6e8b:#7f53b4;--tone-3e6b87:#7d51af;--tone-3f8bb7:#9a70ce;--tone-437d9e:#8c64bd;--tone-438cb6:#9a72cb;--tone-4a7190:#855baa;--tone-4c7c99:#8a66b3;--tone-526b77:#715f8b;--tone-5289ae:#9874be;--tone-536f84:#7c6098;--tone-5a7a91:#876aa3;--tone-5b83a0:#9072af;--tone-5c7f97:#8b6fa7;--tone-5d7d92:#886ea3;--tone-607b90:#876e9e;--tone-61849b:#8e75a9;--tone-638094:#8a73a1;--tone-688093:#8a759d;--tone-69869a:#8f7aa5;--tone-6a91ac:#9c81b9;--tone-6e8496:#8d7a9e;--tone-6e879a:#907ca4;--tone-6e879b:#917ca4;--tone-6f94ac:#9e85b9;--tone-6f9ab7:#a689c4;--tone-718ca0:#9580aa;--tone-7191a8:#9b83b3;--tone-7195af:#a086bb;--tone-728997:#8f7fa1;--tone-728b9d:#9380a7;--tone-728fa3:#9883ae;--tone-7394ac:#9f86b7;--tone-748795:#8e7e9d;--tone-75a7be:#ac96ce;--tone-7894a7:#9c88b2;--tone-7992a5:#9b87ae;--tone-7a8c99:#9284a1;--tone-7a9cb4:#a68ebf;--tone-7b93a4:#9b89ad;--tone-7b94a6:#9c89b0;--tone-7b95a8:#9e8ab2;--tone-7d94a5:#9c8aae;--tone-7e9eb3:#a791be;--tone-7f919f:#9889a6;--tone-8396a4:#9d8eac;--tone-839cae:#a491b7;--tone-8a9eac:#a595b4;--tone-8b9ca8:#a295af;--tone-8bb5d0:#bfa5db;--tone-8eb6cf:#bfa7da;--tone-90a1ad:#a79ab4;--tone-91a3b0:#a99bb7;--tone-93a2ae:#a89bb4;--tone-9aaab5:#afa3bc;--tone-9db9cc:#c1aed5;--tone-a4c1d6:#cab5de;--tone-a7c1d3:#c8b6db;--tone-a7c2d4:#c9b7dc;--tone-a8c5d8:#ccbae0;--tone-aec6d6:#ccbcdd;--tone-b2d2e5:#d8c7ec;--tone-b5d3e5:#d8c8ec;--tone-b6cfdf:#d5c5e6;--tone-bbccd8:#d1c5de;--tone-bdcedb:#d4c7e0;--tone-bdcfdd:#d5c7e2;--tone-bdd1e0:#d7c9e5;--tone-bed6e6:#dccdec;--tone-bfceda:#d4c7df;--tone-bfd4e3:#dacce8;--tone-c1dcea:#dfd3f0;--tone-c2d0da:#d4cadf;--tone-c2d1dc:#d6cbe1;--tone-c5d8e5:#ddd0ea;--tone-c5dce9:#e0d4ef;--tone-c6deeb:#e1d6f0;--tone-c7d7e3:#dcd0e8;--tone-c7dce9:#e0d4ee;--tone-c8deed:#e3d6f1;--tone-cbdfed:#e4d7f1;--tone-ccdce8:#e1d5ec;--tone-cedeea:#e3d7ee;--tone-d0dfea:#e4d9ee;--tone-d2e0eb:#e5daef;--tone-d2e2ee:#e7dcf2;--tone-d3dfe7:#e2daeb;--tone-d3e0e9:#e4dbed;--tone-d3e1eb:#e5dbef;--tone-d3e1ec:#e6dbef;--tone-d4e0e9:#e4dbed;--tone-d4e5f0:#e9dff4;--tone-d4e6f1:#e9dff5;--tone-d5e0e5:#e1dce9;--tone-d5e3ed:#e7ddf1;--tone-d6e2ec:#e7ddef;--tone-d7e3ec:#e7deef;--tone-d8e7f0:#eae1f4;--tone-d9e8f2:#ebe2f5;--tone-d9e9f2:#ebe3f6;--tone-dae4eb:#e7e0ee;--tone-dbe5ed:#e9e1f0;--tone-dbe8f2:#ece3f5;--tone-dce5ec:#e8e1ef;--tone-dce6ee:#eae2f1;--tone-dcebf4:#eee6f7;--tone-dee9f0:#ebe5f3;--tone-dfedf6:#f0e8f8;--tone-e0ecf4:#efe7f7;--tone-e1e8ee:#ebe5f0;--tone-e1e9ef:#ece6f1;--tone-e1e9f0:#ece5f2;--tone-e1edf5:#f0e8f7;--tone-e2eaf0:#ede7f2;--tone-e2f0f8:#f2ebfa;--tone-e3edf4:#f0e9f6;--tone-e4ebf0:#ede8f2;--tone-e4f2fa:#f4edfc;--tone-e5ebf0:#ede8f2;--tone-e5edf2:#efeaf4;--tone-e5edf3:#f0eaf5;--tone-e6edf3:#f0eaf5;--tone-e6f0f6:#f2ecf8;--tone-e6f0f7:#f2ecf9;--tone-e7f1f7:#f3edf9;--tone-e7f2fa:#f5eefb;--tone-e8eef3:#f0ebf5;--tone-e8f0f6:#f2edf8;--tone-e8f1f7:#f3eef9;--tone-e8f3fa:#f5effc;--tone-e9eef2:#f0ecf4;--tone-e9f1f7:#f3eef9;--tone-eaf2f7:#f4eff9;--tone-eaf3f9:#f5f0fb;--tone-ecf5fa:#f6f2fc;--tone-edf2f5:#f3f0f7;--tone-edf3f7:#f4f1f9;--tone-edf5fa:#f6f2fb;--tone-edf6fc:#f8f3fd;--tone-eef4f8:#f5f2fa;--tone-eef5fa:#f7f2fb;--tone-eff5fa:#f7f2fb;--tone-f0f5f8:#f6f3f9;--tone-f2f6f9:#f7f4fa;--tone-f3f7fa:#f8f5fb;--tone-f4f7fa:#f9f6fb;--tone-f4f8fa:#f8f7fb;--tone-f5f9fc:#faf7fd;--tone-f6f9fb:#faf8fc;--tone-f7fbfd:#fbfafe;--tone-f8fafc:#fbf9fc;--tone-f8fbfd:#fcfafe;--tone-f9fbfd:#fcfafd;--tone-fafcfd:#fcfbfe}

.theme-options{display:flex;gap:14px;flex-wrap:wrap}.theme-choice{display:flex;flex-direction:row;align-items:center;gap:8px;cursor:pointer}.theme-swatch{width:24px;height:24px;border-radius:50%;border:1px solid #fff;box-shadow:0 0 0 1px #c9d4da}.theme-blue{background:#24739f}.theme-pink{background:#a34d7d}.theme-green{background:#37795c}.theme-orange{background:#a36426}.theme-purple{background:#7656a5}.support-message{border-bottom:1px solid var(--line);padding:16px 4px}.support-message header{display:flex;justify-content:space-between;gap:12px;color:var(--muted)}.support-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.support-unread{color:var(--blue-dark)}.support-notification{color:var(--blue-dark);border-color:var(--blue);font-weight:600}.dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:14px}.dashboard-bottom{display:grid;grid-template-columns:1fr 1fr;gap:18px}.monthly-chart{overflow:auto;padding:12px 10px 0}.monthly-chart svg{width:100%;min-width:680px;display:block}.monthly-chart text{font:11px "Segoe UI",Arial,sans-serif;fill:var(--muted)}.chart-gridline{stroke:var(--line);stroke-width:1}.milk-bar{fill:var(--blue)}.dairy-bar{fill:#8baec1}.chart-legend{display:flex;gap:22px;justify-content:center;padding:9px 16px 16px;font-size:12px}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{width:12px;height:12px;display:inline-block}.milk-key{background:var(--blue)}.dairy-key{background:#8baec1}.summary-chart-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(60px,1fr) auto;align-items:center;gap:12px;padding:10px 0}.summary-chart-row meter{width:100%;height:16px;accent-color:var(--blue)}.summary-chart-row strong{font-weight:600;white-space:nowrap}.dashboard-totals{margin-bottom:0}.dashboard-totals div{display:flex;justify-content:space-between;padding:9px 0;border-top:1px solid var(--line)}.dashboard-totals dd{margin:0;font-weight:600}@media(max-width:1050px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-bottom{grid-template-columns:1fr}}

.support-ticket-toolbar{display:flex;align-items:center;justify-content:space-between;padding:8px 0 16px}.support-timeline{border-left:2px solid var(--blue-light);margin:2px 0 18px 8px;padding-left:20px;max-height:55vh;overflow:auto}.support-timeline .support-message{position:relative;padding:8px 8px 18px;margin-bottom:8px}.support-timeline .support-message:before{content:"";position:absolute;left:-26px;top:14px;width:10px;height:10px;border:2px solid var(--blue);border-radius:50%;background:var(--panel)}.summary-chart-row meter::-webkit-meter-optimum-value{background:var(--blue)}.summary-chart-row meter::-moz-meter-bar{background:var(--blue)}.dairy-bar{fill:color-mix(in srgb,var(--blue) 52%,white)}.dairy-key{background:color-mix(in srgb,var(--blue) 52%,white)}

.dashboard-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dashboard-option-items{display:grid;gap:12px}.dashboard-option-items label,.dashboard-group-label,.permission-actions label{display:flex;align-items:flex-start;gap:9px}.dashboard-option-items input,.dashboard-group-label input,.permission-tree input{width:16px!important;height:16px;flex:0 0 16px;margin:3px 0}.dashboard-option-items small{display:block;color:var(--muted);margin-top:3px}.dashboard-group-label{align-items:center}.dashboard-category{margin-bottom:24px}.dashboard-category>h3{color:var(--blue);margin:14px 0 10px}.dashboard-widget-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.dashboard-widget{margin:0;min-width:0}.dashboard-wide{grid-column:span 2}.dashboard-full{grid-column:1/-1}.dashboard-widget h4{margin:0}.dashboard-metric-value{font-size:25px;color:var(--blue);display:block}.dashboard-metric-value small{font-size:13px;font-weight:normal}.dashboard-list-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}.dashboard-list-row small{display:block}.dashboard-progress-row{display:grid;grid-template-columns:1fr auto;gap:6px;padding:10px 0}.dashboard-progress-row progress{width:100%}.permission-copy{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:12px 0}.permission-copy label{min-width:240px}.permission-tree{display:grid;gap:8px}.permission-page{border:1px solid var(--line);border-radius:4px}.permission-page summary{display:flex;justify-content:space-between;background:var(--blue-light);padding:11px;cursor:pointer}.permission-page summary label{display:flex;gap:9px;align-items:center}.permission-page summary small{color:var(--muted)}.permission-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px}.permission-group-title{margin:15px 0 3px}.database-history-links{border-top:1px solid var(--line);margin-top:12px;padding-top:12px;display:grid;gap:8px}@media(max-width:1000px){.dashboard-widget-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.dashboard-settings-grid,.dashboard-widget-grid,.permission-actions{grid-template-columns:1fr}.dashboard-wide{grid-column:1/-1}}

.operation-status{position:fixed;right:20px;bottom:20px;z-index:10000;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 32px);padding:13px 18px;border:1px solid #aac6d1;border-radius:8px;background:#fff;color:#244758;box-shadow:0 4px 20px #17384926;font-size:14px;pointer-events:none}
button[aria-busy=true]{display:inline-flex;align-items:center;justify-content:center;gap:8px}.operation-status .spinner,button[aria-busy=true] .spinner{display:inline-block;width:16px;height:16px;flex-shrink:0;border:2px solid #bfd2d9;border-top-color:currentColor;border-radius:50%;animation:operation-spin .75s linear infinite}@keyframes operation-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.operation-status .spinner,button[aria-busy=true] .spinner{animation:none}}@media print{.operation-status{display:none!important}}

.price-history-groups details{border:1px solid var(--tone-c6deeb,#c6deeb);border-radius:6px;margin-bottom:10px}.price-history-groups summary{padding:14px 16px;cursor:pointer;font-weight:600;background:var(--tone-edf5fa,#edf5fa)}.price-history-body{padding:12px}.price-history-body .loading{padding:20px}
