:root {
    --bg: #f5f6f8;
    --sidebar: #17202a;
    --sidebar-soft: #202b37;
    --panel: #ffffff;
    --ink: #18212f;
    --muted: #687386;
    --line: #dce2ea;
    --field: #f9fafb;
    --green: #127653;
    --blue: #245bd6;
    --amber: #9a5b00;
    --red: #b42318;
    --shadow: 0 12px 28px rgba(23, 32, 42, 0.08);
    --heading-blue: var(--sidebar);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 14px/1.45 Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.app-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100vh;
    min-width: 0;
    overflow: auto;
    border-right: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    padding: 18px 14px;
}

.sidebar-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    min-width: 0;
    border-bottom: 1px solid #e6ebf2;
    padding: 4px 4px 12px;
}

.brand {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--ink);
    padding: 0;
}

.brand:hover,
.brand:focus {
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #e8f5ef;
    color: var(--green);
    font-weight: 700;
}

.brand-copy,
.brand-copy strong,
.brand-copy span {
    display: block;
    min-width: 0;
}

.brand-copy strong {
    font-size: 16px;
    font-weight: 700;
}

.brand-copy span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.nav-list {
    display: grid;
    gap: 6px;
}

.nav-group {
    display: grid;
    gap: 4px;
}

.nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #334155;
    cursor: pointer;
    font: inherit;
    font-weight: 400;
    padding: 10px 12px;
    text-align: left;
}

.nav-group-toggle:hover,
.nav-group-toggle:focus {
    background: #e7f8f3;
    color: #009a79;
}

.nav-label {
    min-width: 0;
}

.nav-icon {
    position: relative;
    display: inline-grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #00b993;
}

.nav-icon::before,
.nav-icon::after {
    position: absolute;
    content: "";
}

.nav-icon-sales::before {
    left: 2px;
    bottom: 3px;
    width: 3px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 5px -3px 0 currentColor, 10px -6px 0 currentColor;
}

.nav-icon-sales::after {
    right: 2px;
    bottom: 2px;
    left: 1px;
    border-bottom: 2px solid currentColor;
}

