:root {
    --pink: #a7005d;
    --pink-dark: #800047;
    --blue: #005da7;
    --ink: #20374b;
    --muted: #657786;
    --line: #dce4eb;
    --canvas: #f3f6f9;
    --white: #fff;
    --font: "Nunito Sans", "Segoe UI", Arial, sans-serif;
}
.session-controls { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.account-nav { display: flex; gap: 18px; margin-left: auto; font-size: 13px; }
.account-nav a { color: white; }
.security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1120px; }
.security-panel { padding: 26px; border: 1px solid var(--line); background: white; border-radius: 7px; }
.security-panel h2 { color: #003768; margin-bottom: 14px; font-size: 21px; }
.security-panel label { display: block; margin: 18px 0 6px; font-weight: 600; }
.security-panel button { margin-top: 20px; }
.security-panel details { margin-top: 24px; }
.security-panel summary { cursor: pointer; font-weight: 600; margin-bottom: 14px; }
.security-help { color: var(--muted); margin: 14px 0 0; font-size: 13px; }
.security-status { color: #17613a; font-weight: 700; }
.security-danger { padding-top: 20px; border-top: 1px solid var(--line); }
.property-integrations { margin: 4px 0 28px; padding: 26px; border: 1px solid #c9d8e5; border-top: 6px solid var(--pink); border-radius: 14px; background: linear-gradient(135deg, #fff 0%, #f3f8fc 100%); box-shadow: 0 8px 26px #0037680d; }
.property-integrations-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.property-integrations-heading h2 { color: #003768; font-size: 23px; margin-bottom: 5px; }
.property-integrations-heading p { color: var(--muted); max-width: 780px; }
.eyebrow { color: var(--pink) !important; font-size: 11px !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 7px !important; }
.integration-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.integration-action { min-height: 184px; padding: 19px; border: 1px solid #d7e2eb; border-radius: 10px; background: #fff; }
.integration-action-sign { border-top: 4px solid #a7005d; }
.integration-action-sharepoint { border-top: 4px solid #0078d4; }
.integration-action-xero { border-top: 4px solid #13b5ea; }
.integration-action-title { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.integration-action-title h3 { color: #003768; font-size: 17px; margin: 0; }
.integration-action-title p { color: var(--muted); font-size: 12px; margin: 1px 0 0; }
.integration-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #edf4fa; color: var(--pink); font-size: 20px; font-weight: 800; }
.integration-action-sharepoint .integration-icon { color: #0078d4; }
.integration-action-xero .integration-icon { color: #008ec4; }
.integration-action label { display: block; margin: 10px 0 5px; font-size: 12px; font-weight: 650; }
.integration-action input { min-height: 38px; padding: 7px 9px; font-size: 13px; }
.integration-action button { margin-top: 14px; font-size: 12px; }
.integration-action .muted { font-size: 13px; line-height: 1.65; }
.integration-complete { color: #17613a !important; font-size: 12px; font-weight: 700; margin: -4px 0 10px; }
.integration-panel .button { margin-top: 6px; }
.integration-settings { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.integration-settings h3 { color: #003768; font-size: 16px; margin-bottom: 4px; }
.integration-settings label { font-size: 13px; }
.integration-settings .settings-submit { margin-top: 18px; }
.integration-callback { display: block; margin-top: 6px; padding: 9px 10px; overflow-wrap: anywhere; background: #f3f7fa; border: 1px solid var(--line); border-radius: 4px; color: #31566f; font-size: 12px; }
.danger { color: #9c174a; border-color: #9c174a; }
.template-layout { display: grid; grid-template-columns: minmax(310px, .78fr) minmax(0, 1.22fr); gap: 24px; align-items: start; max-width: 1280px; }
.template-upload { border-top: 5px solid var(--pink); }
.template-upload h2, .template-list h2 { color: #003768; font-size: 22px; margin-bottom: 8px; }
.template-upload label { display: block; margin: 18px 0 6px; font-weight: 650; }
.template-upload textarea { display: block; width: 100%; resize: vertical; padding: 10px 11px; border: 1px solid #cdd8e1; border-radius: 4px; color: var(--ink); font: inherit; }
.template-upload textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.template-upload input[type=file] { padding: 9px; }
.template-upload button { margin-top: 20px; }
.template-list { min-width: 0; }
.template-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 12px; }
.template-list-heading h2 { margin: 0; }
.template-count { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; background: #e6f0fa; color: #003768; font-weight: 800; }
.template-card { margin-bottom: 14px; padding: 20px 22px; border: 1px solid #cbd9e5; border-left: 5px solid var(--blue); border-radius: 9px; background: white; box-shadow: 0 5px 18px #0037680b; }
.template-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.template-card h3 { color: #003768; margin: 0 0 5px; font-size: 18px; }
.template-card p { color: var(--muted); font-size: 13px; }
.template-file-badge { flex: none; padding: 4px 8px; border-radius: 4px; background: #f9e6f2; color: var(--pink-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.template-meta { display: flex; gap: 26px; flex-wrap: wrap; margin: 17px 0; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.template-meta div { min-width: 110px; }
.template-meta dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.template-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 13px; }
.template-card .actions { justify-content: flex-start; }
.template-card .actions form { margin: 0; }
.empty-state { padding: 32px 24px; border: 1px dashed #adc3d5; border-radius: 9px; background: #f8fbfe; color: var(--muted); }
.empty-state h3 { color: #003768; margin: 0 0 6px; }
.integration-template-help { margin-top: 8px !important; color: var(--muted); font-size: 11px !important; }
.setup-qr { display: block; width: 220px; max-width: 100%; height: auto; }
.setup-key { overflow-wrap: anywhere; }
.recovery-panel { margin-bottom: 24px; border-left: 5px solid var(--pink); max-width: 1120px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding-left: 20px; gap: 12px 30px; }
.recovery-codes code { overflow-wrap: anywhere; }
.user-table-scroll { position: relative; overflow-x: auto; background: white; border: 1px solid var(--line); }
.user-table { width: 100%; border-collapse: collapse; }
.user-table th, .user-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.user-table th { background: #e3edf6; color: #003768; }
@media (max-width: 1100px) { .brandbar:has(.account-nav) { height: auto; min-height: 94px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px 20px; } }
@media (max-width: 900px) { .template-layout { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .security-grid { grid-template-columns: 1fr; } .security-panel { padding: 20px; } .account-nav { order: 3; width: 100%; margin: 0; } .recovery-codes { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .session-controls span { display: none; } }
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 14px/1.5 var(--font);
    font-variant-numeric: tabular-nums;
}
a {
    color: var(--blue);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
button,
input,
select {
    font: inherit;
}
button,
.button {
    cursor: pointer;
    border: 1px solid #ced9e2;
    border-radius: 5px;
    background: white;
    color: var(--ink);
    padding: 9px 15px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    font-weight: 600;
    white-space: nowrap;
}
button:hover,
.button:hover {
    background: #edf3f8;
    text-decoration: none;
}
.primary {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
}
.primary:hover {
    background: var(--pink-dark);
    color: white;
    border-color: var(--pink-dark);
}
input,
select {
    min-width: 0;
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cdd8e1;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    min-height: 40px;
}
input::placeholder {
    color: #8493a0;
}
input:focus,
select:focus {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}
[hidden] {
    display: none !important;
}
.brandbar {
    height: 94px;
    background: #003768;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 36px;
    border-bottom: 4px solid var(--pink);
    gap: 25px;
}
.brand {
    display: flex;
    align-items: center;
}
.brand img {
    object-fit: contain;
    max-height: 77px;
    width: 148px;
}
.brand-divider {
    width: 1px;
    height: 36px;
    background: #ffffff40;
}
.brand-title {
    font-size: 18px;
    font-weight: 600;
}
.brand-title small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 2px;
}
.local-badge {
    margin-left: auto;
    border: 1px solid #ffffff40;
    border-radius: 20px;
    font-size: 11px;
    padding: 4px 11px;
    color: #dbe9f7;
}
main {
    padding: 28px 36px 45px;
    max-width: 2000px;
    margin: auto;
}
.page-heading,
.editor-heading {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.breadcrumb {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 7px;
}
h1 {
    font-size: 29px;
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin: 6px 0 7px;
    font-weight: 650;
}
h2 {
    font-size: 17px;
    margin: 0 0 4px;
}
p {
    margin: 0 0 12px;
}
.subheading {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
}
.actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}
.search-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    margin-bottom: 24px;
    padding: 20px 22px;
}
.search-line {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f4;
}
.search-field {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
}
.search-field > span[aria-hidden] {
    position: absolute;
    left: 14px;
    color: var(--muted);
    font-size: 25px;
}
.search-field input {
    padding-left: 41px;
    background: #f8fafc;
    min-height: 44px;
}
.reset-link {
    font-size: 12px;
    margin: 0 5px;
}
.filter-line {
    display: flex;
    gap: 17px;
    align-items: flex-end;
    padding-top: 17px;
    flex-wrap: wrap;
}
.filter-line > label {
    font-size: 12px;
    font-weight: 600;
    display: grid;
    gap: 5px;
    min-width: 140px;
}
.filter-line > label:nth-child(4) {
    min-width: 190px;
}
.filter-line > label:nth-child(5) {
    min-width: 85px;
}
.filter-options {
    margin-left: auto;
    display: flex;
    gap: 15px;
    align-items: center;
}
.checkbox {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 12px;
    white-space: nowrap;
}
.checkbox input {
    width: 15px;
    min-height: 15px;
    accent-color: var(--pink);
}
.text-button {
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: 12px;
}
.table-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    overflow: hidden;
}
.table-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 20px;
    gap: 15px;
}
.table-caption strong {
    font-size: 15px;
}
.table-caption > span {
    font-size: 12px;
    color: var(--muted);
}
.separator {
    padding: 0 10px;
    color: #ccd6df;
}
.table-scroll {
    overflow: auto;
    max-height: calc(100vh - 380px);
    min-height: 250px;
}
.register {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    white-space: nowrap;
    text-align: left;
    font-size: 12px;
}
.register thead {
    position: sticky;
    top: 0;
    z-index: 2;
}
.register th {
    background: #edf2f6;
    font-size: 11px;
    font-weight: 650;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px;
}
.register th a {
    color: #465c6e;
    display: flex;
    gap: 10px;
    align-items: center;
}
.sort-icon {
    color: #93a6b6;
    font-size: 13px;
}
.register th[aria-sort="descending"] a,
.register th[aria-sort="ascending"] a {
    color: var(--pink);
}
.register td {
    padding: 11px 12px;
    border-bottom: 1px solid #edf1f4;
    height: 43px;
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.register tbody tr:nth-child(even) {
    background: #fafcfd;
}
.register tbody tr:hover {
    background: #f7eef4;
}
.register .file-link {
    font-weight: 700;
    color: var(--pink);
}
.register .numeric {
    text-align: right;
}
.column-filters td {
    background: #f8fafc;
    padding: 8px;
}
.column-filters input {
    min-width: 90px;
    font-size: 11px;
    min-height: 30px;
    padding: 5px;
}
.job-tag {
    display: inline-block;
    background: #edf3f9;
    color: #416582;
    border-radius: 3px;
    min-width: 30px;
    text-align: center;
    padding: 2px 5px;
    font-size: 10px;
}
.pagination {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}
.pagination .button {
    font-size: 12px;
    padding: 6px 14px;
}
.pagination > div {
    display: flex;
    gap: 8px;
}
.empty {
    text-align: center;
    height: 200px !important;
    padding: 40px !important;
    color: var(--muted);
}
.empty strong {
    display: block;
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 5px;
}
.app-footer {
    max-width: 2000px;
    margin: auto;
    padding: 0 36px 25px;
    color: var(--muted);
    font-size: 11px;
    display: flex;
    justify-content: space-between;
}
.editor-heading {
    position: sticky;
    top: 0;
    z-index: 4;
    background: var(--canvas);
    padding: 12px 0 18px;
    margin-top: -12px;
}
.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 25px;
    align-items: start;
}
.field-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    margin-bottom: 22px;
    padding: 24px;
}
.section-heading {
    padding-bottom: 17px;
    margin-bottom: 20px;
    border-bottom: 1px solid #edf1f4;
}
.section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}
.field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 24px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
}
.field input,
.field select {
    font-size: 14px;
    font-weight: 400;
}
.field small {
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
}
.field:has(#PSTREET) {
    grid-column: span 2;
}
.required {
    color: var(--pink);
}
.editor-aside {
    background: #eaf1f7;
    border-radius: 7px;
    padding: 21px;
    position: sticky;
    top: 140px;
    border-top: 3px solid var(--blue);
}
.editor-aside h2 {
    font-size: 14px;
    margin-bottom: 10px;
}
.editor-aside p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}
.full {
    width: 100%;
    margin-bottom: 9px;
    font-size: 12px;
}
.editor-aside hr {
    border: 0;
    border-top: 1px solid #cedce8;
    margin: 19px 0;
}
.property-editor .editor-heading {
    padding: 20px 24px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #dce4eb;
    border-left: 5px solid #a7005d;
    border-radius: 12px;
    box-shadow: 0 5px 18px #00376808;
}
.property-editor .editor-heading h1 { color: #003768; font-size: 32px; }
.property-editor .field-section {
    --section-color: #a7005d;
    --section-surface: #fff0f7;
    background: var(--section-surface);
    border: 1px solid #d5dfe9;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 6px 20px #00376808;
}
.property-editor .section-instruction { --section-color: #005da7; --section-surface: #edf6ff; }
.property-editor .section-details { --section-color: #006b68; --section-surface: #eaf8f4; }
.property-editor .section-additional { --section-color: #6b3795; --section-surface: #f5effb; }
.property-editor .section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--section-color);
    color: #fff;
    border: 0;
    padding: 18px 24px;
    margin: 0;
}
.property-editor .section-heading h2 { color: #fff; font-size: 20px; line-height: 1.3; }
.property-editor .section-heading p { color: #fff; opacity: .9; font-size: 12px; }
.section-symbol { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid #ffffff50; border-radius: 12px; background: #ffffff15; }
.section-symbol svg { width: 26px; height: 26px; }
.property-editor .field-grid { padding: 24px; gap: 22px 24px; }
.property-editor .field { font-size: 13px; color: #254255; }
.property-editor .field input, .property-editor .field select { background: #fff; border-color: #b8c8d6; border-radius: 6px; min-height: 45px; }
.property-editor .field input:focus, .property-editor .field select:focus { outline-color: var(--section-color); }
.property-editor .editor-aside { background: #003768; color: white; border-top: 6px solid #a7005d; border-radius: 12px; padding: 24px 20px; }
.property-editor .editor-aside h2 { color: white; font-size: 18px; }
.property-editor .editor-aside p { color: #d5e5f2; font-size: 13px; }
.property-editor .editor-aside hr { border-color: #ffffff38; }
.property-editor .editor-aside a.full { background: #fff; color: #003768; border-color: #fff; }
.property-editor .editor-aside a.full[href$="/pdf"] { background: #a7005d; color: #fff; border-color: #a7005d; }
.property-editor .editor-aside a.full:hover { background: #fce7f2; color: #800047; border-color: #fce7f2; }
.property-editor .editor-aside button.full { background: transparent; color: #fff; border-color: #ffffff70; }
.property-editor .editor-aside button.full:hover { background: #ffffff18; }
.property-editor [data-save-state] { padding: 12px; margin-top: 14px; background: #ffffff12; border: 1px solid #ffffff30; border-radius: 7px; }
#two-factor, #recovery-codes { scroll-margin-top: 24px; }
@media (max-width: 740px) {
    .property-editor .editor-heading { padding: 16px; }
    .property-editor .editor-heading h1 { font-size: 28px; }
    .property-editor .section-heading { padding: 16px; gap: 12px; }
    .property-editor .section-heading h2 { font-size: 18px; }
    .property-editor .field-grid { padding: 18px 16px; gap: 18px 16px; }
}
.muted {
    color: var(--muted);
}
.record-position {
    font-size: 12px;
    color: var(--muted);
    padding: 0 5px;
}
.notice,
.errors {
    border-radius: 5px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid #b6dbce;
    background: #eaf7f0;
    color: #1f6549;
}
.errors {
    border-color: #eac0cb;
    background: #fff1f4;
    color: #8b2340;
}
.errors ul {
    margin: 5px 0 0;
    padding-left: 20px;
}
.field .field-error {
    color: #a42345;
}
input[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: #b52648;
}
.skip-link {
    position: absolute;
    top: -100px;
    left: 15px;
    z-index: 100;
    background: white;
    padding: 12px;
}
.skip-link:focus {
    top: 10px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (min-width: 1600px) {
    .field-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 1100px) {
    main {
        padding: 22px;
    }
    .brandbar {
        padding: 0 22px;
    }
    .page-heading {
        align-items: flex-start;
    }
    .actions {
        justify-content: flex-end;
    }
    .editor-layout {
        grid-template-columns: minmax(0, 1fr) 215px;
        gap: 18px;
    }
    .field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 17px;
    }
    .filter-options {
        margin-left: 0;
    }
    .editor-heading {
        position: static;
    }
    .register {
        font-size: 11px;
    }
}
@media (max-width: 740px) {
    .brandbar {
        height: 80px;
        gap: 16px;
        padding: 0 16px;
    }
    .brand img {
        width: 110px;
    }
    .brand-title {
        font-size: 14px;
    }
    .brand-title small,
    .brand-divider {
        display: none;
    }
    .local-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    .page-heading,
    .editor-heading {
        display: block;
    }
    .actions {
        justify-content: flex-start;
        margin-top: 17px;
        gap: 7px;
    }
    .actions .button,
    .actions button {
        font-size: 12px;
        padding: 8px 10px;
    }
    main {
        padding: 20px 14px;
    }
    .search-panel {
        padding: 15px;
    }
    .search-line {
        flex-wrap: wrap;
    }
    .search-field {
        flex-basis: 100%;
    }
    .filter-line {
        gap: 12px;
    }
    .filter-line > label {
        min-width: calc(50% - 12px) !important;
        flex: 1;
    }
    .filter-options {
        flex-wrap: wrap;
        gap: 14px;
    }
    .table-caption {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 14px;
    }
    .table-scroll {
        max-height: 65vh;
    }
    .editor-layout {
        display: flex;
        flex-direction: column;
    }
    .editor-aside {
        width: 100%;
        position: static;
    }
    .editor-fields {
        width: 100%;
    }
    .field-section {
        padding: 18px;
    }
    .field-grid {
        gap: 16px 13px;
    }
    .field:has(#PSTREET) {
        grid-column: span 2;
    }
    .app-footer {
        padding: 0 15px 20px;
    }
    .app-footer span {
        display: none;
    }
    .property-integrations { padding: 19px 16px; }
    .property-integrations-heading { display: block; }
    .property-integrations-heading .button { margin-top: 8px; }
    .integration-action-grid { grid-template-columns: 1fr; }
    h1 {
        font-size: 26px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}