.nav-icon-projects::before {
    inset: 4px 2px 3px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.nav-icon-projects::after {
    top: 2px;
    left: 4px;
    width: 7px;
    height: 4px;
    border-radius: 2px 2px 0 0;
    background: currentColor;
}

.nav-icon-support::before {
    inset: 3px 2px 5px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.nav-icon-support::after {
    right: 4px;
    bottom: 3px;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: skew(18deg);
}

.nav-icon-admin::before {
    inset: 3px;
    border: 2px solid currentColor;
    border-radius: 999px;
    box-shadow: 0 -4px 0 -2px currentColor, 0 4px 0 -2px currentColor, 4px 0 0 -2px currentColor, -4px 0 0 -2px currentColor;
}

.nav-icon-admin::after {
    inset: 7px;
    border-radius: 999px;
    background: currentColor;
}

.nav-icon-checklist::before {
    top: 4px;
    right: 2px;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.nav-icon-checklist::after {
    top: 4px;
    left: 1px;
    width: 5px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(38deg);
}

.nav-icon-hr::before {
    left: 2px;
    top: 3px;
    width: 14px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.nav-icon-hr::after {
    left: 8px;
    top: 1px;
    width: 2px;
    height: 16px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: -5px 7px 0 currentColor, 5px 7px 0 currentColor;
}

.nav-icon-customers::before,
.nav-icon-company::before,
.nav-icon-team::before {
    top: 2px;
    left: 6px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: -5px 4px 0 -1px currentColor, 5px 4px 0 -1px currentColor;
}

.nav-icon-customers::after,
.nav-icon-company::after,
.nav-icon-team::after {
    right: 2px;
    bottom: 2px;
    left: 2px;
    height: 7px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 8px 8px;
}

.nav-icon-billing::before {
    inset: 2px 4px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.nav-icon-billing::after {
    top: 7px;
    left: 7px;
    width: 5px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 4px 0 currentColor;
}

.nav-caret {
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #009a79;
    font-size: 0;
    line-height: 1;
    transition: color 160ms ease, transform 160ms ease;
}

.nav-caret::before {
    display: block;
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1.8px 1.8px 0;
    content: "";
    transform: rotate(45deg) translate(-1px, -1px);
}

.nav-group:not(.expanded) .nav-caret {
    color: #334155;
}

.nav-group:not(.expanded) .nav-caret::before {
    transform: rotate(-45deg) translate(-1px, 1px);
}

.nav-group-toggle:hover .nav-caret,
.nav-group-toggle:focus .nav-caret {
    color: #007e68;
}

.nav-group:not(.expanded) .nav-children {
    display: none;
}

.nav-group:not(.expanded):hover .nav-children,
.nav-group:not(.expanded):focus-within .nav-children {
    display: grid;
}

.nav-children {
    display: grid;
    gap: 3px;
    margin-left: 10px;
    border-left: 1px solid #e5edf3;
    padding-left: 10px;
}

@media (min-width: 1025px) {
    .sidebar {
        overflow: visible;
    }

    .sidebar .nav-group:not(.expanded) {
        position: relative;
    }

    .sidebar .nav-group:not(.expanded)::after {
        position: absolute;
        top: 0;
        left: 100%;
        z-index: 1099;
        display: none;
        width: 26px;
        height: 42px;
        content: "";
    }

    .sidebar .nav-group:not(.expanded):hover,
    .sidebar .nav-group:not(.expanded):focus-within {
        z-index: 1100;
    }

    .sidebar .nav-group:not(.expanded):hover::after,
    .sidebar .nav-group:not(.expanded):focus-within::after {
        display: block;
    }

    .sidebar .nav-group:not(.expanded) .nav-children {
        position: absolute;
        top: -2px;
        left: calc(100% + 22px);
        z-index: 1101;
        display: grid;
        gap: 2px;
        width: max-content;
        min-width: 230px;
        max-width: min(300px, calc(100vw - 300px));
        margin-left: 0;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 24px 58px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.72) inset;
        opacity: 0;
        overflow: hidden;
        padding: 9px;
        pointer-events: none;
        transform: translateX(-4px);
        visibility: hidden;
        transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
    }

    .sidebar .nav-group:not(.expanded):hover .nav-children,
    .sidebar .nav-group:not(.expanded):focus-within .nav-children {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
        visibility: visible;
    }

    .sidebar .nav-group:not(.expanded) .nav-children::before {
        color: #17202a;
        content: attr(data-flyout-label);
        font-size: 12px;
        font-weight: 700;
        padding: 2px 7px 7px;
    }

    .sidebar .nav-group:not(.expanded) .nav-child {
        min-height: 32px;
        border-radius: 7px;
        color: #334155;
        font-size: 13px;
        font-weight: 500;
        padding: 8px 10px;
        white-space: nowrap;
    }
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border-radius: 7px;
    color: #334155;
    padding: 10px 12px;
    text-align: left;
}

.nav-item:hover,
.nav-item:focus,
.nav-item.active {
    background: #e7f8f3;
    color: #009a79;
    text-decoration: none;
}

.nav-child {
    padding: 8px 10px;
    font-size: 13px;
}

.nav-child.active {
    background: #e7f8f3;
    color: #009a79;
}

.sidebar-note {
    margin-top: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 0;
}

.sidebar-note summary {
    display: grid;
    gap: 2px;
    cursor: pointer;
    list-style: none;
    padding: 10px 12px;
}

.sidebar-note summary::-webkit-details-marker {
    display: none;
}

.sidebar-note summary::after {
    align-self: center;
    color: #94a3b8;
    content: "Show";
    font-size: 11px;
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
}

.sidebar-note[open] summary::after {
    content: "Hide";
}

.sidebar-note strong,
.sidebar-note span,
.sidebar-note p {
    display: block;
}

.sidebar-note strong {
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-note span {
    color: #64748b;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.sidebar-note p {
    margin: 0;
    border-top: 1px solid #e6ebf2;
    color: #64748b;
    font-size: 12px;
    padding: 10px 12px 12px;
    overflow-wrap: anywhere;
}

.main {
    min-width: 0;
    overflow-x: hidden;
    padding: 0 20px 20px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 950;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 0 -20px 16px;
    border-bottom: 1px solid rgba(220, 226, 234, 0.9);
    background: rgba(248, 250, 252, 0.97);
    padding: 8px 20px 10px;
    backdrop-filter: blur(10px);
}

.portal-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-bottom: 10px;
    border-bottom-color: #d9e1eb;
    background: rgba(237, 242, 247, 0.98);
    padding: 9px 20px;
}

.eyebrow {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--heading-blue);
    margin: 0;
    letter-spacing: 0;
}

h1 {
    font-size: 24px;
    font-weight: 700;
}

h2 {
    font-size: 16px;
    font-weight: 600;
}

h3 {
    font-size: 15px;
    font-weight: 600;
}

.global-search {
    display: grid;
    gap: 4px;
    position: relative;
    width: 250px;
    max-width: 100%;
    min-width: 0;
}

.global-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.global-search input {
    width: 100%;
}

.global-search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 35;
    display: grid;
    width: min(600px, calc(100vw - 32px));
    min-width: 100%;
    max-width: 600px;
    max-height: min(360px, 70vh);
    overflow-y: auto;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    padding: 5px;
}

.global-search-group {
    display: grid;
    gap: 2px;
    padding: 3px 0;
}

.global-search-group + .global-search-group {
    margin-top: 4px;
    border-top: 1px solid #e8edf5;
    padding-top: 7px;
}

.global-search-group-title {
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 2px 9px 3px;
    text-transform: uppercase;
}

.global-search-suggestions[hidden] {
    display: none;
}

.global-search-suggestion,
.global-search-empty {
    display: grid;
    gap: 3px;
    border-radius: 6px;
    color: var(--ink);
    padding: 8px 9px;
    text-decoration: none;
}

.global-search-suggestion:hover,
.global-search-suggestion:focus,
.global-search-suggestion.is-active {
    background: #f2f7ff;
    outline: none;
    text-decoration: none;
}

.global-search-suggestion-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-suggestion-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-suggestion-meta,
.global-search-empty {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.top-actions,
.button-row,
.toolbar,
.section-head,
.page-header,
.panel-title,
.actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-actions,
.section-head,
.page-header,
.panel-title {
    justify-content: space-between;
}

.top-actions {
    position: relative;
    justify-self: end;
}

.top-user {
    color: var(--ink);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}

.header-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 14px;
    min-width: 0;
}

.header-metric {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1f2937;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.header-metric:hover,
.header-metric:focus {
    text-decoration: none;
}

.header-metric strong {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 0 6px;
}

.metric-projects {
    color: #1f2937;
}

.metric-projects strong {
    background: #f0145a;
}

.metric-tickets {
    color: #1f2937;
}

.metric-tickets strong {
    background: #f97316;
}

.metric-todos {
    color: #1f2937;
}

.metric-todos strong {
    background: #3b82f6;
}

.metric-due-invoice {
    color: #1f2937;
}

.metric-due-invoice strong {
    min-width: auto;
    max-width: 150px;
    height: 22px;
    background: #dc2626;
    font-size: 11px;
    overflow: hidden;
    padding: 0 8px;
    text-overflow: ellipsis;
}

.metric-due-invoice.is-disabled strong {
    background: #94a3b8;
}

.portal-topbar .metric-projects strong,
.portal-topbar .metric-tickets strong {
    background: #64748b;
}

.portal-topbar-action {
    white-space: nowrap;
}

.my-task-trigger {
    width: auto;
    min-height: 0;
    border: 0;
    background: transparent;
    color: #1f2937;
    padding: 0;
}

.my-task-trigger:hover,
.my-task-trigger:focus {
    background: transparent;
    box-shadow: none;
    color: #111827;
    outline: none;
}

.my-task-trigger:focus-visible {
    border-radius: 7px;
    outline: 2px solid rgba(37, 99, 235, 0.28);
    outline-offset: 4px;
}

.header-metric.is-disabled {
    cursor: default;
}

.profile-menu {
    position: relative;
    z-index: 2;
}

.profile-menu[open] {
    z-index: 1200;
}

.profile-menu summary {
    list-style: none;
}

.profile-menu summary::-webkit-details-marker {
    display: none;
}

.profile-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    padding: 0;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e8f5ef;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: grid;
    min-width: 210px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    padding: 8px;
}

.profile-menu-link {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin-top: 8px;
    border-top: 1px solid #e4e9f0;
    border-radius: 7px;
    color: #263241;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 10px 8px;
    text-decoration: none;
}

.profile-menu-link:hover,
.profile-menu-link:focus {
    background: #f2f7ff;
    color: #175cd3;
    outline: none;
    text-decoration: none;
}

.profile-name,
.profile-role {
    display: block;
    padding: 2px 4px;
}

.profile-name {
    color: #263241;
    font-weight: 600;
}

.profile-role {
    color: var(--muted);
    font-size: 12px;
}

.profile-dropdown form {
    margin-top: 6px;
}

.profile-dropdown button {
    width: 100%;
    justify-content: flex-start;
}

.environment,
.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.environment,
.status-badge.neutral {
    background: #eef1f5;
    color: #3f4b5e;
}

.app-version-badge {
    background: #e9f7f3;
    color: #007a62;
    border: 1px solid #b7e8da;
    font-weight: 600;
}

.status-badge.warning {
    background: #fff3dd;
    color: var(--amber);
}

.status-badge.green {
    background: #eaf7f1;
    color: var(--green);
}

.text-link {
    color: var(--blue);
    font-weight: 500;
    white-space: nowrap;
}

.content {
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
    padding: 0 0 14px;
}

.content:has(> .record-page-header) {
    column-gap: 0;
}

.content > :not(.page-title-strip):not(.page-header) {
    grid-column: 1 / -1;
}

.page-title-strip {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    align-items: baseline;
    margin: -4px 0 12px;
}

.page-title-strip h1 {
    color: var(--heading-blue);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.page-header,
.section-head {
    margin: 2px 0 10px;
}

.page-header {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    vertical-align: baseline;
}

.page-header h1 {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.page-header .muted {
    color: var(--blue);
    font-weight: 500;
    margin-top: 2px;
}

.content > .page-title-strip ~ .page-header {
    display: contents;
    margin-top: -4px;
}

.content > .page-title-strip ~ .page-header > div:first-child {
    display: contents;
}

.content > .page-title-strip ~ .page-header h1 {
    grid-column: 2;
    grid-row: 1;
    align-self: baseline;
}

.content > .page-title-strip ~ .page-header .muted {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: -6px 0 10px;
}

.content > .page-title-strip ~ .page-header > .actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
}

.content > .page-title-strip ~ .page-header h1::before {
    content: "/";
    margin: 0 8px 0 0;
    color: #cbd5e1;
    font-weight: 400;
}

.page-header > div,
.section-head > div,
.panel-title > div {
    min-width: 0;
}

.content > .page-title-strip ~ .record-page-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-column: 2 / 4;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    min-height: 52px;
    margin: -8px 0 12px;
    border-bottom: 1px solid #d8e1ec;
    background: #f8fafc;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    padding: 8px 10px 8px 0;
}

.content > .page-title-strip:has(~ .record-page-header) {
    position: sticky;
    top: 0;
    z-index: 31;
    align-self: stretch;
    min-height: 52px;
    margin: -8px 0 12px;
    border-bottom: 1px solid #d8e1ec;
    background: #f8fafc;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    padding: 10px 10px 8px;
}

.content > .page-title-strip:has(~ .record-page-header) h1 {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
}

.content > .page-title-strip:has(~ .record-page-header) h1::after {
    color: #cbd5e1;
    content: "/";
    font-weight: 400;
}

.content > .page-title-strip ~ .record-page-header > div:first-child {
    display: grid;
    gap: 2px;
}

.content > .page-title-strip ~ .record-page-header h1 {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    color: #475569;
}

.content > .page-title-strip ~ .record-page-header .muted {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
}

.content > .page-title-strip ~ .record-page-header > .actions {
    grid-column: auto;
    grid-row: auto;
    justify-self: end;
    align-self: start;
    gap: 0;
}

.content > .page-title-strip ~ .record-page-header h1::before {
    content: none;
}

.record-page-header > .actions {
    gap: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.public-local-invoice-page {
    min-height: 100vh;
    margin: 0;
    background: #eef3f8;
    color: #142033;
}

.public-local-invoice-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.public-local-invoice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 22px 26px;
    border: 1px solid #dce6f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(21, 41, 68, 0.08);
}

.public-local-invoice-header h1 {
    margin: 4px 0 6px;
    font-size: 24px;
}

.public-local-invoice-header p {
    margin: 0;
    color: #64748b;
}

.public-local-invoice-header .eyebrow {
    display: block;
    color: #16806a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-local-invoice-page .invoice-preview-document {
    box-shadow: 0 10px 28px rgba(21, 41, 68, 0.08);
}

.public-payment-return-shell {
    width: min(640px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.public-payment-return-card {
    padding: 34px;
    border: 1px solid #dce7f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(21, 41, 68, 0.08);
}

.public-payment-return-card h1 {
    margin: 8px 0 12px;
    font-size: 28px;
}

.public-payment-return-card p {
    margin: 0 0 12px;
}

@media (max-width: 640px) {
    .public-local-invoice-shell {
        width: min(100% - 20px, 1120px);
        padding-top: 12px;
    }

    .public-local-invoice-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .public-payment-return-shell {
        width: min(100% - 20px, 640px);
        padding: 28px 0;
    }

    .public-payment-return-card {
        padding: 24px;
    }
}

.record-page-header > .actions .record-header-action-form {
    display: contents;
}

.record-page-header > .actions .button,
.record-page-header > .actions button {
    gap: 5px;
    min-height: 26px;
    border: 0;
    border-left: 1px solid #d8e1ec;
    border-radius: 0;
    background: transparent;
    color: #24405f;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    padding: 3px 8px;
}

.record-page-header > .actions .button:first-child,
.record-page-header > .actions button:first-child {
    border-left: 0;
}

.record-page-header > .actions .record-header-action-form button {
    border-left: 1px solid #d8e1ec;
}

.record-page-header > .actions .record-header-action-form:first-child button {
    border-left: 0;
}

.customer-create-menu,
.customer-action-menu {
    position: relative;
}

.customer-create-menu > summary,
.customer-action-menu > summary {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: 6px;
    list-style: none;
}

.customer-create-menu > summary::-webkit-details-marker,
.customer-action-menu > summary::-webkit-details-marker {
    display: none;
}

.customer-create-menu[open] > summary,
.customer-action-menu[open] > summary {
    border-color: #b8caf6;
    background: #eef4ff;
    color: var(--blue);
}

.customer-create-menu-list,
.customer-action-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    display: grid;
    min-width: 190px;
    overflow: hidden;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.customer-create-menu-list a,
.record-page-header > .actions .customer-action-menu-list button {
    display: block;
    width: 100%;
    min-height: 0;
    border: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    color: #175cd3;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    padding: 9px 12px;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.customer-create-menu-list a:hover,
.customer-create-menu-list a:focus,
.record-page-header > .actions .customer-action-menu-list button:hover,
.record-page-header > .actions .customer-action-menu-list button:focus {
    background: #eef4ff;
    text-decoration: none;
}

.customer-action-menu-list .record-header-action-form {
    display: block;
    margin: 0;
}

.record-page-header > .actions .button:hover,
.record-page-header > .actions .button:focus,
.record-page-header > .actions button:hover,
.record-page-header > .actions button:focus {
    background: #e8f2ff;
    color: #175cd3;
    text-decoration: none;
}

.record-page-header > .actions .button.new-action-button,
.record-page-header > .actions .button.secondary.new-action-button {
    min-width: 0;
    border-color: #d8e1ec;
    background: transparent;
    color: #24405f;
}

.record-page-header > .actions .button.is-disabled {
    color: #8a95a6;
    cursor: not-allowed;
}

.action-plus {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    color: #00a67e;
}

.action-plus::before,
.action-plus::after {
    position: absolute;
    content: "";
    border-radius: 999px;
    background: currentColor;
}

.action-plus::before {
    top: 4px;
    left: 0;
    width: 10px;
    height: 2px;
}

.action-plus::after {
    top: 0;
    left: 4px;
    width: 2px;
    height: 10px;
}

.panel-title h2 {
    color: #175cd3;
}

.section-head > div > p.muted,
.panel-title > div > p.muted {
    display: none;
}

.section-head .has-panel-tooltip,
.panel-title .has-panel-tooltip {
    cursor: help;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin: -2px 0 10px;
}

.page-actions form {
    margin: 0;
}

.page-actions.module-actions {
    align-items: center;
}

.module-sync-form {
    margin: 0;
}

.muted {
    color: var(--muted);
    font-weight: 300;
}

.field-help {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.35;
}

.panel,
.notice {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.panel {
    margin-bottom: 10px;
    padding: 12px;
    box-shadow: var(--shadow);
}

.notice {
    margin-bottom: 10px;
    padding: 8px 10px;
}

.notice strong,
.notice span {
    display: block;
}

.notice span {
    margin-top: 3px;
}

.role-preview-banner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.role-preview-banner form {
    margin: 0;
}

.notice:not(.warning) {
    border-color: #bfe5d6;
    background: #eaf7f1;
    color: #0f6b4c;
}

.notice.warning {
    border-color: #f3d19b;
    background: #fff7e8;
    color: #7a4300;
}

.error-list {
    margin-bottom: 16px;
    border: 1px solid #f5beb7;
    border-radius: 6px;
    background: #fff0ee;
    color: #912018;
    padding: 10px 12px;
}

.grid {
    display: grid;
    gap: 10px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-operations-dashboard {
    display: grid;
    gap: 10px;
}

.project-ops-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-ops-top-grid {
    grid-template-columns: minmax(0, 1fr);
}

.project-ops-bottom-grid {
    grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 1.18fr);
}

.project-operations-dashboard .panel {
    min-width: 0;
}

.project-ops-count-panel .table {
    min-width: 1120px;
}

.project-ops-closed-panel .table {
    min-width: 900px;
}

.project-count-link {
    color: #0757c8;
    display: inline-flex;
    font-weight: 700;
    min-width: 2ch;
    text-decoration: none;
}

.project-count-link:hover,
.project-count-link:focus {
    text-decoration: underline;
}

.project-ops-closed-filters {
    margin-bottom: 10px;
}

.project-ops-closed-filters label,
.project-ops-closed-filters label:first-child,
.project-ops-closed-filters.module-list-filters label:first-of-type {
    flex: 1 1 150px;
    min-width: 140px;
}

.module-summary,
.audit-summary,
.record-meta-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 10px;
}

.summary-card,
.record-hero,
.detail-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.summary-card {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
}

a.summary-card {
    color: inherit;
    text-decoration: none;
}

a.summary-card:hover,
a.summary-card:focus {
    border-color: #bfe5d6;
    background: #f8fdfb;
    box-shadow: inset 3px 0 0 #00b993;
    text-decoration: none;
}

a.summary-card.is-active {
    border-color: #9db7e8;
    background: #eef4ff;
    box-shadow: inset 3px 0 0 #2563eb;
}

.module-summary.is-list-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.module-summary.is-list-summary .summary-card {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 6px;
    min-height: 32px;
    padding: 7px 10px;
}

.module-summary.is-list-summary .summary-label {
    font-size: 11px;
}

.module-summary.is-list-summary .summary-value {
    font-size: 14px;
    line-height: 1;
}

.summary-label,
.field-note,
.entity-meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 300;
}

.sr-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.inline-fields,
.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-fields > * {
    flex: 1 1 0;
}

.checkbox-line {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
}

.checkbox-line input {
    inline-size: auto;
}

.hr-location-helper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 10px;
}

.attendance-correction-panel {
    padding: 0;
    overflow: hidden;
}

.attendance-correction-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    padding: 12px;
    cursor: pointer;
}

.attendance-correction-panel > summary::-webkit-details-marker {
    display: none;
}

.attendance-correction-panel > summary strong,
.attendance-correction-panel > summary small {
    display: block;
}

.attendance-correction-panel > summary strong {
    color: var(--heading-blue);
}

.attendance-correction-panel > summary small {
    margin-top: 3px;
    color: var(--muted);
}

.attendance-correction-panel[open] > summary {
    border-bottom: 1px solid var(--line);
}

.attendance-correction-panel > .placeholder-form {
    padding: 12px;
}

.summary-value {
    color: var(--heading-blue);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.summary-card .badge,
.summary-card .status-badge {
    justify-self: start;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

.filters .filter-fields {
    display: contents;
}

.filters label {
    flex: 1 1 170px;
    min-width: 150px;
}

.filters label:first-child {
    flex: 2 1 300px;
    min-width: 240px;
}

.filters.module-list-filters label:first-of-type {
    flex: 0 0 420px;
    max-width: 420px;
    min-width: 260px;
}

.filters.module-list-filters .list-view-filter {
    flex: 0 0 235px;
    max-width: 260px;
    min-width: 190px;
}

.filters.module-list-filters .list-search-field,
.filters.module-list-filters label.list-search-field:first-of-type {
    flex: 0 1 260px;
    max-width: 280px;
    min-width: 200px;
}

.customers-list-filters .compact-filter-field {
    flex: 0 0 200px;
    max-width: 200px;
    min-width: 170px;
}

.customers-list-filters .customer-follow-up-filter.is-danger-filter select {
    border-color: #fca5a5;
    background: #fff1f2;
    color: #991b1b;
}

.filters .button,
.filters button {
    flex: 0 0 auto;
}

.filter-quick-actions {
    display: flex;
    align-items: center;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 10px;
}

@media (min-width: 901px) {
    .filters.module-list-filters:has(.filter-quick-actions):not(:has(.list-view-filter)) .filter-quick-actions {
        flex: 1 1 auto;
        gap: 8px;
        order: 1;
    }

    .filters.module-list-filters:has(.filter-quick-actions):not(:has(.list-view-filter)) .list-search-field {
        flex-basis: 210px;
        max-width: 220px;
        min-width: 170px;
        order: 2;
    }

    .filters.module-list-filters:has(.filter-quick-actions):not(:has(.list-view-filter)) .filter-fields > button[type='submit'] {
        order: 3;
    }
}

.sales-dashboard-actions {
    align-items: flex-start;
    flex-direction: column;
}

.sales-dashboard-actions .button-row {
    flex-wrap: wrap;
    width: 100%;
}

.filter-context-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid #bfe5d6;
    border-radius: 999px;
    background: #eaf7f1;
    color: var(--green);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 11px;
    white-space: nowrap;
}

label {
    display: block;
    color: #334155;
    font-size: 13px;
    font-weight: 400;
}

.filters label,
.placeholder-form label:not(.check-row):not(.toggle-row):not(.install-checkbox):not(.setting-field-row),
.placeholder-form form label:not(.check-row):not(.toggle-row):not(.install-checkbox):not(.setting-field-row) {
    font-size: 0;
}

.placeholder-form .field-label-text {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
}

.form-block-divider {
    margin: 18px 0 10px;
    padding-top: 14px;
    border-top: 1px solid #e1e7ef;
}

.form-block-divider h3 {
    margin: 0 0 3px;
    color: var(--blue);
    font-size: 15px;
    font-weight: 600;
}

.form-block-divider p {
    margin: 0;
}

.filters .field-label-text {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    min-height: 34px;
    margin-top: 4px;
    border: 1px solid #cfd6e2;
    border-radius: 7px;
    background: var(--field);
    color: var(--ink);
    padding: 7px 9px;
    outline: none;
    font-weight: 400;
}

.filters input,
.filters select,
.placeholder-form input,
.placeholder-form select,
.placeholder-form textarea,
.placeholder-form form input,
.placeholder-form form select,
.placeholder-form form textarea {
    margin-top: 0;
    font-size: 13px;
}

::placeholder {
    color: #7a8495;
    font-weight: 300;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(36, 91, 214, 0.12);
}

input.is-required-missing,
select.is-required-missing,
textarea.is-required-missing,
.searchable-select-trigger.is-required-missing {
    border-color: #d92d20;
    background: #fff4f2;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.field-has-error {
    color: #912018;
}

.searchable-select {
    position: relative;
    width: 100%;
    margin-top: 4px;
    font-size: 13px;
}

.filters .searchable-select,
.placeholder-form .searchable-select,
.placeholder-form form .searchable-select {
    margin-top: 0;
}

.searchable-select-source {
    position: absolute;
    inset: auto auto 0 0;
    width: 1px;
    min-height: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.searchable-select-trigger {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 34px;
    border: 1px solid #cfd6e2;
    border-radius: 7px;
    background: var(--field);
    color: var(--ink);
    padding: 7px 9px;
    text-align: left;
}

.searchable-select-trigger:hover,
.searchable-select-trigger:focus {
    border-color: var(--blue);
    background: var(--field);
    color: var(--ink);
    box-shadow: 0 0 0 3px rgba(36, 91, 214, 0.12);
}

.searchable-select-trigger:disabled,
.searchable-select.is-disabled .searchable-select-trigger {
    cursor: not-allowed;
    border-color: #d9e1eb;
    background: #eef2f6;
    color: #8a94a6;
    box-shadow: none;
}

.searchable-select-trigger.is-placeholder .searchable-select-value {
    color: #7a8495;
    font-weight: 300;
}

.searchable-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.searchable-select-icon {
    color: #64748b;
    flex: 0 0 auto;
}

.searchable-select-panel {
    position: fixed;
    z-index: 1200;
    border: 1px solid #cfd6e2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
    padding: 6px;
}

.searchable-select-search {
    margin: 0 0 6px;
    background: #ffffff;
}

.searchable-select-options {
    display: grid;
    max-height: 220px;
    overflow-y: auto;
}

.zoho-invoice-notes-grid {
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e9eef6;
}

.zoho-invoice-notes-grid textarea {
    min-height: 112px;
}

.payment-form-panel {
    padding-top: 16px;
}

.payment-form-grid {
    display: grid;
    gap: 16px 28px;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.payment-due-summary {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fbff;
}

.payment-due-summary[hidden] {
    display: none;
}

.payment-due-summary div {
    display: grid;
    gap: 3px;
    min-width: 0;
    border-right: 1px solid #dbe4f0;
    padding: 10px 12px;
}

.payment-due-summary div:last-child {
    border-right: 0;
}

.payment-due-summary strong {
    color: #334f75;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.payment-due-summary span {
    overflow-wrap: anywhere;
    color: #172033;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.payment-due-summary-primary {
    background: #ecfdf3;
}

.payment-due-summary-primary strong,
.payment-due-summary-primary span {
    color: #067647;
}

.payment-tax-row,
.payment-options-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    border-top: 1px solid #e4e9f0;
    padding-top: 14px;
    color: #334155;
    font-size: 13px;
}

.payment-tds-panel {
    display: grid;
    align-items: end;
    gap: 10px 16px;
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    margin-top: 12px;
}

.payment-tds-panel[hidden] {
    display: none;
}

.payment-tds-panel .field-note {
    margin: 0 0 8px;
}

.inline-choice {
    display: inline-flex;
    align-items: center;
    width: auto;
    gap: 7px;
    margin: 0;
    color: #172033;
    font-size: 13px;
    font-weight: 400;
}

.inline-choice input {
    width: auto;
    min-height: auto;
    margin: 0;
}

.payment-notes-grid {
    margin-top: 18px;
}

.payment-notes-grid textarea {
    min-height: 84px;
}

.payment-action-button:not(.is-disabled) {
    border-color: #8bd7bd;
    background: #ffffff;
    color: var(--green);
}

.payment-action-button:not(.is-disabled):hover,
.payment-action-button:not(.is-disabled):focus {
    border-color: var(--green);
    background: #eaf7f1;
    color: var(--green);
}

.button.is-disabled,
.payment-action-button.is-disabled {
    border-color: #d8dee8;
    background: #f4f6f9;
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
}

.project-tile-card {
    gap: 12px;
}

.project-tile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.confirmation-popover {
    position: relative;
    display: inline-block;
}

.confirmation-popover summary {
    list-style: none;
}

.confirmation-popover summary::-webkit-details-marker {
    display: none;
}

.confirmation-popover-body {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    width: min(420px, calc(100vw - 48px));
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    padding: 14px;
}

.sales-project-action-card {
    position: relative;
    z-index: 2;
}

.sales-project-confirmation {
    display: block;
}

.sales-project-confirmation[open] {
    z-index: 40;
}

.sales-project-confirmation .confirmation-popover-body {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
}

.searchable-select-option {
    justify-content: flex-start;
    width: 100%;
    min-height: 30px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #334155;
    padding: 6px 8px;
    text-align: left;
}

.searchable-select-option + .searchable-select-option {
    border-top: 1px solid #edf1f7;
}

.searchable-select-option:hover,
.searchable-select-option:focus,
.searchable-select-option.is-selected {
    background: #eef4ff;
    color: var(--blue);
    box-shadow: none;
}

.searchable-select-option.is-disabled,
.searchable-select-option:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.searchable-select-empty {
    color: var(--muted);
    font-size: 12px;
    padding: 8px;
}

.sales-order-total-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.sales-order-total-row .zoho-total-card {
    width: min(440px, 100%);
}

.sales-order-notes-grid {
    gap: 16px;
}

.sales-order-notes-grid textarea {
    min-height: 92px;
}

input:disabled {
    color: #8792a3;
    cursor: not-allowed;
}

textarea {
    min-height: 92px;
    resize: vertical;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border: 1px solid #175cd3;
    border-radius: 7px;
    background: #175cd3;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 400;
    padding: 7px 11px;
}

.button:hover,
.button:focus {
    text-decoration: none;
}

.button.secondary,
button.secondary,
.profile-dropdown button {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #1f2937;
}

.button.secondary.filter-quick-button.is-active {
    border-color: #9db7e8;
    background: #eef4ff;
    color: #175cd3;
}

.button.secondary.filter-quick-button.is-success-filter.is-active {
    border-color: #8bd7bd;
    background: #eaf7f1;
    color: #047857;
}

.button.secondary.filter-quick-button.is-danger-filter.is-active {
    border-color: #ef4444;
    background: #fff1f2;
    color: #991b1b;
}

.button.marked-sent-button.is-disabled {
    border-color: #8bd7bd;
    background: #eaf7f1;
    color: #047857;
    cursor: default;
    pointer-events: none;
}

.form-footer button:disabled {
    border-color: #d8dee8;
    background: #f4f6f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.button.danger {
    border-color: var(--red);
    background: var(--red);
}

.button.compact,
button.compact {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 13px;
}

.customer-portal-shell .content .button,
.customer-portal-shell .content button {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 13px;
}

.customer-portal-shell .content .button {
    white-space: nowrap;
}

.customer-portal-shell .content > .page-title-strip ~ .page-header > .button {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    width: auto;
}

.button.filter-new-button,
.button.new-action-button,
.button.secondary.new-action-button {
    justify-content: center;
    min-width: 64px;
    border-color: #00a67e;
    background: #00a67e;
    color: #ffffff;
}

.button.module-sync-button {
    justify-content: center;
    gap: 0;
    min-width: 34px;
    width: 34px;
    padding: 5px;
    font-size: 18px;
    line-height: 1;
}

.button.module-sync-button:disabled,
button.module-sync-button:disabled {
    border-color: #d8dee8;
    background: #f6f8fb;
    color: #9aa4b2;
    cursor: not-allowed;
}

.button.is-working,
button.is-working {
    cursor: wait;
    opacity: 0.86;
    pointer-events: none;
}

button.is-working:not(.module-sync-button)::before,
.button.is-working:not(.module-sync-button)::before {
    content: "";
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 999px;
    animation: action-spin 0.72s linear infinite;
}

.module-sync-form.is-working .module-sync-button span[aria-hidden="true"] {
    animation: action-spin 0.72s linear infinite;
}

@keyframes action-spin {
    to {
        transform: rotate(360deg);
    }
}

.button.filter-new-button:hover,
.button.filter-new-button:focus,
.button.new-action-button:hover,
.button.new-action-button:focus,
.button.secondary.new-action-button:hover,
.button.secondary.new-action-button:focus {
    border-color: #008f70;
    background: #008f70;
    color: #ffffff;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.panel:has(> .table-wrap) {
    overflow: hidden;
}

.panel:has(> .table-wrap):not(:has(> .panel-title)) {
    padding: 0;
}

.panel:has(> .table-wrap):not(:has(> .panel-title)) > .table-wrap {
    padding: 12px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.table th,
.table td {
    border-bottom: 1px solid #e4e9f0;
    padding: 7px 8px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.customer-match-table .table {
    min-width: 920px;
}

.customer-match-table .table td {
    vertical-align: top;
    white-space: normal;
}

.customer-match-table .table td > span,
.customer-match-table .table td > strong,
.customer-match-table .table td > a {
    display: block;
}

.customer-match-actions {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.customer-match-actions form {
    margin: 0;
}

.customer-match-actions button {
    width: 100%;
}

.customer-match-actions select {
    width: 100%;
    min-height: 34px;
    border: 1px solid #cbd6e2;
    border-radius: 6px;
    padding: 6px 8px;
    font: inherit;
    color: var(--ink);
    background: #ffffff;
}

.customer-match-candidate {
    display: grid;
    gap: 4px;
    padding: 6px;
    border: 1px solid #e4e9f0;
    border-radius: 6px;
    background: #ffffff;
}

.customer-match-candidate span {
    color: var(--ink);
    font-size: 12px;
}

.table th:not(:last-child),
.table td:not(:last-child) {
    border-right: 1px solid #edf1f6;
}

.table tbody tr:nth-child(even):not(.is-selected) td {
    background: #fbfdff;
}

.table.is-record-table th:first-child,
.table.is-record-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: 1px 0 0 #e4e9f0;
}

.table.is-record-table th:first-child {
    z-index: 3;
    background: #f3f6fa;
}

.table.is-record-table tbody tr:nth-child(even):not(.is-selected) td:first-child {
    background: #fbfdff;
}

.table th {
    background: #f3f6fa;
    color: #475569;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.table th.is-sortable {
    padding: 0;
}

.table-sort-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    min-height: 32px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0;
    padding: 8px 10px;
    text-align: left;
    text-transform: uppercase;
}

.table-sort-button:hover,
.table-sort-button:focus {
    background: #e8eef7;
    color: #175cd3;
    outline: none;
}

.table-sort-indicator {
    color: #8a96a8;
    font-size: 11px;
    line-height: 1;
}

.table th[aria-sort="ascending"] .table-sort-indicator,
.table th[aria-sort="descending"] .table-sort-indicator {
    color: #175cd3;
}

.table strong {
    font-weight: 400;
}

.table tr.is-selected td {
    background: #f1f7ff;
}

.table tbody tr:hover td {
    background: #f8fafc;
}

.table.is-record-table tbody tr:hover td:first-child {
    background: #f8fafc;
}

.table tbody tr.is-selected:hover td {
    background: #f1f7ff;
}

.table.is-record-table tbody tr.is-selected:hover td:first-child,
.table.is-record-table tr.is-selected td:first-child {
    background: #f1f7ff;
}

.table .is-secondary,
.table .secondary-cell {
    color: #64748b;
}

.table .amount-cell {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.table .action-cell {
    text-align: right;
}

.table .action-cell a {
    color: #175cd3;
    font-weight: 500;
}

@media (min-width: 901px) {
    .local-invoice-list-table thead th,
    .local-invoice-sticky-header thead th {
        box-shadow: 0 1px 0 #d8e0ec;
    }

    .local-invoice-sticky-header {
        display: none;
        position: fixed;
        top: 60px;
        z-index: 940;
        margin: 0;
        pointer-events: none;
    }

    .local-invoice-sticky-header.is-record-table thead th:first-child {
        position: static;
    }
}

.table.local-invoice-list-table {
    min-width: 0;
    table-layout: fixed;
}

.table.local-invoice-list-table th,
.table.local-invoice-list-table td {
    overflow: hidden;
    padding: 7px 6px;
    text-overflow: ellipsis;
}

.table.local-invoice-list-table th:nth-child(1) {
    width: 14%;
}

.table.local-invoice-list-table th:nth-child(2) {
    width: 23%;
}

.table.local-invoice-list-table th:nth-child(3) {
    width: 8%;
}

.table.local-invoice-list-table th:nth-child(4) {
    width: 11%;
}

.table.local-invoice-list-table th:nth-child(5) {
    width: 7%;
}

.table.local-invoice-list-table th:nth-child(6) {
    width: 10%;
}

.table.local-invoice-list-table th:nth-child(7) {
    width: 13%;
}

.table.local-invoice-list-table th:nth-child(8) {
    width: 14%;
}

.local-invoice-list-table .invoice-reminder-actions {
    display: grid;
    gap: 4px;
}

.local-invoice-list-table .invoice-reminder-actions .button {
    justify-content: center;
    min-width: 0;
    padding: 4px 6px;
}

.table .risk-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.table .status-stack {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 160px;
}

.customer-monthly-table {
    min-width: 2424px;
}

.customer-monthly-table .customer-select-cell {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    text-align: center;
}

.customer-monthly-table .customer-select-cell input {
    width: auto;
    min-height: auto;
}

.customer-monthly-table .customer-company-cell {
    width: 270px;
    min-width: 270px;
    max-width: 270px;
    white-space: normal;
}

.customer-monthly-table .customer-person-cell {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.customer-monthly-table .customer-company-cell .entity-cell.is-stacked,
.customer-monthly-table .customer-company-cell .entity-title,
.customer-monthly-table .customer-company-cell .table-link,
.customer-monthly-table .customer-company-cell .entity-meta {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}

.customer-monthly-table .payment-month-header {
    min-width: 150px;
    text-align: right;
}

.customer-monthly-table .payment-month-cell {
    position: relative;
    min-width: 150px;
    padding-right: 42px;
    text-align: right;
    vertical-align: top;
    white-space: normal;
}

.payment-month-column-form {
    display: inline-flex;
    align-items: end;
    gap: 8px;
    margin-left: auto;
}

.customer-bulk-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    border-top: 1px solid #e4e9f0;
    padding: 10px 12px;
}

.customer-select-all,
.customer-bulk-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.customer-bulk-field {
    flex: 0 1 210px;
}

.customer-select-all input {
    width: auto;
    min-height: auto;
}

.customer-selection-count {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.customer-bulk-toolbar button:disabled {
    border-color: #d8dee8;
    background: #f4f6f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.payment-month-column-form label {
    display: grid;
    gap: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.payment-month-column-form input {
    min-height: 34px;
    width: 130px;
    border: 1px solid #cbd6e2;
    border-radius: 7px;
    padding: 5px 8px;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}

.payment-month-display {
    display: grid;
    gap: 3px;
    justify-items: end;
    min-height: 38px;
}

.payment-month-amount {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.payment-month-sources {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 3px;
}

.payment-month-source,
.payment-month-remark {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    font-size: 11px;
    line-height: 1.2;
}

.payment-month-source {
    border-radius: 999px;
    background: #eef6ff;
    color: #175cd3;
    padding: 1px 7px;
}

a.payment-month-source {
    text-decoration: none;
}

a.payment-month-source:hover {
    border-color: #9bb7eb;
    background: #dbeafe;
}

.payment-month-remark {
    color: var(--muted);
    font-weight: 300;
}

.payment-month-remark-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    justify-self: end;
    max-width: 140px;
}

.payment-month-remark {
    max-width: 118px;
    overflow: hidden;
    text-align: right;
}

.payment-month-remark-date {
    flex: 0 0 auto;
    color: #94a3b8;
    font-weight: 500;
}

.payment-month-remark-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-month-remark-view {
    flex: 0 0 auto;
}

.payment-month-remark-view[open] {
    display: grid;
    flex-basis: 100%;
    justify-items: end;
}

.payment-month-remark-view summary {
    display: inline-grid;
    place-items: center;
    width: 20px;
    min-height: 20px;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.payment-month-remark-view summary::-webkit-details-marker {
    display: none;
}

.payment-month-remark-view .role-action-icon {
    transform: scale(0.72);
}

.payment-month-remark-full {
    display: grid;
    gap: 2px;
    width: 140px;
    margin-top: 4px;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
    background: #f8fafc;
    color: #475569;
    padding: 6px 7px;
    text-align: left;
    white-space: normal;
}

.payment-month-remark-full strong {
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
}

.payment-month-editor {
    margin-top: 6px;
    text-align: left;
}

.payment-month-editor:not([open]) {
    margin-top: 0;
}

.payment-month-editor summary {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-grid;
    align-items: center;
    place-items: center;
    width: 28px;
    min-height: 24px;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    background: #ffffff;
    color: #175cd3;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.payment-month-editor[open] summary {
    border-color: #9bb7eb;
    background: #eef6ff;
}

.payment-month-editor summary::-webkit-details-marker {
    display: none;
}

.payment-month-editor form {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    min-width: 150px;
}

.payment-month-editor label {
    display: grid;
    gap: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.payment-month-editor input,
.payment-month-editor textarea {
    min-height: 30px;
    width: 100%;
    border: 1px solid #cbd6e2;
    border-radius: 6px;
    padding: 5px 7px;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
}

.payment-month-editor textarea {
    min-height: 48px;
    resize: vertical;
}

.payment-month-editor button {
    min-height: 30px;
    padding: 5px 9px;
    width: 100%;
}

.entity-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    max-width: 100%;
}

.entity-cell.is-stacked {
    display: grid;
    gap: 3px;
    min-width: 220px;
}

.entity-cell.is-stacked .entity-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.entity-title {
    color: var(--ink);
    font-weight: 400;
    white-space: nowrap;
}

.table-link {
    color: #175cd3;
    font-weight: 400;
    white-space: nowrap;
}

.table-link:hover,
.table-link:focus {
    text-decoration: underline;
}

.icon-link {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #ffffff;
    color: #175cd3;
    font-weight: 600;
    text-decoration: none;
}

.icon-link:hover,
.icon-link:focus {
    border-color: #9fc0ff;
    background: #eef4ff;
    text-decoration: none;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #94a3b8;
}

.status-dot.green {
    border-color: #0e8f67;
    background: #18a878;
}

.status-dot.gray {
    background: #a8b2c0;
}

.entity-meta {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reference-cell {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    white-space: nowrap;
}

.sync-check-icon {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid #bfe5d6;
    border-radius: 999px;
    background: #eaf7f1;
    color: var(--green);
    font-size: 11px;
    line-height: 1;
}

.sync-check-icon::before {
    width: 6px;
    height: 3px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
    transform: rotate(-45deg) translate(1px, -1px);
}

.badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c7d7fe;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    min-height: 24px;
    padding: 3px 8px;
    white-space: nowrap;
}

.badge.green {
    border-color: #bfe5d6;
    background: #eaf7f1;
    color: var(--green);
}

.badge.amber {
    border-color: #f3d19b;
    background: #fff4df;
    color: var(--amber);
}

.badge.red {
    border-color: #f7b7b0;
    background: #fff0ee;
    color: var(--red);
}

.badge.gray {
    border-color: #d8dee8;
    background: #f4f6f9;
    color: #475569;
}

.pagination-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border-top: 1px solid #e4e9f0;
    padding: 10px 12px;
}

.pagination-controls {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.pagination-button {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    border: 1px solid #d8dee8;
    border-left-width: 0;
    background: #ffffff;
    color: #175cd3;
    font-size: 13px;
    font-weight: 400;
    padding: 0 10px;
}

.pagination-button:first-child {
    border-left-width: 1px;
    border-radius: 4px 0 0 4px;
}

.pagination-button:last-child {
    border-radius: 0 4px 4px 0;
}

.pagination-button:hover,
.pagination-button:focus {
    background: #edf4ff;
    text-decoration: none;
}

.pagination-button.active {
    z-index: 1;
    border-color: #8bb8ff;
    background: #edf4ff;
    box-shadow: inset 0 0 0 1px #60a5fa;
    color: #175cd3;
}

.pagination-button.disabled {
    color: #a8b2c0;
    cursor: default;
    pointer-events: none;
}

.pagination-page-size {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin: 0;
    color: #475569;
    font-size: 13px;
}

.pagination-page-size select {
    width: auto;
    min-width: 90px;
    margin-top: 0;
    background: #eef1f5;
}

.pagination-summary {
    margin-left: auto;
    color: #475569;
    font-size: 13px;
    white-space: nowrap;
}

.badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.progress-meter {
    display: grid;
    gap: 5px;
    min-width: 120px;
}

.progress-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eaf2;
}

.progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.tab {
    border: 1px solid transparent;
    border-bottom: 0;
    color: #334155;
    padding: 8px 10px;
}

.tab.active {
    border-color: var(--line);
    border-radius: 6px 6px 0 0;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
}

.project-tabs {
    display: grid;
    gap: 14px;
}

.project-tab-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.project-tab-list label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
}

.placeholder-form .project-tab-list label.tab:not(.check-row):not(.toggle-row):not(.install-checkbox):not(.setting-field-row),
.placeholder-form form .project-tab-list label.tab:not(.check-row):not(.toggle-row):not(.install-checkbox):not(.setting-field-row) {
    font-size: 13px;
}

.project-tab-panel {
    display: none;
}

#project-form-overview:checked ~ .project-tab-list label[for="project-form-overview"],
#project-form-strategy:checked ~ .project-tab-list label[for="project-form-strategy"],
#project-form-agreement:checked ~ .project-tab-list label[for="project-form-agreement"],
#project-detail-overview:checked ~ .project-tab-list label[for="project-detail-overview"],
#project-detail-strategy:checked ~ .project-tab-list label[for="project-detail-strategy"],
#project-detail-agreement:checked ~ .project-tab-list label[for="project-detail-agreement"],
#project-detail-updates:checked ~ .project-tab-list label[for="project-detail-updates"] {
    border-color: #b8caf6;
    border-radius: 6px 6px 0 0;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 700;
}

#project-form-overview:checked ~ .project-tab-panels .project-overview-tab,
#project-form-strategy:checked ~ .project-tab-panels .project-strategy-tab,
#project-form-agreement:checked ~ .project-tab-panels .project-agreement-tab,
#project-detail-overview:checked ~ .project-tab-panels .project-overview-tab,
#project-detail-strategy:checked ~ .project-tab-panels .project-strategy-tab,
#project-detail-agreement:checked ~ .project-tab-panels .project-agreement-tab,
#project-detail-updates:checked ~ .project-tab-panels .project-updates-tab {
    display: block;
}

.project-wide-field {
    grid-column: 1 / -1;
}

.agreement-form-block {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f6;
}

.agreement-form-block:last-of-type {
    border-bottom: 0;
}

.agreement-form-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.agreement-form-heading h3 {
    margin: 0;
    color: #172033;
    font-size: 13px;
    font-weight: 700;
}

.agreement-form-note {
    color: #64748b;
    font-size: 12px;
}

.agreement-choice-section {
    display: grid;
    gap: 8px;
    align-content: start;
}

.agreement-choice-grid,
.agreement-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.grid.three.agreement-frequency-grid {
    align-items: stretch;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agreement-frequency-grid .agreement-choice-section {
    border-left: 1px solid #e4e9f0;
    padding-left: 18px;
}

.agreement-frequency-grid .agreement-choice-section:first-child {
    border-left: 0;
    padding-left: 0;
    padding-right: 18px;
}

.agreement-frequency-grid .agreement-choice-section:not(:first-child):not(:last-child) {
    padding-right: 18px;
}

.placeholder-form label.agreement-choice-card,
.placeholder-form form label.agreement-choice-card {
    font-size: 13px;
}

.agreement-choice-card {
    display: grid;
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-height: 72px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #ffffff;
    padding: 10px;
}

.agreement-choice-card.compact {
    min-height: 58px;
}

.agreement-choice-card:has(input:checked) {
    border-color: #8bd7bd;
    background: #f0fbf6;
}

.agreement-choice-card input {
    width: 16px;
    min-height: 16px;
    margin-top: 2px;
    accent-color: var(--green);
}

.agreement-choice-card strong {
    display: block;
    color: #172033;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.agreement-choice-card small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.agreement-channel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.agreement-option-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(112px, 1fr));
}

.agreement-frequency-grid .agreement-option-row {
    gap: 6px 10px;
}

.agreement-frequency-grid .agreement-choice-card.compact {
    min-height: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    padding: 7px 8px;
}

.agreement-frequency-grid .agreement-choice-card.compact:has(input:checked) {
    border-color: transparent;
    background: #f0fbf6;
}

.agreement-terms-textarea {
    min-height: 220px;
}

.agreement-detail-view {
    gap: 14px;
}

#project-detail-agreement:checked ~ .project-tab-panels .agreement-detail-view,
#project-detail-updates:checked ~ .project-tab-panels .project-updates-tab {
    display: grid;
}

.agreement-priority-summary {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 1fr));
    overflow: hidden;
    border: 1px solid #d9e2ef;
    border-left: 4px solid var(--green);
    border-radius: 8px;
    background: #ffffff;
}

.agreement-summary-main,
.agreement-summary-item {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    border-left: 1px solid #edf1f6;
    padding: 12px;
}

.agreement-summary-main {
    border-left: 0;
    background: #f7fcfa;
}

.agreement-eyebrow,
.agreement-summary-item > span,
.agreement-priority-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.agreement-summary-main strong {
    color: #172033;
    font-size: 18px;
    line-height: 1.2;
}

.agreement-summary-main > span:last-child,
.agreement-summary-item strong {
    color: #172033;
    font-size: 13px;
    line-height: 1.35;
}

.agreement-priority-layout {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agreement-priority-card,
.agreement-secondary-card,
.agreement-terms-card {
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #ffffff;
}

.agreement-priority-card {
    border-top: 3px solid var(--green);
}

.agreement-support-card {
    border-top-color: #f59e0b;
}

.agreement-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.agreement-card-head h3,
.agreement-secondary-card h3,
.agreement-terms-card h3 {
    margin: 0;
}

.agreement-metric-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agreement-metric {
    display: grid;
    gap: 5px;
    min-height: 78px;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    background: #fbfdff;
    padding: 10px;
}

.agreement-metric span {
    color: #172033;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.agreement-support-summary {
    display: grid;
    gap: 8px;
}

.agreement-support-summary p,
.agreement-secondary-card p {
    display: grid;
    gap: 4px;
    border-top: 1px solid #edf1f6;
    padding-top: 8px;
}

.agreement-support-summary p:first-child,
.agreement-secondary-card p:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.agreement-followup-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
}

.agreement-terms-card p {
    line-height: 1.55;
}

.project-detail-panel .strategy-status-bar strong,
.project-detail-panel .strategy-review-heading,
.project-detail-panel .strategy-review-label,
.project-detail-panel .agreement-summary-item > span,
.project-detail-panel .agreement-priority-label,
.project-detail-panel .agreement-metric strong,
.project-detail-panel .agreement-support-summary strong,
.project-detail-panel .agreement-secondary-card p strong,
.project-updates-tab .progress-history-item strong {
    font-weight: 600;
}

.project-detail-panel .strategy-review-grid-read p,
.project-detail-panel .detail-card p,
.project-detail-panel .agreement-support-summary span,
.project-detail-panel .agreement-secondary-card p span,
.project-detail-panel .agreement-terms-card p,
.project-updates-tab .progress-history-item p,
.project-updates-tab .table td {
    color: #172033;
    font-weight: 400;
}

.project-detail-panel .agreement-metric span {
    font-weight: 600;
}

.project-updates-tab {
    gap: 16px;
}

.project-updates-tab .progress-history {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

.project-audit-history {
    display: grid;
    gap: 12px;
    border-top: 1px solid #d8e9e3;
    padding-top: 14px;
}

.project-audit-history .table-wrap {
    min-width: 0;
}

@media (max-width: 1024px) {
    .agreement-priority-layout,
    .agreement-followup-grid {
        grid-template-columns: 1fr;
    }

    .agreement-channel-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 760px) {
    .agreement-priority-summary,
    .agreement-metric-grid,
    .agreement-channel-grid,
    .agreement-option-row {
        grid-template-columns: 1fr;
    }

    .agreement-summary-item {
        border-top: 1px solid #edf1f6;
        border-left: 0;
    }

    .agreement-frequency-grid .agreement-choice-section {
        border-top: 1px solid #e4e9f0;
        border-left: 0;
        padding: 12px 0 0;
    }

    .agreement-frequency-grid .agreement-choice-section:first-child {
        border-top: 0;
        padding-top: 0;
        padding-right: 0;
    }

    .agreement-card-head {
        display: grid;
    }
}

.settings-tabs {
    position: sticky;
    top: 112px;
    z-index: 8;
    flex-wrap: wrap;
    overflow-x: visible;
    border-radius: 0;
    background: var(--bg);
    padding-top: 8px;
}

.settings-tabs .tab {
    flex: 0 0 auto;
    white-space: nowrap;
}

.settings-detail-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setting-detail-grid p,
.setting-field-row span {
    overflow-wrap: anywhere;
}

.setting-detail-grid {
    display: grid;
    align-items: start;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}

.setting-detail-grid .panel {
    margin-bottom: 0;
}

.setting-field-list {
    display: grid;
    gap: 10px;
}

.settings-local-form--support {
    max-width: 980px;
}

.settings-local-form--support .setting-field-list {
    align-items: start;
    gap: 14px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-local-form--support .setting-field-row {
    align-content: start;
    min-width: 0;
}

.settings-local-form--support .setting-field-row em {
    min-height: 34px;
}

.settings-local-form--support .settings-actions {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.setting-field-row {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.setting-field-row small {
    color: var(--muted);
    font-weight: 500;
}

.setting-field-row em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    overflow-wrap: anywhere;
}

.setting-field-row input,
.setting-field-row select {
    margin-top: 0;
}

.setting-saved-value {
    color: var(--green);
    font-size: 12px;
    font-weight: 500;
}

.settings-link-list,
.settings-copy-list {
    display: grid;
    gap: 10px;
}

.settings-link-list {
    grid-template-columns: repeat(2, minmax(0, max-content));
    margin-bottom: 14px;
}

.settings-copy-row {
    display: grid;
    gap: 5px;
    min-width: 0;
    border: 1px solid #e4e9f0;
    border-radius: 7px;
    background: #f8fafc;
    padding: 10px;
}

.settings-copy-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.settings-copy-row code {
    display: block;
    color: #1f2937;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.settings-note {
    margin-top: 12px;
}

.settings-actions {
    margin-top: 14px;
}

.backup-schedule-grid {
    display: grid;
    align-items: start;
    gap: 14px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backup-schedule-actions {
    grid-column: 1 / -1;
    margin-top: 0;
}

.backup-history-grid {
    display: grid;
    align-items: start;
    gap: 12px;
    grid-template-columns: 1fr;
}

.backup-history-panel {
    min-width: 0;
}

.backup-history-table {
    min-width: 860px;
}

.backup-history-table td {
    vertical-align: top;
}

.backup-history-table td:nth-child(3) strong,
.backup-history-table td:nth-child(3) .field-note,
.backup-history-table td:nth-child(2) .field-note {
    display: block;
    white-space: normal;
}

.backup-download-link {
    margin-top: 6px;
}

.backup-restore-form {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 190px;
}

.backup-restore-form input {
    width: 86px;
    min-height: 30px;
    margin: 0;
    text-transform: uppercase;
}

.smtp-test-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
}

.smtp-test-form label {
    display: grid;
    gap: 4px;
    min-width: min(260px, 100%);
    margin: 0;
}

.smtp-test-form span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.smtp-test-form input {
    margin: 0;
}

.permission-fieldset {
    min-width: 0;
    margin: 0;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    padding: 12px;
}

.permission-fieldset legend {
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 0 6px;
}

.permission-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 500;
}

.check-row input {
    width: 16px;
    min-height: 16px;
    margin: 0;
}

.team-edit-list,
.company-access-list,
.role-matrix {
    display: grid;
    gap: 16px;
}

.team-edit-card,
.company-access-card,
.role-card {
    display: grid;
    gap: 14px;
}

.team-user-filters {
    margin-bottom: 10px;
}

.team-create-form > .permission-fieldset {
    align-self: start;
}

.team-profile-header,
.linked-customer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.team-profile-header h3,
.team-profile-header p {
    min-width: 0;
    overflow-wrap: anywhere;
}

.team-profile-badges {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.team-linked-meta {
    margin: -6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.linked-customer-list {
    display: grid;
    gap: 12px;
}

.linked-customer-block {
    display: grid;
    gap: 10px;
    min-width: 0;
    border-top: 1px solid #e4e9f0;
    padding-top: 12px;
}

.linked-customer-block:first-child {
    border-top: 0;
    padding-top: 0;
}

.linked-customer-head strong,
.linked-customer-head span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.linked-customer-head strong {
    color: #263241;
    font-size: 13px;
    font-weight: 600;
}

.linked-customer-head span {
    color: var(--muted);
    font-size: 12px;
}

.role-table {
    min-width: 920px;
}

.role-table code {
    border-radius: 5px;
    background: #f4f6f9;
    color: #475569;
    font-size: 12px;
    padding: 3px 6px;
}

.role-table .role-description-cell {
    max-width: 440px;
    color: var(--muted);
    line-height: 1.4;
    white-space: normal;
}

.role-action-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.role-icon-button {
    display: inline-grid;
    place-items: center;
    width: 32px;
    min-height: 32px;
    border-radius: 6px;
    background: #ffffff;
    padding: 0;
}

.role-icon-button.is-view {
    border-color: #00a67e;
    color: #008f70;
}

.role-icon-button.is-edit {
    border-color: #f59e0b;
    color: #b45309;
}

.role-icon-button.is-delete {
    border-color: #ef4444;
    color: #dc2626;
}

.role-icon-button:hover,
.role-icon-button:focus {
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(36, 91, 214, 0.12);
}

.role-action-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
}

.role-action-icon::before,
.role-action-icon::after {
    position: absolute;
    content: "";
}

.role-action-icon-view::before {
    inset: 4px 1px;
    border: 1.5px solid currentColor;
    border-radius: 999px / 70%;
}

.role-action-icon-view::after {
    top: 7px;
    left: 7px;
    width: 4px;
    height: 4px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    background: currentColor;
}

.role-action-icon-edit::before {
    top: 3px;
    left: 8px;
    width: 4px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    transform: rotate(45deg);
}

.role-action-icon-edit::after {
    right: 2px;
    bottom: 2px;
    width: 9px;
    height: 1.5px;
    background: currentColor;
}

.role-action-icon-delete::before {
    top: 6px;
    left: 4px;
    width: 10px;
    height: 9px;
    border: 1.5px solid currentColor;
    border-top: 0;
    border-radius: 0 0 2px 2px;
}

.role-action-icon-delete::after {
    top: 3px;
    left: 3px;
    width: 12px;
    height: 1.5px;
    border-top: 1.5px solid currentColor;
    box-shadow: 4px -2px 0 -0.5px currentColor;
}

body.has-role-modal {
    overflow: hidden;
}

.role-modal[hidden] {
    display: none;
}

.role-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    align-items: start;
    justify-items: center;
    padding: 28px 24px;
}

.role-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}

.role-modal-window {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1120px, calc(100vw - 48px));
    max-height: calc(100vh - 56px);
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.3);
    overflow: hidden;
}

.role-modal-header,
.role-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e4e9f0;
    padding: 12px 16px;
}

.role-modal-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
}

.role-modal-footer {
    justify-content: flex-end;
    border-top: 1px solid #e4e9f0;
    border-bottom: 0;
    background: #f8fafc;
}

.role-modal-close {
    position: relative;
    width: 34px;
    min-height: 34px;
    border: 0;
    background: transparent;
    color: #1f2937;
    padding: 0;
}

.role-modal-close::before,
.role-modal-close::after {
    position: absolute;
    top: 16px;
    left: 9px;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.role-modal-close::before {
    transform: rotate(45deg);
}

.role-modal-close::after {
    transform: rotate(-45deg);
}

.role-modal-close:hover,
.role-modal-close:focus {
    background: #eef1f5;
    box-shadow: none;
}

.role-modal-body {
    display: grid;
    gap: 8px;
    overflow: auto;
    padding: 14px 16px 18px;
}

body.has-my-task-modal {
    overflow: hidden;
}

.my-task-modal[hidden] {
    display: none;
}

.my-task-modal {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: grid;
    align-items: start;
    justify-items: end;
    padding: 72px 24px 24px;
}

.my-task-backdrop {
    position: absolute;
    inset: 0;
    background: #17202ab3;
}

.my-task-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    min-height: 260px;
    overflow: hidden;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 24px 70px rgba(23, 32, 42, 0.18);
}

.my-task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #374151;
    background: #4b5563;
    padding: 12px 14px 10px;
}

.my-task-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

.my-task-header span {
    display: block;
    margin-top: 2px;
    color: #d1d5db;
    font-size: 11px;
    font-weight: 400;
}

.my-task-close {
    position: relative;
    flex: 0 0 32px;
    width: 32px;
    min-height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    padding: 0;
}

.my-task-close::before,
.my-task-close::after {
    position: absolute;
    top: 14px;
    left: 8px;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.my-task-close::before {
    transform: rotate(45deg);
}

.my-task-close::after {
    transform: rotate(-45deg);
}

.my-task-close:hover,
.my-task-close:focus {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.my-task-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border-bottom: 1px solid #e6ebf2;
    background: #ffffff;
    padding: 10px 12px;
}

.my-task-tabs button {
    justify-content: center;
    width: auto;
    min-height: 30px;
    border: 1px solid #d9dee7;
    border-radius: 7px;
    background: #f8fafc;
    color: #334155;
    padding: 5px 9px;
    font-size: 12px;
}

.my-task-tabs button span {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #e8edf4;
    color: #334155;
    font-size: 11px;
}

.my-task-tabs button.is-active {
    border-color: #bfe5d6;
    background: #e8f5ef;
    color: var(--green);
}

.my-task-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(124px, 152px) auto;
    align-items: end;
    gap: 8px;
    border-bottom: 1px solid #e6ebf2;
    background: #f9fafb;
    padding: 10px 12px 12px;
}

.my-task-form label {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.my-task-form input,
.my-task-form select {
    min-height: 34px;
    width: 100%;
    border-color: #cbd5e1;
    background: #ffffff;
    color: var(--ink);
    padding: 7px 9px;
}

.my-task-form input::placeholder {
    color: #64748b;
}

.my-task-form input:focus,
.my-task-form select:focus {
    border-color: rgba(18, 118, 83, 0.72);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(18, 118, 83, 0.22);
}

.my-task-form button {
    justify-content: center;
    width: auto;
    min-height: 34px;
    border-color: #0f766e;
    background: #0f766e;
    color: #ecfeff;
    padding: 7px 11px;
}

.my-task-form button:hover,
.my-task-form button:focus {
    border-color: #14b8a6;
    background: #0d9488;
}

.my-task-error {
    margin: 0;
    border-bottom: 1px solid #f5beb7;
    background: #fff0ee;
    color: var(--red);
    font-size: 12px;
    padding: 8px 12px;
}

.my-task-list {
    display: grid;
    flex: 1 1 auto;
    align-content: start;
    min-height: 0;
    background: #ffffff;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
}

.my-task-empty {
    margin: 8px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    padding: 14px;
    text-align: center;
}

.my-task-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    padding: 8px;
}

.my-task-row:nth-child(odd) {
    background: #ffffff;
}

.my-task-row:nth-child(even) {
    background: #f7f8fa;
}

.my-task-row + .my-task-row {
    margin-top: 6px;
}

.my-task-row:hover,
.my-task-row:focus-within {
    border-color: #cbd5e1;
    background: #eef4ff;
}

.my-task-check {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
}

.my-task-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #22c55e;
}

.my-task-main {
    min-width: 0;
}

.my-task-title {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.my-task-details {
    display: block;
    margin-top: 3px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.my-task-date {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.25;
}

.my-task-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 5px;
    color: #687386;
    font-size: 10px;
    line-height: 1.3;
}

.my-task-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-task-meta-creator {
    display: block;
}

.my-task-assignee-chip {
    display: block;
    max-width: 138px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fff1f2;
    color: #b42318;
    padding: 1px 7px;
    text-align: right;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.my-task-row.is-closed .my-task-title {
    color: #687386;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.my-task-row.is-loading {
    opacity: 0.58;
    pointer-events: none;
}

.my-task-reminder {
    position: fixed;
    top: var(--my-task-reminder-top, 58px);
    left: var(--my-task-reminder-left, 0);
    right: auto;
    bottom: auto;
    z-index: 940;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    align-items: start;
    gap: 4px;
    width: min(168px, calc(100vw - 24px));
    height: auto;
    min-height: 0;
    border: 1px solid rgba(18, 118, 83, 0.38);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-soft) 100%);
    color: #e8f5ef;
    padding: 6px 7px 6px 9px;
    text-align: left;
    box-shadow: 0 18px 36px rgba(23, 32, 42, 0.28);
}

.my-task-reminder::before {
    position: absolute;
    top: -5px;
    left: calc(var(--my-task-reminder-pointer-left, 148px) - 5px);
    width: 10px;
    height: 10px;
    border-top: 1px solid rgba(18, 118, 83, 0.38);
    border-left: 1px solid rgba(18, 118, 83, 0.38);
    background: var(--sidebar);
    content: "";
    transform: rotate(45deg);
}

.my-task-reminder:hover,
.my-task-reminder:focus-within {
    border-color: rgba(18, 118, 83, 0.72);
    background: linear-gradient(180deg, #1c2935 0%, var(--sidebar-soft) 100%);
    box-shadow: 0 20px 42px rgba(23, 32, 42, 0.34);
    text-decoration: none;
}

.my-task-reminder-body {
    display: grid;
    justify-items: start;
    gap: 2px;
    min-width: 0;
    min-height: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    text-align: left;
}

.my-task-reminder-body:hover,
.my-task-reminder-body:focus {
    background: transparent;
    box-shadow: none;
}

.my-task-reminder span {
    color: #b7c1d1;
    font-size: 10px;
    font-weight: 500;
}

.my-task-reminder strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.my-task-reminder strong span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.my-task-reminder-close {
    position: relative;
    width: 20px;
    min-height: 20px;
    border: 1px solid rgba(232, 245, 239, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #dbe4ee;
    padding: 0;
}

.my-task-reminder-close::before,
.my-task-reminder-close::after {
    position: absolute;
    top: 8px;
    left: 5px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.my-task-reminder-close::before {
    transform: rotate(45deg);
}

.my-task-reminder-close::after {
    transform: rotate(-45deg);
}

.my-task-reminder-close:hover,
.my-task-reminder-close:focus {
    border-color: rgba(232, 245, 239, 0.48);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

@media (max-width: 640px) {
    .my-task-modal {
        align-items: start;
        justify-items: center;
        padding: 66px 12px 12px;
    }

    .my-task-panel {
        width: min(100%, calc(100vw - 24px));
        max-height: calc(100vh - 78px);
        max-height: calc(100dvh - 78px);
        min-height: 240px;
    }

    .my-task-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .my-task-assignee-field {
        grid-column: 1 / -1;
    }

    .my-task-form button,
    .my-task-tabs button,
    .my-task-close {
        width: auto;
    }

    .my-task-reminder {
        gap: 3px;
        width: min(156px, calc(100vw - 24px));
        padding: 6px 6px 6px 8px;
    }

    .my-task-reminder span {
        font-size: 9px;
    }

    .my-task-reminder strong {
        font-size: 12px;
    }
}

.role-name-field {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
}

.role-name-field input {
    min-height: 40px;
    margin: 0;
    background: #f8fafc;
}

.role-permissions-panel {
    min-width: 0;
    border: 1px solid #e4e9f0;
    background: #ffffff;
}

.role-permissions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e4e9f0;
    padding: 12px 14px;
}

.role-permissions-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
}

.role-permission-bulk-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.role-create-fields > .role-name-field,
.role-create-description {
    grid-column: 1 / -1;
}

.role-uncheck-button {
    border-color: #fb923c;
    color: #c2410c;
}

.role-permission-tree {
    display: grid;
    gap: 4px;
    padding: 12px 14px 16px;
}

.permission-branch {
    border: 1px solid transparent;
}

.permission-branch summary {
    display: grid;
    align-items: center;
    grid-template-columns: 22px 24px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 36px;
    border-radius: 4px;
    cursor: pointer;
    list-style: none;
    padding: 6px 8px;
}

.permission-branch summary::-webkit-details-marker {
    display: none;
}

.permission-branch[open] > summary {
    background: #eef1f5;
}

.permission-caret {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #64748b;
    border-bottom: 1.5px solid #64748b;
    transform: rotate(-45deg);
    transform-origin: center;
}

.permission-branch[open] > summary .permission-caret {
    transform: rotate(45deg);
}

.permission-parent-control {
    display: inline-grid;
    place-items: center;
}

.permission-parent-control input,
.role-permission-row input {
    width: 20px;
    min-height: 20px;
    margin: 0;
    accent-color: #00a67e;
}

.permission-branch-name {
    min-width: 0;
    overflow: hidden;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.permission-branch-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.permission-children {
    display: grid;
    gap: 2px;
    padding: 6px 8px 8px 62px;
}

.permission-matrix {
    gap: 0;
    overflow-x: auto;
}

.permission-matrix-row {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(180px, 1.5fr) repeat(var(--permission-action-count), minmax(82px, 0.7fr));
    min-width: calc(180px + (var(--permission-action-count) * 82px));
    border-bottom: 1px solid #edf1f7;
}

.permission-matrix-row:last-child {
    border-bottom: 0;
}

.permission-matrix-head {
    min-height: 30px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.permission-matrix-head span,
.permission-matrix-cell,
.permission-matrix-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 38px;
    padding: 6px 8px;
}

.permission-matrix-head span:not(:first-child),
.permission-matrix-cell {
    justify-content: center;
}

.permission-matrix-item {
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
}

.permission-matrix-check {
    display: inline-grid;
    place-items: center;
    margin: 0;
}

.permission-matrix-check input {
    width: 20px;
    min-height: 20px;
    margin: 0;
    accent-color: #00a67e;
}

.permission-matrix-empty {
    width: 20px;
    height: 1px;
    background: #d8dee8;
}

.role-permission-row {
    display: grid;
    align-items: center;
    grid-template-columns: 22px minmax(160px, 1.4fr) minmax(104px, 0.6fr) minmax(150px, auto);
    gap: 8px;
    min-height: 34px;
    border-radius: 4px;
    color: #2f3b4c;
    font-size: 13px;
    font-weight: 400;
    padding: 4px 6px;
}

.role-permission-row-head {
    min-height: 26px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.role-permission-row:hover {
    background: #f8fafc;
}

.role-permission-row-head:hover {
    background: transparent;
}

.role-permission-row.is-read-only {
    cursor: default;
}

.role-permission-row span,
.role-permission-row small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-permission-access {
    color: #475569;
    font-size: 12px;
}

.role-permission-row small {
    color: #94a3b8;
    font-size: 11px;
    text-align: right;
}

.company-access-card {
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    padding: 14px;
}

.company-access-card.is-locked {
    background: #f8fafc;
}

.company-access-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.permission-summary-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.permission-summary-grid span {
    border-top: 1px solid #e4e9f0;
    color: #475569;
    font-size: 13px;
    padding-top: 8px;
}

.permission-summary-grid strong {
    color: #111827;
    font-weight: 600;
}

.access-lock-note {
    margin: 0;
}

.meta-list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-list div {
    border-bottom: 1px solid #e4e9f0;
    padding-bottom: 8px;
}

.meta-list strong {
    font-weight: 600;
}

.record-hero {
    align-items: start;
    background: #fbfcfe;
    box-shadow: none;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.record-title-stack {
    display: grid;
    gap: 8px;
}

.record-title-stack .muted {
    margin: 0;
}

.record-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 0;
    gap: 12px;
    border-bottom: 1px solid #e4e9f0;
    padding-bottom: 8px;
}

.record-summary-title {
    display: grid;
    align-content: start;
    min-width: 180px;
    gap: 2px;
}

.record-summary-kicker {
    margin: 0;
    color: #334f75;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.record-summary-heading {
    margin: 0;
    color: #175cd3;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.record-summary-list-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.82fr);
    gap: 0;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    background: #f8fafc;
}

.razorpay-payment-link-panel,
.razorpay-webhook-evidence-panel {
    padding: 12px 14px;
}

.razorpay-payment-link-panel > .panel-title,
.razorpay-webhook-evidence-panel > .panel-title {
    margin-bottom: 8px;
}

.razorpay-payment-link-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.razorpay-webhook-evidence-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.razorpay-payment-link-summary > p,
.razorpay-webhook-evidence-summary > p {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    margin: 0;
    padding: 9px 10px;
    border-top: 1px solid #e4e9f0;
}

.razorpay-payment-link-summary > p:nth-child(2n),
.razorpay-webhook-evidence-summary > p:nth-child(3n + 2),
.razorpay-webhook-evidence-summary > p:nth-child(3n + 3) {
    border-left: 1px solid #e4e9f0;
}

.razorpay-payment-link-summary > p:nth-child(-n + 2),
.razorpay-webhook-evidence-summary > p:nth-child(-n + 3) {
    border-top: 0;
}

.razorpay-payment-link-summary > p > strong,
.razorpay-webhook-evidence-summary > p > strong {
    color: #223955;
    font-size: 12px;
}

.razorpay-payment-link-summary > p > span,
.razorpay-webhook-evidence-summary > p > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.razorpay-payment-link-panel .settings-actions {
    margin-top: 10px;
}

.razorpay-payment-link-last-checked {
    margin: 7px 0 0;
    color: #6b7b91;
    font-size: 12px;
}

@media (max-width: 900px) {
    .razorpay-payment-link-summary,
    .razorpay-webhook-evidence-summary {
        grid-template-columns: 1fr;
    }

    .razorpay-payment-link-summary > p,
    .razorpay-webhook-evidence-summary > p {
        border-left: 0 !important;
    }

    .razorpay-payment-link-summary > p:first-child,
    .razorpay-webhook-evidence-summary > p:first-child {
        border-top: 0;
    }
}

.record-summary-list {
    display: grid;
    align-content: start;
    min-width: 0;
    padding: 12px 14px;
}

.record-summary-list + .record-summary-list {
    border-left: 1px solid #e4e9f0;
    background: #f3f6fa;
}

.record-summary-list-head {
    display: grid;
    gap: 2px;
    margin-bottom: 8px;
    min-width: 0;
}

.record-summary-list-row {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    border-top: 1px solid #edf1f6;
    padding: 8px 0;
}

.record-summary-list-row:first-of-type {
    border-top-color: #e4e9f0;
}

.record-summary-list-row.is-contrast-row {
    margin: 0 -5px;
    border: 1px solid #cfe0f8;
    border-radius: 5px;
    background: #eaf3ff;
    padding: 5px;
}

.record-summary-list-row > span:first-child {
    color: #334f75;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.record-summary-list-row > strong,
.record-summary-link {
    min-width: 0;
    color: #172033;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.record-summary-link {
    color: #175cd3;
    text-decoration: none;
}

.record-summary-link:hover,
.record-summary-link:focus {
    color: #009a79;
    text-decoration: underline;
}

.record-summary-list-row .badge {
    justify-self: start;
}

.record-summary-list-row .progress-meter {
    min-width: 0;
}

.project-overview-summary .record-summary-list-grid {
    border-color: #1e3858;
    background: #12213a;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.project-overview-summary .record-summary-list {
    background: #13243e;
}

.project-overview-summary .record-summary-list + .record-summary-list {
    border-left-color: rgba(191, 219, 254, 0.16);
    border-top-color: rgba(191, 219, 254, 0.16);
    background: #172a46;
}

.project-overview-summary .record-summary-kicker {
    color: #dbeafe;
    font-weight: 700;
}

.project-overview-summary .record-summary-list-row {
    border-top-color: rgba(191, 219, 254, 0.14);
}

.project-overview-summary .record-summary-list-row:first-of-type {
    border-top-color: rgba(191, 219, 254, 0.22);
}

.project-overview-summary .record-summary-list-row > span:first-child {
    color: #a9c3e6;
    font-weight: 600;
}

.project-overview-summary .record-summary-list-row > strong,
.project-overview-summary .record-summary-link {
    color: #f8fbff;
    font-weight: 400;
}

.project-overview-summary .record-summary-link {
    color: #8ec5ff;
}

.project-overview-summary .record-summary-link:hover,
.project-overview-summary .record-summary-link:focus {
    color: #bde3ff;
}

.project-overview-summary .record-summary-list-row .badge {
    font-weight: 500;
}

.invoice-preview-document {
    display: grid;
    gap: 22px;
    margin-bottom: 16px;
    padding: 28px 32px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.invoice-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #d7e0ea;
    padding-bottom: 20px;
}

.invoice-preview-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.invoice-preview-mark {
    display: inline-grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    background: #102a43;
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
}

.invoice-preview-brand strong,
.invoice-preview-party strong,
.invoice-preview-party-link {
    display: block;
    min-width: 0;
    color: #175cd3;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.invoice-preview-brand span {
    display: block;
    margin-top: 3px;
    color: #52657a;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.invoice-preview-title {
    display: grid;
    justify-items: end;
    gap: 8px;
    text-align: right;
}

.invoice-preview-title p {
    margin: 0;
    color: #5f4316;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.invoice-preview-title strong,
.invoice-preview-title span {
    display: block;
    color: #172033;
    line-height: 1.25;
}

.invoice-preview-title strong {
    font-size: 15px;
}

.invoice-preview-title span {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.invoice-preview-parties {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
}

.invoice-preview-party {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
}

.invoice-preview-party h2,
.invoice-preview-notes h3 {
    margin: 0 0 4px;
    color: #334f75;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.invoice-preview-party span,
.invoice-preview-party a {
    color: #172033;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.invoice-preview-party a:not(.invoice-preview-party-link) {
    color: #175cd3;
    text-decoration: none;
}

.invoice-preview-party a:hover,
.invoice-preview-party a:focus,
.invoice-preview-meta a:hover,
.invoice-preview-meta a:focus {
    color: #009a79;
    text-decoration: underline;
}

.invoice-preview-party .muted {
    color: #7a8796;
}

.invoice-preview-party-meta {
    display: grid;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid #d7e0ea;
}

.invoice-preview-party-meta div {
    display: grid;
    grid-template-columns: minmax(82px, max-content) minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.invoice-preview-party-meta dt {
    color: #334f75;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.invoice-preview-party-meta dd {
    margin: 0;
    min-width: 0;
    color: #172033;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-align: right;
}

.invoice-preview-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.invoice-preview-meta div {
    display: grid;
    align-content: start;
    min-width: 0;
    gap: 4px;
    padding: 10px 12px;
    border-right: 1px solid #e4e9f0;
    border-bottom: 1px solid #e4e9f0;
}

.invoice-preview-meta div:nth-child(3n) {
    border-right: 0;
}

.invoice-preview-meta div:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.invoice-preview-meta dt,
.invoice-preview-totals dt {
    color: #334f75;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.invoice-preview-meta dd,
.invoice-preview-totals dd {
    margin: 0;
    min-width: 0;
    color: #172033;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.invoice-preview-meta a {
    color: #175cd3;
    text-decoration: none;
}

.invoice-preview-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.invoice-preview-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    table-layout: fixed;
}

.invoice-preview-table th {
    background: #0f8a70;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    padding: 11px 10px;
    text-align: left;
    text-transform: uppercase;
}

.invoice-preview-table th:first-child {
    width: 38px;
}

.invoice-preview-table th:nth-child(2) {
    width: 28%;
}

.invoice-preview-table th:nth-child(3) {
    width: 52px;
}

.invoice-preview-table th:nth-child(4) {
    width: 78px;
}

.invoice-preview-table th:nth-child(5) {
    width: 112px;
}

.invoice-preview-table th:nth-child(6) {
    width: 88px;
}

.invoice-preview-table th:nth-child(7) {
    width: 120px;
}

.invoice-preview-table.is-six-column th:nth-child(2) {
    width: 36%;
}

.invoice-preview-table.is-six-column th:nth-child(4) {
    width: 112px;
}

.invoice-preview-table.is-six-column th:nth-child(6) {
    width: 120px;
}

.invoice-preview-table td {
    border-bottom: 1px solid #e4e9f0;
    color: #172033;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    padding: 11px 8px;
    text-align: left;
    vertical-align: top;
}

.invoice-preview-table th:nth-child(3),
.invoice-preview-table th:nth-child(5),
.invoice-preview-table th:nth-child(7),
.invoice-preview-table td:nth-child(3),
.invoice-preview-table td:nth-child(5),
.invoice-preview-table td:nth-child(7) {
    text-align: right;
}

.invoice-preview-table.is-six-column th:nth-child(4),
.invoice-preview-table.is-six-column th:nth-child(6),
.invoice-preview-table.is-six-column td:nth-child(4),
.invoice-preview-table.is-six-column td:nth-child(6) {
    text-align: right;
}

.invoice-preview-table.is-six-column th:nth-child(5),
.invoice-preview-table.is-six-column td:nth-child(5) {
    text-align: left;
}

.invoice-preview-table td strong,
.invoice-preview-table td span {
    display: block;
}

.invoice-preview-table td span {
    margin-top: 3px;
    color: #7a8796;
    font-size: 12px;
}

.invoice-preview-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 28px;
    align-items: start;
}

.invoice-preview-footer-actions {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
    margin-top: -6px;
}

.invoice-preview-footer-actions .confirmation-popover-body {
    top: auto;
    right: 0;
    bottom: calc(100% + 8px);
    left: auto;
}

.invoice-cancel-summary.button.danger {
    min-height: 26px;
    border-color: #ef4444;
    background: #fff1f2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
}

.invoice-cancel-summary.button.danger:hover,
.invoice-cancel-summary.button.danger:focus {
    background: #fee2e2;
    color: #7f1d1d;
}

.invoice-preview-notes {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.invoice-preview-notes article {
    border-top: 1px solid #e4e9f0;
    padding-top: 12px;
}

.invoice-preview-notes p {
    margin: 0;
    color: #52657a;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.invoice-preview-notes p span {
    display: block;
}

.invoice-preview-pay-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    min-height: 36px;
    margin-top: 14px;
    border-radius: 0;
    background: var(--green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.invoice-preview-terms-page {
    margin-top: 28px;
    border-top: 1px solid #e4e9f0;
    padding-top: 18px;
}

.invoice-preview-terms-page article {
    max-width: none;
}

.invoice-preview-terms-page h3 {
    margin: 0 0 8px;
    color: #294565;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.invoice-preview-terms-page p {
    margin: 0;
    color: #52657a;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.invoice-preview-totals {
    display: grid;
    gap: 0;
    min-width: 0;
    margin: 0;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.invoice-preview-totals div {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(0, auto);
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border-top: 1px solid #edf1f6;
}

.invoice-preview-totals div:first-child {
    border-top: 0;
}

.invoice-preview-totals dd {
    justify-self: end;
    font-weight: 700;
    text-align: right;
}

.invoice-preview-totals .is-grand-total {
    background: #eaf6ff;
}

.invoice-preview-totals .is-balance-due {
    background: #f1fbf8;
}

.record-action-strip,
.customer-record-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.record-action-strip {
    justify-content: flex-end;
}

.record-action-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    background: #f4f6f9;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 3px 8px;
    text-decoration: none;
    white-space: nowrap;
}

.record-action-chip:hover,
.record-action-chip:focus {
    border-color: #c7d7fe;
    background: #eef4ff;
    color: #175cd3;
    text-decoration: none;
}

.record-meta-grid {
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0;
}

.detail-card {
    padding: 12px;
}

.record-meta-grid div {
    display: grid;
    align-items: start;
    min-width: 0;
    border-top: 1px solid #e4e9f0;
    padding: 8px 10px;
}

.record-hero > .record-meta-grid > div:not(:nth-child(3n)) {
    border-right: 1px solid #e4e9f0;
}

.record-hero > .record-meta-grid > div:nth-child(3n + 1) {
    padding-left: 0;
}

.record-hero > .record-meta-grid > div:nth-child(3n) {
    padding-right: 0;
}

.record-hero > .record-meta-grid > div:nth-child(-n + 3) {
    border-top: 0;
}

.portal-invoice-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.portal-invoice-actions .settings-note {
    margin: 0;
}

.record-meta-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.record-meta-grid strong,
.detail-card strong,
.timeline-user {
    display: block;
    color: #334f75;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.record-meta-grid .record-meta-copy > span,
.detail-card span {
    display: block;
    overflow-wrap: anywhere;
}

.record-meta-grid .record-meta-copy > span {
    margin-top: 0;
    color: #172033;
    line-height: 1.35;
}

.zoho-record-shell {
    display: grid;
    align-items: start;
    gap: 0;
    height: calc(100vh - 148px);
    grid-template-columns: minmax(220px, 242px) minmax(0, 1fr);
    margin-left: -10px;
    overflow: hidden;
}

.zoho-record-main {
    min-width: 0;
    max-height: 100%;
    overflow-y: auto;
    background: #f5f7fb;
    padding-right: 8px;
    padding-left: 6px;
    scrollbar-gutter: stable;
}

.zoho-record-rail {
    position: relative;
    z-index: 4;
    display: grid;
    gap: 8px;
    min-width: 0;
    max-height: 100%;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 10px 0;
    scrollbar-color: #94a3b8 transparent;
    scrollbar-gutter: auto;
}

.zoho-record-rail::-webkit-scrollbar {
    width: 8px;
}

.zoho-record-rail::-webkit-scrollbar-track {
    border: 0;
    background: transparent;
}

.zoho-record-rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #94a3b8;
}

.zoho-record-rail::-webkit-scrollbar-corner {
    background: transparent;
}

.zoho-record-rail-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #d8e1ec;
    padding: 0 2px 10px;
}

.zoho-record-rail-head small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.zoho-record-rail-head strong {
    color: #172033;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.zoho-record-rail-nav {
    display: grid;
    gap: 0;
}

.zoho-record-rail-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 34px;
    border: 0;
    border-radius: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    padding: 8px 10px;
    text-decoration: none;
}

.zoho-record-rail-nav a:nth-child(even):not(.is-active),
.zoho-record-rail-nav a.is-rail-alt:not(.is-active) {
    background: #f8fafc;
}

.zoho-record-rail-nav a:hover,
.zoho-record-rail-nav a:focus {
    background: #e7f8f3;
    color: #009a79;
    text-decoration: none;
}

.zoho-record-rail-nav a.is-active {
    background: #e7f8f3;
    box-shadow: inset 3px 0 0 #00b993;
    color: #009a79;
    font-weight: 400;
}

.zoho-record-rail-nav a[hidden] {
    display: none;
}

.record-rail-view,
.record-rail-search {
    display: block;
    min-width: 0;
}

.record-rail-view select,
.record-rail-search input {
    width: 100%;
    height: 30px;
    border: 1px solid #d8e1ec;
    border-radius: 7px;
    background: #ffffff;
    color: #172033;
    font-size: 12px;
    padding: 6px 9px;
}

.record-rail-view select {
    cursor: pointer;
}

.record-rail-search input::placeholder {
    color: #8a96a8;
}

.record-rail-view select:focus,
.record-rail-search input:focus {
    border-color: #91c9ec;
    box-shadow: 0 0 0 3px rgba(36, 91, 214, 0.08);
    outline: none;
}

.record-rail-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #94a3b8;
}

.record-rail-dot-green {
    background: #00b993;
}

.record-rail-dot-amber {
    background: #f59e0b;
}

.record-rail-dot-red {
    background: #ef4444;
}

.record-rail-dot-gray {
    background: #94a3b8;
}

.record-rail-primary {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
}

.record-rail-empty {
    border: 1px dashed #d8dee8;
    border-radius: 7px;
    color: #64748b;
    font-size: 12px;
    padding: 10px;
}

.record-section-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.record-section-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.record-section-tabs a:hover,
.record-section-tabs a:focus {
    border-color: #b8c6dc;
    background: #f4f8fb;
    color: #175cd3;
    text-decoration: none;
}

.record-section-tabs small {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.recurring-page-header {
    align-items: flex-start;
    margin-bottom: 12px;
}

.recurring-page-header h1 {
    margin-bottom: 4px;
}

.recurring-page-header .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.recurring-page-header .button {
    white-space: nowrap;
}

.recurring-status-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    margin-bottom: 10px;
    border: 1px solid #e4e9f0;
    border-left: 4px solid #cbd5e1;
    border-radius: 8px;
    background: #fbfcfe;
    box-shadow: none;
    padding: 16px;
}

.recurring-status-card.is-cancelled {
    border-left-color: #dc2626;
}

.recurring-status-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    border-bottom: 1px solid #e4e9f0;
    padding-bottom: 12px;
}

.recurring-status-head h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.recurring-kicker,
.recurring-field-label {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: uppercase;
}

.recurring-key-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.recurring-field {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
}

.recurring-field-value {
    display: block;
    color: #172033;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.recurring-field-value.is-amount {
    color: #111827;
    font-size: 18px;
}

.recurring-next-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin-bottom: 10px;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    background: #fbfcfe;
    padding: 12px 14px;
}

.recurring-next-action.is-cancelled {
    border-color: #fecaca;
    background: #fff7f7;
}

.recurring-next-action p {
    margin: 3px 0 0;
    color: #172033;
    font-size: 14px;
    font-weight: 600;
}

.recurring-section-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.recurring-section-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 11px;
    text-decoration: none;
    white-space: nowrap;
}

.recurring-section-nav a:hover,
.recurring-section-nav a:focus {
    border-color: #b8c6dc;
    background: #f4f6f9;
    color: #175cd3;
    text-decoration: none;
}

.recurring-detail-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
}

.recurring-info-card {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
}

.recurring-info-card.is-quiet {
    background: #fbfcfe;
}

.recurring-info-card h2 {
    margin: 0;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.recurring-info-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.recurring-info-list > div {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(104px, 0.42fr) minmax(0, 1fr);
    min-width: 0;
    border-top: 1px solid #edf1f6;
    padding: 8px 0;
}

.recurring-info-list > div:first-child {
    border-top: 0;
    padding-top: 0;
}

.recurring-info-list dt {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.recurring-info-list dd {
    margin: 0;
    color: #172033;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.recurring-info-list.is-secondary-list {
    margin-top: 4px;
    border-top: 1px solid #e4e9f0;
    padding-top: 6px;
}

.compact-empty-state {
    margin: 2px 0 0;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
}

.subtle-inline {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.zoho-link-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #e4e9f0;
    padding-top: 10px;
}

.zoho-link-actions .button {
    min-height: 30px;
    padding: 6px 10px;
}

.recurring-internal-panel {
    margin-top: 0;
}

.recurring-internal-panel .detail-card h3 {
    margin: 0;
    color: #334f75;
    font-size: 13px;
    font-weight: 700;
}

.description-block {
    margin: 0;
    color: #334155;
    overflow-wrap: anywhere;
}

.record-summary-note {
    border-top: 1px solid #e4e9f0;
    padding-top: 8px;
}

.section-gap {
    margin-top: 12px;
}

.form-gap {
    margin-bottom: 16px;
}

.detail-section-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card {
    display: grid;
    align-content: start;
    gap: 8px;
}

.detail-card p {
    margin: 0;
}

.project-overview-grid .detail-card p {
    display: grid;
    gap: 4px;
    padding: 8px 0;
    border-bottom: 1px solid #edf1f6;
}

.project-overview-grid .detail-card p:last-child {
    border-bottom: 0;
}

.project-overview-grid .detail-card strong {
    color: #334f75;
    font-weight: 700;
}

.project-overview-grid .detail-card span {
    color: #172033;
}

.detail-card .muted {
    overflow-wrap: anywhere;
}

.project-detail-panel .project-tab-panels,
.project-form-panel .project-tab-panels {
    min-width: 0;
}

.progress-history {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.compact-panel-title {
    margin-bottom: 0;
}

.compact-panel-title h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.progress-update-box {
    width: fit-content;
    max-width: 100%;
}

.progress-update-box[open] {
    width: 100%;
}

.progress-update-box summary {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    font-size: 13px;
    list-style: none;
    padding: 6px 10px;
}

.progress-update-box summary::-webkit-details-marker {
    display: none;
}

.progress-update-box form {
    margin-top: 10px;
}

.progress-history-list {
    display: grid;
    gap: 10px;
}

.progress-history-item {
    display: grid;
    gap: 8px;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
}

.progress-history-item p {
    margin: 0;
    overflow-wrap: anywhere;
}

.support-message-panel {
    display: grid;
    gap: 12px;
}

.support-quick-filters,
.attendance-quick-filters,
.support-bulk-toolbar,
.project-bulk-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.support-quick-filters .button.is-active,
.attendance-quick-filters .button.is-active {
    border-color: #b8caf6;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 700;
}

.support-bulk-toolbar,
.project-bulk-toolbar {
    justify-content: flex-start;
    border-top: 1px solid #e4e9f0;
    padding: 10px 12px;
}

.support-select-all,
.project-select-all,
.project-bulk-field,
.project-bulk-reason {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.project-bulk-field,
.project-bulk-reason {
    flex: 0 1 210px;
}

.project-bulk-reason {
    flex-basis: 270px;
}

.support-select-all input,
.support-select-cell input,
.project-select-all input,
.project-select-cell input {
    width: auto;
    min-height: auto;
}

.support-selection-count,
.project-selection-count {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.support-bulk-toolbar button:disabled,
.project-bulk-toolbar button:disabled {
    border-color: #d8dee8;
    background: #f4f6f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.support-ticket-table .support-select-cell,
.project-list-table .project-select-cell {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    text-align: center;
}

.support-ticket-table .support-ticket-number-cell {
    min-width: 220px;
}

.support-ticket-table .support-ticket-date-cell {
    min-width: 150px;
}

.support-close-ticket-form {
    margin: 0;
}

.support-close-ticket-button {
    min-height: 24px;
    border: 1px solid #b8caf6;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 10px;
}

.support-close-ticket-button:hover,
.support-close-ticket-button:focus {
    border-color: var(--blue);
    background: var(--blue);
    color: #ffffff;
}

.support-message-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-message-form {
    display: grid;
    gap: 10px;
    min-width: 0;
    border: 0;
    border-top: 1px solid #d8e9e3;
    border-radius: 0;
    background: transparent;
    padding: 12px 0 0;
}

.support-message-form.is-private-note-form {
    border-top-color: #f3d19b;
    background: transparent;
}

.support-message-form textarea {
    min-height: 112px;
    resize: vertical;
}

.support-message-list {
    display: grid;
    gap: 10px;
}

.support-message-item {
    display: grid;
    gap: 10px;
    border: 0;
    border-top: 1px solid #d8e9e3;
    border-radius: 0;
    background: transparent;
    padding: 12px 0;
}

.support-message-item.is-private-note {
    border-top-color: #f3d19b;
    background: #fffaf4;
    padding-right: 10px;
    padding-left: 10px;
}

.support-message-item header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.support-message-item header > div:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.support-message-item header strong {
    color: #172033;
    font-size: 13px;
    font-weight: 700;
}

.support-message-sender-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    min-width: 0;
}

.support-message-sender-email {
    overflow-wrap: anywhere;
}

.support-message-item header span:not(.badge) {
    color: #64748b;
    font-size: 12px;
}

.support-message-item p {
    margin: 0;
    color: #26364b;
    overflow-wrap: anywhere;
}

.support-ticket-view-card .support-message-list {
    gap: 0;
    border-top: 1px solid #e4e9f0;
}

.support-ticket-view-card .support-message-item {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 13px 0;
}

.support-ticket-view-card .support-original-thread .support-message-item {
    border-top: 1px solid #e4e9f0;
    border-bottom: 1px solid #e4e9f0;
}

.support-ticket-view-card .support-message-list .support-message-item {
    border-bottom: 1px solid #e4e9f0;
}

.support-ticket-view-card .support-message-item.is-private-note {
    border-left: 0;
    background: #fffaf4;
    padding-right: 10px;
    padding-left: 10px;
}

.support-reference-line {
    display: grid;
    gap: 4px;
    border-top: 1px solid #dff3ed;
    padding-top: 10px;
}

.support-reference-line strong {
    color: #334f75;
    font-size: 12px;
    line-height: 1.25;
    text-transform: uppercase;
}

.support-reference-line span {
    color: #334155;
    overflow-wrap: anywhere;
}

.support-compose-header {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.support-compose-form {
    display: grid;
    gap: 12px;
}

.support-compose-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    gap: 20px;
    align-items: start;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 16px 0 0;
}

.support-compose-main {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.support-compose-body {
    display: grid;
    gap: 6px;
}

.support-compose-subject input {
    min-height: 42px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: #ffffff;
    color: #172033;
    font-size: 18px;
    padding: 6px 0;
}

.support-compose-subject input:focus {
    border-color: #2f6df6;
    background: #f8fbff;
    box-shadow: none;
}

.support-compose-body textarea {
    min-height: 300px;
    line-height: 1.55;
    padding: 16px;
}

.support-compose-body textarea,
.support-compose-sidebar textarea,
.support-message-form textarea,
.support-sidebar-textarea-box textarea {
    border: 0;
    border-top: 1px solid #dbe4ef;
    border-radius: 0;
    background: #fbfdff;
    box-shadow: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.support-compose-body textarea:focus,
.support-compose-sidebar textarea:focus,
.support-message-form textarea:focus,
.support-sidebar-textarea-box textarea:focus {
    border-top-color: #2f6df6;
    background: #eef6ff;
    box-shadow: inset 0 -2px 0 #2f6df6;
    outline: none;
}

.support-compose-body input[type="file"],
.support-message-form input[type="file"] {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-top: 1px solid #e4e9f0;
    border-radius: 0;
    background: transparent;
    color: #475569;
    padding: 10px 0 0;
}

.support-compose-body input[type="file"]:focus,
.support-message-form input[type="file"]:focus {
    border-top-color: #2f6df6;
    background: #f8fbff;
    box-shadow: inset 0 -2px 0 #2f6df6;
    outline: 0;
}

.support-attachment-list {
    display: grid;
    gap: 0;
    margin-top: 6px;
    border-top: 1px solid #e4e9f0;
}

.support-attachment-list .badge {
    justify-content: flex-start;
    width: 100%;
    min-height: 32px;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    border-radius: 0;
    background: transparent;
    color: #245bd6;
    padding: 8px 0;
    white-space: normal;
}

.support-attachment-list .badge:last-child {
    border-bottom: 0;
}

.support-attachment-list .badge:hover,
.support-attachment-list .badge:focus {
    background: #f5f9ff;
    color: #1d4ed8;
}

.support-compose-sidebar {
    display: grid;
    gap: 12px;
    min-width: 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.support-compose-sidebar label {
    display: grid;
    gap: 5px;
}

.support-compose-sidebar > label + label,
.support-compose-sidebar > label + .support-project-context,
.support-compose-sidebar > .support-project-context + label {
    border-top: 1px solid #edf1f6;
    padding-top: 10px;
}

.support-compose-sidebar .checkbox-line {
    display: flex;
    align-items: center;
}

.support-compose-sidebar textarea {
    min-height: 80px;
}

.support-project-context {
    display: grid;
    gap: 8px;
}

.support-compose-submit {
    justify-content: center;
    min-height: 42px;
    border-color: #00b894;
    background: #00b894;
}

.support-compose-errors {
    display: block;
    border-color: #fecaca;
    background: #fff5f5;
    color: #912018;
    padding: 10px 12px;
}

.support-ticket-view-card {
    align-items: stretch;
}

.support-ticket-view-card .support-compose-main {
    align-content: start;
}

.support-ticket-subject-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
    gap: 4px 12px;
    align-items: start;
    padding-bottom: 0;
}

.support-ticket-subject-block h1 {
    margin: 0;
    color: #172033;
    font-size: 21px;
    line-height: 1.2;
}

.support-ticket-subject-meta {
    display: grid;
    gap: 4px;
    justify-items: end;
    min-width: 0;
}

.support-ticket-subject-meta > span {
    color: #334155;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-align: right;
}

.support-ticket-subject-meta .badge-row {
    justify-content: flex-end;
}

.support-thread-block {
    display: grid;
    gap: 12px;
}

.support-original-thread {
    padding-top: 0;
}

.support-thread-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.support-thread-head h2 {
    margin: 0;
    color: #172033;
    font-size: 16px;
    line-height: 1.3;
}

.support-ticket-sidebar {
    align-content: start;
    border-top: 1px solid #e4e9f0;
    border-radius: 0;
    background: #f8fafc;
    padding: 14px 0 0;
}

.support-sidebar-details-form {
    display: grid;
    gap: 12px;
}

.support-sidebar-save-top {
    min-height: 36px;
}

.support-sidebar-edit-list {
    display: grid;
    border: 0;
    border-top: 1px solid #e4e9f0;
    border-radius: 0;
    overflow: visible;
}

.support-ticket-sidebar .support-sidebar-edit-list {
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.support-sidebar-field,
.support-sidebar-readonly-row {
    display: grid;
    gap: 5px;
    background: #ffffff;
    padding: 9px 10px;
}

.support-sidebar-field + .support-sidebar-field,
.support-sidebar-readonly-row,
.support-sidebar-readonly-row + .support-sidebar-readonly-row {
    border-top: 1px solid #edf1f6;
}

.support-ticket-sidebar .support-sidebar-field,
.support-ticket-sidebar .support-sidebar-readonly-row {
    background: transparent;
    padding: 0;
}

.support-ticket-sidebar .support-sidebar-field + .support-sidebar-field,
.support-ticket-sidebar .support-sidebar-readonly-row,
.support-ticket-sidebar .support-sidebar-readonly-row + .support-sidebar-readonly-row {
    border-top: 1px solid #e4e9f0;
    padding-top: 10px;
}

.support-sidebar-field > span,
.support-sidebar-field label > span,
.support-sidebar-readonly-row > span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.support-sidebar-field select,
.support-sidebar-field input:not([type="checkbox"]) {
    width: 100%;
}

.support-sidebar-check {
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr);
}

.support-sidebar-check span {
    color: #172033;
    font-weight: 650;
}

.support-sidebar-readonly-row strong {
    color: #172033;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.support-sidebar-textarea-box textarea {
    min-height: 90px;
}

.support-reply-compose textarea {
    min-height: 150px;
}

.support-sidebar-note-form {
    gap: 8px;
}

.support-sidebar-note-form textarea {
    min-height: 105px;
}

.support-message-history-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.support-compose-meta-list {
    display: grid;
    border: 0;
    border-top: 1px solid #e4e9f0;
    border-radius: 0;
    overflow: visible;
}

.support-compose-meta-row {
    display: grid;
    grid-template-columns: minmax(78px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    background: #ffffff;
    padding: 9px 10px;
}

.support-compose-meta-row + .support-compose-meta-row {
    border-top: 1px solid #edf1f6;
}

.support-compose-meta-row span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.support-compose-meta-row strong,
.support-compose-meta-row a {
    color: #172033;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.support-compose-note-box {
    display: grid;
    gap: 6px;
    border: 0;
    border-top: 1px solid #d8e9e3;
    border-radius: 0;
    background: transparent;
    padding: 10px 0 0;
}

.support-compose-note-box.is-private {
    border-top-color: #f3d19b;
    background: #fffaf4;
    padding-right: 10px;
    padding-left: 10px;
}

.support-compose-note-box strong {
    color: #334f75;
    font-size: 12px;
    line-height: 1.25;
    text-transform: uppercase;
}

.support-compose-note-box p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.strategy-status-row,
.strategy-status-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.strategy-status-bar {
    justify-content: space-between;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
}

.strategy-review-grid {
    display: grid;
    gap: 0;
    margin-bottom: 14px;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    overflow: hidden;
}

.strategy-review-header,
.strategy-review-row {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(150px, 0.55fr) minmax(220px, 1fr) minmax(160px, 0.65fr);
    align-items: center;
    padding: 8px 10px;
}

.strategy-review-row.is-alt {
    background: #f6f8fb;
}

.strategy-review-row + .strategy-review-row {
    border-top: 1px solid #edf1f6;
}

.strategy-review-heading {
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.strategy-review-label {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.strategy-review-grid-read p {
    min-height: 34px;
    margin: 0;
    border: 1px solid #e4e9f0;
    border-radius: 7px;
    background: #ffffff;
    padding: 8px 9px;
    overflow-wrap: anywhere;
}

.project-rich-source {
    display: none;
}

.project-rich-editor-field {
    display: block;
}

.small-textarea {
    min-height: 66px;
}

.project-rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: 1px solid #cfd6e2;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    background: #ffffff;
    padding: 6px;
    margin-bottom: 0;
}

.project-rich-toolbar button,
.project-rich-toolbar select {
    width: auto;
    min-height: 30px;
    border-color: #cfd6e2;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 9px;
}

.project-rich-toolbar button:hover,
.project-rich-toolbar button:focus,
.project-rich-toolbar select:hover,
.project-rich-toolbar select:focus {
    border-color: var(--blue);
    color: var(--blue);
}

.project-rich-editor {
    width: 100%;
    min-height: 220px;
    margin-top: 0;
    border: 1px solid #cfd6e2;
    border-radius: 0 0 7px 7px;
    background: var(--field);
    color: var(--ink);
    padding: 10px;
    outline: none;
    overflow: auto;
    resize: vertical;
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
}

.project-rich-editor * {
    user-select: text;
    -webkit-user-select: text;
}

.project-rich-editor:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(36, 91, 214, 0.12);
}

.project-rich-editor:empty::before {
    color: #7a8495;
    content: attr(data-placeholder);
}

.project-rich-editor table,
.strategy-rich-block table,
.detail-card table {
    width: 100%;
    border-collapse: collapse;
}

.project-rich-editor th,
.project-rich-editor td,
.strategy-rich-block th,
.strategy-rich-block td,
.detail-card th,
.detail-card td {
    border: 1px solid #d8dee8;
    padding: 6px 8px;
    vertical-align: top;
}

.strategy-bottom-actions {
    display: grid;
    gap: 18px;
    justify-items: center;
    margin-top: 16px;
    padding: 10px 0 2px;
}

.strategy-status-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.strategy-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.strategy-action-row .button {
    min-width: 136px;
    justify-content: center;
}

.button.green-button {
    border-color: #00b894;
    background: #00b894;
    color: #ffffff;
}

.button.outline-pink {
    border-color: #ff2f68;
    background: #ffffff;
    color: #ff2f68;
}

.button.outline-orange {
    border-color: #ff7a1a;
    background: #ffffff;
    color: #ff7a1a;
}

.form-panel {
    display: grid;
    gap: 14px;
}

.customer-details-split-grid {
    display: grid;
    gap: 18px 28px;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.customer-form-column {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
}

.customer-form-column h3 {
    margin: 0;
    color: #172033;
    font-size: 13px;
    font-weight: 700;
}

.form-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.65fr);
    gap: 16px;
    align-items: start;
}

.form-edit-column {
    min-width: 0;
}

.form-edit-grid {
    align-items: start;
}

.form-reference-column {
    display: grid;
    gap: 10px;
    min-width: 0;
    border-left: 1px solid #e4e9f0;
    padding-left: 16px;
}

.form-reference-column h3 {
    margin: 0;
    color: #162033;
    font-size: 13px;
    line-height: 1.25;
}

.field-summary-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.field-summary-list div {
    display: grid;
    gap: 2px;
}

.field-summary-list dt,
.plain-field .field-label-text {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

.field-summary-list dd {
    margin: 0;
    color: #17233a;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.plain-field {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 64px;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px 12px;
}

.plain-field strong,
.plain-field-inline {
    color: #17233a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.plain-field-inline {
    display: block;
    min-height: 42px;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px 12px;
}

.form-reference-panel {
    border-color: #e4e9f0;
    background: #fbfcfe;
    box-shadow: none;
}

.form-reference-panel .record-meta-grid {
    margin-top: 4px;
}

.form-gate-note {
    display: grid;
    gap: 4px;
    min-width: 0;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 10px 12px;
}

.form-gate-note strong {
    color: #334f75;
    font-size: 12px;
    line-height: 1.25;
    text-transform: uppercase;
}

.form-gate-note span {
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
}

.form-panel .panel-title {
    align-items: flex-start;
}

@media (max-width: 900px) {
    .customer-details-split-grid,
    .form-split-grid {
        grid-template-columns: 1fr;
    }

    .form-reference-column {
        border-left: 0;
        border-top: 1px solid #e4e9f0;
        padding-top: 14px;
        padding-left: 0;
    }
}

.field-stack {
    display: grid;
    gap: 12px;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
}

.toggle-row input {
    width: auto;
}

.form-footer {
    justify-content: flex-start;
    position: sticky;
    bottom: 0;
    z-index: 6;
    margin-top: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -10px 22px rgba(15, 23, 42, 0.06);
    padding: 10px;
}

.form-footer button:not(.secondary):first-child,
.form-footer .button:not(.secondary):first-child {
    min-width: 150px;
}

.audit-module {
    text-transform: capitalize;
}

.timeline-summary {
    min-width: 260px;
    overflow-wrap: anywhere;
}

.empty-state {
    color: var(--muted);
    padding: 18px 10px;
}

.zoho-line-table input,
.zoho-line-table select {
    margin-top: 0;
}

.zoho-line-table {
    min-width: 920px;
    table-layout: fixed;
}

.zoho-line-table th,
.zoho-line-table td {
    white-space: normal;
}

.zoho-line-table .line-item-column {
    width: 30%;
}

.zoho-line-table .line-number-column {
    width: 14%;
}

.zoho-line-table .line-rate-column {
    width: 16%;
}

.zoho-line-table .line-tax-column {
    width: 21%;
}

.zoho-line-table .line-amount-column {
    width: 13%;
}

.zoho-line-table .line-actions-column {
    width: 6%;
    text-align: center;
}

.zoho-line-table .line-amount-value {
    display: block;
    text-align: right;
    white-space: nowrap;
}

.zoho-line-table .field-note {
    display: block;
    margin-top: 4px;
    white-space: normal;
}

.zoho-line-table .compact-inline-field {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.zoho-line-table .compact-inline-field input {
    max-width: 120px;
}

.zoho-line-table .compact-tax-preview {
    max-width: 132px;
}

.zoho-line-table .line-item-actions {
    text-align: center;
    vertical-align: middle;
}

.line-icon-button,
.line-add-button {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    font-size: 22px;
    font-weight: 700;
    justify-content: center;
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 1;
}

.line-icon-button {
    background: #1f66db;
    border-color: #1f66db;
    color: #fff;
}

.line-add-button {
    font-size: 24px;
}

.line-icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.pdf-icon-button {
    background: #fff7f7;
    border-color: #fecaca;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(180, 35, 24, 0.1);
    color: #b42318;
    display: inline-grid;
    line-height: 1;
    width: 38px;
    min-width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
}

.pdf-button-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 25px;
    height: 30px;
    color: currentColor;
}

.pdf-button-icon::before {
    position: absolute;
    inset: 1px 3px 3px;
    border: 1.8px solid currentColor;
    border-radius: 3px;
    background: #fffdfd;
    content: "";
}

.pdf-button-icon::after {
    position: absolute;
    right: 3px;
    bottom: 0;
    width: 7px;
    height: 7px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.pdf-button-label {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 24px;
    height: 12px;
    border-radius: 2px;
    background: #c9271c;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 6px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

.pdf-icon-button:hover,
.pdf-icon-button:focus-visible {
    background: #fff1f1;
    border-color: #f87171;
    box-shadow: 0 4px 14px rgba(180, 35, 24, 0.18);
    color: #991b1b;
}

.pdf-icon-button .pdf-icon-sheet,
.pdf-icon-button .pdf-icon-fold,
.pdf-icon-button .pdf-icon-arrow {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.pdf-icon-button .pdf-icon-label {
    fill: #c9271c;
}

.pdf-icon-button .pdf-icon-text {
    fill: #fff;
    font-family: Arial, sans-serif;
    font-size: 5.3px;
    font-weight: 700;
    letter-spacing: 0;
}

.record-page-header > .actions .button.pdf-icon-button,
.record-page-header > .actions button.pdf-icon-button {
    background: #fff7f7;
    border: 1px solid #fecaca;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(180, 35, 24, 0.1);
    color: #b42318;
    margin: -4px 7px -4px 0;
    min-height: 34px;
    padding: 0;
}

.record-page-header > .actions .button.pdf-icon-button:hover,
.record-page-header > .actions .button.pdf-icon-button:focus-visible,
.record-page-header > .actions button.pdf-icon-button:hover,
.record-page-header > .actions button.pdf-icon-button:focus-visible {
    background: #fff1f1;
    border-color: #f87171;
    box-shadow: 0 4px 14px rgba(180, 35, 24, 0.18);
    color: #991b1b;
}

.local-line-table {
    min-width: 1040px;
}

.local-line-table th:nth-child(1),
.local-line-table td:nth-child(1) {
    width: 330px;
}

.local-line-table th:nth-child(2),
.local-line-table td:nth-child(2),
.local-line-table th:nth-child(3),
.local-line-table td:nth-child(3),
.local-line-table th:nth-child(4),
.local-line-table td:nth-child(4),
.local-line-table th:nth-child(5),
.local-line-table td:nth-child(5),
.local-line-table th:nth-child(9),
.local-line-table td:nth-child(9) {
    width: 86px;
}

.local-line-table th:nth-child(6),
.local-line-table td:nth-child(6),
.local-line-table th:nth-child(7),
.local-line-table td:nth-child(7),
.local-line-table th:nth-child(8),
.local-line-table td:nth-child(8) {
    width: 116px;
}

.local-line-table .line-item-service-cell {
    display: grid;
    gap: 8px;
}

.local-line-table .line-item-nested-input {
    margin-top: 0;
}

.local-line-table .line-item-description-input {
    min-height: 58px;
    resize: vertical;
}

.local-line-table .line-amount-value {
    display: block;
    color: #172033;
    font-size: 13px;
    line-height: 40px;
    text-align: right;
    white-space: nowrap;
}

.local-billing-form-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 20px;
    align-items: start;
    margin-top: 18px;
}

.local-billing-bank-note span {
    white-space: pre-line;
}

.local-billing-live-totals input {
    width: 130px;
    min-height: 34px;
    padding: 6px 8px;
    text-align: right;
}

.zoho-total-card {
    align-self: end;
}

.zoho-tax-total-card {
    display: grid;
    grid-template-columns: minmax(86px, 0.58fr) minmax(120px, 1fr);
    gap: 4px 12px;
}

.zoho-tax-total-card .summary-label {
    align-self: center;
}

.zoho-tax-total-card .summary-value {
    text-align: right;
}

.zoho-sync-actions {
    border-color: #bfdbfe;
}

.secondary-panel,
.blocked-actions-panel,
.advanced-panel,
.zoho-create-panel {
    border-color: #e4e9f0;
    background: #fbfcfe;
    box-shadow: none;
}

.primary-work-panel {
    border-color: #bfe5d6;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.primary-work-panel > .panel-title {
    margin-bottom: 12px;
    border-bottom: 1px solid #dff3ed;
    padding-bottom: 10px;
}

.primary-work-panel > .panel-title h2 {
    color: #0f8a70;
}

.primary-work-panel .detail-card,
.primary-work-panel .checkpoint-summary,
.primary-work-panel .progress-history-item,
.primary-work-panel .strategy-status-bar,
.primary-work-panel .strategy-review-grid-read p {
    border-color: #d8e9e3;
    background: #ffffff;
}

.secondary-panel .detail-card,
.advanced-panel .detail-card,
.reference-panel .detail-card {
    background: #f8fafc;
    box-shadow: none;
}

.work-action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.recurring-work-panel {
    align-items: flex-start;
    margin-bottom: 12px;
}

.recurring-work-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 8px 0 0;
}

.recurring-work-facts div {
    display: grid;
    gap: 2px;
    min-width: 120px;
}

.recurring-work-facts dt {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.recurring-work-facts dd {
    margin: 0;
    color: #172033;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.zoho-create-panel {
    border-color: #f3d19b;
    background: #fffbf4;
}

.blocked-actions-panel button:disabled,
.advanced-panel button:disabled {
    opacity: 0.66;
}

.advanced-panel {
    padding: 0;
}

.advanced-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    padding: 12px;
}

.advanced-panel > summary::-webkit-details-marker {
    display: none;
}

.advanced-panel > summary::after {
    color: #64748b;
    content: "Open";
    font-size: 12px;
}

.advanced-panel[open] > summary::after {
    content: "Close";
}

.advanced-panel-body {
    border-top: 1px solid #e4e9f0;
    padding: 12px;
}

.checkpoint-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 12px;
    padding: 12px;
}

.checkpoint-summary > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.checkpoint-summary strong {
    color: #172033;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.checkpoint-summary p {
    margin: 0;
    color: #475569;
    overflow-wrap: anywhere;
}

.checkpoint-summary > .badge {
    flex: 0 0 auto;
}

.operations-grid,
.next-step-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 10px;
}

.operation-card,
.next-step-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    border: 1px solid #e1e8f2;
    border-radius: 8px;
    background: #ffffff;
    padding: 10px;
}

.next-step-card.is-active {
    border-color: #8bb8ff;
    background: #f2f7ff;
}

.next-step-card.is-ready {
    border-color: #bfe5d6;
    background: #f3fbf7;
}

.next-step-card.is-blocked {
    border-color: #f3d19b;
    background: #fff9ed;
}

.operation-card strong,
.next-step-card strong {
    color: #334f75;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.operation-card span,
.next-step-card span {
    color: #172033;
    overflow-wrap: anywhere;
}

.module-intent-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.module-intent-row .badge {
    min-height: 22px;
}

.zoho-action-columns {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zoho-action-column {
    min-width: 0;
    border: 1px solid #e1e8f2;
    border-radius: 8px;
    background: #fbfdff;
    padding: 10px;
}

.zoho-action-column.is-sync {
    border-color: #bfe5d6;
    background: #f7fcfa;
}

.zoho-action-column.is-create {
    border-color: #f3d19b;
    background: #fffbf3;
}

.zoho-action-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.zoho-action-column-head h3 {
    margin: 0;
    color: var(--heading-blue);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.zoho-action-list {
    display: grid;
    gap: 10px;
}

.zoho-action-box {
    align-items: flex-start;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: flex;
    gap: 10px;
    min-width: 0;
    padding: 0;
}

.zoho-action-box .button,
.zoho-action-box button {
    flex: 0 0 250px;
    justify-content: center;
    min-width: 250px;
    width: 250px;
    max-width: 100%;
    border-color: #175cd3;
    background: #ffffff;
    color: #175cd3;
    white-space: nowrap;
}

.zoho-action-box .button:hover,
.zoho-action-box .button:focus,
.zoho-action-box button:hover,
.zoho-action-box button:focus {
    border-color: #175cd3;
    background: #eef4ff;
    color: #175cd3;
}

.zoho-action-box button:disabled {
    border-color: #cbd5e1;
    background: #f4f6f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 1;
}

.zoho-action-box.is-disabled .zoho-action-summary,
.zoho-action-box.is-disabled .zoho-action-help {
    color: #8a96a8;
}

.zoho-action-copy {
    display: grid;
    gap: 2px;
    color: var(--muted);
    flex: 1 1 auto;
    font-size: 0.84rem;
    line-height: 1.35;
    min-width: 0;
    padding-top: 2px;
}

.zoho-action-summary,
.zoho-action-help {
    display: block;
}

.zoho-action-summary {
    color: #475569;
    font-weight: 400;
}

.zoho-status-page {
    display: grid;
    gap: 10px;
}

.zoho-status-page .section-head,
.zoho-status-page .notice,
.zoho-status-page .panel,
.zoho-status-page .module-summary {
    margin-bottom: 0;
}

.zoho-status-page .section-head {
    margin-top: 0;
}

.zoho-status-page .section-head h1 {
    font-size: 22px;
    line-height: 1.2;
}

.zoho-status-page .panel {
    padding: 11px 12px;
}

.zoho-status-page .form-panel {
    gap: 10px;
}

.zoho-status-page .placeholder-grid {
    gap: 10px;
}

.zoho-status-page .module-summary {
    gap: 8px;
}

.placeholder-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
}

.muted-list {
    color: var(--muted);
}

.auth-page {
    display: grid;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 24px;
}

.auth-link-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    font-size: 13px;
}

.auth-link-row a {
    font-weight: 600;
}

.auth-help {
    margin-top: 12px;
}

.quick-login {
    display: grid;
    gap: 9px;
    margin-top: 18px;
    border-top: 1px solid #e4e9f0;
    padding-top: 16px;
}

.install-page {
    align-items: start;
}

.install-box {
    max-width: 880px;
}

.install-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.install-section {
    display: grid;
    gap: 12px;
    border-top: 1px solid #e4e9f0;
    padding: 16px 0;
}

.install-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.install-checks {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.install-checks li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f8fafc;
    padding: 10px;
}

.install-checks li > span {
    display: inline-flex;
    justify-content: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
}

.install-checks li.pass > span {
    background: #eaf7f1;
    color: var(--green);
}

.install-checks li.fail > span {
    background: #fff0ee;
    color: var(--red);
}

.install-checks strong,
.install-checks small {
    display: block;
}

.install-checks small {
    margin-top: 2px;
    color: var(--muted);
}

.install-form {
    display: grid;
    gap: 0;
}

.install-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.install-wide {
    grid-column: 1 / -1;
}

.install-checkbox {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-weight: 500;
}

.install-checkbox input {
    width: 16px;
    min-height: 16px;
    margin-top: 2px;
}

@media (max-width: 1024px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .zoho-record-shell {
        grid-template-columns: 1fr;
        height: auto;
        margin-left: 0;
        overflow: visible;
    }

    .zoho-record-main {
        max-height: none;
        overflow-y: visible;
        border-left: 0;
        background: transparent;
        padding-right: 0;
        padding-left: 0;
    }

    .zoho-record-rail {
        display: none;
    }

    .record-section-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .record-section-tabs a {
        flex: 0 0 auto;
    }

    .settings-tabs {
        top: 96px;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .nav-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sidebar-note {
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .topbar,
    .filters,
    .grid.two,
    .grid.three,
    .project-ops-grid,
    .project-ops-bottom-grid,
    .module-summary,
    .audit-summary,
    .settings-detail-summary,
    .settings-link-list,
    .setting-detail-grid,
    .record-hero,
    .record-summary-list-grid,
    .invoice-preview-parties,
    .invoice-preview-meta,
    .invoice-preview-bottom,
    .record-meta-grid,
    .detail-section-grid,
    .support-message-form-grid,
    .support-compose-card,
    .support-ticket-subject-block,
    .recurring-key-grid,
    .recurring-detail-grid,
    .operations-grid,
    .next-step-grid,
    .payment-form-grid,
    .payment-tds-panel,
    .payment-due-summary,
    .strategy-review-header,
    .strategy-review-row,
    .meta-list,
    .permission-summary-grid,
    .placeholder-grid,
    .local-billing-form-summary,
    .zoho-action-columns {
        grid-template-columns: 1fr;
    }

    .payment-due-summary div {
        border-right: 0;
        border-top: 1px solid #dbe4f0;
    }

    .payment-due-summary div:first-child {
        border-top: 0;
    }

    .support-ticket-subject-meta {
        justify-items: start;
    }

    .support-ticket-subject-meta > span {
        text-align: left;
    }

    .support-ticket-subject-meta .badge-row {
        justify-content: flex-start;
    }

    .topbar {
        align-items: stretch;
    }

    .settings-tabs {
        top: 136px;
    }

    .settings-local-form--support .setting-field-list {
        grid-template-columns: 1fr;
    }

    .backup-schedule-grid {
        grid-template-columns: 1fr;
    }

    .settings-local-form--support .setting-field-row em {
        min-height: 0;
    }

    .top-actions,
    .company-access-head,
    .section-head,
    .page-header,
    .panel-title,
    .support-thread-head,
    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .record-summary-head,
    .record-action-strip {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .record-summary-head {
        flex-direction: column;
    }

    .checkpoint-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .checkpoint-summary > .badge {
        align-self: flex-start;
    }

    .payment-month-column-form {
        align-items: stretch;
        flex-direction: column;
        margin-left: 0;
        width: 100%;
    }

    .payment-month-column-form input,
    .payment-month-column-form button {
        width: 100%;
    }

    .record-summary-title {
        min-width: 0;
    }

    .record-summary-list + .record-summary-list {
        border-top: 1px solid #e4e9f0;
        border-left: 0;
    }

    .support-compose-sidebar {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 14px;
        padding-left: 0;
    }

    .record-summary-list-row {
        grid-template-columns: minmax(94px, 0.38fr) minmax(0, 1fr);
    }

    .invoice-preview-document {
        gap: 18px;
        padding: 18px;
    }

    .invoice-preview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .invoice-preview-title {
        justify-items: start;
        text-align: left;
    }

    .invoice-preview-meta div,
    .invoice-preview-meta div:nth-child(3n),
    .invoice-preview-meta div:nth-last-child(-n + 3) {
        border-right: 0;
        border-bottom: 1px solid #e4e9f0;
    }

    .invoice-preview-meta div:last-child {
        border-bottom: 0;
    }

    .invoice-preview-bottom {
        gap: 16px;
    }

    .local-billing-live-totals input {
        width: 100%;
    }

    .recurring-page-header {
        align-items: stretch;
    }

    .recurring-page-header .actions {
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
    }

    .recurring-status-head,
    .recurring-next-action {
        align-items: flex-start;
        flex-direction: column;
    }

    .recurring-info-list > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .recurring-section-nav a {
        flex: 1 1 auto;
    }

    .record-hero > .record-meta-grid > div:nth-child(-n + 3) {
        border-top: 1px solid #e4e9f0;
    }

    .record-hero > .record-meta-grid > div,
    .record-hero > .record-meta-grid > div:not(:nth-child(3n)) {
        border-right: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .record-hero > .record-meta-grid > div:first-child {
        border-top: 0;
    }

    .page-title-strip,
    .content > .page-title-strip ~ .page-header {
        display: flex;
        margin: 0 0 10px;
    }

    .content > .page-title-strip ~ .record-page-header,
    .content > .page-title-strip:has(~ .record-page-header) {
        position: static;
        min-height: 0;
        border-bottom: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .content {
        display: block;
    }

    .content > .page-title-strip ~ .page-header > div:first-child {
        display: block;
    }

    .content > .page-title-strip ~ .page-header h1,
    .content > .page-title-strip ~ .page-header .muted,
    .content > .page-title-strip ~ .page-header > .actions {
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
    }

    .content > .page-title-strip ~ .page-header .muted {
        margin: 2px 0 0;
    }

    .content > .page-title-strip ~ .page-header h1::before {
        content: none;
    }

    .content > .page-title-strip:has(~ .record-page-header) h1::after {
        content: none;
    }

    .page-header > .actions,
    .content > .page-title-strip ~ .page-header > .actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .button,
    button {
        justify-content: center;
        width: 100%;
    }

    .recurring-page-header .actions {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        width: auto;
    }

    .recurring-page-header .actions .button {
        flex: 0 0 auto;
        min-width: 72px;
        width: auto;
    }

    .zoho-action-box {
        flex-direction: column;
    }

    .zoho-action-copy {
        padding-top: 0;
    }

    .filters {
        align-items: stretch;
    }

    .filters .filter-fields {
        display: flex;
        flex: 1 1 100%;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .filters label,
    .filters label:first-child,
    .filters.module-list-filters label:first-of-type,
    .filters.module-list-filters .list-view-filter,
    .filters.module-list-filters .list-search-field,
    .filters.module-list-filters label.list-search-field:first-of-type {
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .filters .button,
    .filters button,
    .filters .module-sync-form {
        width: 100%;
    }

    .role-modal {
        padding: 14px;
    }

    .role-modal-window {
        width: calc(100vw - 28px);
        max-height: calc(100vh - 28px);
    }

    .role-modal-header,
    .role-modal-footer,
    .role-permissions-header {
        align-items: stretch;
        flex-direction: column;
    }

    .role-modal-close,
    .role-icon-button {
        flex: 0 0 auto;
        width: 34px;
    }

    .role-modal-header .role-modal-close {
        align-self: flex-end;
        margin-top: -34px;
    }

    .role-permission-bulk-actions {
        justify-content: flex-start;
    }

    .role-permission-bulk-actions .button {
        width: auto;
    }

    .permission-children {
        padding-left: 18px;
    }

    .permission-matrix-row {
        grid-template-columns: minmax(150px, 1.4fr) repeat(var(--permission-action-count), minmax(76px, 0.7fr));
        min-width: calc(150px + (var(--permission-action-count) * 76px));
    }

    .role-permission-row {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .role-permission-row-head {
        display: none;
    }

    .role-permission-access {
        grid-column: 2;
    }

    .role-permission-row small {
        grid-column: 2;
        text-align: left;
    }

    .sales-dashboard-actions .button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .table.is-record-table.is-mobile-list-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .table.is-record-table.is-mobile-list-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .table.is-record-table.is-mobile-list-table tbody {
        display: grid;
        gap: 8px;
    }

    .table.is-record-table.is-mobile-list-table tbody tr {
        display: grid;
        overflow: hidden;
        border: 1px solid #dce2ea;
        border-radius: 8px;
        background: #ffffff;
    }

    .table.is-record-table.is-mobile-list-table th:first-child,
    .table.is-record-table.is-mobile-list-table td:first-child,
    .table.is-record-table.is-mobile-list-table tbody tr:nth-child(even):not(.is-selected) td:first-child,
    .table.is-record-table.is-mobile-list-table tbody tr:hover td:first-child,
    .table.is-record-table.is-mobile-list-table tr.is-selected td:first-child {
        position: static;
        left: auto;
        z-index: auto;
        background: transparent;
        box-shadow: none;
    }

    .table.is-record-table.is-mobile-list-table td,
    .table.is-record-table.is-mobile-list-table tbody tr:nth-child(even):not(.is-selected) td,
    .table.is-record-table.is-mobile-list-table tbody tr:hover td {
        display: grid;
        grid-template-columns: minmax(92px, 0.36fr) minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        min-width: 0;
        border-right: 0;
        background: transparent;
        padding: 9px 10px;
        text-align: left;
        white-space: normal;
    }

    .table.is-record-table.is-mobile-list-table td:last-child {
        border-bottom: 0;
    }

    .table.is-record-table.is-mobile-list-table td::before {
        color: #64748b;
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .table.is-record-table.is-mobile-list-table td:not([data-label])::before,
    .table.is-record-table.is-mobile-list-table td[data-label=""]::before {
        content: none;
    }

    .table.is-record-table.is-mobile-list-table .amount-cell,
    .table.is-record-table.is-mobile-list-table .action-cell {
        text-align: left;
    }

    .table.is-record-table.is-mobile-list-table .action-cell {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .table.is-record-table.is-mobile-list-table .action-cell a,
    .table.is-record-table.is-mobile-list-table .role-action-buttons {
        justify-self: start;
    }

    .table.is-record-table.is-mobile-list-table .empty-state {
        display: block;
        padding: 12px;
        text-align: left;
    }

    .table {
        min-width: 660px;
    }

    .content {
        padding-bottom: 0;
    }
}

@media (max-width: 560px) {
    .main {
        padding: 14px;
    }

    .topbar {
        margin: -14px -14px 14px;
        padding: 14px;
    }

    .header-metrics {
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 6px;
    }

    .settings-tabs {
        top: 128px;
    }

    .nav-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .my-task-trigger,
    .my-task-form button,
    .my-task-tabs button,
    .my-task-close {
        width: auto;
    }
}
