/*
 * Freight Rate 360 Cork adapter.
 * Keeps the existing Laravel module markup intact while applying the Cork admin visual system.
 */
:root {
    --bg: #f1f5f9;
    --bg-2: #eef2ff;
    --panel: #ffffff;
    --text: #0e1726;
    --muted: #64748b;
    --line: #e0e6ed;
    --brand: #4361ee;
    --brand-soft: #eef2ff;
    --good: #e6fffb;
    --shadow-soft: 0 10px 30px rgba(31, 45, 61, 0.08);
}

body.freight360-cork-theme {
    font-family: "Montserrat", "Nunito", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(67, 97, 238, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(0, 171, 85, 0.10), transparent 24%),
        linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
    color: var(--text);
}

.freight360-cork-theme .shell {
    max-width: 1540px;
    padding: 26px;
}

.freight360-cork-theme .cork-app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    transition: grid-template-columns .18s ease;
}

.freight360-cork-theme.sidebar-collapsed .cork-app-shell {
    grid-template-columns: 86px minmax(0, 1fr);
}

.freight360-cork-theme .cork-sidebar {
    position: sticky;
    top: 0;
    z-index: 1100;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(224, 230, 237, 0.9);
    background: #fff;
    box-shadow: none;
    transition: width .18s ease, transform .2s ease;
}

.freight360-cork-theme .cork-sidebar-brand {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
}

.freight360-cork-theme .cork-brand-link {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0e1726;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.freight360-cork-theme .cork-brand-link img {
    width: 36px;
    height: 36px;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #e8edf5;
    background: #f8fafc;
    object-fit: contain;
}

.freight360-cork-theme .cork-brand-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.freight360-cork-theme.sidebar-collapsed .cork-brand-link span,
.freight360-cork-theme.sidebar-collapsed .cork-menu-link span:not(.cork-menu-icon),
.freight360-cork-theme.sidebar-collapsed .cork-menu-section,
.freight360-cork-theme.sidebar-collapsed .cork-menu-group summary .cork-menu-text,
.freight360-cork-theme.sidebar-collapsed .cork-menu-caret,
.freight360-cork-theme.sidebar-collapsed .cork-submenu {
    display: none;
}

.freight360-cork-theme .cork-menu-parent-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.freight360-cork-theme.sidebar-collapsed .cork-sidebar {
    overflow: visible;
}

.freight360-cork-theme.sidebar-collapsed .cork-sidebar-brand {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

.freight360-cork-theme.sidebar-collapsed .cork-sidebar-nav {
    padding-left: 8px;
    padding-right: 8px;
}

.freight360-cork-theme.sidebar-collapsed .cork-menu-link,
.freight360-cork-theme.sidebar-collapsed .cork-menu-group summary {
    position: relative;
    min-height: 44px;
    justify-content: center;
    padding: 8px;
}

.freight360-cork-theme.sidebar-collapsed .cork-menu-icon {
    width: 30px;
    height: 30px;
    margin: 0;
    border-color: #dbe4ff;
    border-radius: 10px;
    background: #f1f5ff;
    color: #4361ee;
    box-shadow: inset 0 0 0 1px rgba(67, 97, 238, 0.08);
}

.freight360-cork-theme.sidebar-collapsed .cork-menu-link.active,
.freight360-cork-theme.sidebar-collapsed .cork-submenu a.active {
    box-shadow: none;
}

.freight360-cork-theme.sidebar-collapsed .cork-menu-link.active .cork-menu-icon,
.freight360-cork-theme.sidebar-collapsed .cork-menu-link:hover .cork-menu-icon,
.freight360-cork-theme.sidebar-collapsed .cork-menu-group summary:hover .cork-menu-icon {
    border-color: #4361ee;
    background: #4361ee;
    color: #fff;
    box-shadow: 0 8px 18px rgba(67, 97, 238, 0.24);
}

.freight360-cork-theme.sidebar-collapsed .cork-menu-link::after,
.freight360-cork-theme.sidebar-collapsed .cork-menu-group summary::after {
    content: attr(aria-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    z-index: 1300;
    min-width: max-content;
    max-width: 220px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #0e1726;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-4px);
    transition: opacity .14s ease, transform .14s ease;
}

.freight360-cork-theme.sidebar-collapsed .cork-menu-link:hover::after,
.freight360-cork-theme.sidebar-collapsed .cork-menu-group summary:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.freight360-cork-theme .cork-sidebar-close {
    display: none;
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 26px;
    line-height: 1;
}

.freight360-cork-theme .cork-sidebar-nav {
    overflow-y: auto;
    padding: 10px 10px 18px;
}

.freight360-cork-theme .cork-menu-section {
    margin: 12px 14px 6px;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.freight360-cork-theme .cork-menu-link,
.freight360-cork-theme .cork-menu-group summary,
.freight360-cork-theme .cork-submenu a {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 9px;
    color: #3b3f5c;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.freight360-cork-theme .cork-menu-link:hover,
.freight360-cork-theme .cork-menu-group summary:hover,
.freight360-cork-theme .cork-submenu a:hover,
.freight360-cork-theme .cork-menu-link.active,
.freight360-cork-theme .cork-submenu a.active {
    background: #eef2ff;
    color: #4361ee;
}

.freight360-cork-theme .cork-menu-link.active,
.freight360-cork-theme .cork-submenu a.active {
    box-shadow: inset 2px 0 0 #4361ee;
}

.freight360-cork-theme .cork-menu-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    border: 1px solid #dbe4ff;
    background: #eef2ff;
    color: #4361ee;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    flex: 0 0 auto;
}

.freight360-cork-theme .cork-menu-group {
    margin: 2px 0;
}

.freight360-cork-theme .cork-menu-group summary {
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
}

.freight360-cork-theme .cork-menu-group summary::-webkit-details-marker {
    display: none;
}

.freight360-cork-theme .cork-menu-caret {
    transform: rotate(90deg);
    transition: transform .16s ease;
}

.freight360-cork-theme .cork-menu-group:not([open]) .cork-menu-caret {
    transform: rotate(0);
}

.freight360-cork-theme .cork-submenu {
    display: grid;
    gap: 2px;
    margin: 2px 0 6px 22px;
    padding-left: 8px;
    border-left: 1px dashed #d8e0ea;
}

.freight360-cork-theme .cork-submenu a {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 11.5px;
    border-radius: 8px;
}

.freight360-cork-theme .cork-nested-menu {
    display: grid;
    gap: 2px;
}

.freight360-cork-theme .cork-nested-menu summary {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 9px;
    border-radius: 8px;
    color: #0e1726;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.freight360-cork-theme .cork-nested-menu summary::-webkit-details-marker {
    display: none;
}

.freight360-cork-theme .cork-nested-menu summary::after {
    content: "›";
    flex: 0 0 auto;
    color: #98a2b3;
    font-size: 13px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform .16s ease, color .16s ease;
}

.freight360-cork-theme .cork-nested-menu[open] summary,
.freight360-cork-theme .cork-nested-menu summary:hover {
    background: #f1f5ff;
    color: #4361ee;
}

.freight360-cork-theme .cork-nested-menu[open] summary::after,
.freight360-cork-theme .cork-nested-menu summary:hover::after {
    color: #4361ee;
}

.freight360-cork-theme .cork-nested-menu[open] summary::after {
    transform: rotate(90deg);
}

.freight360-cork-theme .cork-nested-menu a {
    margin-left: 10px;
}

.freight360-cork-theme .cork-page {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.freight360-cork-theme .cork-top-header {
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 22px;
    border-bottom: 1px solid #eef2f6;
    background: #fff;
    backdrop-filter: blur(16px);
}

.freight360-cork-theme .cork-header-left,
.freight360-cork-theme .cork-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.freight360-cork-theme .cork-header-left {
    min-width: 0;
    flex: 1 1 auto;
}

.freight360-cork-theme .cork-header-brand {
    min-width: 0;
}

.freight360-cork-theme .cork-header-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .cork-header-left h1 {
    margin: 0;
    color: #0e1726;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.freight360-cork-theme .cork-header-left p {
    margin: 2px 0 0;
    color: #667085;
    font-size: 11px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.freight360-cork-theme .cork-icon-button,
.freight360-cork-theme .cork-logout-button {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #636e75;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.freight360-cork-theme .cork-icon-button:hover,
.freight360-cork-theme .cork-account-menu summary:hover,
.freight360-cork-theme .cork-logout-button:hover {
    background: #f8f9fa;
    color: #495057;
    box-shadow: none;
}

.freight360-cork-theme .cork-header-toggle {
    position: relative;
    width: 40px;
    padding: 0;
}

.freight360-cork-theme .cork-header-toggle span {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .16s ease, opacity .16s ease, width .16s ease;
}

.freight360-cork-theme .cork-header-toggle span:nth-child(1) {
    top: 13px;
}

.freight360-cork-theme .cork-header-toggle span:nth-child(2) {
    top: 19px;
    width: 16px;
}

.freight360-cork-theme .cork-header-toggle span:nth-child(3) {
    top: 25px;
}

.freight360-cork-theme .cork-logout-button {
    gap: 7px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff1f2;
    color: #e7515a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.freight360-cork-theme .cork-logout-button:hover {
    background: #ffe4e6;
    color: #d92d20;
}

.freight360-cork-theme .cork-account-menu {
    position: relative;
}

.freight360-cork-theme .cork-account-menu summary {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 10px 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #636e75;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: background .16s ease, color .16s ease;
}

.freight360-cork-theme .cork-account-menu summary::-webkit-details-marker {
    display: none;
}

.freight360-cork-theme .cork-account-avatar {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #eff2f7;
    color: #495057;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    flex: 0 0 auto;
}

.freight360-cork-theme .cork-account-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
    text-align: left;
    line-height: 1.15;
}

.freight360-cork-theme .cork-account-copy strong,
.freight360-cork-theme .cork-account-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.freight360-cork-theme .cork-account-copy strong {
    max-width: 132px;
    color: #495057;
    font-size: 12px;
    font-weight: 700;
}

.freight360-cork-theme .cork-account-copy small {
    color: #919bae;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0;
}

.freight360-cork-theme .cork-account-menu .cork-menu-caret {
    color: #919bae;
    font-size: 14px;
}

.freight360-cork-theme .cork-account-menu[open] summary {
    background: #f8f9fa;
    color: #495057;
}

.freight360-cork-theme .cork-account-menu[open] .cork-account-avatar {
    background: #e9ecef;
    color: #495057;
}

.freight360-cork-theme .cork-account-menu[open] .cork-account-copy strong,
.freight360-cork-theme .cork-account-menu[open] .cork-menu-caret {
    color: #495057;
}

.freight360-cork-theme .cork-account-menu[open] .cork-menu-caret {
    transform: rotate(90deg);
}

.freight360-cork-theme .cork-account-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1100;
    min-width: 240px;
    display: grid;
    gap: 2px;
    padding: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.freight360-cork-theme .cork-account-dropdown-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -2px -2px 6px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid #f1f3f5;
}

.freight360-cork-theme .cork-account-avatar-large {
    width: 42px;
    height: 42px;
    font-size: 12px;
}

.freight360-cork-theme .cork-account-dropdown-copy {
    min-width: 0;
}

.freight360-cork-theme .cork-account-dropdown-copy strong,
.freight360-cork-theme .cork-account-dropdown-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.freight360-cork-theme .cork-account-dropdown-copy strong {
    color: #495057;
    font-size: 13px;
    font-weight: 700;
}

.freight360-cork-theme .cork-account-dropdown-copy span {
    margin-top: 2px;
    color: #919bae;
    font-size: 11px;
}

.freight360-cork-theme .cork-account-dropdown a {
    display: block;
    padding: 9px 12px;
    border-radius: 4px;
    color: #495057;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.freight360-cork-theme .cork-account-dropdown a:hover,
.freight360-cork-theme .cork-account-dropdown a.active {
    background: #f8f9fa;
    color: #495057;
}

@media (max-width: 860px) {
    .freight360-cork-theme .cork-top-header {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 10px 16px 12px;
    }

    .freight360-cork-theme .cork-header-left,
    .freight360-cork-theme .cork-header-actions {
        width: 100%;
    }

    .freight360-cork-theme .cork-header-actions {
        justify-content: space-between;
    }

    .freight360-cork-theme .cork-account-dropdown {
        right: auto;
        left: 0;
    }
}

@media (max-width: 640px) {
    .freight360-cork-theme .cork-header-left h1 {
        font-size: 16px;
    }

    .freight360-cork-theme .cork-header-left p,
    .freight360-cork-theme .cork-account-copy small {
        font-size: 10.5px;
    }

    .freight360-cork-theme .cork-account-copy strong {
        max-width: 104px;
    }

    .freight360-cork-theme .cork-logout-button {
        min-width: 38px;
        padding: 0 11px;
    }
}

.freight360-cork-theme .cork-content {
    width: 100%;
    margin: 0;
}

.freight360-cork-theme .topbar {
    position: sticky;
    top: 14px;
    z-index: 1000;
    min-height: 72px;
    padding: 12px 14px 12px 18px;
    border: 1px solid rgba(224, 230, 237, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 36px rgba(31, 45, 61, 0.10);
    backdrop-filter: blur(16px);
}

.freight360-cork-theme .brand h1,
.freight360-cork-theme .brand-company-copy h1 {
    color: #0e1726;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.freight360-cork-theme .brand p,
.freight360-cork-theme .brand-login-meta,
.freight360-cork-theme .muted {
    color: #667085;
}

.freight360-cork-theme .brand-company-logo {
    max-height: 44px;
    padding: 6px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e0e6ed;
}

.freight360-cork-theme .brand-role-pill {
    background: #eaf1ff;
    border-color: #c7d2fe;
    color: #4361ee;
}

.freight360-cork-theme .nav {
    gap: 9px;
}

.freight360-cork-theme .nav a,
.freight360-cork-theme .nav button,
.freight360-cork-theme .nav .menu-trigger,
.freight360-cork-theme .btn-link,
.freight360-cork-theme .btn-primary {
    min-height: 38px;
    border-radius: 9px;
    border: 1px solid #e0e6ed;
    background: #fff;
    color: #3b3f5c;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.freight360-cork-theme .nav a:hover,
.freight360-cork-theme .nav button:hover,
.freight360-cork-theme .nav .menu-trigger:hover,
.freight360-cork-theme .nav details[open] .menu-trigger,
.freight360-cork-theme .btn-link:hover,
.freight360-cork-theme .btn-primary:hover {
    transform: translateY(-1px);
    border-color: rgba(67, 97, 238, 0.34);
    background: #f5f7ff;
    color: #4361ee;
    box-shadow: 0 8px 18px rgba(67, 97, 238, 0.10);
}

.freight360-cork-theme .btn-primary {
    border-color: #4361ee;
    background: #4361ee;
    color: #fff;
}

.freight360-cork-theme .btn-primary:hover {
    border-color: #2f46c7;
    background: #2f46c7;
    color: #fff;
}

.freight360-cork-theme .btn-link.danger,
.freight360-cork-theme .nav button {
    color: #e7515a;
}

.freight360-cork-theme .btn-link.ghost {
    color: #805dca;
}

.freight360-cork-theme .nav .menu-dropdown {
    min-width: 220px;
    padding: 8px;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(31, 45, 61, 0.16);
}

.freight360-cork-theme .nav .menu-dropdown a {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #3b3f5c;
}

.freight360-cork-theme .nav .menu-dropdown a:hover {
    transform: none;
    background: #f1f5ff;
    box-shadow: none;
    color: #4361ee;
}

.freight360-cork-theme .panel,
.freight360-cork-theme .dashboard-card,
.freight360-cork-theme .liner-health-card,
.freight360-cork-theme .trend-panel,
.freight360-cork-theme .soc-rate-card,
.freight360-cork-theme .permission-panel,
.freight360-cork-theme .permission-card,
.freight360-cork-theme .modal-card {
    border: 1px solid #e0e6ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 45, 61, 0.07);
}

.freight360-cork-theme .page-head {
    align-items: center;
}

.freight360-cork-theme .soc-rates-analytics-head {
    align-items: stretch;
    gap: 18px;
}

.freight360-cork-theme .soc-rates-analytics-grid {
    flex: 1 1 680px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(135px, 1fr));
    gap: 12px;
}

.freight360-cork-theme .soc-rates-analytics-head .head-actions {
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
    align-self: center;
}

.freight360-cork-theme .soc-rates-analytics-box {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid #e0e6ed;
    border-left: 4px solid #4361ee;
    border-radius: 8px;
    background: #fbfcff;
    box-shadow: 0 8px 18px rgba(31, 45, 61, 0.05);
}

.freight360-cork-theme .soc-rates-analytics-box.valid {
    border-left-color: #00ab55;
}

.freight360-cork-theme .soc-rates-analytics-box.warning {
    border-left-color: #e2a03f;
}

.freight360-cork-theme .soc-rates-analytics-box.rows {
    border-left-color: #2196f3;
}

.freight360-cork-theme .soc-rates-analytics-box span {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.freight360-cork-theme .soc-rates-analytics-box strong {
    color: #0e1726;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.freight360-cork-theme .rate-followup-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 18px;
}

.freight360-cork-theme .rate-followup-panel {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e0e6ed;
    border-left: 3px solid #e2a03f;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(31, 45, 61, 0.04);
}

.freight360-cork-theme .rate-followup-panel.expired {
    border-left-color: #e7515a;
}

.freight360-cork-theme .rate-followup-panel.warning {
    border-left-color: #e2a03f;
}

.freight360-cork-theme .rate-followup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.freight360-cork-theme .rate-followup-head span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.freight360-cork-theme .rate-followup-head strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f1f5ff;
    color: #0e1726;
    font-size: 13px;
    font-weight: 800;
}

.freight360-cork-theme .rate-followup-list {
    display: grid;
    gap: 6px;
    max-height: 132px;
    overflow-y: auto;
    padding-right: 2px;
}

.freight360-cork-theme .rate-followup-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    min-height: 32px;
    padding: 6px 8px;
    border: 1px solid #edf0f5;
    border-radius: 6px;
    background: #fbfcff;
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

a.freight360-cork-theme .rate-followup-item,
.freight360-cork-theme a.rate-followup-item {
    cursor: pointer;
}

.freight360-cork-theme a.rate-followup-item:hover,
.freight360-cork-theme a.rate-followup-item:focus-visible {
    border-color: #b9c3d6;
    background: #f6f8ff;
    box-shadow: 0 6px 14px rgba(31, 45, 61, 0.08);
    outline: none;
}

.freight360-cork-theme .rate-followup-liner {
    min-width: 0;
    overflow: hidden;
    color: #0e1726;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.freight360-cork-theme .rate-followup-date {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.freight360-cork-theme .rate-followup-badge,
.freight360-cork-theme .rate-followup-more,
.freight360-cork-theme .rate-followup-empty {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.freight360-cork-theme .rate-followup-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f7f8fb;
    white-space: nowrap;
}

.freight360-cork-theme .rate-followup-more,
.freight360-cork-theme .rate-followup-empty {
    padding: 6px 8px;
    border-radius: 6px;
    background: #f7f8fb;
}

.freight360-cork-theme .page-head h2,
.freight360-cork-theme .dashboard-hero h2,
.freight360-cork-theme .trend-panel h3,
.freight360-cork-theme .liner-health-card h3,
.freight360-cork-theme .modal-header h3 {
    color: #0e1726;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.freight360-cork-theme .stat {
    border: 1px solid #e0e6ed;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 8px 22px rgba(31, 45, 61, 0.05);
}

.freight360-cork-theme .stat strong {
    color: #4361ee;
    font-weight: 700;
}

.freight360-cork-theme .badge,
.freight360-cork-theme .mini-chip,
.freight360-cork-theme .soc-rate-summary-chip,
.freight360-cork-theme .liner-health-chip {
    border: 1px solid #dbe4ff;
    background: #eef2ff;
    color: #4361ee;
    border-radius: 999px;
    font-weight: 700;
}

.freight360-cork-theme .soc-rate-list-panel {
    padding: 18px;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    grid-auto-rows: 1fr;
    gap: 18px;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-card {
    position: relative;
    min-height: 330px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #dde5ef;
    border-left-width: 4px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-card.valid {
    border-left-color: #00ab55;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-card.expiring-soon {
    border-left-color: #e2a03f;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-card.expired {
    border-left-color: #e7515a;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-card-title {
    gap: 8px;
    min-width: 0;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-card h3 {
    color: #0e1726;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-card-badges {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-status-chip,
.freight360-cork-theme .soc-rate-list-panel .badge,
.freight360-cork-theme .soc-rate-list-panel .soc-rate-summary-chip {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-card.valid .soc-rate-status-chip {
    border: 1px solid #a7ead0;
    background: #e6fffb;
    color: #008a45;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-card.expiring-soon .soc-rate-status-chip {
    border: 1px solid #f5d89c;
    background: #fff8e8;
    color: #9a6700;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-card.expired .soc-rate-status-chip {
    border: 1px solid #ffc4c8;
    background: #fff0f1;
    color: #c7373f;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-route {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #f8fafc;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-route code {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0e1726;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-metrics>div {
    min-width: 0;
    padding: 10px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #fbfcff;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-metrics span,
.freight360-cork-theme .soc-rate-list-panel .soc-rate-copy-row strong {
    display: block;
    margin: 0 0 5px;
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-metrics strong {
    display: block;
    min-width: 0;
    color: #0e1726;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-copy {
    flex: 1 1 auto;
    gap: 8px;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-copy-row {
    min-height: 58px;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #edf2f7;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-copy-row span {
    color: #344054;
    font-size: 13px;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-actions {
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
}

.freight360-cork-theme .soc-rate-list-panel .soc-rate-actions .btn-link {
    border-radius: 8px;
}

.freight360-cork-theme table {
    border-collapse: separate;
    border-spacing: 0;
}

.freight360-cork-theme th {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    background: #f8fafc;
}

.freight360-cork-theme th,
.freight360-cork-theme td {
    border-bottom: 1px solid #edf2f7;
}

.freight360-cork-theme input,
.freight360-cork-theme select,
.freight360-cork-theme textarea {
    border-color: #d8e0ea;
    border-radius: 8px;
    background-color: #fff;
    color: #0e1726;
}

.freight360-cork-theme select:not([multiple]):not([size]) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(248, 250, 252, 0.35) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%234361ee' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right 14px center;
    background-size: auto, 16px 16px;
    cursor: pointer;
}

.freight360-cork-theme select option,
.freight360-cork-theme select optgroup {
    background: #fff;
    color: #0e1726;
}

.freight360-cork-theme select option:checked {
    background: #eef2ff;
    color: #4361ee;
}

.freight360-cork-theme input:hover,
.freight360-cork-theme textarea:hover,
.freight360-cork-theme select:hover {
    border-color: #bfc9d4;
    background-color: #fff;
}

.freight360-cork-theme input:focus,
.freight360-cork-theme textarea:focus,
.freight360-cork-theme select:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.13);
}

.freight360-cork-theme .modal-shell {
    background: rgba(6, 11, 25, 0.55);
    backdrop-filter: blur(8px);
}

.freight360-cork-theme .modal-card {
    max-height: calc(100vh - 38px);
}

.freight360-cork-theme .modal-section,
.freight360-cork-theme .freight-rates-top-section,
.freight360-cork-theme .freight-rates-upload-section {
    border-color: #e0e6ed;
    background: #fbfcff;
}

.freight360-cork-theme .search-picker-menu,
.freight360-cork-theme .trend-port-picker-results,
.freight360-cork-theme .pod-agent-picker-results,
.freight360-cork-theme .branch-local-picker-results,
.freight360-cork-theme .sale-inquiry-picker-results,
.freight360-cork-theme .sailing-picker-results {
    border: 1px solid #d8e0ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(31, 45, 61, 0.14);
}

.freight360-cork-theme .search-picker-menu button,
.freight360-cork-theme .search-picker-option,
.freight360-cork-theme .trend-port-picker-results button,
.freight360-cork-theme .pod-agent-picker-results button,
.freight360-cork-theme .branch-local-picker-results button,
.freight360-cork-theme .sale-inquiry-picker-results button,
.freight360-cork-theme .sailing-picker-results button {
    background: #fff !important;
    color: #0e1726 !important;
    font-weight: 600 !important;
}

.freight360-cork-theme .search-picker-menu button:hover,
.freight360-cork-theme .search-picker-option:hover,
.freight360-cork-theme .trend-port-picker-results button:hover,
.freight360-cork-theme .pod-agent-picker-results button:hover,
.freight360-cork-theme .branch-local-picker-results button:hover,
.freight360-cork-theme .sale-inquiry-picker-results button:hover,
.freight360-cork-theme .sailing-picker-results button:hover {
    background: #f1f5ff !important;
    color: #4361ee !important;
}

.freight360-cork-theme .flash-toast {
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(31, 45, 61, 0.18);
}

.freight360-cork-theme :is(.sale-inquiry-view-panel, .sailing-view-panel, .pod-agent-view-panel, .branch-local-view-panel) {
    gap: 18px !important;
}

.freight360-cork-theme :is(.sale-inquiry-view-hero, .sailing-view-hero, .pod-agent-view-hero, .branch-local-view-hero) {
    border: 1px solid #e0e6ed !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at top right, rgba(67, 97, 238, 0.13), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f8fafc 100%) !important;
    box-shadow: 0 12px 28px rgba(31, 45, 61, 0.07) !important;
}

.freight360-cork-theme :is(.sale-inquiry-view-hero, .sailing-view-hero, .pod-agent-view-hero, .branch-local-view-hero) span,
.freight360-cork-theme :is(.sale-inquiry-view-card, .sailing-view-card, .pod-agent-view-card, .branch-local-view-card) span,
.freight360-cork-theme :is(.sale-inquiry-view-copy, .sailing-view-copy, .pod-agent-view-copy) span {
    color: #667085 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.freight360-cork-theme :is(.sale-inquiry-view-hero, .sailing-view-hero, .pod-agent-view-hero, .branch-local-view-hero) strong {
    color: #0e1726 !important;
    font-size: clamp(20px, 1.2vw, 28px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;
}

.freight360-cork-theme :is(.sale-inquiry-view-card, .sailing-view-card, .pod-agent-view-card, .branch-local-view-card, .sale-inquiry-view-copy, .sailing-view-copy, .pod-agent-view-copy) {
    border: 1px solid #e0e6ed !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(31, 45, 61, 0.05) !important;
}

.freight360-cork-theme :is(.sale-inquiry-view-card, .sailing-view-card, .pod-agent-view-card, .branch-local-view-card) strong,
.freight360-cork-theme :is(.sale-inquiry-view-copy, .sailing-view-copy, .pod-agent-view-copy) p {
    color: #0e1726 !important;
    font-weight: 700 !important;
}

.freight360-cork-theme :is(.pod-agent-view-badge, .branch-local-view-badge) {
    border: 1px solid #dbe4ff !important;
    background: #eef2ff !important;
    color: #4361ee !important;
    box-shadow: none !important;
}

.freight360-cork-theme .flash.success {
    background: #ddf5f0;
    color: #00ab55;
    border-color: #b7eadc;
}

.freight360-cork-theme .flash.warning {
    background: #fff5df;
    color: #b7791f;
    border-color: #ffe0a3;
}

.freight360-cork-theme .flash.error {
    background: #fff0f1;
    color: #e7515a;
    border-color: #ffc4c8;
}

.freight360-cork-theme .flash.info {
    background: #eaf1ff;
    color: #4361ee;
    border-color: #c7d2fe;
}

@media (max-width: 900px) {
    .freight360-cork-theme .cork-app-shell {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme.sidebar-collapsed .cork-app-shell {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .cork-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(310px, calc(100vw - 42px));
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    .freight360-cork-theme.sidebar-collapsed .cork-brand-link span,
    .freight360-cork-theme.sidebar-collapsed .cork-menu-link span:not(.cork-menu-icon),
    .freight360-cork-theme.sidebar-collapsed .cork-menu-section,
    .freight360-cork-theme.sidebar-collapsed .cork-menu-group summary .cork-menu-text,
    .freight360-cork-theme.sidebar-collapsed .cork-menu-caret,
    .freight360-cork-theme.sidebar-collapsed .cork-submenu {
        display: initial;
    }

    .freight360-cork-theme.sidebar-collapsed .cork-submenu {
        display: grid;
    }

    .freight360-cork-theme.sidebar-open .cork-sidebar {
        transform: translateX(0);
    }

    .freight360-cork-theme .cork-sidebar-close {
        display: inline-flex;
    }

    .freight360-cork-theme.sidebar-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(6, 11, 25, 0.45);
    }

    .freight360-cork-theme .cork-top-header {
        padding: 12px 14px;
    }

    .freight360-cork-theme .trend-pod-filter {
        grid-template-columns: 1fr !important;
    }

    .freight360-cork-theme .trend-pod-filter .inline-actions {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    .freight360-cork-theme .shell {
        padding: 14px;
    }

    .freight360-cork-theme .soc-rates-analytics-head {
        align-items: stretch;
    }

    .freight360-cork-theme .soc-rates-analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .freight360-cork-theme .soc-rates-analytics-head .head-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .freight360-cork-theme .rate-followup-row {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .topbar {
        position: static;
    }
}

@media (max-width: 560px) {
    .freight360-cork-theme .soc-rates-analytics-grid {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .rate-followup-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .freight360-cork-theme .rate-followup-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

.freight360-cork-theme.cork-dark {
    --bg: #060818;
    --bg-2: #0e1726;
    --panel: #0e1726;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --line: #1b2e4b;
    background: #060818;
    color: #e5e7eb;
}

.freight360-cork-theme.cork-dark .cork-sidebar,
.freight360-cork-theme.cork-dark .cork-top-header,
.freight360-cork-theme.cork-dark .panel,
.freight360-cork-theme.cork-dark .dashboard-card,
.freight360-cork-theme.cork-dark .liner-health-card,
.freight360-cork-theme.cork-dark .trend-panel,
.freight360-cork-theme.cork-dark .soc-rate-card,
.freight360-cork-theme.cork-dark .modal-card,
.freight360-cork-theme.cork-dark .stat {
    border-color: #1b2e4b;
    background: #0e1726;
    color: #e5e7eb;
}

.freight360-cork-theme.cork-dark .cork-brand-link,
.freight360-cork-theme.cork-dark .cork-header-left h1,
.freight360-cork-theme.cork-dark .page-head h2,
.freight360-cork-theme.cork-dark .dashboard-hero h2,
.freight360-cork-theme.cork-dark .modal-header h3 {
    color: #fff;
}

.freight360-cork-theme.cork-dark .cork-menu-link,
.freight360-cork-theme.cork-dark .cork-menu-group summary,
.freight360-cork-theme.cork-dark .cork-submenu a,
.freight360-cork-theme.cork-dark .muted,
.freight360-cork-theme.cork-dark .cork-header-left p {
    color: #bfc9d4;
}

.freight360-cork-theme.cork-dark .soc-rate-list-panel .soc-rate-card {
    border-color: #1b2e4b;
    background: #111c33;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.freight360-cork-theme.cork-dark .soc-rate-list-panel .soc-rate-card h3,
.freight360-cork-theme.cork-dark .soc-rate-list-panel .soc-rate-route code,
.freight360-cork-theme.cork-dark .soc-rate-list-panel .soc-rate-metrics strong {
    color: #fff;
}

.freight360-cork-theme.cork-dark .soc-rate-list-panel .soc-rate-route,
.freight360-cork-theme.cork-dark .soc-rate-list-panel .soc-rate-metrics>div {
    border-color: #1b2e4b;
    background: #0e1726;
}

.freight360-cork-theme.cork-dark .soc-rate-list-panel .soc-rate-copy-row,
.freight360-cork-theme.cork-dark .soc-rate-list-panel .soc-rate-actions {
    border-top-color: #1b2e4b;
}

.freight360-cork-theme.cork-dark .soc-rate-list-panel .soc-rate-metrics span,
.freight360-cork-theme.cork-dark .soc-rate-list-panel .soc-rate-copy-row strong {
    color: #9ca3af;
}

.freight360-cork-theme.cork-dark .soc-rate-list-panel .soc-rate-copy-row span {
    color: #d8dde8;
}

.freight360-cork-theme.cork-dark .soc-rates-analytics-box {
    border-color: #1b2e4b;
    background: #111c33;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.freight360-cork-theme.cork-dark .soc-rates-analytics-box span {
    color: #9ca3af;
}

.freight360-cork-theme.cork-dark .soc-rates-analytics-box strong {
    color: #fff;
}

.freight360-cork-theme.cork-dark .rate-followup-panel {
    border-color: #1b2e4b;
    background: #111c33;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.freight360-cork-theme.cork-dark .rate-followup-head span,
.freight360-cork-theme.cork-dark .rate-followup-date,
.freight360-cork-theme.cork-dark .rate-followup-badge,
.freight360-cork-theme.cork-dark .rate-followup-more,
.freight360-cork-theme.cork-dark .rate-followup-empty {
    color: #9ca3af;
}

.freight360-cork-theme.cork-dark .rate-followup-head strong,
.freight360-cork-theme.cork-dark .rate-followup-liner {
    color: #fff;
}

.freight360-cork-theme.cork-dark .rate-followup-head strong,
.freight360-cork-theme.cork-dark .rate-followup-more,
.freight360-cork-theme.cork-dark .rate-followup-empty {
    background: #1b2e4b;
}

.freight360-cork-theme.cork-dark .rate-followup-item {
    border-color: #1b2e4b;
    background: #0e1726;
}

.freight360-cork-theme.cork-dark a.rate-followup-item:hover,
.freight360-cork-theme.cork-dark a.rate-followup-item:focus-visible {
    border-color: #4361ee;
    background: #17233c;
}

.freight360-cork-theme.cork-dark .cork-menu-link:hover,
.freight360-cork-theme.cork-dark .cork-menu-group summary:hover,
.freight360-cork-theme.cork-dark .cork-submenu a:hover,
.freight360-cork-theme.cork-dark .cork-menu-link.active,
.freight360-cork-theme.cork-dark .cork-submenu a.active {
    background: rgba(67, 97, 238, 0.18);
    color: #aab8ff;
}

.freight360-cork-theme.cork-dark .cork-menu-icon {
    border-color: #243b66;
    background: #17213a;
    color: #aab8ff;
}

.freight360-cork-theme.cork-dark .cork-top-header {
    border-bottom-color: #1b2e4b;
    background: rgba(14, 23, 38, 0.9);
}

.freight360-cork-theme.cork-dark.sidebar-collapsed .cork-menu-icon {
    border-color: #243b66;
    background: #111c33;
    color: #aab8ff;
}

.freight360-cork-theme.cork-dark.sidebar-collapsed .cork-menu-link.active .cork-menu-icon,
.freight360-cork-theme.cork-dark.sidebar-collapsed .cork-menu-link:hover .cork-menu-icon,
.freight360-cork-theme.cork-dark.sidebar-collapsed .cork-menu-group summary:hover .cork-menu-icon {
    border-color: #4361ee;
    background: #4361ee;
    color: #fff;
}

.freight360-cork-theme.cork-dark input,
.freight360-cork-theme.cork-dark select,
.freight360-cork-theme.cork-dark textarea,
.freight360-cork-theme.cork-dark .cork-icon-button,
.freight360-cork-theme.cork-dark .cork-logout-button,
.freight360-cork-theme.cork-dark .btn-link,
.freight360-cork-theme.cork-dark .nav a,
.freight360-cork-theme.cork-dark .nav button,
.freight360-cork-theme.cork-dark .nav .menu-trigger {
    border-color: #1b2e4b;
    background: #060818;
    color: #d1d5db;
}

.freight360-cork-theme.cork-dark .cork-account-menu summary,
.freight360-cork-theme.cork-dark .cork-account-dropdown {
    border-color: #1b2e4b;
    background: #060818;
}

.freight360-cork-theme.cork-dark .cork-account-menu summary:hover,
.freight360-cork-theme.cork-dark .cork-icon-button:hover,
.freight360-cork-theme.cork-dark .cork-logout-button:hover {
    background: #0e1726;
    box-shadow: none;
}

.freight360-cork-theme.cork-dark .cork-account-avatar {
    background: #17213a;
    color: #dbe4ff;
}

.freight360-cork-theme.cork-dark .cork-account-copy strong {
    color: #f8fafc;
}

.freight360-cork-theme.cork-dark .cork-account-copy small,
.freight360-cork-theme.cork-dark .cork-account-menu .cork-menu-caret {
    color: #94a3b8;
}

.freight360-cork-theme.cork-dark .cork-nested-menu summary::after {
    color: #94a3b8;
}

.freight360-cork-theme.cork-dark .cork-nested-menu[open] summary::after,
.freight360-cork-theme.cork-dark .cork-nested-menu summary:hover::after {
    color: #aab8ff;
}

.freight360-cork-theme.cork-dark .cork-account-menu[open] summary {
    background: #111c33;
}

.freight360-cork-theme.cork-dark .cork-account-menu[open] .cork-account-avatar {
    background: #1f2d4b;
    color: #fff;
}

.freight360-cork-theme.cork-dark .cork-logout-button {
    background: rgba(231, 81, 90, 0.14);
    color: #ff9aa2;
}

.freight360-cork-theme.cork-dark .cork-logout-button:hover {
    background: rgba(231, 81, 90, 0.2);
    color: #ffb4bb;
}

.freight360-cork-theme.cork-dark .cork-account-dropdown-head {
    border-bottom-color: #1b2e4b;
}

.freight360-cork-theme.cork-dark .cork-account-dropdown-copy strong,
.freight360-cork-theme.cork-dark .cork-account-dropdown a:hover,
.freight360-cork-theme.cork-dark .cork-account-dropdown a.active {
    color: #f8fafc;
}

.freight360-cork-theme.cork-dark .cork-account-dropdown a {
    color: #d1d5db;
}

.freight360-cork-theme.cork-dark .cork-account-dropdown a:hover,
.freight360-cork-theme.cork-dark .cork-account-dropdown a.active {
    background: #111c33;
}

.freight360-cork-theme.cork-dark select option,
.freight360-cork-theme.cork-dark select optgroup {
    background: #0e1726;
    color: #e5e7eb;
}

.freight360-cork-theme.cork-dark select option:checked {
    background: #1b2e4b;
    color: #aab8ff;
}

.freight360-cork-theme.cork-dark .search-picker-menu,
.freight360-cork-theme.cork-dark .trend-port-picker-results,
.freight360-cork-theme.cork-dark .pod-agent-picker-results,
.freight360-cork-theme.cork-dark .branch-local-picker-results,
.freight360-cork-theme.cork-dark .sale-inquiry-picker-results,
.freight360-cork-theme.cork-dark .sailing-picker-results {
    border-color: #1b2e4b;
    background: #0e1726;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.freight360-cork-theme.cork-dark .search-picker-menu button,
.freight360-cork-theme.cork-dark .search-picker-option,
.freight360-cork-theme.cork-dark .trend-port-picker-results button,
.freight360-cork-theme.cork-dark .pod-agent-picker-results button,
.freight360-cork-theme.cork-dark .branch-local-picker-results button,
.freight360-cork-theme.cork-dark .sale-inquiry-picker-results button,
.freight360-cork-theme.cork-dark .sailing-picker-results button {
    background: #0e1726 !important;
    color: #e5e7eb !important;
}

.freight360-cork-theme.cork-dark .search-picker-menu button:hover,
.freight360-cork-theme.cork-dark .search-picker-option:hover,
.freight360-cork-theme.cork-dark .trend-port-picker-results button:hover,
.freight360-cork-theme.cork-dark .pod-agent-picker-results button:hover,
.freight360-cork-theme.cork-dark .branch-local-picker-results button:hover,
.freight360-cork-theme.cork-dark .sale-inquiry-picker-results button:hover,
.freight360-cork-theme.cork-dark .sailing-picker-results button:hover {
    background: rgba(67, 97, 238, 0.18) !important;
    color: #aab8ff !important;
}

body.auth-cork-theme {
    font-family: "Montserrat", "Nunito", Arial, sans-serif;
}

.auth-cork-theme .auth-card {
    border: 1px solid rgba(224, 230, 237, 0.88);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 26px 70px rgba(6, 11, 25, 0.30);
}

.auth-cork-theme .auth-card h1 {
    color: #0e1726;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.auth-cork-theme .auth-card .lead {
    color: #667085;
}

.auth-cork-theme .auth-card-logo {
    padding: 5px;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    background: #f8fafc;
}

.auth-cork-theme input,
.auth-cork-theme textarea,
.auth-cork-theme select {
    border-color: #d8e0ea;
    border-radius: 8px;
    color: #0e1726;
}

.auth-cork-theme input:focus,
.auth-cork-theme textarea:focus,
.auth-cork-theme select:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.13);
}

.auth-cork-theme button,
.auth-cork-theme .btn-link {
    border-radius: 9px;
    border-color: #e0e6ed;
    background: #fff;
    color: #3b3f5c;
    box-shadow: none;
}

.auth-cork-theme .btn-primary {
    border-color: #4361ee;
    background: linear-gradient(135deg, #4361ee 0%, #805dca 100%);
    color: #fff;
    box-shadow: 0 12px 22px rgba(67, 97, 238, 0.22);
}

.auth-cork-theme .btn-primary:hover {
    filter: brightness(0.98);
}

/* Cork dashboard transformation layer */
.freight360-cork-theme .admin-dashboard,
.freight360-cork-theme .manager-dashboard,
.freight360-cork-theme .user-dashboard {
    gap: 22px !important;
}

.freight360-cork-theme .dashboard-hero,
.freight360-cork-theme .trend-pod-filter {
    border: 1px solid #e0e6ed !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at top right, rgba(67, 97, 238, 0.13), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
    box-shadow: 0 12px 28px rgba(31, 45, 61, 0.07) !important;
}

.freight360-cork-theme .trend-pod-filter {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 14px !important;
}

.freight360-cork-theme .trend-pod-filter .inline-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.freight360-cork-theme .dashboard-hero h2 {
    color: #0e1726 !important;
    font-size: clamp(24px, 3vw, 34px) !important;
    font-weight: 800 !important;
}

.freight360-cork-theme .hero-chip,
.freight360-cork-theme .dashboard-card,
.freight360-cork-theme .mini-stat,
.freight360-cork-theme .status-box,
.freight360-cork-theme .analytics-panel,
.freight360-cork-theme .liner-health-card,
.freight360-cork-theme .trend-panel {
    border: 1px solid #e0e6ed !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(31, 45, 61, 0.07) !important;
}

.freight360-cork-theme .dashboard-card {
    position: relative !important;
    overflow: hidden !important;
    min-height: 150px !important;
    padding: 18px !important;
}

.freight360-cork-theme .dashboard-card::before,
.freight360-cork-theme .mini-stat::before,
.freight360-cork-theme .status-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #00ab55);
}

.freight360-cork-theme .dashboard-card strong,
.freight360-cork-theme .mini-stat strong,
.freight360-cork-theme .status-box strong,
.freight360-cork-theme .liner-health-count {
    color: #4361ee !important;
    font-weight: 800 !important;
}

.freight360-cork-theme .dashboard-card .eyebrow,
.freight360-cork-theme .trend-metric strong {
    color: #98a2b3 !important;
}

.freight360-cork-theme .dashboard-card .card-title,
.freight360-cork-theme .analytics-head h3,
.freight360-cork-theme .liner-health-head h3,
.freight360-cork-theme .trend-head h3 {
    color: #0e1726 !important;
    font-weight: 800 !important;
}

.freight360-cork-theme .activity-bar-chart {
    border: 1px solid #e0e6ed !important;
    border-radius: 16px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
        repeating-linear-gradient(0deg, transparent 0 34px, rgba(224, 230, 237, .55) 35px 36px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

.freight360-cork-theme .activity-bar {
    border-radius: 10px 10px 4px 4px !important;
    background: linear-gradient(180deg, #4361ee 0%, #805dca 100%) !important;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.22) !important;
}

.freight360-cork-theme .activity-bar.security {
    background: linear-gradient(180deg, #ffab00 0%, #e2a03f 100%) !important;
    box-shadow: 0 10px 20px rgba(226, 160, 63, 0.22) !important;
}

.freight360-cork-theme .activity-bar.rates {
    background: linear-gradient(180deg, #00ab55 0%, #00d68f 100%) !important;
    box-shadow: 0 10px 20px rgba(0, 171, 85, 0.20) !important;
}

.freight360-cork-theme .liner-health-card.valid .liner-health-count,
.freight360-cork-theme .status-box.valid strong {
    color: #00ab55 !important;
}

.freight360-cork-theme .liner-health-card.expiring .liner-health-count,
.freight360-cork-theme .status-box.warn strong {
    color: #e2a03f !important;
}

.freight360-cork-theme .liner-health-card.expired .liner-health-count,
.freight360-cork-theme .status-box.danger strong {
    color: #e7515a !important;
}

.freight360-cork-theme .trend-panel.soc {
    background:
        radial-gradient(circle at top right, rgba(67, 97, 238, 0.16), transparent 32%),
        #fff !important;
}

.freight360-cork-theme .trend-panel.coc {
    background:
        radial-gradient(circle at top right, rgba(226, 160, 63, 0.18), transparent 32%),
        #fff !important;
}

.freight360-cork-theme .dashboard-section-title {
    margin: 4px 0 -4px !important;
}

.freight360-cork-theme .dashboard-section-title h3 {
    margin: 0 !important;
    color: #0e1726 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.freight360-cork-theme .dashboard-section-title p {
    margin: 4px 0 0 !important;
    color: #888ea8 !important;
}

.freight360-cork-theme .liner-health-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.freight360-cork-theme .liner-health-card {
    position: relative !important;
    overflow: hidden !important;
    min-height: 190px !important;
    padding: 20px !important;
}

.freight360-cork-theme .liner-health-card::before {
    content: "";
    position: absolute;
    right: -54px;
    top: -27px;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    opacity: .12;
    background: #4361ee;
}

.freight360-cork-theme .liner-health-card::after {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 900;
}

.freight360-cork-theme .liner-health-card.valid::before {
    background: #00ab55;
}

.freight360-cork-theme .liner-health-card.valid::after {
    content: "✓";
    background: #ddf5f0;
    color: #00ab55;
}

.freight360-cork-theme .liner-health-card.expiring::before {
    background: #e2a03f;
}

.freight360-cork-theme .liner-health-card.expiring::after {
    content: "!";
    background: #fff5df;
    color: #e2a03f;
}

.freight360-cork-theme .liner-health-card.expired::before {
    background: #e7515a;
}

.freight360-cork-theme .liner-health-card.expired::after {
    content: "×";
    background: #fff0f1;
    color: #e7515a;
}

.freight360-cork-theme .liner-health-head {
    padding-right: 58px !important;
}

.freight360-cork-theme .liner-health-head h3 {
    font-size: 14px !important;
    color: #667085 !important;
    text-transform: uppercase;
    letter-spacing: .04em !important;
}

.freight360-cork-theme .liner-health-count {
    position: absolute;
    left: 20px;
    top: 50px;
    font-size: 42px !important;
    line-height: 1 !important;
}

.freight360-cork-theme .liner-health-copy {
    margin-top: 54px !important;
    max-width: 88%;
    color: #667085 !important;
}

.freight360-cork-theme .liner-health-list {
    margin-top: 4px !important;
    max-height: 96px;
    overflow-y: auto;
    padding-right: 2px;
}

.freight360-cork-theme .liner-health-chip {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    border: 1px solid #e0e6ed !important;
    color: #3b3f5c !important;
}

.freight360-cork-theme .liner-health-chip small {
    color: #98a2b3 !important;
}

.freight360-cork-theme .liner-health-empty {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    color: #98a2b3 !important;
}

.freight360-cork-theme .trend-filters {
    border: 1px solid #e0e6ed !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
}

.freight360-cork-theme .trend-filter {
    border-radius: 8px !important;
    color: #667085 !important;
}

.freight360-cork-theme .trend-filter.is-active {
    background: #4361ee !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(67, 97, 238, 0.22) !important;
}

.freight360-cork-theme .trend-metric,
.freight360-cork-theme .trend-chart-shell {
    border: 1px solid #e0e6ed !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
}

.freight360-cork-theme .trend-chart-canvas {
    min-height: 390px !important;
}

.freight360-cork-theme .dashboard-trend-grid {
    grid-template-columns: 1fr !important;
}

.freight360-cork-theme .trend-panel {
    padding: 20px !important;
}

.freight360-cork-theme .trend-head {
    align-items: flex-start !important;
}

.freight360-cork-theme .trend-head p {
    margin-top: 6px !important;
    color: #4361ee !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.freight360-cork-theme .trend-chart-shell {
    padding: 4px 8px 18px !important;
    overflow: visible !important;
}

.freight360-cork-theme .trend-chart-shell .apexcharts-canvas,
.freight360-cork-theme .trend-chart-shell .apexcharts-svg {
    overflow: visible !important;
}


.freight360-cork-theme.cork-dark .dashboard-hero,
.freight360-cork-theme.cork-dark .trend-pod-filter,
.freight360-cork-theme.cork-dark .dashboard-card,
.freight360-cork-theme.cork-dark .mini-stat,
.freight360-cork-theme.cork-dark .status-box,
.freight360-cork-theme.cork-dark .analytics-panel,
.freight360-cork-theme.cork-dark .liner-health-card,
.freight360-cork-theme.cork-dark .trend-panel,
.freight360-cork-theme.cork-dark .trend-metric,
.freight360-cork-theme.cork-dark .trend-chart-shell {
    border-color: #1b2e4b !important;
    background: #0e1726 !important;
}

.freight360-cork-theme.cork-dark .dashboard-hero h2,
.freight360-cork-theme.cork-dark .dashboard-card .card-title,
.freight360-cork-theme.cork-dark .analytics-head h3,
.freight360-cork-theme.cork-dark .liner-health-head h3,
.freight360-cork-theme.cork-dark .trend-head h3 {
    color: #fff !important;
}

.freight360-cork-theme.cork-dark .liner-health-chip,
.freight360-cork-theme.cork-dark .liner-health-empty {
    border-color: #1b2e4b !important;
    background: #060818 !important;
    color: #d1d5db !important;
}

.freight360-cork-theme.cork-dark .activity-bar-chart,
.freight360-cork-theme.cork-dark .trend-filters {
    border-color: #1b2e4b !important;
    background: #060818 !important;
}

/* Admin dashboard revamp */
.freight360-cork-theme .admin-dashboard-tocly {
    --tocly-teal: #0c768a;
    --tocly-green: #38c786;
    --tocly-amber: #e2a03f;
    --tocly-rose: #e7515a;
    --tocly-surface: #ffffff;
    --tocly-soft: #f8fafc;
    --tocly-line: #e8edf3;
    --tocly-copy: #6b7280;
    display: grid;
    gap: 22px;
}

.freight360-cork-theme .tocly-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--tocly-line);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 10px 28px rgba(31, 45, 61, 0.08);
}

.freight360-cork-theme .tocly-dashboard-hero-copy h2 {
    margin: 12px 0 10px;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .tocly-dashboard-hero-copy p {
    max-width: 720px;
    margin: 0;
    color: var(--tocly-copy);
    font-size: 14px;
    line-height: 1.7;
}

.freight360-cork-theme .tocly-dashboard-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.freight360-cork-theme .hero-chip.neutral {
    background: #f2f5f8 !important;
    color: #556070 !important;
    border-color: #e2e8f0 !important;
}

.freight360-cork-theme .tocly-dashboard-hero-metrics {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
}

.freight360-cork-theme .tocly-dashboard-hero-metric {
    padding: 16px 18px;
    border: 1px solid var(--tocly-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
}

.freight360-cork-theme .tocly-dashboard-hero-metric span,
.freight360-cork-theme .tocly-panel-kicker,
.freight360-cork-theme .tocly-kpi-label {
    display: block;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .tocly-dashboard-hero-metric strong {
    display: block;
    margin-top: 10px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.freight360-cork-theme .tocly-dashboard-hero-metric small {
    display: block;
    margin-top: 8px;
    color: var(--tocly-copy);
    font-size: 12px;
    line-height: 1.5;
}

.freight360-cork-theme .tocly-dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.freight360-cork-theme .tocly-kpi-card {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 20px;
    border: 1px solid var(--tocly-line);
    border-radius: 16px;
    background: var(--tocly-surface);
    box-shadow: 0 10px 24px rgba(31, 45, 61, 0.07);
}

.freight360-cork-theme .tocly-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--tocly-teal);
}

.freight360-cork-theme .tocly-kpi-card.accent-green::before {
    background: var(--tocly-green);
}

.freight360-cork-theme .tocly-kpi-card.accent-amber::before {
    background: var(--tocly-amber);
}

.freight360-cork-theme .tocly-kpi-card.accent-rose::before {
    background: var(--tocly-rose);
}

.freight360-cork-theme .tocly-kpi-card strong {
    display: block;
    margin: 12px 0 8px;
    color: #0f172a;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.freight360-cork-theme .tocly-kpi-card p {
    margin: 0;
    color: var(--tocly-copy);
    font-size: 12.5px;
    line-height: 1.6;
}

.freight360-cork-theme .tocly-dashboard-grid {
    display: grid;
    gap: 18px;
}

.freight360-cork-theme .tocly-dashboard-grid-main {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
}

.freight360-cork-theme .tocly-dashboard-grid-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.freight360-cork-theme .tocly-dashboard-grid-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.freight360-cork-theme .tocly-dashboard-grid-tables {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.freight360-cork-theme .tocly-chart-panel,
.freight360-cork-theme .tocly-compact-panel,
.freight360-cork-theme .tocly-table-panel,
.freight360-cork-theme .tocly-list-panel {
    padding: 20px;
    border: 1px solid var(--tocly-line);
    border-radius: 18px;
    background: var(--tocly-surface);
    box-shadow: 0 10px 24px rgba(31, 45, 61, 0.06);
}

.freight360-cork-theme .tocly-chart-panel.wide {
    min-width: 0;
}

.freight360-cork-theme .tocly-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.freight360-cork-theme .tocly-panel-head h3 {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.freight360-cork-theme .tocly-panel-head p {
    margin: 6px 0 0;
    color: var(--tocly-copy);
    font-size: 12.5px;
    line-height: 1.6;
}

.freight360-cork-theme .tocly-chart-canvas {
    min-height: 320px;
}

.freight360-cork-theme .tocly-chart-canvas-compact {
    min-height: 270px;
}

.freight360-cork-theme .tocly-mini-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.freight360-cork-theme .tocly-mini-meta-grid>div {
    padding: 12px;
    border: 1px solid var(--tocly-line);
    border-radius: 12px;
    background: var(--tocly-soft);
}

.freight360-cork-theme .tocly-mini-meta-grid span,
.freight360-cork-theme .tocly-mini-meta-grid strong {
    display: block;
}

.freight360-cork-theme .tocly-mini-meta-grid span {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.freight360-cork-theme .tocly-mini-meta-grid strong {
    margin-top: 8px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.freight360-cork-theme .tocly-watchlist {
    display: grid;
    gap: 12px;
}

.freight360-cork-theme .tocly-watchlist-item {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--tocly-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.freight360-cork-theme .tocly-watchlist-item strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.freight360-cork-theme .tocly-watchlist-item span {
    color: var(--tocly-copy);
    font-size: 12px;
}

.freight360-cork-theme .tocly-watchlist-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.freight360-cork-theme .pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.freight360-cork-theme .pill.warn {
    background: #fff4de;
    color: #b7791f;
}

.freight360-cork-theme .pill.danger {
    background: #fff1f2;
    color: #d92d20;
}

.freight360-cork-theme .tocly-compact-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.freight360-cork-theme .tocly-compact-metric-grid>div,
.freight360-cork-theme .tocly-signal,
.freight360-cork-theme .tocly-rank-row {
    padding: 14px;
    border: 1px solid var(--tocly-line);
    border-radius: 14px;
    background: var(--tocly-soft);
}

.freight360-cork-theme .tocly-compact-metric-grid strong,
.freight360-cork-theme .tocly-signal strong,
.freight360-cork-theme .tocly-rank-value {
    display: block;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
}

.freight360-cork-theme .tocly-compact-metric-grid span,
.freight360-cork-theme .tocly-signal span {
    display: block;
    margin-top: 6px;
    color: var(--tocly-copy);
    font-size: 12px;
    line-height: 1.5;
}

.freight360-cork-theme .tocly-signal-list,
.freight360-cork-theme .tocly-rank-list {
    display: grid;
    gap: 10px;
}

.freight360-cork-theme .tocly-signal.danger strong {
    color: var(--tocly-rose);
}

.freight360-cork-theme .tocly-signal.warn strong {
    color: var(--tocly-amber);
}

.freight360-cork-theme .tocly-signal.info strong {
    color: var(--tocly-teal);
}

.freight360-cork-theme .tocly-signal.success strong {
    color: var(--tocly-green);
}

.freight360-cork-theme .tocly-rank-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 40px;
    align-items: center;
    gap: 12px;
}

.freight360-cork-theme .tocly-rank-copy strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.freight360-cork-theme .tocly-rank-copy span {
    display: block;
    margin-top: 4px;
    color: var(--tocly-copy);
    font-size: 11px;
}

.freight360-cork-theme .tocly-rank-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eef4;
}

.freight360-cork-theme .tocly-rank-bar>div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tocly-teal), #43c1d4);
}

.freight360-cork-theme .tocly-table-panel .table-wrap {
    margin-top: 4px;
}

.freight360-cork-theme .tocly-table-panel table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.freight360-cork-theme .tocly-table-panel thead th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--tocly-line);
    color: #98a2b3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #fbfcfd;
}

.freight360-cork-theme .tocly-table-panel tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #eff3f7;
    color: #334155;
    font-size: 12.5px;
    vertical-align: top;
}

.freight360-cork-theme .tocly-table-panel tbody tr:hover td {
    background: #fafcfe;
}

.freight360-cork-theme .admin-dashboard-tocly .dashboard-empty {
    padding: 16px;
    border: 1px dashed var(--tocly-line);
    border-radius: 14px;
    background: #fbfcfd;
    color: #98a2b3;
}

@media (max-width: 1200px) {

    .freight360-cork-theme .tocly-dashboard-hero,
    .freight360-cork-theme .tocly-dashboard-grid-main,
    .freight360-cork-theme .tocly-dashboard-grid-secondary,
    .freight360-cork-theme .tocly-dashboard-grid-insights,
    .freight360-cork-theme .tocly-dashboard-grid-tables,
    .freight360-cork-theme .tocly-dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .freight360-cork-theme .tocly-dashboard-hero {
        padding: 18px;
    }

    .freight360-cork-theme .tocly-panel-head h3 {
        font-size: 18px;
    }

    .freight360-cork-theme .tocly-kpi-card strong,
    .freight360-cork-theme .tocly-dashboard-hero-metric strong {
        font-size: 28px;
    }

    .freight360-cork-theme .tocly-mini-meta-grid,
    .freight360-cork-theme .tocly-compact-metric-grid {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .tocly-rank-row {
        grid-template-columns: 1fr;
    }
}

.freight360-cork-theme.cork-dark .admin-dashboard-tocly {
    --tocly-surface: #111c33;
    --tocly-soft: #0e1726;
    --tocly-line: #1b2e4b;
    --tocly-copy: #94a3b8;
}

.freight360-cork-theme.cork-dark .tocly-dashboard-hero,
.freight360-cork-theme.cork-dark .tocly-kpi-card,
.freight360-cork-theme.cork-dark .tocly-chart-panel,
.freight360-cork-theme.cork-dark .tocly-compact-panel,
.freight360-cork-theme.cork-dark .tocly-table-panel,
.freight360-cork-theme.cork-dark .tocly-list-panel {
    border-color: var(--tocly-line);
    background: var(--tocly-surface);
}

.freight360-cork-theme.cork-dark .tocly-dashboard-hero {
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.12), transparent 28%),
        #111c33;
}

.freight360-cork-theme.cork-dark .tocly-dashboard-hero-copy h2,
.freight360-cork-theme.cork-dark .tocly-dashboard-hero-metric strong,
.freight360-cork-theme.cork-dark .tocly-kpi-card strong,
.freight360-cork-theme.cork-dark .tocly-panel-head h3,
.freight360-cork-theme.cork-dark .tocly-compact-metric-grid strong,
.freight360-cork-theme.cork-dark .tocly-signal strong,
.freight360-cork-theme.cork-dark .tocly-rank-copy strong,
.freight360-cork-theme.cork-dark .tocly-rank-value,
.freight360-cork-theme.cork-dark .tocly-watchlist-item strong,
.freight360-cork-theme.cork-dark .tocly-table-panel tbody td {
    color: #f8fafc;
}

.freight360-cork-theme.cork-dark .tocly-dashboard-hero-metric,
.freight360-cork-theme.cork-dark .tocly-watchlist-item,
.freight360-cork-theme.cork-dark .tocly-mini-meta-grid>div,
.freight360-cork-theme.cork-dark .tocly-compact-metric-grid>div,
.freight360-cork-theme.cork-dark .tocly-signal,
.freight360-cork-theme.cork-dark .tocly-rank-row,
.freight360-cork-theme.cork-dark .admin-dashboard-tocly .dashboard-empty {
    border-color: var(--tocly-line);
    background: var(--tocly-soft);
}

.freight360-cork-theme.cork-dark .tocly-table-panel thead th {
    border-bottom-color: var(--tocly-line);
    background: #0e1726;
}

.freight360-cork-theme.cork-dark .tocly-table-panel tbody td {
    border-bottom-color: rgba(27, 46, 75, 0.9);
}

.freight360-cork-theme.cork-dark .tocly-table-panel tbody tr:hover td {
    background: #17233c;
}

.freight360-cork-theme.cork-dark .tocly-rank-bar {
    background: #1b2e4b;
}

.freight360-cork-theme.cork-dark .pill.warn {
    background: rgba(226, 160, 63, 0.16);
    color: #f7c66a;
}

.freight360-cork-theme.cork-dark .pill.danger {
    background: rgba(231, 81, 90, 0.16);
    color: #ff9aa2;
}

/* Manager and user dashboard revamp */
.freight360-cork-theme .dashboard-role-shell {
    display: grid;
    gap: 22px;
}

.freight360-cork-theme .dashboard-role-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr);
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #e0e6ed;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(67, 97, 238, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 28px rgba(31, 45, 61, 0.08);
}

.freight360-cork-theme .dashboard-role-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.freight360-cork-theme .dashboard-role-hero h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .dashboard-role-hero p {
    margin: 0;
    color: #667085;
    font-size: 12.5px;
    line-height: 1.6;
    max-width: 720px;
}

.freight360-cork-theme .dashboard-role-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-content: start;
}

.freight360-cork-theme .dashboard-role-hero-metric {
    padding: 12px 14px;
    border: 1px solid #e0e6ed;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
}

.freight360-cork-theme .dashboard-role-hero-metric span,
.freight360-cork-theme .dashboard-role-kpi-card span {
    display: block;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .dashboard-role-hero-metric strong,
.freight360-cork-theme .dashboard-role-kpi-card strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.freight360-cork-theme .dashboard-role-hero-metric small,
.freight360-cork-theme .dashboard-role-kpi-card p {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 11px;
    line-height: 1.5;
}

.freight360-cork-theme .dashboard-role-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.freight360-cork-theme .dashboard-role-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 16px;
    border: 1px solid #e0e6ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31, 45, 61, 0.07);
}

.freight360-cork-theme .dashboard-role-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: #4361ee;
}

.freight360-cork-theme .dashboard-role-kpi-card.accent-teal::before {
    background: #0c768a;
}

.freight360-cork-theme .dashboard-role-kpi-card.accent-green::before {
    background: #38c786;
}

.freight360-cork-theme .dashboard-role-kpi-card.accent-amber::before {
    background: #e2a03f;
}

.freight360-cork-theme .dashboard-role-kpi-card.accent-indigo::before {
    background: #805dca;
}

.freight360-cork-theme .dashboard-role-shell .trend-pod-filter {
    padding: 16px 18px !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.10), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%) !important;
}

.freight360-cork-theme .dashboard-role-shell .dashboard-trend-grid {
    gap: 20px !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-panel {
    position: relative !important;
    overflow: hidden !important;
    padding: 18px !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 36px rgba(31, 45, 61, 0.08) !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #0c768a, #43c1d4);
}

.freight360-cork-theme .dashboard-role-shell .trend-panel.coc::before {
    background: linear-gradient(90deg, #e2a03f, #f7c66a);
}

.freight360-cork-theme .dashboard-role-shell .trend-panel.freight::before {
    background: linear-gradient(90deg, #38c786, #6ee7b7);
}

.freight360-cork-theme .dashboard-role-shell .trend-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-head h3 {
    margin: 0 !important;
    font-size: 20px !important;
    letter-spacing: -0.02em !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-head p {
    margin: 7px 0 0 !important;
    color: #667085 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-filters {
    padding: 4px !important;
    border-radius: 12px !important;
    background: #f4f7fb !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-filter {
    min-width: 48px;
    min-height: 34px;
    border-radius: 9px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-metrics {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-metric {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%) !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-metric strong {
    margin-bottom: 8px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-metric span {
    display: block;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-chart-shell {
    padding: 10px 12px 16px !important;
    border-radius: 16px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
        repeating-linear-gradient(0deg, transparent 0 34px, rgba(224, 230, 237, .45) 35px 36px) !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-chart-canvas {
    min-height: 330px !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-summary {
    margin: 14px 2px 0 !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.65 !important;
}

@media (max-width: 1200px) {

    .freight360-cork-theme .dashboard-role-hero,
    .freight360-cork-theme .dashboard-role-kpis {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .dashboard-role-hero-metrics,
    .freight360-cork-theme .dashboard-role-shell .trend-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .freight360-cork-theme .dashboard-role-hero {
        padding: 14px 16px;
    }

    .freight360-cork-theme .dashboard-role-hero h2 {
        font-size: 24px;
    }
}

.freight360-cork-theme.cork-dark .dashboard-role-hero,
.freight360-cork-theme.cork-dark .dashboard-role-kpi-card {
    border-color: #1b2e4b;
    background: #111c33;
}

.freight360-cork-theme.cork-dark .dashboard-role-hero {
    background:
        radial-gradient(circle at top right, rgba(67, 97, 238, 0.12), transparent 30%),
        #111c33;
}

.freight360-cork-theme.cork-dark .dashboard-role-hero h2,
.freight360-cork-theme.cork-dark .dashboard-role-hero-metric strong,
.freight360-cork-theme.cork-dark .dashboard-role-kpi-card strong {
    color: #f8fafc;
}

.freight360-cork-theme.cork-dark .dashboard-role-hero p,
.freight360-cork-theme.cork-dark .dashboard-role-hero-metric small,
.freight360-cork-theme.cork-dark .dashboard-role-kpi-card p {
    color: #94a3b8;
}

.freight360-cork-theme.cork-dark .dashboard-role-hero-metric {
    border-color: #1b2e4b;
    background: #0e1726;
}

.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-pod-filter,
.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-panel,
.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-metric,
.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-chart-shell {
    border-color: #1b2e4b !important;
    background: #111c33 !important;
}

.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-filters {
    background: #0e1726 !important;
}

.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-head p,
.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-summary {
    color: #94a3b8 !important;
}

.freight360-cork-theme .dashboard-role-shell .dashboard-section-title {
    margin: 10px 0 6px !important;
}

.freight360-cork-theme .dashboard-role-shell .dashboard-section-kicker,
.freight360-cork-theme .dashboard-role-shell .liner-health-kicker,
.freight360-cork-theme .dashboard-role-shell .trend-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #0c768a !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
}

.freight360-cork-theme .dashboard-role-shell .dashboard-section-title h3 {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
}

.freight360-cork-theme .dashboard-role-shell .dashboard-section-title p {
    margin-top: 6px !important;
    color: #667085 !important;
    font-size: 12px !important;
}

.freight360-cork-theme .dashboard-role-shell .liner-health-grid {
    gap: 16px !important;
}

.freight360-cork-theme .dashboard-role-shell .liner-health-card {
    min-height: 220px !important;
    padding: 18px 18px 16px !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%) !important;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06) !important;
}

.freight360-cork-theme .dashboard-role-shell .liner-health-card.valid {
    background:
        radial-gradient(circle at top right, rgba(56, 199, 134, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%) !important;
}

.freight360-cork-theme .dashboard-role-shell .liner-health-card.expiring {
    background:
        radial-gradient(circle at top right, rgba(226, 160, 63, 0.14), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%) !important;
}

.freight360-cork-theme .dashboard-role-shell .liner-health-card.expired {
    background:
        radial-gradient(circle at top right, rgba(231, 81, 90, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%) !important;
}

.freight360-cork-theme .dashboard-role-shell .liner-health-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding-right: 52px !important;
}

.freight360-cork-theme .dashboard-role-shell .liner-health-head h3 {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
}

.freight360-cork-theme .dashboard-role-shell .liner-health-count {
    position: static !important;
    min-width: 58px;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #e8edf3 !important;
    color: #0f172a !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    text-align: center !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
}

.freight360-cork-theme .dashboard-role-shell .liner-health-copy {
    margin-top: 16px !important;
    max-width: none !important;
    font-size: 12px !important;
    line-height: 1.65 !important;
}

.freight360-cork-theme .dashboard-role-shell .liner-health-list {
    margin-top: 10px !important;
    max-height: 108px;
}

.freight360-cork-theme .dashboard-role-shell .liner-health-chip,
.freight360-cork-theme .dashboard-role-shell .liner-health-empty {
    border-radius: 12px !important;
    background: rgba(248, 250, 252, 0.92) !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-panel {
    padding: 20px 20px 18px !important;
    border: 1px solid #e8edf3 !important;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%) !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-panel.coc {
    background:
        radial-gradient(circle at top right, rgba(226, 160, 63, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%) !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-panel.freight {
    background:
        radial-gradient(circle at top right, rgba(56, 199, 134, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%) !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-head {
    margin-bottom: 16px !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-head-copy {
    min-width: 0;
}

.freight360-cork-theme .dashboard-role-shell .trend-head-tools {
    display: flex !important;
    align-items: flex-end !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(12, 118, 138, 0.08);
    color: #0c768a !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-panel.coc .trend-chip {
    background: rgba(226, 160, 63, 0.14);
    color: #a16207 !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-panel.freight .trend-chip {
    background: rgba(56, 199, 134, 0.14);
    color: #15803d !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-head h3 {
    font-size: 22px !important;
    font-weight: 800 !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-head p {
    max-width: 580px;
    font-size: 12px !important;
    line-height: 1.65 !important;
}

.freight360-cork-theme .dashboard-role-shell .trend-filters {
    border: 1px solid #e8edf3 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.freight360-cork-theme .dashboard-role-shell .trend-metric {
    border: 1px solid #edf2f7 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.freight360-cork-theme .dashboard-role-shell .trend-chart-shell {
    border: 1px solid #edf2f7 !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
        repeating-linear-gradient(0deg, transparent 0 34px, rgba(224, 230, 237, .45) 35px 36px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.freight360-cork-theme.cork-dark .dashboard-role-shell .dashboard-section-kicker,
.freight360-cork-theme.cork-dark .dashboard-role-shell .liner-health-kicker,
.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-kicker {
    color: #7dd3fc !important;
}

.freight360-cork-theme.cork-dark .dashboard-role-shell .dashboard-section-title h3,
.freight360-cork-theme.cork-dark .dashboard-role-shell .liner-health-head h3,
.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-head h3,
.freight360-cork-theme.cork-dark .dashboard-role-shell .liner-health-count {
    color: #f8fafc !important;
}

.freight360-cork-theme.cork-dark .dashboard-role-shell .liner-health-card,
.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-panel {
    border-color: #1b2e4b !important;
    background:
        radial-gradient(circle at top right, rgba(67, 193, 212, 0.10), transparent 32%),
        #111c33 !important;
}

.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-panel.coc {
    background:
        radial-gradient(circle at top right, rgba(226, 160, 63, 0.12), transparent 32%),
        #111c33 !important;
}

.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-panel.freight {
    background:
        radial-gradient(circle at top right, rgba(56, 199, 134, 0.12), transparent 32%),
        #111c33 !important;
}

.freight360-cork-theme.cork-dark .dashboard-role-shell .liner-health-count,
.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-filters,
.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-metric,
.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-chart-shell {
    border-color: #1b2e4b !important;
    background: #0e1726 !important;
}

.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-chip {
    background: rgba(125, 211, 252, 0.12);
    color: #bae6fd !important;
}

.freight360-cork-theme .finance-aging-card {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e8edf3;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.10), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.freight360-cork-theme .finance-aging-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.freight360-cork-theme .finance-aging-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #0c768a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-aging-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .finance-aging-head .muted {
    margin-top: 6px !important;
    color: #667085 !important;
    font-size: 12px !important;
}

.freight360-cork-theme .finance-aging-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.freight360-cork-theme .finance-report-controls {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.freight360-cork-theme .finance-report-control-box,
.freight360-cork-theme .finance-aging-filter {
    display: flex;
    align-items: end;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
}

.freight360-cork-theme .finance-report-control-box label,
.freight360-cork-theme .finance-aging-filter label {
    margin: 0;
}

.freight360-cork-theme .finance-report-control-box span,
.freight360-cork-theme .finance-aging-filter span {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}

.freight360-cork-theme .finance-report-control-box input[type="date"],
.freight360-cork-theme .finance-aging-filter input[type="date"],
.freight360-cork-theme .finance-aging-filter input[type="text"] {
    min-width: 154px;
    height: 36px;
    border: 1px solid #d8e1ea;
    border-radius: 10px;
    padding: 0 10px;
    background: #fff;
}

.freight360-cork-theme .finance-report-share-box,
.freight360-cork-theme .finance-aging-share {
    display: flex;
    align-items: end;
    gap: 8px;
}

.freight360-cork-theme .finance-report-share-box>span {
    align-self: center;
    margin: 0 4px 0 0;
    white-space: nowrap;
}

.freight360-cork-theme .finance-aging-summary,
.freight360-cork-theme .finance-aging-buckets {
    display: grid;
    gap: 12px;
}

.freight360-cork-theme .finance-aging-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 14px;
}

.freight360-cork-theme .finance-aging-summary div,
.freight360-cork-theme .finance-aging-buckets div {
    padding: 14px 15px;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.freight360-cork-theme .finance-aging-summary span,
.freight360-cork-theme .finance-aging-buckets span {
    display: block;
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-aging-summary strong,
.freight360-cork-theme .finance-aging-buckets strong {
    display: block;
    margin-top: 7px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.freight360-cork-theme .finance-aging-summary small {
    display: block;
    margin-top: 5px;
    color: #667085;
    font-size: 11px;
    line-height: 1.5;
}

.freight360-cork-theme .finance-aging-buckets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.freight360-cork-theme .finance-aging-table-wrap {
    border: 1px solid #e8edf3;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
}

.freight360-cork-theme .finance-aging-party strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.freight360-cork-theme .finance-aging-party small {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 11px;
}

.freight360-cork-theme .finance-aging-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(12, 118, 138, 0.08);
    color: #0c768a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-aging-table td,
.freight360-cork-theme .finance-aging-table th {
    vertical-align: middle;
}

.freight360-cork-theme .finance-aging-total {
    color: #0c768a !important;
    font-weight: 800 !important;
}

.freight360-cork-theme .finance-due-filter {
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.freight360-cork-theme .finance-due-filter input[type="search"],
.freight360-cork-theme .finance-due-filter input[type="number"],
.freight360-cork-theme .finance-due-filter select {
    min-width: 145px;
    height: 36px;
    border: 1px solid #d8e1ea;
    border-radius: 10px;
    padding: 0 10px;
    background: #fff;
}

.freight360-cork-theme .finance-due-filter>label:first-of-type {
    flex: 0 0 auto;
}

.freight360-cork-theme .finance-due-party-picker {
    width: 230px;
    min-width: 230px;
}

.freight360-cork-theme .finance-due-party-picker [data-finance-picker-label] {
    width: 100%;
    min-width: 230px;
    height: 36px;
    border: 1px solid #d8e1ea;
    border-radius: 4px;
    background: #fff;
    padding: 0 10px;
}

.freight360-cork-theme.cork-dark .finance-due-party-picker [data-finance-picker-label] {
    border-color: #263247;
    background: #20283c;
    color: #c3cbe0;
}

/* Compact, consistent reporting-date controls across finance reports. */
.freight360-cork-theme .finance-tocly-workspace :is(.finance-aging-filter,
    .finance-due-filter,
    .trial-balance-date-form,
    .balance-sheet-date-form,
    .pl-report-form) input[type="date"] {
    width: 154px !important;
    min-width: 154px !important;
    max-width: 154px !important;
    flex: 0 0 154px;
}

/* Unified finance report hierarchy: header, filters, analytics, results. */
.freight360-cork-theme .finance-standard-report {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    overflow: visible !important;
    margin: 16px 0 24px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.freight360-cork-theme .finance-standard-report-header {
    order: 1;
}

.freight360-cork-theme .finance-standard-report-filters {
    order: 2;
}

.freight360-cork-theme .finance-standard-report-analytics {
    order: 3;
}

.freight360-cork-theme .finance-standard-report-results-head {
    order: 4;
}

.freight360-cork-theme .finance-standard-report-results {
    order: 5;
}

.freight360-cork-theme .finance-standard-report>.finance-standard-report-header,
.freight360-cork-theme .finance-standard-report>.finance-standard-report-filters {
    width: 100%;
    margin: 0 !important;
    border: 1px solid #eff0f2 !important;
    background: #fff !important;
    padding: 16px !important;
    box-shadow: 0 1px 2px rgba(56, 65, 74, .06) !important;
}

.freight360-cork-theme .finance-standard-report>.finance-standard-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 4px 4px 0 0 !important;
    border-bottom: 0 !important;
    padding-bottom: 12px !important;
}

.freight360-cork-theme .finance-standard-report>.finance-standard-report-filters {
    border-radius: 0 0 4px 4px !important;
    border-top-color: #eff0f2 !important;
    padding-top: 12px !important;
}

.freight360-cork-theme .finance-standard-report-header :is(h3, h4) {
    margin: 0 !important;
    color: #343a40 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.freight360-cork-theme .finance-standard-report-header .muted {
    margin: 3px 0 0 !important;
    color: #74788d !important;
    font-size: 11px !important;
}

.freight360-cork-theme .finance-standard-report-kicker {
    display: block;
    margin-bottom: 4px;
    color: #0c768a;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-standard-report>.finance-standard-report-analytics {
    width: 100%;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    gap: 16px !important;
}

.freight360-cork-theme .finance-standard-report>.finance-standard-report-analytics>div {
    min-height: 88px;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid #eff0f2 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(56, 65, 74, .04) !important;
}

.freight360-cork-theme .finance-standard-report>.finance-standard-report-results-head {
    width: 100%;
    margin: 16px 0 0 !important;
    padding: 16px !important;
    border: 1px solid #eff0f2 !important;
    border-radius: 4px 4px 0 0 !important;
    background: #fff !important;
}

.freight360-cork-theme .finance-standard-report>.finance-standard-report-results {
    width: 100%;
    margin: 16px 0 0 !important;
    border: 1px solid #eff0f2 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(56, 65, 74, .06) !important;
}

.freight360-cork-theme .finance-standard-report>.finance-standard-report-results-head+.finance-standard-report-results {
    margin-top: 0 !important;
    border-top: 0 !important;
    border-radius: 0 0 4px 4px !important;
}

.freight360-cork-theme .finance-standard-report :is(.trial-balance-date-form, .balance-sheet-date-form) {
    display: flex;
    align-items: end;
    justify-content: flex-start;
    gap: 10px;
}

.freight360-cork-theme .finance-standard-report .ledger-report-form,
.freight360-cork-theme .finance-standard-report .pl-report-form {
    border-bottom: 1px solid #eff0f2 !important;
}

.freight360-cork-theme .finance-standard-report .ledger-report-actions,
.freight360-cork-theme .finance-standard-report .pl-report-actions {
    align-items: end;
}

.freight360-cork-theme .finance-standard-report .finance-aging-buckets {
    order: 4;
    margin-top: 16px !important;
}

.freight360-cork-theme .finance-standard-report .finance-aging-buckets+.finance-standard-report-results-head {
    order: 5;
}

.freight360-cork-theme .finance-standard-report .finance-aging-buckets~.finance-standard-report-results {
    order: 6;
}

.freight360-cork-theme.cork-dark .finance-standard-report> :is(.finance-standard-report-header,
    .finance-standard-report-filters,
    .finance-standard-report-results-head,
    .finance-standard-report-results),
.freight360-cork-theme.cork-dark .finance-standard-report>.finance-standard-report-analytics>div {
    border-color: #263247 !important;
    background: #1b2234 !important;
}

@media (max-width: 767px) {
    .freight360-cork-theme .finance-standard-report {
        margin-top: 12px !important;
    }

    .freight360-cork-theme .finance-standard-report> :is(.finance-standard-report-header, .finance-standard-report-filters) {
        padding: 12px !important;
    }

    .freight360-cork-theme .finance-standard-report>.finance-standard-report-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .freight360-cork-theme .finance-standard-report>.finance-standard-report-analytics {
        gap: 12px !important;
        margin-top: 12px !important;
    }

    .freight360-cork-theme .finance-standard-report>.finance-standard-report-results,
    .freight360-cork-theme .finance-standard-report>.finance-standard-report-results-head {
        margin-top: 12px !important;
    }
}

@media (max-width: 575px) {

    .freight360-cork-theme .finance-tocly-workspace :is(.finance-aging-filter,
        .finance-due-filter,
        .trial-balance-date-form,
        .balance-sheet-date-form,
        .pl-report-form) input[type="date"] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex-basis: 100%;
    }
}

.freight360-cork-theme .finance-due-share {
    margin-left: auto;
}

.freight360-cork-theme .finance-aging-badge.due-status-overdue {
    background: rgba(217, 45, 32, 0.10);
    color: #b42318;
}

.freight360-cork-theme .finance-aging-badge.due-status-due_today {
    background: rgba(247, 144, 9, 0.12);
    color: #b54708;
}

.freight360-cork-theme .finance-due-table {
    min-width: 1380px;
}

.freight360-cork-theme .finance-aging-table tfoot th {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 800 !important;
}

@media (max-width: 1200px) {
    .freight360-cork-theme .finance-aging-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {

    .freight360-cork-theme .finance-aging-head,
    .freight360-cork-theme .finance-aging-actions,
    .freight360-cork-theme .finance-aging-filter,
    .freight360-cork-theme .finance-report-controls,
    .freight360-cork-theme .finance-report-control-box {
        display: block;
    }

    .freight360-cork-theme .finance-aging-actions,
    .freight360-cork-theme .finance-aging-share {
        margin-top: 12px;
    }

    .freight360-cork-theme .finance-aging-filter .btn-link,
    .freight360-cork-theme .finance-aging-share .btn-link,
    .freight360-cork-theme .finance-report-control-box .btn-link {
        margin-top: 10px;
    }

    .freight360-cork-theme .finance-report-share-box>span {
        margin-bottom: 2px;
    }

    .freight360-cork-theme .finance-aging-summary,
    .freight360-cork-theme .finance-aging-buckets {
        grid-template-columns: 1fr;
    }
}

.freight360-cork-theme.cork-dark .finance-aging-card,
.freight360-cork-theme.cork-dark .finance-aging-filter,
.freight360-cork-theme.cork-dark .finance-report-control-box,
.freight360-cork-theme.cork-dark .finance-aging-summary div,
.freight360-cork-theme.cork-dark .finance-aging-buckets div,
.freight360-cork-theme.cork-dark .finance-aging-table-wrap {
    border-color: #1b2e4b !important;
    background: #111c33 !important;
}

.freight360-cork-theme.cork-dark .finance-aging-head h3,
.freight360-cork-theme.cork-dark .finance-aging-summary strong,
.freight360-cork-theme.cork-dark .finance-aging-buckets strong,
.freight360-cork-theme.cork-dark .finance-aging-party strong {
    color: #f8fafc !important;
}

.freight360-cork-theme.cork-dark .finance-aging-kicker,
.freight360-cork-theme.cork-dark .finance-aging-badge {
    color: #7dd3fc !important;
}

.freight360-cork-theme.cork-dark .finance-aging-head .muted,
.freight360-cork-theme.cork-dark .finance-aging-summary small,
.freight360-cork-theme.cork-dark .finance-aging-party small,
.freight360-cork-theme.cork-dark .finance-aging-summary span,
.freight360-cork-theme.cork-dark .finance-aging-buckets span,
.freight360-cork-theme.cork-dark .finance-aging-filter span,
.freight360-cork-theme.cork-dark .finance-report-control-box span {
    color: #94a3b8 !important;
}

.freight360-cork-theme.cork-dark .finance-report-control-box input[type="date"],
.freight360-cork-theme.cork-dark .finance-aging-filter input[type="date"],
.freight360-cork-theme.cork-dark .finance-aging-filter input[type="text"] {
    border-color: #243b63;
    background: #0e1726;
    color: #f8fafc;
}

.freight360-cork-theme .finance-sales-invoice-shell {
    display: grid;
    gap: 16px;
    margin: 18px 0 14px;
    padding: 0 20px;
}

.freight360-cork-theme .finance-sales-invoice-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.14), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.98) 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.freight360-cork-theme .finance-sales-invoice-hero-copy {
    min-width: 0;
}

.freight360-cork-theme .finance-sales-table-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(12, 118, 138, 0.14);
    border-radius: 999px;
    background: rgba(12, 118, 138, 0.08);
    color: #0c768a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-sales-invoice-hero h3 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.freight360-cork-theme .finance-sales-invoice-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.freight360-cork-theme .finance-sales-invoice-hero-actions .btn-primary,
.freight360-cork-theme .finance-sales-invoice-hero-actions .finance-add-button,
.freight360-cork-theme .finance-sales-invoice-hero-actions .finance-tool-button {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.freight360-cork-theme .finance-sales-invoice-hero-actions .finance-add-button {
    min-width: auto;
    box-shadow: 0 14px 30px rgba(12, 118, 138, 0.22);
}

.freight360-cork-theme .finance-sales-invoice-hero-actions .finance-tool-button {
    border: 1px solid transparent;
    background: linear-gradient(135deg, #0c768a 0%, #0ea5b7 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(12, 118, 138, 0.22);
}

.freight360-cork-theme .finance-sales-invoice-hero-actions .finance-tool-button:hover,
.freight360-cork-theme .finance-sales-invoice-hero-actions .finance-tool-button:focus-visible {
    background: linear-gradient(135deg, #0a6778 0%, #0c8ea1 100%);
    color: #fff;
}

.freight360-cork-theme .share-action-menu-panel,
.freight360-cork-theme .share-action-menu-panel.is-floating {
    min-width: 176px;
    gap: 4px;
    padding: 7px;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(31, 45, 61, 0.16);
}

.freight360-cork-theme .share-action-menu-panel a,
.freight360-cork-theme .share-action-menu-panel button,
.freight360-cork-theme .share-action-menu-panel.is-floating a,
.freight360-cork-theme .share-action-menu-panel.is-floating button {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 9px 11px;
    background: transparent;
    color: #3b3f5c;
    text-align: left;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.freight360-cork-theme .share-action-menu-panel a:hover,
.freight360-cork-theme .share-action-menu-panel button:hover,
.freight360-cork-theme .share-action-menu-panel a:focus-visible,
.freight360-cork-theme .share-action-menu-panel button:focus-visible,
.freight360-cork-theme .share-action-menu-panel.is-floating a:hover,
.freight360-cork-theme .share-action-menu-panel.is-floating button:hover,
.freight360-cork-theme .share-action-menu-panel.is-floating a:focus-visible,
.freight360-cork-theme .share-action-menu-panel.is-floating button:focus-visible {
    border-color: rgba(67, 97, 238, 0.16);
    background: #f1f5ff;
    color: #4361ee;
    outline: none;
}

.freight360-cork-theme .finance-sales-invoice-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    border: 1px solid #e8edf3;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.82);
}

.freight360-cork-theme .finance-sales-invoice-filters label,
.freight360-cork-theme .finance-sales-picker-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.freight360-cork-theme .finance-sales-invoice-filters label span,
.freight360-cork-theme .finance-sales-picker-field>span {
    color: #475467;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-sales-invoice-filters input[type="date"],
.freight360-cork-theme .finance-sales-invoice-filters input[name="invoice_no"],
.freight360-cork-theme .finance-sales-invoice-filters .finance-picker>input[data-finance-picker-label] {
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    font-size: 12px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.freight360-cork-theme .finance-sales-invoice-filters input[type="date"]:focus,
.freight360-cork-theme .finance-sales-invoice-filters input[name="invoice_no"]:focus,
.freight360-cork-theme .finance-sales-invoice-filters .finance-picker>input[data-finance-picker-label]:focus {
    border-color: rgba(12, 118, 138, 0.55);
    box-shadow: 0 0 0 4px rgba(12, 118, 138, 0.10);
}

.freight360-cork-theme .finance-sales-invoice-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.freight360-cork-theme .finance-sales-invoice-filter-actions .btn-primary,
.freight360-cork-theme .finance-sales-invoice-filter-actions .btn-link {
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 88px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.freight360-cork-theme .finance-sales-invoice-filter-actions .btn-primary {
    border: 1px solid transparent;
    background: linear-gradient(135deg, #0c768a 0%, #0ea5b7 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(12, 118, 138, 0.22);
}

.freight360-cork-theme .finance-sales-invoice-filter-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0a6778 0%, #0c8ea1 100%);
    color: #fff;
}

.freight360-cork-theme .finance-sales-invoice-filter-actions .btn-link.ghost {
    border: 1px solid #dbe4ee;
    background: rgba(255, 255, 255, 0.94);
    color: #475467;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.freight360-cork-theme .finance-sales-invoice-filter-actions .btn-link.ghost:hover,
.freight360-cork-theme .finance-sales-invoice-filter-actions .btn-link.ghost:focus-visible {
    border-color: #c7d2de;
    background: #ffffff;
    color: #0f172a;
}

.freight360-cork-theme .finance-sales-invoice-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.freight360-cork-theme .finance-inventory-analytics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    order: 3;
    width: 100%;
    margin-top: 16px;
}

.freight360-cork-theme .finance-sales-kpi {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 18px 16px;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.freight360-cork-theme .finance-sales-kpi.primary {
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.14), transparent 30%),
        rgba(255, 255, 255, 0.96);
}

.freight360-cork-theme .finance-sales-kpi.warning {
    background:
        radial-gradient(circle at top right, rgba(226, 160, 63, 0.14), transparent 30%),
        rgba(255, 255, 255, 0.96);
}

.freight360-cork-theme .finance-sales-kpi span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-sales-kpi strong {
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .finance-sales-kpi small {
    color: #667085;
    font-size: 12px;
    line-height: 1.55;
}

.freight360-cork-theme .finance-sales-invoice-table-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
}

.freight360-cork-theme .finance-sales-table-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: #0c768a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-sales-invoice-table-head h4 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .finance-sales-table-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.freight360-cork-theme .finance-sales-invoice-table-wrap {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.freight360-cork-theme .finance-sales-invoice-table th {
    padding-top: 14px;
    padding-bottom: 14px;
    background: #f8fafc;
    color: #667085;
}

.freight360-cork-theme .finance-sales-invoice-table td {
    padding-top: 14px;
    padding-bottom: 14px;
    vertical-align: middle;
}

.freight360-cork-theme .finance-sales-invoice-table td:first-child,
.freight360-cork-theme .finance-sales-invoice-table th:first-child {
    width: 40px;
}

.freight360-cork-theme .finance-sales-invoice-table a {
    font-weight: 800;
}

.freight360-cork-theme .finance-sales-table-subtext {
    display: block;
    margin-top: 4px;
    color: #98a2b3;
    font-size: 11px;
    line-height: 1.4;
}

.freight360-cork-theme .finance-sales-party-cell {
    display: grid;
    gap: 4px;
}

.freight360-cork-theme .finance-sales-party-cell strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.freight360-cork-theme .finance-sales-party-cell small {
    color: #98a2b3;
    font-size: 11px;
}

.freight360-cork-theme .finance-sales-amount-cell {
    color: #0f172a;
    font-weight: 800;
    white-space: nowrap;
}

.freight360-cork-theme .finance-sales-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    background: #f8fafc;
    color: #475467;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-sales-status.posted {
    border-color: #b7eadc;
    background: #ddf5f0;
    color: #0f8a55;
}

.freight360-cork-theme .finance-sales-status.draft {
    border-color: #ffe0a3;
    background: #fff5df;
    color: #b7791f;
}

.freight360-cork-theme .finance-sales-status.cancelled,
.freight360-cork-theme .finance-sales-status.void {
    border-color: #ffc4c8;
    background: #fff0f1;
    color: #d92d20;
}

.freight360-cork-theme .finance-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    background: #f8f9fa;
    color: #74788d;
    font-family: "Rubik", var(--cork-font, Arial, sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.freight360-cork-theme .finance-status-pill.posted,
.freight360-cork-theme .finance-status-pill.active,
.freight360-cork-theme .finance-status-pill.approved,
.freight360-cork-theme .finance-status-pill.paid,
.freight360-cork-theme .finance-status-pill.completed {
    border-color: #b7eadc;
    background: #ddf5f0;
    color: #08794a;
}

.freight360-cork-theme .finance-status-pill.draft,
.freight360-cork-theme .finance-status-pill.pending_approval,
.freight360-cork-theme .finance-status-pill.pending,
.freight360-cork-theme .finance-status-pill.partially-paid,
.freight360-cork-theme .finance-status-pill.partial {
    border-color: #f5d797;
    background: #fff5df;
    color: #9a6416;
}

.freight360-cork-theme .finance-status-pill.unpaid,
.freight360-cork-theme .finance-status-pill.overdue,
.freight360-cork-theme .finance-status-pill.cancelled,
.freight360-cork-theme .finance-status-pill.canceled,
.freight360-cork-theme .finance-status-pill.void,
.freight360-cork-theme .finance-status-pill.rejected,
.freight360-cork-theme .finance-status-pill.inactive {
    border-color: #ffc4c8;
    background: #fff0f1;
    color: #c9362b;
}

.freight360-cork-theme .finance-status-pill.open,
.freight360-cork-theme .finance-status-pill.processing {
    border-color: #b9dbf8;
    background: #eaf4fd;
    color: #2674ad;
}

.freight360-cork-theme.cork-dark .finance-status-pill {
    border-color: #364258;
    background: #20283c;
    color: #a6b0cf;
}

.freight360-cork-theme.cork-dark .finance-status-pill.posted,
.freight360-cork-theme.cork-dark .finance-status-pill.active,
.freight360-cork-theme.cork-dark .finance-status-pill.approved,
.freight360-cork-theme.cork-dark .finance-status-pill.paid,
.freight360-cork-theme.cork-dark .finance-status-pill.completed {
    border-color: rgba(52, 195, 143, 0.35);
    background: rgba(52, 195, 143, 0.14);
    color: #67d9ad;
}

.freight360-cork-theme.cork-dark .finance-status-pill.draft,
.freight360-cork-theme.cork-dark .finance-status-pill.pending_approval,
.freight360-cork-theme.cork-dark .finance-status-pill.pending,
.freight360-cork-theme.cork-dark .finance-status-pill.partially-paid,
.freight360-cork-theme.cork-dark .finance-status-pill.partial {
    border-color: rgba(241, 180, 76, 0.36);
    background: rgba(241, 180, 76, 0.14);
    color: #f4c66f;
}

.freight360-cork-theme.cork-dark .finance-status-pill.unpaid,
.freight360-cork-theme.cork-dark .finance-status-pill.overdue,
.freight360-cork-theme.cork-dark .finance-status-pill.cancelled,
.freight360-cork-theme.cork-dark .finance-status-pill.canceled,
.freight360-cork-theme.cork-dark .finance-status-pill.void,
.freight360-cork-theme.cork-dark .finance-status-pill.rejected,
.freight360-cork-theme.cork-dark .finance-status-pill.inactive {
    border-color: rgba(244, 106, 106, 0.36);
    background: rgba(244, 106, 106, 0.14);
    color: #ff9292;
}

@media (max-width: 1280px) {
    .freight360-cork-theme .finance-sales-invoice-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .freight360-cork-theme .finance-sales-invoice-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .freight360-cork-theme .finance-sales-invoice-hero,
    .freight360-cork-theme .finance-sales-invoice-table-head {
        flex-direction: column;
        align-items: stretch;
    }

    .freight360-cork-theme .finance-sales-invoice-hero-actions,
    .freight360-cork-theme .finance-sales-table-meta {
        justify-content: flex-start;
    }

    .freight360-cork-theme .finance-sales-invoice-kpis,
    .freight360-cork-theme .finance-sales-invoice-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .freight360-cork-theme .finance-sales-invoice-shell {
        padding: 0 14px;
    }

    .freight360-cork-theme .finance-sales-invoice-hero,
    .freight360-cork-theme .finance-sales-invoice-filters {
        padding: 16px;
        border-radius: 18px;
    }

    .freight360-cork-theme .finance-sales-invoice-kpis,
    .freight360-cork-theme .finance-sales-invoice-filters {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .finance-sales-invoice-hero h3 {
        font-size: 22px;
    }
}

.freight360-cork-theme.cork-dark .finance-sales-invoice-hero,
.freight360-cork-theme.cork-dark .finance-sales-invoice-filters,
.freight360-cork-theme.cork-dark .finance-sales-kpi,
.freight360-cork-theme.cork-dark .finance-sales-invoice-table-wrap {
    border-color: #1b2e4b;
    background: transparent;
}

.freight360-cork-theme.cork-dark .finance-sales-invoice-hero {
    background:
        radial-gradient(circle at top right, rgba(67, 193, 212, 0.10), transparent 30%),
        #111c33;
}

.freight360-cork-theme.cork-dark .finance-sales-table-meta span,
.freight360-cork-theme.cork-dark .finance-sales-status {
    border-color: #1b2e4b;
    background: #0e1726;
    color: #bae6fd;
}

.freight360-cork-theme.cork-dark .finance-sales-kpi.primary,
.freight360-cork-theme.cork-dark .finance-sales-kpi.warning {
    background: #111c33;
}

.freight360-cork-theme.cork-dark .finance-sales-invoice-hero h3,
.freight360-cork-theme.cork-dark .finance-sales-kpi strong,
.freight360-cork-theme.cork-dark .finance-sales-invoice-table-head h4,
.freight360-cork-theme.cork-dark .finance-sales-party-cell strong,
.freight360-cork-theme.cork-dark .finance-sales-amount-cell {
    color: #f8fafc;
}

.freight360-cork-theme.cork-dark .finance-sales-invoice-hero p,
.freight360-cork-theme.cork-dark .finance-sales-kpi span,
.freight360-cork-theme.cork-dark .finance-sales-kpi small,
.freight360-cork-theme.cork-dark .finance-sales-table-subtext,
.freight360-cork-theme.cork-dark .finance-sales-party-cell small,
.freight360-cork-theme.cork-dark .finance-sales-table-kicker,
.freight360-cork-theme.cork-dark .finance-sales-invoice-filters label span,
.freight360-cork-theme.cork-dark .finance-sales-picker-field>span,
.freight360-cork-theme.cork-dark .finance-sales-invoice-table th {
    color: #94a3b8;
}

.freight360-cork-theme.cork-dark .finance-sales-invoice-filters input[type="date"],
.freight360-cork-theme.cork-dark .finance-sales-invoice-filters input[name="invoice_no"],
.freight360-cork-theme.cork-dark .finance-sales-invoice-filters .finance-picker>input[data-finance-picker-label] {
    border-color: #243b63;
    background: #0e1726;
    color: #f8fafc;
    box-shadow: none;
}

.freight360-cork-theme.cork-dark .finance-sales-invoice-filter-actions .btn-link.ghost {
    border-color: #243b63;
    background: #0e1726;
    color: #94a3b8;
    box-shadow: none;
}

.freight360-cork-theme.cork-dark .finance-sales-invoice-hero-actions .finance-tool-button {
    border-color: transparent;
    background: linear-gradient(135deg, #0c768a 0%, #0ea5b7 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.freight360-cork-theme.cork-dark .share-action-menu-panel,
.freight360-cork-theme.cork-dark .share-action-menu-panel.is-floating {
    border-color: #1b2e4b;
}

.freight360-cork-theme.cork-dark .share-action-menu-panel,
.freight360-cork-theme.cork-dark .share-action-menu-panel.is-floating {
    background:
        radial-gradient(circle at top right, rgba(67, 193, 212, 0.10), transparent 32%),
        #111c33;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.freight360-cork-theme.cork-dark .share-action-menu-panel a,
.freight360-cork-theme.cork-dark .share-action-menu-panel button,
.freight360-cork-theme.cork-dark .share-action-menu-panel.is-floating a,
.freight360-cork-theme.cork-dark .share-action-menu-panel.is-floating button {
    color: #dbe4ee;
}

.freight360-cork-theme.cork-dark .share-action-menu-panel a:hover,
.freight360-cork-theme.cork-dark .share-action-menu-panel button:hover,
.freight360-cork-theme.cork-dark .share-action-menu-panel a:focus-visible,
.freight360-cork-theme.cork-dark .share-action-menu-panel button:focus-visible,
.freight360-cork-theme.cork-dark .share-action-menu-panel.is-floating a:hover,
.freight360-cork-theme.cork-dark .share-action-menu-panel.is-floating button:hover,
.freight360-cork-theme.cork-dark .share-action-menu-panel.is-floating a:focus-visible,
.freight360-cork-theme.cork-dark .share-action-menu-panel.is-floating button:focus-visible {
    border-color: rgba(125, 211, 252, 0.18);
    background: rgba(125, 211, 252, 0.10);
    color: #7dd3fc;
}

.freight360-cork-theme .ledger-report-card {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #e8edf3;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.10), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.freight360-cork-theme .ledger-report-head {
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf2f7;
}

.freight360-cork-theme .ledger-report-head-copy {
    min-width: 0;
}

.freight360-cork-theme .ledger-report-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #0c768a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.freight360-cork-theme .ledger-report-head h3 {
    color: #0f172a;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .ledger-report-head p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.65;
    max-width: 720px;
}

.freight360-cork-theme .ledger-back-button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(12, 118, 138, 0.10);
    color: #0c768a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .ledger-report-form {
    padding: 20px 22px 18px;
}

.freight360-cork-theme .ledger-filter-grid {
    grid-template-columns: minmax(260px, 1.25fr) minmax(180px, .8fr) minmax(180px, .8fr) minmax(260px, 1fr);
    gap: 18px;
}

.freight360-cork-theme .ledger-field label {
    margin-bottom: 7px;
    color: #475467;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .ledger-field input[type="date"],
.freight360-cork-theme .ledger-field .finance-picker>input[data-finance-picker-label] {
    min-height: 42px;
    border: 1px solid #d8e1ea;
    border-radius: 14px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.freight360-cork-theme .ledger-field .finance-picker>input[data-finance-picker-label]:focus,
.freight360-cork-theme .ledger-field input[type="date"]:focus {
    border-color: #0c768a;
    box-shadow: 0 0 0 4px rgba(12, 118, 138, 0.12);
}

.freight360-cork-theme .ledger-checks {
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.freight360-cork-theme .ledger-checks label {
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.freight360-cork-theme .ledger-checks input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0c768a;
}

.freight360-cork-theme .ledger-report-actions {
    gap: 10px;
    margin-top: 18px;
}

.freight360-cork-theme .ledger-action-button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .ledger-action-button.primary {
    background: #0c768a;
}

.freight360-cork-theme .ledger-report-actions .ledger-action-button:not(.primary),
.freight360-cork-theme .ledger-action-button.blue {
    background: #eff5f8;
    color: #0c768a;
    border: 1px solid #d9e6ec;
}

.freight360-cork-theme .ledger-report-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 22px 16px;
    padding: 0;
    border: 0;
    background: transparent;
}

.freight360-cork-theme .ledger-report-summary div {
    padding: 14px 15px;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.freight360-cork-theme .ledger-report-summary span {
    margin-bottom: 5px;
    color: #667085;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.freight360-cork-theme .ledger-report-summary strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

.freight360-cork-theme .ledger-report-table-wrap {
    margin: 0 22px 22px;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
}

.freight360-cork-theme .ledger-report-table {
    color: #344054;
    font-size: 13px;
}

.freight360-cork-theme .ledger-report-table th,
.freight360-cork-theme .ledger-report-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #edf2f7;
}

.freight360-cork-theme .ledger-report-table th {
    background: #f8fafc;
    color: #475467;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .ledger-report-table tbody tr:hover {
    background: rgba(12, 118, 138, 0.04);
}

.freight360-cork-theme .ledger-voucher-link {
    color: #0c768a;
    font-weight: 700;
    white-space: nowrap;
}

.freight360-cork-theme .ledger-voucher-link:hover {
    color: #556ee6;
    text-decoration: underline;
}

.freight360-cork-theme .ledger-report-table .amount-cell {
    color: #0f172a;
    font-weight: 700;
}

@media (max-width: 1080px) {

    .freight360-cork-theme .ledger-filter-grid,
    .freight360-cork-theme .ledger-report-summary {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {

    .freight360-cork-theme .ledger-report-head,
    .freight360-cork-theme .ledger-report-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .freight360-cork-theme .ledger-filter-grid,
    .freight360-cork-theme .ledger-report-summary {
        grid-template-columns: 1fr;
    }
}

.freight360-cork-theme.cork-dark .ledger-report-card,
.freight360-cork-theme.cork-dark .ledger-checks,
.freight360-cork-theme.cork-dark .ledger-report-summary div,
.freight360-cork-theme.cork-dark .ledger-report-table-wrap {
    border-color: #1b2e4b !important;
    background: #111c33 !important;
}

.freight360-cork-theme.cork-dark .ledger-report-head h3,
.freight360-cork-theme.cork-dark .ledger-report-summary strong,
.freight360-cork-theme.cork-dark .ledger-report-table .amount-cell {
    color: #f8fafc !important;
}

.freight360-cork-theme.cork-dark .ledger-report-kicker,
.freight360-cork-theme.cork-dark .ledger-back-button,
.freight360-cork-theme.cork-dark .ledger-voucher-link,
.freight360-cork-theme.cork-dark .ledger-action-button.blue {
    color: #7dd3fc !important;
}

.freight360-cork-theme.cork-dark .ledger-report-head p,
.freight360-cork-theme.cork-dark .ledger-field label,
.freight360-cork-theme.cork-dark .ledger-checks label,
.freight360-cork-theme.cork-dark .ledger-report-summary span,
.freight360-cork-theme.cork-dark .ledger-report-table th {
    color: #94a3b8 !important;
}

.freight360-cork-theme .finance-transactions-shell {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #e8edf3;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.10), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.freight360-cork-theme .finance-transactions-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf2f7;
}

.freight360-cork-theme .finance-transactions-hero.compact {
    align-items: center;
    padding-bottom: 18px;
}

.freight360-cork-theme .finance-transactions-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #0c768a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-transactions-hero h3 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .finance-transactions-hero p {
    margin: 7px 0 0;
    max-width: 760px;
    color: #667085;
    font-size: 12px;
    line-height: 1.65;
}

.freight360-cork-theme .finance-transactions-count {
    min-width: 148px;
    padding: 13px 15px;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    text-align: right;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.freight360-cork-theme .finance-transactions-count span,
.freight360-cork-theme .finance-transactions-summary span,
.freight360-cork-theme .finance-transactions-filters label span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-transactions-count strong,
.freight360-cork-theme .finance-transactions-summary strong {
    display: block;
    margin-top: 5px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.freight360-cork-theme .finance-transactions-filters {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(150px, .75fr)) minmax(170px, .9fr) minmax(190px, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 18px 22px;
}

.freight360-cork-theme .finance-transactions-filters label {
    display: grid;
    gap: 7px;
    margin: 0;
    min-width: 0;
}

.freight360-cork-theme .finance-transactions-filters input,
.freight360-cork-theme .finance-transactions-filters select {
    min-height: 42px;
    width: 100%;
    border: 1px solid #d8e1ea;
    border-radius: 14px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.freight360-cork-theme .finance-transactions-filters input:focus,
.freight360-cork-theme .finance-transactions-filters select:focus {
    outline: none;
    border-color: #0c768a;
    box-shadow: 0 0 0 4px rgba(12, 118, 138, 0.12);
}

.freight360-cork-theme .finance-transactions-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.freight360-cork-theme .finance-transactions-filter-actions .btn-primary,
.freight360-cork-theme .finance-transactions-filter-actions .btn-link {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-transactions-filter-actions .btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #0c768a 0%, #0ea5b7 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(12, 118, 138, 0.22);
}

.freight360-cork-theme .finance-transactions-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0 22px 16px;
}

.freight360-cork-theme .finance-transactions-summary article {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.freight360-cork-theme .finance-transactions-summary strong {
    overflow-wrap: anywhere;
    font-size: 14px;
}

.freight360-cork-theme .finance-transactions-table-wrap {
    margin: 0 22px 22px;
    overflow-x: auto;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
}

.freight360-cork-theme .finance-transactions-table-wrap .finance-list-table {
    min-width: 1060px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.freight360-cork-theme .finance-transactions-table-wrap .finance-list-table th,
.freight360-cork-theme .finance-transactions-table-wrap .finance-list-table td {
    padding: 14px 12px;
}

.freight360-cork-theme .finance-transactions-table-wrap .finance-list-table td:nth-child(6),
.freight360-cork-theme .finance-transactions-table-wrap .finance-list-table td:nth-child(7) {
    color: #0f172a;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.freight360-cork-theme .finance-transactions-table-wrap .finance-list-table th:nth-child(6),
.freight360-cork-theme .finance-transactions-table-wrap .finance-list-table th:nth-child(7) {
    text-align: right;
}

.freight360-cork-theme .finance-transactions-table-wrap .btn-link.small-btn {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.freight360-cork-theme .finance-transactions-shell .pagination-wrap {
    padding: 0 22px 22px;
}

@media (max-width: 1180px) {
    .freight360-cork-theme .finance-transactions-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .freight360-cork-theme .finance-transactions-filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {

    .freight360-cork-theme .finance-transactions-hero,
    .freight360-cork-theme .finance-transactions-hero.compact {
        flex-direction: column;
        align-items: stretch;
    }

    .freight360-cork-theme .finance-transactions-count {
        text-align: left;
    }

    .freight360-cork-theme .finance-transactions-filters,
    .freight360-cork-theme .finance-transactions-summary {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .finance-transactions-filter-actions .btn-primary,
    .freight360-cork-theme .finance-transactions-filter-actions .btn-link {
        width: 100%;
    }
}

.freight360-cork-theme.cork-dark .finance-transactions-shell,
.freight360-cork-theme.cork-dark .finance-transactions-count,
.freight360-cork-theme.cork-dark .finance-transactions-summary article,
.freight360-cork-theme.cork-dark .finance-transactions-table-wrap {
    border-color: #1b2e4b !important;
    background: #111c33 !important;
}

.freight360-cork-theme.cork-dark .finance-transactions-hero h3,
.freight360-cork-theme.cork-dark .finance-transactions-count strong,
.freight360-cork-theme.cork-dark .finance-transactions-summary strong,
.freight360-cork-theme.cork-dark .finance-transactions-table-wrap .finance-list-table td:nth-child(6),
.freight360-cork-theme.cork-dark .finance-transactions-table-wrap .finance-list-table td:nth-child(7) {
    color: #f8fafc !important;
}

.freight360-cork-theme.cork-dark .finance-transactions-kicker {
    color: #7dd3fc !important;
}

.freight360-cork-theme.cork-dark .finance-transactions-hero p,
.freight360-cork-theme.cork-dark .finance-transactions-count span,
.freight360-cork-theme.cork-dark .finance-transactions-summary span,
.freight360-cork-theme.cork-dark .finance-transactions-filters label span {
    color: #94a3b8 !important;
}

.freight360-cork-theme.cork-dark .finance-transactions-filters input,
.freight360-cork-theme.cork-dark .finance-transactions-filters select {
    border-color: #243b63;
    background: #0e1726;
    color: #f8fafc;
    box-shadow: none;
}

.freight360-cork-theme .pl-kpi-grid {
    gap: 12px;
    margin-top: 18px;
}

.freight360-cork-theme .pl-kpi-grid>div {
    padding: 16px 16px 15px;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.freight360-cork-theme .pl-kpi-grid span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .pl-kpi-grid strong {
    margin-top: 7px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .pl-kpi-grid small {
    margin-top: 6px;
    color: #667085;
    font-size: 11px;
    line-height: 1.55;
}

.freight360-cork-theme .pl-report-card {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #e8edf3;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.10), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.freight360-cork-theme .pl-report-head {
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf2f7;
}

.freight360-cork-theme .pl-report-head-copy {
    min-width: 0;
}

.freight360-cork-theme .pl-report-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #0c768a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.freight360-cork-theme .pl-report-head h3 {
    color: #0f172a;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .pl-report-head p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.65;
    max-width: 760px;
}

.freight360-cork-theme .pl-report-form {
    padding: 20px 22px 18px;
}

.freight360-cork-theme .pl-filter-row {
    display: grid;
    grid-template-columns: minmax(180px, .85fr) minmax(180px, .85fr) minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.freight360-cork-theme .pl-checks {
    display: grid;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.freight360-cork-theme .pl-checks label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.freight360-cork-theme .pl-checks input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0c768a;
}

.freight360-cork-theme .pl-report-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 0;
}

.freight360-cork-theme .pl-statement-wrap {
    margin: 0 22px 22px;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
}

.freight360-cork-theme .pl-statement-table {
    color: #344054;
    font-size: 13px;
}

.freight360-cork-theme .pl-statement-table th,
.freight360-cork-theme .pl-statement-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #edf2f7;
}

.freight360-cork-theme .pl-statement-table th {
    background: #f8fafc;
    color: #475467;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .pl-statement-table .amount-cell {
    color: #0f172a;
    font-weight: 700;
}

.freight360-cork-theme .pl-section-row td,
.freight360-cork-theme .pl-subsection-row td,
.freight360-cork-theme .pl-total-row td {
    color: #0f172a;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.freight360-cork-theme .pl-section-row td {
    padding-top: 20px;
    background: rgba(12, 118, 138, 0.05);
}

.freight360-cork-theme .pl-subsection-row td {
    background: rgba(248, 250, 252, 0.92);
}

.freight360-cork-theme .pl-total-row td {
    background: rgba(248, 250, 252, 0.92);
}

.freight360-cork-theme .pl-highlight-row td {
    border-bottom-color: #d7ebe2;
    background: linear-gradient(90deg, rgba(56, 199, 134, 0.18), rgba(110, 231, 183, 0.10));
    color: #14532d;
    font-size: 13px;
}

.freight360-cork-theme .pl-highlight-row.final td {
    border-top: 16px solid #ffffff;
    background: linear-gradient(90deg, rgba(12, 118, 138, 0.18), rgba(67, 193, 212, 0.10));
    color: #0c4a5b;
}

@media (max-width: 1080px) {
    .freight360-cork-theme .pl-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .freight360-cork-theme .pl-filter-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {

    .freight360-cork-theme .pl-kpi-grid,
    .freight360-cork-theme .pl-filter-row {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .pl-report-head,
    .freight360-cork-theme .pl-report-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.freight360-cork-theme.cork-dark .pl-kpi-grid>div,
.freight360-cork-theme.cork-dark .pl-report-card,
.freight360-cork-theme.cork-dark .pl-checks,
.freight360-cork-theme.cork-dark .pl-statement-wrap {
    border-color: #1b2e4b !important;
    background: #111c33 !important;
}

.freight360-cork-theme.cork-dark .pl-kpi-grid strong,
.freight360-cork-theme.cork-dark .pl-report-head h3,
.freight360-cork-theme.cork-dark .pl-statement-table .amount-cell {
    color: #f8fafc !important;
}

.freight360-cork-theme.cork-dark .pl-report-kicker {
    color: #7dd3fc !important;
}

.freight360-cork-theme.cork-dark .pl-kpi-grid span,
.freight360-cork-theme.cork-dark .pl-kpi-grid small,
.freight360-cork-theme.cork-dark .pl-report-head p,
.freight360-cork-theme.cork-dark .pl-checks label,
.freight360-cork-theme.cork-dark .pl-statement-table th {
    color: #94a3b8 !important;
}

.freight360-cork-theme .finance-dashboard-tocly {
    margin-top: 18px;
}

.freight360-cork-theme .finance-dashboard-tocly-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) auto;
    gap: 18px;
    align-items: start;
    padding: 20px 22px;
    border: 1px solid #e8edf3;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.freight360-cork-theme .finance-dashboard-tocly-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.freight360-cork-theme .finance-dashboard-tocly-hero h3 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .finance-dashboard-tocly-hero p {
    margin: 9px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.75;
    max-width: 760px;
}

.freight360-cork-theme .finance-dashboard-tocly-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.freight360-cork-theme .finance-kpi-grid-tocly {
    margin-top: 18px;
}

.freight360-cork-theme .finance-dashboard-tocly-grid {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.freight360-cork-theme .finance-dashboard-tocly-grid-main {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, .9fr);
}

.freight360-cork-theme .finance-dashboard-tocly-grid-secondary,
.freight360-cork-theme .finance-dashboard-tocly-grid-tertiary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.freight360-cork-theme .finance-dashboard-tocly-panel {
    border: 1px solid #e8edf3;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.freight360-cork-theme .finance-dashboard-tocly-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 0;
}

.freight360-cork-theme .finance-dashboard-tocly-panel-head .panel-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #0c768a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-dashboard-tocly-panel-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .finance-dashboard-tocly-panel-head p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.65;
}

.freight360-cork-theme .finance-dashboard-tocly-panel-head a {
    color: #0c768a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.freight360-cork-theme .finance-dashboard-chart-canvas {
    min-height: 320px;
    padding: 6px 8px 12px;
}

.freight360-cork-theme .finance-dashboard-chart-canvas-compact {
    min-height: 300px;
}

.freight360-cork-theme .finance-dashboard-chart-canvas-medium {
    min-height: 290px;
}

.freight360-cork-theme .finance-rank-list-tocly {
    display: grid;
    gap: 10px;
    padding: 14px 18px 18px;
}

.freight360-cork-theme .finance-rank-list-tocly div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
}

.freight360-cork-theme .finance-rank-list-tocly span {
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.freight360-cork-theme .finance-rank-list-tocly strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.freight360-cork-theme .finance-dashboard-tocly-table-panel .finance-table-wrap {
    margin: 14px 20px 20px;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
}

.freight360-cork-theme .finance-dashboard-tocly-note {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #e8edf3;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(56, 199, 134, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.freight360-cork-theme .finance-dashboard-tocly-note h3 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.freight360-cork-theme .finance-dashboard-tocly-note p {
    margin-top: 8px !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
}

@media (max-width: 1200px) {

    .freight360-cork-theme .finance-dashboard-tocly-grid-main,
    .freight360-cork-theme .finance-dashboard-tocly-grid-secondary,
    .freight360-cork-theme .finance-dashboard-tocly-grid-tertiary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .freight360-cork-theme .finance-dashboard-tocly-hero {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .finance-dashboard-tocly-actions {
        justify-content: flex-start;
    }
}

.freight360-cork-theme.cork-dark .finance-dashboard-tocly-hero,
.freight360-cork-theme.cork-dark .finance-dashboard-tocly-panel,
.freight360-cork-theme.cork-dark .finance-dashboard-tocly-note,
.freight360-cork-theme.cork-dark .finance-rank-list-tocly div,
.freight360-cork-theme.cork-dark .finance-dashboard-tocly-table-panel .finance-table-wrap {
    border-color: #1b2e4b !important;
    background: #111c33 !important;
}

.freight360-cork-theme.cork-dark .finance-dashboard-tocly-hero h3,
.freight360-cork-theme.cork-dark .finance-dashboard-tocly-panel-head h3,
.freight360-cork-theme.cork-dark .finance-rank-list-tocly strong,
.freight360-cork-theme.cork-dark .finance-dashboard-tocly-note h3 {
    color: #f8fafc !important;
}

.freight360-cork-theme.cork-dark .finance-dashboard-tocly-panel-head .panel-kicker,
.freight360-cork-theme.cork-dark .finance-dashboard-tocly-panel-head a {
    color: #7dd3fc !important;
}

.freight360-cork-theme.cork-dark .finance-dashboard-tocly-hero p,
.freight360-cork-theme.cork-dark .finance-dashboard-tocly-panel-head p,
.freight360-cork-theme.cork-dark .finance-rank-list-tocly span,
.freight360-cork-theme.cork-dark .finance-dashboard-tocly-note p {
    color: #94a3b8 !important;
}

.freight360-cork-theme .finance-setup-card,
.freight360-cork-theme .finance-list-card,
.freight360-cork-theme .finance-template-settings {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #e8edf3;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.freight360-cork-theme .finance-list-head {
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf2f7;
    background: transparent;
}

.freight360-cork-theme .finance-list-head h3 {
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .finance-list-head p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.65;
}

.freight360-cork-theme .finance-add-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(135deg, #0c768a 0%, #0ea5b7 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(12, 118, 138, 0.22);
}

.freight360-cork-theme .finance-add-button:hover,
.freight360-cork-theme .finance-add-button:focus-visible {
    background: linear-gradient(135deg, #0a6778 0%, #0c8ea1 100%);
    color: #fff;
}

.freight360-cork-theme .finance-table-wrap {
    background: transparent;
}

.freight360-cork-theme .finance-list-card .finance-table-wrap,
.freight360-cork-theme .finance-template-settings .finance-template-grid {
    padding: 0 20px 20px;
}

.freight360-cork-theme .finance-setup-search {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: 0 20px 18px;
    padding: 14px 16px;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.freight360-cork-theme .finance-setup-search>label {
    display: grid;
    flex: 1 1 360px;
    gap: 7px;
    min-width: 0;
    margin: 0;
}

.freight360-cork-theme .finance-setup-search>label>span {
    color: #475467;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-setup-search input[type="search"] {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 13px;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.freight360-cork-theme .finance-setup-search input[type="search"]:focus {
    border-color: #0c768a;
    outline: 3px solid rgba(12, 118, 138, 0.12);
}

.freight360-cork-theme .finance-setup-search .finance-report-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.freight360-cork-theme .finance-setup-search .btn-link {
    min-height: 42px;
    padding: 9px 16px;
}

.freight360-cork-theme .finance-setup-search.is-searching input[type="search"] {
    padding-right: 42px;
    background-image: radial-gradient(circle, #0c768a 2px, transparent 3px);
    background-position: calc(100% - 18px) 50%;
    background-repeat: no-repeat;
    animation: finance-setup-search-pulse .75s ease-in-out infinite alternate;
}

.freight360-cork-theme .finance-setup-search.has-search-error input[type="search"] {
    border-color: #d92d20;
}

@keyframes finance-setup-search-pulse {
    from { background-size: 6px 6px; opacity: .65; }
    to { background-size: 11px 11px; opacity: 1; }
}

@media (max-width: 680px) {
    .freight360-cork-theme .finance-setup-search {
        align-items: stretch;
        flex-direction: column;
        margin-right: 14px;
        margin-left: 14px;
    }

    .freight360-cork-theme .finance-setup-search>label {
        flex-basis: auto;
    }

    .freight360-cork-theme .finance-setup-search .finance-report-filter-actions,
    .freight360-cork-theme .finance-setup-search .btn-link {
        width: 100%;
    }

    .freight360-cork-theme .finance-setup-search .btn-link {
        justify-content: center;
    }
}

.freight360-cork-theme.cork-dark .finance-setup-search {
    border-color: #263244;
    background: rgba(17, 24, 39, 0.9);
}

.freight360-cork-theme.cork-dark .finance-setup-search>label>span {
    color: #aab6c8;
}

.freight360-cork-theme.cork-dark .finance-setup-search input[type="search"] {
    border-color: #344155;
    background: #111827;
    color: #e5e7eb;
}

.freight360-cork-theme .finance-list-table {
    overflow: hidden;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
}

.freight360-cork-theme .finance-list-table th {
    padding: 13px 12px;
    border-bottom: 1px solid #e8edf3;
    background: #f8fafc;
    color: #475467;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-list-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf2f7;
    color: #344054;
    vertical-align: middle;
}

.freight360-cork-theme .finance-list-table tbody tr:nth-child(odd) td {
    background: rgba(248, 250, 252, 0.72);
}

.freight360-cork-theme .finance-list-table tbody tr:hover td {
    background: rgba(12, 118, 138, 0.04);
}

.freight360-cork-theme .finance-table-wrap .action-row {
    gap: 8px;
}

.freight360-cork-theme .finance-table-wrap .action-row .btn-link {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.freight360-cork-theme .finance-parties-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 18px 20px;
    border-bottom: 1px solid #edf2f7;
}

.freight360-cork-theme .finance-parties-form label {
    display: grid;
    gap: 7px;
    margin: 0;
    min-width: 0;
}

.freight360-cork-theme .finance-parties-form label.wide {
    grid-column: span 2;
}

.freight360-cork-theme .finance-parties-form label span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-parties-form input,
.freight360-cork-theme .finance-parties-form select {
    min-height: 42px;
    width: 100%;
    border: 1px solid #d8e1ea;
    border-radius: 14px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.freight360-cork-theme .finance-parties-form input:focus,
.freight360-cork-theme .finance-parties-form select:focus {
    outline: none;
    border-color: #0c768a;
    box-shadow: 0 0 0 4px rgba(12, 118, 138, 0.12);
}

.freight360-cork-theme .finance-parties-actions {
    display: flex;
    justify-content: flex-end;
}

.freight360-cork-theme .finance-parties-actions .btn-primary {
    min-height: 42px;
    padding: 0 14px;
    border-color: transparent;
    border-radius: 12px;
    background: linear-gradient(135deg, #0c768a 0%, #0ea5b7 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(12, 118, 138, 0.22);
}

.freight360-cork-theme .trial-balance-date-form {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.freight360-cork-theme .trial-balance-date-form label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.freight360-cork-theme .trial-balance-date-form label span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .trial-balance-date-form input {
    min-height: 36px;
    border: 1px solid #d8e1ea;
    border-radius: 12px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-size: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.freight360-cork-theme .finance-trial-balance-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 20px 0;
}

.freight360-cork-theme .finance-trial-balance-summary>div {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.freight360-cork-theme .finance-trial-balance-summary span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-trial-balance-summary strong {
    display: block;
    margin-top: 5px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.freight360-cork-theme .finance-trial-balance-summary small {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 11px;
    line-height: 1.45;
}

.freight360-cork-theme .finance-trial-balance-summary .balanced {
    border-color: rgba(22, 139, 104, 0.26);
    background: rgba(236, 253, 245, 0.88);
}

.freight360-cork-theme .finance-trial-balance-summary .warning {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(255, 247, 232, 0.9);
}

.freight360-cork-theme .finance-trial-balance-report {
    margin: 16px 20px 20px;
    overflow: hidden;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
}

.freight360-cork-theme .finance-trial-balance-report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
}

.freight360-cork-theme .finance-trial-balance-report-head span {
    color: #0c768a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-trial-balance-report-head strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.freight360-cork-theme .finance-trial-balance-report .finance-table-wrap {
    padding: 0;
}

.freight360-cork-theme .finance-trial-balance-report .finance-list-table {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.freight360-cork-theme .finance-trial-balance-table td:nth-child(4),
.freight360-cork-theme .finance-trial-balance-table td:nth-child(5),
.freight360-cork-theme .finance-trial-balance-table th:nth-child(4),
.freight360-cork-theme .finance-trial-balance-table th:nth-child(5) {
    text-align: right;
    white-space: nowrap;
}

.freight360-cork-theme .finance-trial-balance-table td:nth-child(4),
.freight360-cork-theme .finance-trial-balance-table td:nth-child(5),
.freight360-cork-theme .finance-trial-balance-total th:nth-child(4),
.freight360-cork-theme .finance-trial-balance-total th:nth-child(5) {
    color: #0f172a;
    font-weight: 800;
}

.freight360-cork-theme .finance-trial-balance-total th {
    border-top: 1px solid #e8edf3;
    background: #f8fafc;
}

@media (max-width: 1180px) {
    .freight360-cork-theme .finance-parties-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .freight360-cork-theme .finance-trial-balance-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .freight360-cork-theme .finance-parties-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {

    .freight360-cork-theme .finance-parties-form,
    .freight360-cork-theme .finance-parties-form label.wide {
        grid-template-columns: 1fr;
        grid-column: auto;
    }

    .freight360-cork-theme .finance-parties-actions .btn-primary {
        width: 100%;
    }

    .freight360-cork-theme .trial-balance-date-form,
    .freight360-cork-theme .trial-balance-date-form label,
    .freight360-cork-theme .trial-balance-date-form .btn-link,
    .freight360-cork-theme .finance-trial-balance-summary {
        width: 100%;
    }

    .freight360-cork-theme .finance-trial-balance-summary {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .finance-trial-balance-report-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.freight360-cork-theme .finance-template-settings {
    padding-bottom: 20px;
}

.freight360-cork-theme .finance-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.freight360-cork-theme .finance-template-card {
    gap: 10px;
    padding: 14px;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.freight360-cork-theme .finance-template-card:has(input:checked),
.freight360-cork-theme .finance-template-card.selected {
    border-color: rgba(12, 118, 138, 0.42);
    box-shadow: 0 18px 34px rgba(12, 118, 138, 0.12);
}

.freight360-cork-theme .finance-template-card>strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.freight360-cork-theme .finance-template-card>span:last-child {
    color: #667085;
    font-size: 12px;
    line-height: 1.6;
}

.freight360-cork-theme .finance-template-preview {
    border: 1px solid #e8edf3;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (max-width: 1100px) {
    .freight360-cork-theme .finance-template-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .freight360-cork-theme .finance-list-head {
        flex-direction: column;
        align-items: stretch;
    }

    .freight360-cork-theme .finance-template-grid {
        grid-template-columns: 1fr;
    }
}

.freight360-cork-theme.cork-dark .finance-setup-card,
.freight360-cork-theme.cork-dark .finance-list-card,
.freight360-cork-theme.cork-dark .finance-template-settings,
.freight360-cork-theme.cork-dark .finance-list-table,
.freight360-cork-theme.cork-dark .finance-template-card,
.freight360-cork-theme.cork-dark .finance-template-preview {
    border-color: #1b2e4b !important;
    background: #111c33 !important;
}

.freight360-cork-theme.cork-dark .finance-list-head h3,
.freight360-cork-theme.cork-dark .finance-template-card>strong,
.freight360-cork-theme.cork-dark .finance-list-table td {
    color: #f8fafc !important;
}

.freight360-cork-theme.cork-dark .finance-list-head p,
.freight360-cork-theme.cork-dark .finance-template-card>span:last-child,
.freight360-cork-theme.cork-dark .finance-list-table th {
    color: #94a3b8 !important;
}

.freight360-cork-theme.cork-dark .finance-add-button {
    border-color: transparent;
    background: linear-gradient(135deg, #0c768a 0%, #0ea5b7 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.freight360-cork-theme.cork-dark .finance-parties-form,
.freight360-cork-theme.cork-dark .finance-trial-balance-summary>div,
.freight360-cork-theme.cork-dark .finance-trial-balance-report,
.freight360-cork-theme.cork-dark .finance-trial-balance-report-head,
.freight360-cork-theme.cork-dark .finance-trial-balance-total th {
    border-color: #1b2e4b !important;
    background: #111c33 !important;
}

.freight360-cork-theme.cork-dark .finance-parties-form label span,
.freight360-cork-theme.cork-dark .trial-balance-date-form label span,
.freight360-cork-theme.cork-dark .finance-trial-balance-summary span,
.freight360-cork-theme.cork-dark .finance-trial-balance-summary small {
    color: #94a3b8 !important;
}

.freight360-cork-theme.cork-dark .finance-parties-form input,
.freight360-cork-theme.cork-dark .finance-parties-form select,
.freight360-cork-theme.cork-dark .trial-balance-date-form input {
    border-color: #243b63;
    background: #0e1726;
    color: #f8fafc;
    box-shadow: none;
}

.freight360-cork-theme.cork-dark .finance-trial-balance-summary strong,
.freight360-cork-theme.cork-dark .finance-trial-balance-report-head strong {
    color: #f8fafc !important;
}

.freight360-cork-theme.cork-dark .finance-trial-balance-report-head span {
    color: #7dd3fc !important;
}

.freight360-cork-theme.cork-dark .finance-trial-balance-table td:nth-child(4),
.freight360-cork-theme.cork-dark .finance-trial-balance-table td:nth-child(5),
.freight360-cork-theme.cork-dark .finance-trial-balance-total th:nth-child(4),
.freight360-cork-theme.cork-dark .finance-trial-balance-total th:nth-child(5) {
    color: #f8fafc !important;
}

.freight360-cork-theme.cork-dark .dashboard-role-shell .trend-metric span {
    color: #f8fafc !important;
}

.freight360-cork-theme .finance-setup-modal {
    display: flex;
    flex-direction: column;
    width: min(780px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
}

.freight360-cork-theme .finance-setup-modal>.modal-header {
    flex: 0 0 auto;
    align-items: flex-start;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #e8edf3;
}

.freight360-cork-theme .finance-setup-modal>.modal-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .finance-setup-modal .close-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #475467;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.freight360-cork-theme .finance-setup-modal .close-link:hover {
    background: #f8fafc;
    color: #0c768a;
    transform: translateY(-1px);
}

.freight360-cork-theme .finance-setup-form {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.freight360-cork-theme .finance-setup-form-grid {
    gap: 12px;
    margin: 0;
    padding: 14px 16px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.freight360-cork-theme .finance-setup-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.freight360-cork-theme .finance-setup-field>span {
    color: #475467;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-setup-field :is(input, select, textarea) {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.freight360-cork-theme .finance-setup-field :is(input, select, textarea)::placeholder {
    color: #98a2b3;
    font-weight: 500;
}

.freight360-cork-theme .finance-setup-field :is(input, select, textarea):focus {
    border-color: rgba(12, 118, 138, 0.55);
    box-shadow: 0 0 0 4px rgba(12, 118, 138, 0.12);
}

.freight360-cork-theme .finance-setup-modal .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 6;
    flex: 0 0 auto;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px 16px;
    border-top: 1px solid #e8edf3;
    background: rgba(248, 250, 252, 0.88);
}

.freight360-cork-theme .finance-setup-modal .modal-footer .btn-link,
.freight360-cork-theme .finance-setup-modal .modal-footer .btn-primary {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.freight360-cork-theme .finance-setup-modal .modal-footer .btn-primary {
    background: linear-gradient(135deg, #0c768a 0%, #0ea5b7 100%);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(12, 118, 138, 0.24);
}

.freight360-cork-theme .finance-setup-modal .modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #0a6778 0%, #0c8ea1 100%);
}

@media (max-width: 800px) {
    .freight360-cork-theme .finance-setup-modal {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 16px;
    }

    .freight360-cork-theme .finance-setup-modal>.modal-header,
    .freight360-cork-theme .finance-setup-form-grid,
    .freight360-cork-theme .finance-setup-modal .modal-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .freight360-cork-theme .finance-setup-modal .modal-footer {
        justify-content: stretch;
    }
}

.freight360-cork-theme.cork-dark .finance-setup-modal {
    border-color: #1b2e4b;
    background:
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(17, 28, 51, 0.98) 0%, rgba(14, 23, 38, 0.98) 100%);
}

.freight360-cork-theme.cork-dark .finance-setup-modal>.modal-header,
.freight360-cork-theme.cork-dark .finance-setup-modal .modal-footer {
    border-color: #1b2e4b;
    background: transparent;
}

.freight360-cork-theme.cork-dark .finance-setup-modal>.modal-header h3,
.freight360-cork-theme.cork-dark .finance-setup-field :is(input, select, textarea) {
    color: #f8fafc;
}

.freight360-cork-theme.cork-dark .finance-setup-field>span,
.freight360-cork-theme.cork-dark .finance-setup-modal .close-link {
    color: #94a3b8;
}

.freight360-cork-theme.cork-dark .finance-setup-modal .close-link,
.freight360-cork-theme.cork-dark .finance-setup-field :is(input, select, textarea) {
    border-color: #243b63;
    background: rgba(14, 23, 38, 0.92);
    box-shadow: none;
}

.freight360-cork-theme .finance-entry-modal-tocly {
    --finance-entry-gutter: 18px;
    width: min(1180px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    border-radius: 18px;
    border: 1px solid #e8edf3;
    background:
        radial-gradient(circle at top right, rgba(12, 118, 138, 0.10), transparent 28%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.freight360-cork-theme .finance-entry-modal-tocly>.modal-header {
    align-items: flex-start;
    padding: 12px 16px 10px;
    border-bottom: 1px solid #e8edf3;
}

.freight360-cork-theme .finance-entry-modal-tocly>.modal-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-modal-header-actions {
    align-items: center;
    gap: 10px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-voucher-type-hero {
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(12, 118, 138, 0.16);
    border-radius: 12px;
    background: rgba(12, 118, 138, 0.08);
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-voucher-type-hero span {
    color: #0c768a;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-voucher-type-hero strong {
    color: #0f172a;
    font-size: 12px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-voucher-type-hero select {
    min-height: 34px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
}

.freight360-cork-theme .finance-entry-form-tocly {
    gap: 0;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-body {
    gap: 10px;
    padding: 12px 0 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-grid {
    gap: 10px;
    padding: 2px var(--finance-entry-gutter) 8px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-grid>div {
    min-width: 0;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-grid label,
.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table label,
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-additional-tax label {
    margin-bottom: 6px;
    color: #475467;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-grid input,
.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-grid select,
.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table input,
.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table select {
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-grid input:focus,
.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-grid select:focus,
.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table input:focus,
.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table select:focus {
    border-color: rgba(12, 118, 138, 0.55);
    box-shadow: 0 0 0 4px rgba(12, 118, 138, 0.10);
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-voucher-no {
    border-color: #cbe8ee;
    background: #edf9fc;
    color: #0c768a;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-lines-head,
.freight360-cork-theme .finance-entry-modal-tocly .modal-section-head {
    padding: 0 var(--finance-entry-gutter);
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-lines-head h4,
.freight360-cork-theme .finance-entry-modal-tocly .modal-section-head h4 {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-lines-head p,
.freight360-cork-theme .finance-entry-modal-tocly .modal-section-head p {
    color: #667085;
    font-size: 12px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-add-line-button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0c768a 0%, #0ea5b7 100%);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: none;
    box-shadow: 0 12px 28px rgba(12, 118, 138, 0.22);
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-remove-line-button {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fff0f1;
    color: #d92d20;
    font-size: 18px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table-wrap,
.freight360-cork-theme .finance-entry-modal-tocly [data-receipt-deductions-section] {
    margin: 0 var(--finance-entry-gutter);
    width: calc(100% - (var(--finance-entry-gutter) * 2));
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    min-height: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-gutter: auto;
    -webkit-overflow-scrolling: touch;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table-wrap::-webkit-scrollbar,
.freight360-cork-theme .finance-entry-modal-tocly [data-receipt-deductions-section]::-webkit-scrollbar {
    height: 10px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table-wrap::-webkit-scrollbar-track,
.freight360-cork-theme .finance-entry-modal-tocly [data-receipt-deductions-section]::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 999px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table-wrap::-webkit-scrollbar-thumb,
.freight360-cork-theme .finance-entry-modal-tocly [data-receipt-deductions-section]::-webkit-scrollbar-thumb {
    background: #b7c4d3;
    border: 2px solid #eef2f7;
    border-radius: 999px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table th {
    background: #f8fafc;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table td {
    background: rgba(255, 255, 255, 0.96);
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table-wrap .finance-entry-table {
    width: max-content;
    min-width: 100%;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table {
    table-layout: auto;
    min-width: 1060px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table th:nth-child(1),
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(1) {
    min-width: 210px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table th:nth-child(2),
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(2) {
    min-width: 260px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table th:nth-child(3),
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(3),
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table th:nth-child(4),
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(4),
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table th:nth-child(5),
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(5) {
    min-width: 110px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table th:nth-child(6),
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(6) {
    min-width: 120px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table th:nth-child(7),
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(7) {
    min-width: 120px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table th:nth-child(8),
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(8) {
    min-width: 64px;
    width: 64px;
    padding-left: 10px;
    padding-right: 14px;
    text-align: center;
    overflow: visible;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(1) input,
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(2) input,
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(1) .finance-picker>input[data-finance-picker-label],
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(3) input,
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(4) input,
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(5) select,
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(6) select,
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:nth-child(7) input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-currency-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 22px;
    margin-bottom: 7px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-currency-field-head>label {
    margin: 0;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-multi-currency-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    margin: 0;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-multi-currency-toggle>input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-multi-currency-track {
    position: relative;
    display: inline-flex;
    flex: 0 0 30px;
    width: 30px;
    height: 17px;
    padding: 2px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #e8edf3;
    box-sizing: border-box;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-multi-currency-track>span {
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.28);
    transition: transform 160ms ease;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-multi-currency-toggle>input:checked+.finance-multi-currency-track {
    border-color: #0c768a;
    background: #0c768a;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-multi-currency-toggle>input:checked+.finance-multi-currency-track>span {
    transform: translateX(13px);
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-multi-currency-toggle>input:focus-visible+.finance-multi-currency-track {
    box-shadow: 0 0 0 3px rgba(12, 118, 138, 0.16);
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-multi-currency-toggle {
    color: #aab4c3;
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-multi-currency-track {
    border-color: #526071;
    background: #364152;
}

.freight360-cork-theme .finance-entry-modal-tocly select[data-row-currency] {
    width: 100%;
    min-width: 92px;
    height: 36px;
    min-height: 36px;
    padding: 7px 34px 7px 12px;
    border: 1px solid #c9e2e7;
    border-radius: 9px;
    background-color: #f1fafb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%230c768a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
    color: #0b6879;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.freight360-cork-theme .finance-entry-modal-tocly select[data-row-currency]:hover {
    border-color: #80c1cc;
    background-color: #eaf7f9;
}

.freight360-cork-theme .finance-entry-modal-tocly select[data-row-currency]:focus {
    border-color: #0c768a;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(12, 118, 138, 0.13);
}

.freight360-cork-theme .finance-entry-modal-tocly select[data-row-currency] option {
    background: #fff;
    color: #0f172a;
    font-weight: 700;
}

/* Keep native row-select menus readable and consistent instead of allowing the
   operating system's black popup palette to take over. */
.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table select {
    color-scheme: light;
    border-color: #d5e0ea;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%230c768a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
    padding-right: 34px;
    appearance: none;
    -webkit-appearance: none;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table select:hover {
    border-color: #80c1cc;
    background-color: #f7fcfd;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table select option,
.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table select optgroup {
    background-color: #fff !important;
    color: #1f2937 !important;
    font-weight: 600;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table select option:checked {
    background-color: #e6f6f8 !important;
    color: #0c768a !important;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table select option:disabled {
    color: #98a2b3 !important;
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly select[data-row-currency] {
    border-color: #285464;
    background-color: #122b3a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%2359c3d4' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    color: #7dd3df;
    box-shadow: none;
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly select[data-row-currency]:hover {
    border-color: #3d8192;
    background-color: #163645;
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly select[data-row-currency] option {
    background: #fff;
    color: #1f2937;
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-entry-table select {
    color-scheme: light;
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-entry-table select option,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-entry-table select optgroup {
    background-color: #fff !important;
    color: #1f2937 !important;
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-entry-table select option:checked {
    background-color: #e6f6f8 !important;
    color: #0c768a !important;
}

/* Finance module — unified Tocly sizing and component system. */
.freight360-cork-theme .finance-tocly-workspace {
    --finance-primary: #0c768a;
    --finance-primary-hover: #0a6374;
    --finance-success: #34c38f;
    --finance-warning: #f1b44c;
    --finance-danger: #f46a6a;
    --finance-info: #50a5f1;
    --finance-text: #495057;
    --finance-heading: #343a40;
    --finance-muted: #74788d;
    --finance-border: #eff0f2;
    --finance-surface: #fff;
    --finance-soft: #f8f9fa;
    color: var(--finance-text);
    font-family: "Rubik", var(--cork-font, Arial, sans-serif);
    font-size: 13px;
}

.freight360-cork-theme .finance-tocly-workspace>.page-head {
    align-items: center;
    min-height: 68px;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.freight360-cork-theme .finance-tocly-workspace>.page-head h2 {
    margin: 0 0 5px;
    color: var(--finance-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.freight360-cork-theme .finance-tocly-workspace>.page-head p {
    max-width: 820px;
    margin: 0;
    color: var(--finance-muted);
    font-size: 13px;
    line-height: 1.55;
}

.freight360-cork-theme .finance-tocly-workspace>.page-head .badge {
    padding: 7px 11px;
    border: 0;
    border-radius: 4px;
    background: rgba(12, 118, 138, 0.12);
    color: var(--finance-primary);
    font-size: 11px;
    font-weight: 500;
}

.freight360-cork-theme .finance-tocly-workspace .panel,
.freight360-cork-theme .finance-tocly-workspace .finance-list-card,
.freight360-cork-theme .finance-tocly-workspace .finance-aging-card,
.freight360-cork-theme .finance-tocly-workspace .ledger-card,
.freight360-cork-theme .finance-tocly-workspace .finance-template-settings,
.freight360-cork-theme .finance-tocly-workspace .finance-transactions-shell {
    margin-bottom: 24px;
    border: 1px solid var(--finance-border);
    border-radius: 4px;
    background: var(--finance-surface);
    box-shadow: 0 2px 4px rgba(15, 34, 58, 0.08);
}

.freight360-cork-theme .finance-tocly-workspace>.panel {
    padding: 20px;
}

.freight360-cork-theme .finance-tocly-workspace .finance-branch-workspace {
    align-items: end;
    gap: 18px;
}

.freight360-cork-theme .finance-tocly-workspace label,
.freight360-cork-theme .finance-tocly-workspace .form-grid label {
    color: var(--finance-heading);
    font-size: 12px;
    font-weight: 500;
}

.freight360-cork-theme .finance-tocly-workspace input:not([type="checkbox"]):not([type="radio"]),
.freight360-cork-theme .finance-tocly-workspace select,
.freight360-cork-theme .finance-tocly-workspace textarea {
    min-height: 38px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    color: var(--finance-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    box-shadow: none;
}

.freight360-cork-theme .finance-tocly-workspace textarea {
    min-height: 96px;
    resize: vertical;
}

.freight360-cork-theme .finance-tocly-workspace input:focus,
.freight360-cork-theme .finance-tocly-workspace select:focus,
.freight360-cork-theme .finance-tocly-workspace textarea:focus {
    border-color: #a6b4f0;
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(12, 118, 138, 0.18);
}

.freight360-cork-theme .finance-tocly-workspace input[readonly],
.freight360-cork-theme .finance-tocly-workspace input:disabled,
.freight360-cork-theme .finance-tocly-workspace select:disabled {
    background-color: #f5f6f8;
    color: #74788d;
    cursor: not-allowed;
}

.freight360-cork-theme .finance-tocly-workspace .btn-primary,
.freight360-cork-theme .finance-tocly-workspace .finance-add-button,
.freight360-cork-theme .finance-tocly-workspace .btn-link,
.freight360-cork-theme .finance-tocly-workspace .finance-tool-button,
.freight360-cork-theme .finance-tocly-workspace button {
    min-height: 34px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.freight360-cork-theme .finance-tocly-workspace .btn-primary,
.freight360-cork-theme .finance-tocly-workspace .finance-add-button {
    border-color: var(--finance-primary);
    background: var(--finance-primary);
    color: #fff;
    box-shadow: none;
}

.freight360-cork-theme .finance-tocly-workspace .btn-primary:hover,
.freight360-cork-theme .finance-tocly-workspace .finance-add-button:hover {
    border-color: var(--finance-primary-hover);
    background: var(--finance-primary-hover);
    transform: none;
}

.freight360-cork-theme .finance-tocly-workspace .btn-link,
.freight360-cork-theme .finance-tocly-workspace .finance-tool-button {
    border: 1px solid #e5e7eb;
    background: #f8f9fa;
    color: var(--finance-text);
    box-shadow: none;
}

.freight360-cork-theme .finance-tocly-workspace .btn-link:hover,
.freight360-cork-theme .finance-tocly-workspace .finance-tool-button:hover {
    border-color: #d8dbe0;
    background: #eff0f2;
    color: var(--finance-heading);
    transform: none;
}

.freight360-cork-theme .finance-tocly-workspace .finance-list-head,
.freight360-cork-theme .finance-tocly-workspace .finance-sales-invoice-table-head,
.freight360-cork-theme .finance-tocly-workspace .modal-section-head {
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--finance-border);
}

.freight360-cork-theme .finance-tocly-workspace .finance-list-head h3,
.freight360-cork-theme .finance-tocly-workspace .finance-list-head h4,
.freight360-cork-theme .finance-tocly-workspace .modal-section-head h4 {
    margin: 0;
    color: var(--finance-heading);
    font-size: 15px;
    font-weight: 600;
}

.freight360-cork-theme .finance-tocly-workspace .finance-table-wrap,
.freight360-cork-theme .finance-tocly-workspace .finance-transactions-table-wrap,
.freight360-cork-theme .finance-tocly-workspace .finance-sales-invoice-table-wrap {
    border: 0;
    border-radius: 0;
    background: var(--finance-surface);
    box-shadow: none;
    overflow-x: auto;
}

.freight360-cork-theme .finance-tocly-workspace .finance-list-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: var(--finance-text);
    font-size: 12px;
}

.freight360-cork-theme .finance-tocly-workspace .finance-list-table th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--finance-border);
    background: #f8f9fa;
    color: var(--finance-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: nowrap;
}

.freight360-cork-theme .finance-tocly-workspace .finance-list-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--finance-border);
    background: #fff;
    vertical-align: middle;
}

.freight360-cork-theme .finance-tocly-workspace .finance-list-table tbody tr:hover td {
    background: #f8f9fa;
}

.freight360-cork-theme .finance-tocly-workspace .finance-list-table tbody tr:last-child td {
    border-bottom: 0;
}

.freight360-cork-theme .finance-tocly-workspace .finance-picker-results {
    padding: 5px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 5px 12px rgba(15, 34, 58, 0.16);
}

.freight360-cork-theme .finance-tocly-workspace .finance-picker-results button {
    min-height: 32px;
    padding: 7px 10px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--finance-text);
    text-align: left;
}

.freight360-cork-theme .finance-tocly-workspace .finance-picker-results button:hover,
.freight360-cork-theme .finance-tocly-workspace .finance-picker-results button:focus-visible {
    background: rgba(12, 118, 138, 0.10);
    color: var(--finance-primary);
}

.freight360-cork-theme .finance-tocly-workspace .modal-shell {
    padding: 20px;
    background: rgba(52, 58, 64, 0.55);
    backdrop-filter: blur(3px);
}

.freight360-cork-theme .finance-tocly-workspace .modal-card {
    width: min(680px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    border: 0;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 34, 58, 0.24);
    overflow: hidden;
}

.freight360-cork-theme .finance-tocly-workspace .modal-card.wide,
.freight360-cork-theme .finance-tocly-workspace .finance-setup-modal {
    width: min(920px, calc(100vw - 40px));
    max-width: 920px;
}

.freight360-cork-theme .finance-tocly-workspace .finance-entry-modal-tocly,
.freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal {
    width: min(1180px, calc(100vw - 40px));
    max-width: 1180px;
}

.freight360-cork-theme .finance-tocly-workspace .modal-header {
    min-height: 58px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--finance-border);
    background: #fff;
}

.freight360-cork-theme .finance-tocly-workspace .modal-header h3,
.freight360-cork-theme .finance-tocly-workspace .modal-header h4,
.freight360-cork-theme .finance-tocly-workspace .modal-header h5 {
    margin: 0;
    color: var(--finance-heading);
    font-size: 16px;
    font-weight: 600;
}

.freight360-cork-theme .finance-tocly-workspace .modal-header .modal-close,
.freight360-cork-theme .finance-tocly-workspace .modal-header>a:last-child {
    display: inline-grid;
    place-items: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #f5f6f8;
    color: #74788d;
}

.freight360-cork-theme .finance-tocly-workspace .modal-stack {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.freight360-cork-theme .finance-tocly-workspace .modal-section {
    padding: 20px;
    border: 0;
    border-bottom: 1px solid var(--finance-border);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.freight360-cork-theme .finance-tocly-workspace .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    gap: 8px;
    min-height: 62px;
    padding: 14px 20px;
    border-top: 1px solid var(--finance-border);
    background: #fff;
    box-shadow: none;
}

.freight360-cork-theme .finance-tocly-workspace .finance-setup-form-grid,
.freight360-cork-theme .finance-tocly-workspace .finance-entry-grid {
    gap: 16px;
}

.freight360-cork-theme .finance-tocly-workspace .finance-entry-lines-head {
    margin: 0;
    padding: 14px 20px 10px;
}

.freight360-cork-theme .finance-tocly-workspace .finance-entry-table-wrap {
    margin: 0 20px 18px;
    border: 1px solid var(--finance-border);
    border-radius: 4px;
}

.freight360-cork-theme .finance-tocly-workspace .finance-entry-table th {
    padding: 10px 12px;
    background: #f8f9fa;
    color: var(--finance-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.freight360-cork-theme .finance-tocly-workspace .finance-entry-table td {
    padding: 9px 8px;
    border-color: var(--finance-border);
    background: #fff;
}

.freight360-cork-theme .finance-tocly-workspace .finance-entry-table input:not([type="checkbox"]),
.freight360-cork-theme .finance-tocly-workspace .finance-entry-table select {
    min-height: 34px;
    height: 34px;
    border-radius: 4px;
    font-size: 12px;
}

.freight360-cork-theme .finance-tocly-workspace .finance-remove-line-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    border-radius: 4px;
}

.freight360-cork-theme .finance-tocly-workspace .finance-balance-check,
.freight360-cork-theme .finance-tocly-workspace .finance-invoice-entry-totals {
    margin: 0 20px 18px;
    border: 1px solid var(--finance-border);
    border-radius: 4px;
    background: #f8f9fa;
    box-shadow: none;
}

@media (max-width: 991px) {

    .freight360-cork-theme .finance-tocly-workspace .form-grid.two,
    .freight360-cork-theme .finance-tocly-workspace .finance-entry-grid,
    .freight360-cork-theme .finance-tocly-workspace .finance-setup-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .freight360-cork-theme .finance-tocly-workspace .modal-card,
    .freight360-cork-theme .finance-tocly-workspace .modal-card.wide,
    .freight360-cork-theme .finance-tocly-workspace .finance-entry-modal-tocly {
        width: calc(100vw - 24px);
        max-width: none;
        max-height: calc(100vh - 24px);
    }
}

@media (max-width: 640px) {

    .freight360-cork-theme .finance-tocly-workspace>.page-head,
    .freight360-cork-theme .finance-tocly-workspace .finance-list-head,
    .freight360-cork-theme .finance-tocly-workspace .modal-header,
    .freight360-cork-theme .finance-tocly-workspace .modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .freight360-cork-theme .finance-tocly-workspace .form-grid.two,
    .freight360-cork-theme .finance-tocly-workspace .finance-entry-grid,
    .freight360-cork-theme .finance-tocly-workspace .finance-setup-form-grid {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .finance-tocly-workspace .modal-shell {
        align-items: flex-end;
        padding: 0;
    }

    .freight360-cork-theme .finance-tocly-workspace .modal-card,
    .freight360-cork-theme .finance-tocly-workspace .modal-card.wide,
    .freight360-cork-theme .finance-tocly-workspace .finance-entry-modal-tocly {
        width: 100vw;
        max-height: 94vh;
        border-radius: 8px 8px 0 0;
    }

    .freight360-cork-theme .finance-tocly-workspace .modal-footer .btn-primary,
    .freight360-cork-theme .finance-tocly-workspace .modal-footer .btn-link {
        width: 100%;
        justify-content: center;
    }
}

.freight360-cork-theme.cork-dark .finance-tocly-workspace {
    --finance-text: #c3cbe0;
    --finance-heading: #e9ecef;
    --finance-muted: #a6b0cf;
    --finance-border: #263247;
    --finance-surface: #1b2234;
    --finance-soft: #20283c;
}

.freight360-cork-theme.cork-dark .finance-tocly-workspace .panel,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-list-card,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-aging-card,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .ledger-card,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-template-settings,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-transactions-shell,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .modal-card,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .modal-header,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .modal-section,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .modal-footer,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-table-wrap,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-list-table td,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-entry-table td {
    background: var(--finance-surface);
    color: var(--finance-text);
}

.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-list-table th,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-entry-table th,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-list-table tbody tr:hover td,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-balance-check,
.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-invoice-entry-totals {
    background: var(--finance-soft);
}

.freight360-cork-theme.cork-dark .finance-tocly-workspace input:not([type="checkbox"]):not([type="radio"]),
.freight360-cork-theme.cork-dark .finance-tocly-workspace select,
.freight360-cork-theme.cork-dark .finance-tocly-workspace textarea {
    border-color: #364258;
    background-color: #20283c;
    color: #e9ecef;
}

.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-picker-results {
    border-color: #364258;
    background: #20283c;
}

/* Shared Tocly pagination — Laravel uses Bootstrap 5 markup application-wide. */
.freight360-cork-theme nav[aria-label="Pagination Navigation"] {
    width: 100%;
}

.freight360-cork-theme nav[aria-label="Pagination Navigation"]>div {
    align-items: center;
    gap: 16px;
}

.freight360-cork-theme nav[aria-label="Pagination Navigation"] p {
    margin: 0;
    color: #74788d;
    font-size: 12px;
    line-height: 32px;
}

.freight360-cork-theme .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.freight360-cork-theme .page-item {
    margin: 0;
}

.freight360-cork-theme .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    width: auto;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #eff0f2;
    border-radius: 4px !important;
    background: #fff;
    color: #495057;
    font-family: "Rubik", var(--cork-font, Arial, sans-serif);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.freight360-cork-theme .page-link:hover {
    z-index: 1;
    border-color: #dfe2e6;
    background: #f3f4f6;
    color: #0c768a;
}

.freight360-cork-theme .page-link:focus {
    z-index: 2;
    border-color: rgba(12, 118, 138, 0.5);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(12, 118, 138, 0.13);
}

.freight360-cork-theme .page-item.active .page-link {
    border-color: #0c768a;
    background: #0c768a;
    color: #fff;
}

.freight360-cork-theme .page-item.disabled .page-link {
    border-color: #eff0f2;
    background: #f8f9fa;
    color: #adb5bd;
    opacity: 1;
    pointer-events: none;
}

.freight360-cork-theme .page-link svg {
    display: block;
    width: 14px !important;
    height: 14px !important;
    max-width: 14px;
    max-height: 14px;
}

.freight360-cork-theme .pagination-wrap,
.freight360-cork-theme .branch-local-pagination,
.freight360-cork-theme .pod-agent-pagination,
.freight360-cork-theme .agency-pagination,
.freight360-cork-theme .sailing-pagination,
.freight360-cork-theme .sales-lead-pagination,
.freight360-cork-theme .inventory-pagination-card {
    overflow-x: auto;
}

.freight360-cork-theme.cork-dark .page-link {
    border-color: #263247;
    background: #1b2234;
    color: #c3cbe0;
}

.freight360-cork-theme.cork-dark .page-link:hover {
    border-color: #364258;
    background: #20283c;
    color: #7dd3df;
}

.freight360-cork-theme.cork-dark .page-item.active .page-link {
    border-color: #0c768a;
    background: #0c768a;
    color: #fff;
}

.freight360-cork-theme.cork-dark .page-item.disabled .page-link {
    border-color: #263247;
    background: #171e2d;
    color: #667085;
}

@media (max-width: 575px) {
    .freight360-cork-theme nav[aria-label="Pagination Navigation"]>div {
        align-items: flex-start;
        flex-direction: column;
    }

    .freight360-cork-theme nav[aria-label="Pagination Navigation"] p {
        line-height: 1.4;
    }

    .freight360-cork-theme .page-link {
        min-width: 30px;
        height: 30px;
        min-height: 30px;
        padding: 0 8px;
    }
}

/* Finance picker menus are moved under <body> while open, so keep their
   Tocly palette independent of the workspace ancestor. */
.freight360-cork-theme .finance-picker-results {
    border-color: rgba(12, 118, 138, 0.20);
    box-shadow: 0 10px 24px rgba(12, 118, 138, 0.14);
}

.freight360-cork-theme .finance-picker-results button:hover,
.freight360-cork-theme .finance-picker-results button:focus-visible {
    background: rgba(12, 118, 138, 0.10);
    color: #0c768a;
}

.freight360-cork-theme.cork-dark .finance-picker-results button:hover,
.freight360-cork-theme.cork-dark .finance-picker-results button:focus-visible {
    background: rgba(12, 118, 138, 0.20);
    color: #7dd3df;
}

/* Manage Users — Tocly workspace and modal. */
.freight360-cork-theme .users-tocly-workspace {
    --users-primary: #0c768a;
    --users-primary-hover: #0a6374;
    --users-text: #495057;
    --users-heading: #343a40;
    --users-muted: #74788d;
    --users-border: #eff0f2;
    --users-surface: #fff;
    --users-soft: #f8f9fa;
    color: var(--users-text);
    font-family: "Rubik", var(--cork-font, Arial, sans-serif);
    font-size: 13px;
}

.freight360-cork-theme .users-tocly-workspace>.page-head {
    align-items: center;
    min-height: 76px;
    margin: 0 0 20px;
    padding: 18px 20px;
    border: 1px solid var(--users-border);
    border-radius: 4px;
    background: var(--users-surface);
    box-shadow: 0 2px 4px rgba(15, 34, 58, 0.08);
}

.freight360-cork-theme .users-tocly-workspace>.page-head h2 {
    color: var(--users-heading);
    font-size: 20px;
    font-weight: 600;
}

.freight360-cork-theme .users-tocly-workspace .muted {
    color: var(--users-muted);
    font-size: 12px;
}

.freight360-cork-theme .users-tocly-workspace .panel {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--users-border);
    border-radius: 4px;
    background: var(--users-surface);
    box-shadow: 0 2px 4px rgba(15, 34, 58, 0.08);
}

.freight360-cork-theme .users-tocly-workspace .head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.freight360-cork-theme .users-tocly-workspace .users-filter-card {
    padding: 14px 16px;
}

.freight360-cork-theme .users-tocly-workspace .users-filter-form {
    display: grid;
    grid-template-columns: minmax(210px, 1.35fr) minmax(150px, 0.8fr) minmax(180px, 1fr) minmax(160px, 0.85fr) auto;
    gap: 12px;
    align-items: end;
}

.freight360-cork-theme .users-tocly-workspace form.users-filter-form>.form-grid.two {
    display: contents;
}

.freight360-cork-theme .users-tocly-workspace .users-filter-form label {
    margin-bottom: 5px;
    color: #667085;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.freight360-cork-theme .users-tocly-workspace .users-filter-form input,
.freight360-cork-theme .users-tocly-workspace .users-filter-form select {
    height: 34px;
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 12px;
}

.freight360-cork-theme .users-tocly-workspace .users-filter-form>.modal-footer {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.freight360-cork-theme .users-tocly-workspace .users-filter-form>.modal-footer .btn-primary,
.freight360-cork-theme .users-tocly-workspace .users-filter-form>.modal-footer .btn-link {
    width: auto;
    min-height: 34px;
    height: 34px;
    padding: 0 12px;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .freight360-cork-theme .users-tocly-workspace .users-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .freight360-cork-theme .users-tocly-workspace .users-filter-form>.modal-footer {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .freight360-cork-theme .users-tocly-workspace .users-filter-form {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .users-tocly-workspace .users-filter-form>.modal-footer {
        grid-column: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .freight360-cork-theme .users-tocly-workspace .users-filter-form>.modal-footer .btn-primary,
    .freight360-cork-theme .users-tocly-workspace .users-filter-form>.modal-footer .btn-link {
        width: 100%;
        justify-content: center;
    }
}

.freight360-cork-theme .users-tocly-workspace .badge {
    padding: 7px 10px;
    border: 0;
    border-radius: 4px;
    background: rgba(12, 118, 138, 0.11);
    color: var(--users-primary);
    font-size: 11px;
    font-weight: 600;
}

.freight360-cork-theme .users-tocly-workspace label {
    margin-bottom: 6px;
    color: var(--users-heading);
    font-size: 12px;
    font-weight: 500;
}

.freight360-cork-theme .users-tocly-workspace input:not([type="checkbox"]):not([type="radio"]),
.freight360-cork-theme .users-tocly-workspace select,
.freight360-cork-theme .users-tocly-workspace textarea {
    min-height: 38px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    color: var(--users-text);
    font-family: inherit;
    font-size: 13px;
    box-shadow: none;
}

.freight360-cork-theme .users-tocly-workspace input:focus,
.freight360-cork-theme .users-tocly-workspace select:focus,
.freight360-cork-theme .users-tocly-workspace textarea:focus {
    border-color: rgba(12, 118, 138, 0.55);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(12, 118, 138, 0.13);
}

.freight360-cork-theme .users-tocly-workspace .btn-primary {
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid var(--users-primary);
    border-radius: 4px;
    background: var(--users-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    box-shadow: none;
}

.freight360-cork-theme .users-tocly-workspace .btn-primary:hover {
    border-color: var(--users-primary-hover);
    background: var(--users-primary-hover);
    transform: none;
}

.freight360-cork-theme .users-tocly-workspace .btn-link,
.freight360-cork-theme .users-tocly-workspace .small-btn {
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    box-shadow: none;
}

.freight360-cork-theme .users-tocly-workspace .btn-link.secondary,
.freight360-cork-theme .users-tocly-workspace .btn-link.ghost {
    border: 1px solid #e5e7eb;
    background: #f8f9fa;
    color: #495057;
}

.freight360-cork-theme .users-tocly-workspace .btn-link.danger {
    border-color: rgba(244, 106, 106, 0.28);
    background: rgba(244, 106, 106, 0.10);
    color: #d84f4f;
}

.freight360-cork-theme .users-tocly-workspace .panel>table {
    width: calc(100% + 40px);
    min-width: 1160px;
    margin: -20px;
    border-collapse: collapse;
    font-size: 12px;
}

.freight360-cork-theme .users-tocly-workspace .panel:has(> table) {
    overflow-x: auto;
}

.freight360-cork-theme .users-tocly-workspace table th {
    padding: 12px 13px;
    border-bottom: 1px solid var(--users-border);
    background: var(--users-soft);
    color: var(--users-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.freight360-cork-theme .users-tocly-workspace table td {
    padding: 12px 13px;
    border-bottom: 1px solid var(--users-border);
    background: var(--users-surface);
    vertical-align: middle;
}

.freight360-cork-theme .users-tocly-workspace table tbody tr:hover td {
    background: var(--users-soft);
}

.freight360-cork-theme .users-tocly-workspace .permission-summary {
    max-width: 300px;
    color: var(--users-muted);
    font-size: 10px;
    line-height: 1.5;
}

.freight360-cork-theme .users-tocly-workspace .mini-chip {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.freight360-cork-theme .users-tocly-workspace .action-row {
    gap: 6px;
    flex-wrap: wrap;
}

.freight360-cork-theme .users-tocly-workspace .modal-shell,
.freight360-cork-theme .modal-shell.users-tocly-workspace {
    padding: 20px;
    background: rgba(52, 58, 64, 0.55);
    backdrop-filter: blur(3px);
}

.freight360-cork-theme .users-tocly-workspace .modal-card.wide {
    display: flex;
    height: min(900px, calc(100vh - 40px));
    width: min(1080px, calc(100vw - 40px));
    max-width: 1080px;
    max-height: calc(100vh - 40px);
    flex-direction: column;
    border: 0;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 34, 58, 0.24);
    overflow: hidden;
}

.freight360-cork-theme .users-tocly-workspace .modal-header {
    flex: 0 0 auto;
    min-height: 64px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--users-border);
    background: #fff;
}

.freight360-cork-theme .users-tocly-workspace .modal-header h3 {
    color: var(--users-heading);
    font-size: 16px;
    font-weight: 600;
}

.freight360-cork-theme .users-tocly-workspace .modal-card>form {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    flex-direction: column;
    overflow: hidden;
}

.freight360-cork-theme .users-tocly-workspace .users-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.freight360-cork-theme .users-tocly-workspace .users-modal-body>.form-grid,
.freight360-cork-theme .users-tocly-workspace .users-modal-body>#assignment-block,
.freight360-cork-theme .users-tocly-workspace .users-modal-body>#permissions-block {
    margin: 0;
    padding: 18px 20px;
    border-bottom: 1px solid var(--users-border);
}

.freight360-cork-theme .users-tocly-workspace .permission-panel {
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.freight360-cork-theme .users-tocly-workspace .permission-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.freight360-cork-theme .users-tocly-workspace .permission-card,
.freight360-cork-theme .users-tocly-workspace .finance-permission-group {
    padding: 13px;
    border: 1px solid var(--users-border);
    border-radius: 4px;
    background: var(--users-soft);
    box-shadow: none;
}

.freight360-cork-theme .users-tocly-workspace .permission-check {
    min-height: 30px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #fff;
    font-size: 11px;
}

.freight360-cork-theme .users-tocly-workspace .permission-check:hover,
.freight360-cork-theme .users-tocly-workspace .permission-check:focus-within {
    border-color: rgba(12, 118, 138, 0.28);
    background: rgba(12, 118, 138, 0.06);
}

.freight360-cork-theme .users-tocly-workspace .permission-check input,
.freight360-cork-theme .users-tocly-workspace input[type="checkbox"] {
    accent-color: var(--users-primary);
}

.freight360-cork-theme .users-tocly-workspace .regional-country-picker {
    border: 1px solid var(--users-border);
    border-radius: 4px;
    background: var(--users-soft);
}

.freight360-cork-theme .users-tocly-workspace .modal-footer {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    min-height: 62px;
    margin-top: 0;
    padding: 13px 20px;
    border-top: 1px solid var(--users-border);
    background: #fff;
}

@media (max-width: 900px) {

    .freight360-cork-theme .users-tocly-workspace .permission-cards,
    .freight360-cork-theme .users-tocly-workspace .finance-permission-groups {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .users-tocly-workspace .modal-card.wide {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }
}

@media (max-width: 640px) {

    .freight360-cork-theme .users-tocly-workspace>.page-head,
    .freight360-cork-theme .users-tocly-workspace .head-actions,
    .freight360-cork-theme .users-tocly-workspace .modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .freight360-cork-theme .users-tocly-workspace .form-grid.two {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .users-tocly-workspace .panel:has(> table) {
        overflow-x: auto;
    }

    .freight360-cork-theme .users-tocly-workspace .modal-shell,
    .freight360-cork-theme .modal-shell.users-tocly-workspace {
        align-items: flex-end;
        padding: 0;
    }

    .freight360-cork-theme .users-tocly-workspace .modal-card.wide {
        width: 100vw;
        max-height: 94vh;
        border-radius: 8px 8px 0 0;
    }
}

.freight360-cork-theme.cork-dark .users-tocly-workspace {
    --users-text: #c3cbe0;
    --users-heading: #e9ecef;
    --users-muted: #a6b0cf;
    --users-border: #263247;
    --users-surface: #1b2234;
    --users-soft: #20283c;
}

.freight360-cork-theme.cork-dark .users-tocly-workspace .panel,
.freight360-cork-theme.cork-dark .users-tocly-workspace .modal-card.wide,
.freight360-cork-theme.cork-dark .users-tocly-workspace .modal-header,
.freight360-cork-theme.cork-dark .users-tocly-workspace .modal-footer,
.freight360-cork-theme.cork-dark .users-tocly-workspace .permission-panel,
.freight360-cork-theme.cork-dark .users-tocly-workspace table td {
    background: var(--users-surface);
    color: var(--users-text);
}

.freight360-cork-theme.cork-dark .users-tocly-workspace input:not([type="checkbox"]):not([type="radio"]),
.freight360-cork-theme.cork-dark .users-tocly-workspace select,
.freight360-cork-theme.cork-dark .users-tocly-workspace textarea,
.freight360-cork-theme.cork-dark .users-tocly-workspace .permission-check {
    border-color: #364258;
    background: #20283c;
    color: #e9ecef;
}

/* Finance invoice viewer: fixed header/footer with a dedicated scroll body. */
.freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal {
    display: flex;
    flex-direction: column;
    height: min(860px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);
    overflow: hidden;
}

.freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal>.modal-header {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
}

.freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal>.finance-invoice-preview {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 20px;
    border: 0;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b7c4d3 #eef2f7;
}

.freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal>.finance-invoice-preview::-webkit-scrollbar {
    width: 9px;
}

.freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal>.finance-invoice-preview::-webkit-scrollbar-track {
    background: #eef2f7;
}

.freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal>.finance-invoice-preview::-webkit-scrollbar-thumb {
    border: 2px solid #eef2f7;
    border-radius: 999px;
    background: #b7c4d3;
}

.freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal>.finance-invoice-preview .finance-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal>.modal-footer {
    position: relative;
    bottom: auto;
    z-index: 4;
    flex: 0 0 auto;
    margin: 0;
    border-top: 1px solid #eff0f2;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(15, 34, 58, 0.06);
}

.freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal>.modal-footer form {
    margin: 0;
}

@media (max-width: 640px) {
    .freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal {
        height: 94dvh;
        max-height: 94dvh;
    }

    .freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal>.finance-invoice-preview {
        padding: 14px;
    }

    .freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal>.modal-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal>.modal-footer>*,
    .freight360-cork-theme .finance-tocly-workspace .finance-invoice-view-modal>.modal-footer form>button {
        width: 100%;
        justify-content: center;
    }
}

.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-invoice-view-modal>.finance-invoice-preview {
    scrollbar-color: #46556b #20283c;
}

.freight360-cork-theme.cork-dark .finance-tocly-workspace .finance-invoice-view-modal>.modal-footer {
    border-color: #263247;
    background: #1b2234;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.18);
}

/* Tocly destructive confirmation shared by Manage Users actions. */
.freight360-cork-theme #global-confirm-modal {
    padding: 20px;
    background: rgba(52, 58, 64, 0.55);
    backdrop-filter: blur(3px);
}

.freight360-cork-theme #global-confirm-modal .confirm-modal-card {
    width: min(440px, calc(100vw - 32px));
    border: 0;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 34, 58, 0.26);
    overflow: hidden;
}

.freight360-cork-theme #global-confirm-modal .modal-header {
    padding: 17px 20px;
    border-bottom: 1px solid #eff0f2;
    background: #fff;
}

.freight360-cork-theme #global-confirm-modal .modal-header h3 {
    margin: 0;
    color: #343a40;
    font-family: "Rubik", var(--cork-font, Arial, sans-serif);
    font-size: 16px;
    font-weight: 600;
}

.freight360-cork-theme #global-confirm-modal .modal-header p,
.freight360-cork-theme #global-confirm-modal .confirm-copy {
    color: #74788d;
    font-size: 12px;
    line-height: 1.55;
}

.freight360-cork-theme #global-confirm-modal .confirm-copy {
    margin: 0;
    padding: 20px;
}

.freight360-cork-theme #global-confirm-modal .confirm-actions {
    gap: 8px;
    padding: 13px 20px;
    border-top: 1px solid #eff0f2;
    background: #f8f9fa;
}

.freight360-cork-theme #global-confirm-modal .confirm-actions button {
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.freight360-cork-theme #global-confirm-modal .confirm-actions .danger {
    border-color: #f46a6a;
    background: #f46a6a;
    color: #fff;
}

.freight360-cork-theme #global-confirm-modal .confirm-actions .danger:hover {
    border-color: #dc5f5f;
    background: #dc5f5f;
}

.freight360-cork-theme.cork-dark #global-confirm-modal .confirm-modal-card,
.freight360-cork-theme.cork-dark #global-confirm-modal .modal-header {
    background: #1b2234;
}

.freight360-cork-theme.cork-dark #global-confirm-modal .modal-header,
.freight360-cork-theme.cork-dark #global-confirm-modal .confirm-actions {
    border-color: #263247;
}

.freight360-cork-theme.cork-dark #global-confirm-modal .confirm-actions {
    background: #20283c;
}

.freight360-cork-theme.cork-dark #global-confirm-modal .modal-header h3 {
    color: #e9ecef;
}

/* Compact identity and assignment area above User Module Access. */
.freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form>.form-grid.two {
    gap: 12px;
    margin: 0;
    padding: 10px 20px 0;
    border: 0;
}

.freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form>.form-grid.two:first-of-type {
    padding-top: 16px;
}

.freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form>.users-company-field {
    margin: 0;
    padding: 10px 20px 0;
}

.freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form>#pricing-block {
    margin: 0;
    padding: 10px 20px 0;
    border: 0;
}

.freight360-cork-theme .users-tocly-workspace .users-modal-tocly #pricing-block>.form-grid.two {
    gap: 12px;
    margin: 0 0 10px;
}

.freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form>#assignment-block {
    margin: 0;
    padding: 12px 20px 16px;
    border: 0;
}

.freight360-cork-theme .users-tocly-workspace .users-modal-tocly #assignment-block>.form-grid.two {
    gap: 12px;
    margin: 0;
}

.freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form label {
    margin-bottom: 4px;
    font-size: 11px;
}

.freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form input:not([type="checkbox"]):not([type="radio"]),
.freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form select {
    height: 35px;
    min-height: 35px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 12px;
}

.freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form .field-note {
    margin-top: 4px;
    color: #74788d;
    font-size: 10px;
    line-height: 1.4;
}

.freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form>#permissions-block {
    padding: 16px 20px 18px;
    border-top: 1px solid #eff0f2;
    border-bottom: 0;
}

.freight360-cork-theme .users-tocly-workspace .users-modal-tocly #permissions-block>.section-label {
    margin-bottom: 12px;
    color: #343a40;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 640px) {

    .freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form>.form-grid.two,
    .freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form>.users-company-field,
    .freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form>#pricing-block,
    .freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form>#assignment-block,
    .freight360-cork-theme .users-tocly-workspace .users-modal-tocly #user-form>#permissions-block {
        padding-left: 14px;
        padding-right: 14px;
    }
}

.freight360-cork-theme.cork-dark .users-tocly-workspace .users-modal-tocly #user-form>#permissions-block {
    border-color: #263247;
}

.freight360-cork-theme.cork-dark .users-tocly-workspace .users-modal-tocly #permissions-block>.section-label {
    color: #e9ecef;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-table td:not(:last-child) {
    overflow: hidden;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-table-scroll-hint {
    display: block;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table tbody tr:nth-child(odd) td {
    background: rgba(248, 250, 252, 0.76);
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table tbody tr:hover td {
    background: rgba(12, 118, 138, 0.04);
}

.freight360-cork-theme .finance-entry-modal-tocly [data-receipt-invoices-section] {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.freight360-cork-theme .finance-entry-modal-tocly [data-receipt-invoices-section] .finance-table-wrap {
    padding: 0;
    border: 0;
    background: transparent;
}

.freight360-cork-theme .finance-entry-modal-tocly [data-receipt-invoices-section] .finance-list-table {
    border-radius: 18px;
}

.freight360-cork-theme .finance-entry-modal-tocly [data-receipt-deductions-section] {
    padding: 12px 0 0;
}

.freight360-cork-theme .finance-entry-modal-tocly [data-receipt-deductions-section] .finance-entry-lines-head {
    padding-bottom: 10px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-table-scroll-hint {
    margin: 2px var(--finance-entry-gutter) 4px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-additional-tax,
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-discount,
.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-entry-totals,
.freight360-cork-theme .finance-entry-modal-tocly .finance-balance-check,
.freight360-cork-theme .finance-entry-modal-tocly [data-receipt-invoices-section] {
    margin: 0 var(--finance-entry-gutter);
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-entry-totals,
.freight360-cork-theme .finance-entry-modal-tocly .finance-balance-check {
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.88);
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-total-message {
    margin: 0 var(--finance-entry-gutter);
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-grid .wide:last-child {
    padding-bottom: 2px;
}

.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-grid+.finance-entry-lines-head,
.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-grid+.modal-section,
.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-grid+.finance-invoice-additional-tax,
.freight360-cork-theme .finance-entry-modal-tocly .finance-entry-grid+.finance-balance-check {
    margin-top: 8px;
}

.freight360-cork-theme .finance-entry-modal-tocly .modal-footer {
    gap: 10px;
    padding: 10px var(--finance-entry-gutter) 12px;
    border-top: 1px solid #e8edf3;
    background: rgba(248, 250, 252, 0.92);
}

.freight360-cork-theme .finance-entry-modal-tocly .modal-footer .btn-link,
.freight360-cork-theme .finance-entry-modal-tocly .modal-footer .btn-primary {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.freight360-cork-theme .finance-entry-modal-tocly .modal-footer .btn-primary {
    background: linear-gradient(135deg, #0c768a 0%, #0ea5b7 100%);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(12, 118, 138, 0.22);
}

@media (max-width: 900px) {
    .freight360-cork-theme .finance-entry-modal-tocly {
        --finance-entry-gutter: 14px;
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 18px;
    }

    .freight360-cork-theme .finance-entry-modal-tocly>.modal-header,
    .freight360-cork-theme .finance-entry-modal-tocly .finance-entry-grid,
    .freight360-cork-theme .finance-entry-modal-tocly .finance-entry-lines-head,
    .freight360-cork-theme .finance-entry-modal-tocly .modal-section-head,
    .freight360-cork-theme .finance-entry-modal-tocly .finance-entry-table-wrap,
    .freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-additional-tax,
    .freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-discount,
    .freight360-cork-theme .finance-entry-modal-tocly .finance-invoice-entry-totals,
    .freight360-cork-theme .finance-entry-modal-tocly .finance-balance-check,
    .freight360-cork-theme .finance-entry-modal-tocly [data-receipt-invoices-section],
    .freight360-cork-theme .finance-entry-modal-tocly [data-receipt-deductions-section],
    .freight360-cork-theme .finance-entry-modal-tocly .modal-footer,
    .freight360-cork-theme .finance-entry-modal-tocly .finance-entry-total-message {
        margin-left: 14px;
        margin-right: 14px;
        padding-left: 0;
        padding-right: 0;
    }

    .freight360-cork-theme .finance-entry-modal-tocly>.modal-header {
        padding: 14px;
    }
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly {
    border-color: #1b2e4b;
    background:
        radial-gradient(circle at top right, rgba(67, 193, 212, 0.10), transparent 28%),
        #111c33;
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly>.modal-header,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .modal-footer {
    border-color: #1b2e4b;
    background: transparent;
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly>.modal-header h3,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-voucher-type-hero strong,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-entry-lines-head h4,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .modal-section-head h4 {
    color: #f8fafc;
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-voucher-type-hero,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-entry-table-wrap,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly [data-receipt-deductions-section],
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-invoice-entry-totals,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-balance-check {
    border-color: #1b2e4b;
    background: #0e1726;
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-entry-grid label,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-entry-table label,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-invoice-additional-tax label,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-invoice-discount label,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-voucher-type-hero span,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-entry-lines-head p,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .modal-section-head p {
    color: #94a3b8;
}

.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-entry-grid input,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-entry-grid select,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-entry-table input,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-entry-table select,
.freight360-cork-theme.cork-dark .finance-entry-modal-tocly .finance-voucher-type-hero select {
    border-color: #243b63;
    background: #111c33;
    color: #f8fafc;
    box-shadow: none;
}

/* Agency: Principals and Depots */
.agency-tocly-workspace {
    --agency-primary: #0c768a;
    --agency-primary-dark: #095f70;
    --agency-border: #eff0f2;
    --agency-text: #495057;
    --agency-muted: #74788d;
    color: var(--agency-text);
}

.agency-tocly-workspace .agency-toolbar,
.agency-tocly-workspace .agency-filter-card,
.agency-tocly-workspace .agency-list-card {
    border: 1px solid var(--agency-border);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(56, 65, 74, .06);
}

.agency-tocly-workspace .agency-toolbar {
    margin-bottom: 12px;
    padding: 14px 16px;
}

.agency-tocly-workspace .agency-toolbar h2 {
    margin-bottom: 2px;
    color: #343a40;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
}

.agency-tocly-workspace .agency-muted {
    color: var(--agency-muted);
    font-size: 12px;
}

.agency-tocly-workspace .agency-route {
    color: #343a40;
    font-weight: 500;
}

.agency-tocly-workspace .agency-filter-card {
    margin-bottom: 12px;
    padding: 12px 16px;
}

.agency-tocly-workspace .agency-filter-card .modal-grid-two {
    align-items: end;
    gap: 10px 12px;
}

.agency-tocly-workspace .agency-filter-card .modal-field {
    margin: 0;
}

.agency-tocly-workspace .agency-filter-actions {
    grid-column: auto;
    justify-self: auto;
    align-items: center;
}

.agency-tocly-workspace .modal-field>span,
.agency-tocly-workspace .modal-section-title h4 {
    color: #495057;
    font-size: 11px;
    font-weight: 500;
}

.agency-tocly-workspace input,
.agency-tocly-workspace select,
.agency-tocly-workspace textarea {
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #495057;
    font-size: 13px;
}

.agency-tocly-workspace input,
.agency-tocly-workspace select {
    min-height: 34px;
    padding: 6px 10px;
}

.agency-tocly-workspace textarea {
    padding: 8px 10px;
}

.agency-tocly-workspace input:focus,
.agency-tocly-workspace select:focus,
.agency-tocly-workspace textarea:focus {
    border-color: rgba(12, 118, 138, .55);
    box-shadow: 0 0 0 2px rgba(12, 118, 138, .1);
    outline: 0;
}

.agency-tocly-workspace .btn-link {
    min-height: 32px;
    border-radius: 4px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 500;
}

.agency-tocly-workspace .btn-link.primary {
    border-color: var(--agency-primary);
    background: var(--agency-primary);
    color: #fff;
}

.agency-tocly-workspace .btn-link.primary:hover {
    border-color: var(--agency-primary-dark);
    background: var(--agency-primary-dark);
}

.agency-tocly-workspace .agency-list-card {
    padding: 0;
    overflow: hidden;
}

.agency-tocly-workspace .agency-table th,
.agency-tocly-workspace .agency-table td {
    padding: 10px 12px;
    border-color: var(--agency-border);
}

.agency-tocly-workspace .agency-table th {
    background: #f8f9fa;
    color: #878a99;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
}

.agency-tocly-workspace .agency-table td {
    font-size: 12.5px;
}

.agency-tocly-workspace .agency-table tbody tr:hover {
    background: rgba(12, 118, 138, .025);
}

.agency-tocly-workspace .agency-table .inline-actions {
    gap: 5px;
}

.agency-tocly-workspace .agency-table .inline-actions .btn-link {
    min-height: 28px;
    padding: 4px 8px;
}

.agency-tocly-workspace .agency-pagination {
    margin: 0;
    border-top: 1px solid var(--agency-border);
    padding: 10px 12px;
}

.agency-tocly-workspace .agency-pagination .btn-link {
    min-height: 28px;
    padding: 4px 9px;
}

.modal-shell.agency-tocly-workspace {
    padding: 18px;
}

.agency-tocly-workspace .agency-modal-card {
    display: flex;
    flex-direction: column;
    width: min(1120px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(30, 32, 37, .18);
    overflow: hidden;
}

.agency-tocly-workspace .agency-modal-card .modal-header {
    flex: 0 0 auto;
    border-bottom: 1px solid var(--agency-border);
    padding: 14px 18px;
}

.agency-tocly-workspace .agency-modal-card .modal-header h3 {
    color: #343a40;
    font-size: 17px;
    font-weight: 500;
}

.agency-tocly-workspace .agency-modal-card .modal-header p {
    margin-top: 2px;
    color: var(--agency-muted);
    font-size: 12px;
}

.agency-tocly-workspace .agency-modal-card .close-link {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    color: #878a99;
}

.agency-tocly-workspace .agency-edit-form,
.agency-tocly-workspace .agency-view-panel {
    min-height: 0;
    overflow: auto;
    padding: 14px 18px;
}

.agency-tocly-workspace .agency-edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agency-tocly-workspace .agency-compact-grid {
    gap: 9px 10px;
}

.agency-tocly-workspace .modal-section {
    border: 1px solid var(--agency-border);
    border-radius: 4px;
    background: #fff;
    padding: 12px;
}

.agency-tocly-workspace .modal-actions {
    position: sticky;
    bottom: -14px;
    z-index: 30;
    margin: 0 -18px -14px;
    border-top: 1px solid var(--agency-border);
    background: #fff;
    padding: 10px 18px;
}

.agency-tocly-workspace .agency-picker-results {
    border-color: #d8dbe0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(30, 32, 37, .12);
}

.agency-tocly-workspace .agency-picker-results button {
    color: #495057;
    font-size: 12px;
    padding: 8px 10px;
}

.agency-tocly-workspace .agency-picker-results button:hover {
    background: rgba(12, 118, 138, .08);
    color: var(--agency-primary);
}

.agency-tocly-workspace .agency-selected-ports,
.agency-tocly-workspace .agency-matrix-wrap {
    border-color: var(--agency-border);
    border-radius: 4px;
    background: #fff;
}

.agency-tocly-workspace .agency-port-chip,
.agency-tocly-workspace .agency-view-badge {
    border-color: rgba(12, 118, 138, .18);
    background: rgba(12, 118, 138, .08);
    color: var(--agency-primary);
}

.agency-tocly-workspace .agency-matrix-table th {
    background: #f8f9fa;
    color: #878a99;
}

.agency-tocly-workspace .agency-matrix-table th,
.agency-tocly-workspace .agency-matrix-table td {
    border-color: var(--agency-border);
    padding: 6px;
}

.agency-tocly-workspace .agency-view-hero,
.agency-tocly-workspace .agency-view-card {
    border-color: var(--agency-border);
    border-radius: 4px;
    background: #f8f9fa;
}

.agency-tocly-workspace .agency-view-hero span,
.agency-tocly-workspace .agency-view-card span {
    color: #878a99;
    font-weight: 600;
}

.agency-tocly-workspace .agency-view-hero strong,
.agency-tocly-workspace .agency-view-card strong {
    color: #343a40;
    font-weight: 500;
}

@media (max-width: 767px) {
    .agency-tocly-workspace .agency-toolbar {
        align-items: flex-start;
        padding: 12px;
    }

    .agency-tocly-workspace .agency-toolbar .btn-link {
        width: 100%;
    }

    .agency-tocly-workspace .agency-filter-card .modal-grid-two {
        grid-template-columns: 1fr;
    }

    .agency-tocly-workspace .agency-filter-actions {
        justify-content: flex-start;
    }

    .modal-shell.agency-tocly-workspace {
        align-items: flex-end;
        padding: 0;
    }

    .agency-tocly-workspace .agency-modal-card {
        width: 100%;
        max-height: 94vh;
        border-radius: 8px 8px 0 0;
    }

    .agency-tocly-workspace .agency-modal-card .modal-header,
    .agency-tocly-workspace .agency-edit-form,
    .agency-tocly-workspace .agency-view-panel {
        padding-left: 12px;
        padding-right: 12px;
    }

    .agency-tocly-workspace .modal-actions {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

[data-layout-mode="dark"] .agency-tocly-workspace {
    --agency-border: #2c3038;
    --agency-text: #ced4da;
    --agency-muted: #9ba0aa;
}

[data-layout-mode="dark"] .agency-tocly-workspace .agency-toolbar,
[data-layout-mode="dark"] .agency-tocly-workspace .agency-filter-card,
[data-layout-mode="dark"] .agency-tocly-workspace .agency-list-card,
[data-layout-mode="dark"] .agency-tocly-workspace .agency-modal-card,
[data-layout-mode="dark"] .agency-tocly-workspace .modal-section,
[data-layout-mode="dark"] .agency-tocly-workspace .modal-actions,
[data-layout-mode="dark"] .agency-tocly-workspace input,
[data-layout-mode="dark"] .agency-tocly-workspace select,
[data-layout-mode="dark"] .agency-tocly-workspace textarea,
[data-layout-mode="dark"] .agency-tocly-workspace .agency-picker-results,
[data-layout-mode="dark"] .agency-tocly-workspace .agency-matrix-wrap {
    background: #22262e;
    color: #ced4da;
}

[data-layout-mode="dark"] .agency-tocly-workspace .agency-table th,
[data-layout-mode="dark"] .agency-tocly-workspace .agency-matrix-table th,
[data-layout-mode="dark"] .agency-tocly-workspace .agency-view-hero,
[data-layout-mode="dark"] .agency-tocly-workspace .agency-view-card {
    background: #292e37;
}

/* Sales: Sale Inquiries and Sales Lead Inquiries */
.freight360-cork-theme :is(.sale-inquiry-toolbar, .sale-inquiry-filter-card, .sale-inquiry-list-card, .sales-lead-toolbar, .sales-lead-filter-card, .sales-lead-list-card, .sales-lead-pagination) {
    border: 1px solid #eff0f2;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(56, 65, 74, .06);
}

.freight360-cork-theme :is(.sale-inquiry-toolbar, .sales-lead-toolbar) {
    margin-bottom: 12px;
    padding: 14px 16px;
}

.freight360-cork-theme :is(.sale-inquiry-toolbar, .sales-lead-toolbar) h2 {
    margin: 0 0 2px;
    color: #343a40;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
}

.freight360-cork-theme :is(.sale-inquiry-muted, .sales-lead-muted) {
    color: #74788d;
    font-size: 12px;
}

.freight360-cork-theme :is(.sale-inquiry-filter-card, .sales-lead-filter-card) {
    margin-bottom: 12px;
    padding: 12px 16px;
}

.freight360-cork-theme .sale-inquiry-filter-card .filter-grid,
.freight360-cork-theme .sales-lead-filter-card .modal-grid-three {
    gap: 10px 12px;
    align-items: end;
}

.freight360-cork-theme :is(.sale-inquiry-filter-card, .sales-lead-filter-card) .modal-field {
    margin: 0;
}

.freight360-cork-theme :is(.sale-inquiry-filter-card, .sales-lead-filter-card) :is(input, select) {
    min-height: 34px;
}

.freight360-cork-theme .sale-inquiry-analytics {
    grid-template-columns: repeat(6, minmax(115px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.freight360-cork-theme .sale-inquiry-analytics-item {
    min-height: 62px;
    border: 1px solid #eff0f2;
    border-left: 3px solid #0c768a;
    border-radius: 4px;
    background: #fff;
    padding: 10px 12px;
    box-shadow: none;
}

.freight360-cork-theme .sale-inquiry-analytics-item strong {
    color: #343a40;
    font-size: 18px;
    font-weight: 500;
}

.freight360-cork-theme .sale-inquiry-analytics-label {
    color: #878a99;
    font-size: 10px;
    font-weight: 600;
}

.freight360-cork-theme :is(.sale-inquiry-list-card, .sales-lead-list-card) {
    padding: 0;
    overflow: hidden;
}

.freight360-cork-theme :is(.sale-inquiry-table, .sales-lead-table) th,
.freight360-cork-theme :is(.sale-inquiry-table, .sales-lead-table) td {
    border-color: #eff0f2;
    padding: 10px 12px;
    vertical-align: top;
}

.freight360-cork-theme :is(.sale-inquiry-table, .sales-lead-table) th {
    background: #f8f9fa;
    color: #878a99;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
}

.freight360-cork-theme :is(.sale-inquiry-table, .sales-lead-table) td {
    color: #495057;
    font-size: 12.5px;
}

.freight360-cork-theme :is(.sale-inquiry-table, .sales-lead-table) tbody tr:hover {
    background: rgba(12, 118, 138, .025);
}

.freight360-cork-theme :is(.sale-inquiry-title, .sales-lead-title) {
    color: #343a40;
    font-weight: 500;
}

.freight360-cork-theme :is(.sale-inquiry-table, .sales-lead-table) :is(.btn-link, button, summary) {
    border-radius: 4px;
    font-size: 11px;
}

.freight360-cork-theme .sales-lead-more-menu>summary {
    min-height: 28px;
    padding: 4px 8px;
}

.freight360-cork-theme .sales-lead-status,
.freight360-cork-theme .sale-inquiry-no-pill {
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
}

.freight360-cork-theme .sales-lead-pagination {
    margin-top: 12px;
    padding: 10px 12px;
}

.modal-shell.sales-tocly-workspace {
    padding: 18px;
}

.sales-tocly-workspace>.modal-card {
    display: flex;
    flex-direction: column;
    width: min(1100px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(30, 32, 37, .18);
    overflow: hidden;
}

.sales-tocly-workspace>.modal-card>.modal-header {
    flex: 0 0 auto;
    border-bottom: 1px solid #eff0f2;
    padding: 14px 18px;
}

.sales-tocly-workspace .modal-header h3 {
    color: #343a40;
    font-size: 17px;
    font-weight: 500;
}

.sales-tocly-workspace .modal-header p {
    margin-top: 2px;
    color: #74788d;
    font-size: 12px;
}

.sales-tocly-workspace .close-link {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    color: #878a99;
}

.sales-tocly-workspace>.modal-card> :is(.modal-stack, .sale-inquiry-view-panel, .sales-lead-view-shell) {
    min-height: 0;
    overflow: auto;
    padding: 14px 18px;
}

.sales-tocly-workspace .modal-stack {
    gap: 12px;
}

.sales-tocly-workspace .modal-section,
.sales-tocly-workspace :is(.sale-inquiry-view-section, .sales-lead-view-section, .sales-lead-history-panel) {
    border: 1px solid #eff0f2;
    border-radius: 4px;
    background: #fff;
    padding: 12px;
}

.sales-tocly-workspace .modal-field>span {
    color: #495057;
    font-size: 11px;
    font-weight: 500;
}

.sales-tocly-workspace :is(input, select, textarea) {
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #495057;
    font-size: 13px;
}

.sales-tocly-workspace :is(input, select) {
    min-height: 34px;
    padding: 6px 10px;
}

.sales-tocly-workspace textarea {
    padding: 8px 10px;
}

.sales-tocly-workspace :is(input, select, textarea):focus {
    border-color: rgba(12, 118, 138, .55);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(12, 118, 138, .1);
}

.sales-tocly-workspace .modal-actions {
    position: sticky;
    bottom: -14px;
    z-index: 30;
    margin: 0 -18px -14px;
    border-top: 1px solid #eff0f2;
    background: #fff;
    padding: 10px 18px;
}

.sales-tocly-workspace :is(.search-picker-menu, .sale-inquiry-picker-results) {
    border: 1px solid #d8dbe0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(30, 32, 37, .12);
}

.sales-tocly-workspace :is(.search-picker-menu, .sale-inquiry-picker-results) button {
    color: #495057;
    font-size: 12px;
    padding: 8px 10px;
}

.sales-tocly-workspace :is(.search-picker-menu, .sale-inquiry-picker-results) button:hover {
    background: rgba(12, 118, 138, .08);
    color: #0c768a;
}

.sales-tocly-workspace :is(.sale-inquiry-view-hero, .sales-lead-view-hero, .sale-inquiry-view-card, .sales-lead-view-card) {
    border-color: #eff0f2;
    border-radius: 4px;
    background: #f8f9fa;
}

@media (max-width: 991px) {
    .freight360-cork-theme .sale-inquiry-analytics {
        grid-template-columns: repeat(3, minmax(115px, 1fr));
    }
}

@media (max-width: 767px) {
    .freight360-cork-theme :is(.sale-inquiry-toolbar, .sales-lead-toolbar) {
        align-items: flex-start;
        padding: 12px;
    }

    .freight360-cork-theme :is(.sale-inquiry-toolbar, .sales-lead-toolbar)>.btn-link {
        width: 100%;
    }

    .freight360-cork-theme .sale-inquiry-analytics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .freight360-cork-theme .sales-lead-filter-card .modal-grid-three {
        grid-template-columns: 1fr;
    }

    .modal-shell.sales-tocly-workspace {
        align-items: flex-end;
        padding: 0;
    }

    .sales-tocly-workspace>.modal-card {
        width: 100%;
        max-height: 94vh;
        border-radius: 8px 8px 0 0;
    }

    .sales-tocly-workspace>.modal-card>.modal-header,
    .sales-tocly-workspace>.modal-card> :is(.modal-stack, .sale-inquiry-view-panel, .sales-lead-view-shell) {
        padding-left: 12px;
        padding-right: 12px;
    }

    .sales-tocly-workspace .modal-actions {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

.freight360-cork-theme.cork-dark :is(.sale-inquiry-toolbar, .sale-inquiry-filter-card, .sale-inquiry-list-card, .sales-lead-toolbar, .sales-lead-filter-card, .sales-lead-list-card, .sales-lead-pagination, .sale-inquiry-analytics-item),
.freight360-cork-theme.cork-dark .sales-tocly-workspace>.modal-card,
.freight360-cork-theme.cork-dark .sales-tocly-workspace :is(.modal-section, .modal-actions, input, select, textarea, .search-picker-menu, .sale-inquiry-picker-results) {
    border-color: #263247;
    background: #1b2234;
    color: #c3cbe0;
}

.freight360-cork-theme.cork-dark :is(.sale-inquiry-table, .sales-lead-table) th,
.freight360-cork-theme.cork-dark .sales-tocly-workspace :is(.sale-inquiry-view-hero, .sales-lead-view-hero, .sale-inquiry-view-card, .sales-lead-view-card) {
    background: #20283c;
}

/* Compact Sale Inquiry dashboard controls (kept last to override legacy page CSS). */
.freight360-cork-theme .sale-inquiry-toolbar {
    display: block;
    margin-bottom: 10px;
    padding: 10px 12px;
}

.freight360-cork-theme .sale-inquiry-toolbar .sale-inquiry-analytics {
    display: grid;
    grid-template-columns: repeat(7, minmax(72px, 1fr)) minmax(150px, 1.35fr);
    gap: 6px;
    width: 100%;
}

.freight360-cork-theme .sale-inquiry-toolbar .sale-inquiry-analytics-item {
    min-height: 48px;
    padding: 7px 9px;
    border-radius: 4px;
    background: #fff;
}

.freight360-cork-theme .sale-inquiry-toolbar .sale-inquiry-analytics-item strong {
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.05;
}

.freight360-cork-theme .sale-inquiry-toolbar .sale-inquiry-analytics-label {
    color: #878a99;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .035em;
}

.freight360-cork-theme .sale-inquiry-toolbar .sale-inquiry-date-filter {
    min-height: 48px;
    padding: 6px 8px;
    border: 1px solid #eff0f2;
    border-left: 3px solid #0c768a;
    border-radius: 4px;
    background: #fff;
}

.freight360-cork-theme .sale-inquiry-toolbar .sale-inquiry-date-filter>label {
    margin-bottom: 2px;
    color: #878a99;
    font-size: 9px;
    font-weight: 600;
}

.freight360-cork-theme .sale-inquiry-toolbar .sale-inquiry-date-filter select,
.freight360-cork-theme .sale-inquiry-toolbar .sale-inquiry-date-filter input[type="date"] {
    height: 28px;
    min-height: 28px;
    border-color: #ced4da;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 11px;
}

.freight360-cork-theme .sale-inquiry-toolbar .sale-inquiry-custom-dates {
    gap: 4px;
    margin-top: 4px;
}

.freight360-cork-theme .sale-inquiry-filter-card.panel {
    margin-bottom: 10px;
    padding: 10px 12px;
}

.freight360-cork-theme .sale-inquiry-filter-card .filter-grid {
    grid-template-columns: minmax(230px, 1.4fr) minmax(165px, .75fr) minmax(165px, .75fr) auto;
    gap: 8px;
    align-items: end;
}

.freight360-cork-theme .sale-inquiry-filter-card .modal-field {
    gap: 3px;
}

.freight360-cork-theme .sale-inquiry-filter-card .modal-field>label {
    margin: 0;
    color: #495057;
    font-size: 10px;
    font-weight: 500;
}

.freight360-cork-theme .sale-inquiry-filter-card .modal-field :is(input, select) {
    height: 32px;
    min-height: 32px;
    border-radius: 4px;
    padding: 5px 9px;
    font-size: 12px;
}

.freight360-cork-theme .sale-inquiry-filter-card .filter-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    justify-self: end;
}

.freight360-cork-theme .sale-inquiry-filter-card :is(.filter-control-row, .filter-button-row) {
    gap: 6px;
    flex-wrap: nowrap;
}

.freight360-cork-theme .sale-inquiry-filter-card :is(.btn-link, .btn-primary) {
    min-height: 32px;
    border-radius: 4px;
    padding: 6px 9px;
    font-size: 11px;
    white-space: nowrap;
}

.freight360-cork-theme .sale-inquiry-filter-card .filter-check {
    min-height: 32px;
    gap: 6px;
    border-color: #eff0f2;
    border-radius: 4px;
    background: #f8f9fa;
    padding: 5px 8px;
    color: #495057;
    font-size: 11px;
    font-weight: 500;
}

.freight360-cork-theme .sale-inquiry-filter-card .filter-check input {
    width: 14px !important;
    height: 14px;
    flex-basis: 14px;
}

@media (max-width: 1280px) {
    .freight360-cork-theme .sale-inquiry-toolbar .sale-inquiry-analytics {
        grid-template-columns: repeat(4, minmax(100px, 1fr));
    }

    .freight360-cork-theme .sale-inquiry-filter-card .filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .freight360-cork-theme .sale-inquiry-filter-card .filter-actions {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 767px) {
    .freight360-cork-theme .sale-inquiry-toolbar .sale-inquiry-analytics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .freight360-cork-theme .sale-inquiry-toolbar .sale-inquiry-date-filter {
        grid-column: 1 / -1;
    }

    .freight360-cork-theme .sale-inquiry-filter-card .filter-grid {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .sale-inquiry-filter-card .filter-actions {
        grid-column: auto;
        align-items: stretch;
        flex-direction: column;
        justify-self: stretch;
    }

    .freight360-cork-theme .sale-inquiry-filter-card :is(.filter-control-row, .filter-button-row) {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

.freight360-cork-theme.cork-dark .sale-inquiry-toolbar :is(.sale-inquiry-analytics-item, .sale-inquiry-date-filter),
.freight360-cork-theme.cork-dark .sale-inquiry-filter-card .filter-check {
    border-color: #263247;
    background: #20283c;
    color: #c3cbe0;
}

/* Sale inquiry filter hierarchy and richer customer directory rows. */
.freight360-cork-theme .sale-inquiry-filter-card.panel {
    padding: 0;
}

.freight360-cork-theme .sale-inquiry-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #eff0f2;
    padding: 11px 14px;
}

.freight360-cork-theme .sale-inquiry-filter-head h3 {
    margin: 0;
    color: #343a40;
    font-size: 14px;
    font-weight: 500;
}

.freight360-cork-theme .sale-inquiry-filter-head p {
    margin: 2px 0 0;
    color: #878a99;
    font-size: 11px;
}

.freight360-cork-theme .sale-inquiry-filter-head .sale-inquiry-add-button {
    min-height: 32px;
    border-radius: 4px;
    padding: 6px 11px;
    white-space: nowrap;
}

.freight360-cork-theme .sale-inquiry-filter-card>form {
    padding: 10px 14px 0;
}

.freight360-cork-theme .sale-inquiry-filter-card .filter-grid {
    grid-template-columns: minmax(250px, 1.5fr) minmax(170px, .7fr) minmax(170px, .7fr) auto;
}

.freight360-cork-theme .sale-inquiry-filter-card .filter-actions {
    align-self: end;
    padding-bottom: 0;
}

.freight360-cork-theme .sale-inquiry-filter-card .filter-button-row {
    display: inline-flex;
    padding: 3px;
    border: 1px solid #eff0f2;
    border-radius: 4px;
    background: #f8f9fa;
}

.freight360-cork-theme .sale-inquiry-filter-card .filter-button-row :is(.btn-primary, .btn-link) {
    border-radius: 3px;
    box-shadow: none;
}

.freight360-cork-theme .sale-inquiry-filter-options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px -14px 0;
    border-top: 1px solid #eff0f2;
    background: #fbfbfc;
    padding: 8px 14px;
}

.freight360-cork-theme .sale-inquiry-filter-options .filter-check {
    min-height: auto;
    border: 0;
    background: transparent;
    padding: 0;
    color: #495057;
}

.freight360-cork-theme .sale-inquiry-filter-options>span {
    padding-left: 10px;
    border-left: 1px solid #e4e6e9;
    color: #878a99;
    font-size: 10px;
}

.freight360-cork-theme .customer-tocly-page table tbody tr {
    transition: background-color .15s ease, box-shadow .15s ease;
}

.freight360-cork-theme .customer-tocly-page table tbody tr:hover {
    background: #f6fbfc;
    box-shadow: inset 3px 0 #0c768a;
}

.freight360-cork-theme .customer-identity-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
}

.freight360-cork-theme .customer-avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(12, 118, 138, .15);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(12, 118, 138, .15), rgba(12, 118, 138, .05));
    color: #0c768a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
}

.freight360-cork-theme .customer-address {
    max-width: 280px;
    margin-top: 2px;
    line-height: 1.35;
}

.freight360-cork-theme .customer-tocly-page .customer-identity-cell strong {
    display: block;
    color: #212529;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
}

.freight360-cork-theme .customer-contact-chip {
    display: inline-flex;
    align-items: center;
    max-width: 230px;
    border: 1px solid #e6e8eb;
    border-radius: 999px;
    background: #f8f9fa;
    color: #586174;
    font-size: 11px;
    padding: 4px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.freight360-cork-theme .customer-contact-chip.phone {
    border-color: rgba(12, 118, 138, .13);
    background: rgba(12, 118, 138, .055);
    color: #0c768a;
}

.freight360-cork-theme .customer-contact-person {
    display: block;
    color: #343a40;
    font-size: 12px;
    font-weight: 500;
}

.freight360-cork-theme .customer-contact-role {
    display: block;
    margin-top: 2px;
    color: #9ba0aa;
    font-size: 10px;
}

.freight360-cork-theme .customer-tocly-page table td:last-child {
    width: 1%;
    white-space: nowrap;
}

.freight360-cork-theme .customer-tocly-page table .action-row {
    padding: 3px;
    border: 1px solid #eff0f2;
    border-radius: 4px;
    background: #f8f9fa;
}

@media (max-width: 1280px) {
    .freight360-cork-theme .sale-inquiry-filter-card .filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .freight360-cork-theme .sale-inquiry-filter-card .filter-actions {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 767px) {
    .freight360-cork-theme .sale-inquiry-filter-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .freight360-cork-theme .sale-inquiry-filter-head .sale-inquiry-add-button {
        width: 100%;
    }

    .freight360-cork-theme .sale-inquiry-filter-card .filter-grid {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .sale-inquiry-filter-card .filter-actions {
        grid-column: auto;
    }

    .freight360-cork-theme .sale-inquiry-filter-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .freight360-cork-theme .sale-inquiry-filter-options>span {
        padding: 0;
        border: 0;
    }
}

.freight360-cork-theme.cork-dark .sale-inquiry-filter-head,
.freight360-cork-theme.cork-dark .sale-inquiry-filter-options {
    border-color: #263247;
    background: #1b2234;
}

.freight360-cork-theme.cork-dark .sale-inquiry-filter-card .filter-button-row,
.freight360-cork-theme.cork-dark .customer-contact-chip,
.freight360-cork-theme.cork-dark .customer-tocly-page table .action-row {
    border-color: #263247;
    background: #20283c;
}

.freight360-cork-theme.cork-dark .customer-tocly-page table tbody tr:hover {
    background: rgba(12, 118, 138, .08);
}

/* Compact Sale Inquiry read-only modal. */
.sales-tocly-workspace .sale-inquiry-view-modal {
    width: min(940px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
}

.sales-tocly-workspace .sale-inquiry-view-modal>.modal-header {
    padding: 11px 15px;
}

.sales-tocly-workspace .sale-inquiry-view-modal>.modal-header h3 {
    font-size: 16px;
}

.sales-tocly-workspace .sale-inquiry-view-modal>.modal-header p {
    font-size: 11px;
}

.sales-tocly-workspace .sale-inquiry-view-modal>.sale-inquiry-view-panel {
    display: grid;
    gap: 9px;
    padding: 11px 14px;
}

.sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero {
    align-items: center;
    min-height: 54px;
    gap: 10px;
    border: 1px solid rgba(12, 118, 138, .13);
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(12, 118, 138, .075), rgba(12, 118, 138, .02));
    padding: 9px 11px;
}

.sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero span {
    color: #74788d;
    font-size: 9px;
    font-weight: 600;
}

.sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero strong {
    margin-top: 2px;
    color: #343a40;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.sales-tocly-workspace .sale-inquiry-view-modal :is(.sale-inquiry-view-card, .sale-inquiry-view-copy) {
    min-height: 48px;
    border: 1px solid #eff0f2;
    border-radius: 4px;
    background: #fbfbfc;
    padding: 7px 9px;
}

.sales-tocly-workspace .sale-inquiry-view-modal :is(.sale-inquiry-view-card, .sale-inquiry-view-copy)>span {
    color: #878a99;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
}

.sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-card strong,
.sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-copy p {
    margin-top: 3px;
    color: #495057;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.35;
}

.sales-tocly-workspace .sale-inquiry-view-modal>.sale-inquiry-view-panel>.modal-grid-two {
    gap: 6px;
}

.sales-tocly-workspace .sale-inquiry-view-modal .modal-section {
    border-radius: 4px;
    padding: 8px 10px;
}

.sales-tocly-workspace .sale-inquiry-view-modal .modal-section-head {
    margin-bottom: 6px;
}

.sales-tocly-workspace .sale-inquiry-view-modal .modal-section-head h4 {
    font-size: 12px;
}

.sales-tocly-workspace .sale-inquiry-view-modal .modal-section-head p {
    margin-top: 1px;
    font-size: 10px;
}

.sales-tocly-workspace .sale-inquiry-view-modal .sale-status-log {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-height: 150px;
    overflow: auto;
}

.sales-tocly-workspace .sale-inquiry-view-modal .sale-status-log-item {
    border: 1px solid #eff0f2;
    border-radius: 4px;
    background: #fbfbfc;
    padding: 7px 9px;
    font-size: 10.5px;
}

.sales-tocly-workspace .sale-inquiry-view-modal .sale-status-log-item strong {
    font-size: 11px;
}

.sales-tocly-workspace .sale-inquiry-view-modal .modal-actions {
    bottom: -11px;
    margin: 0 -14px -11px;
    padding: 8px 14px;
}

@media (max-width: 900px) {
    .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .sales-tocly-workspace .sale-inquiry-view-modal {
        width: 100%;
        max-height: 94vh;
    }

    .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-grid,
    .sales-tocly-workspace .sale-inquiry-view-modal .sale-status-log {
        grid-template-columns: 1fr;
    }

    .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-card.wide {
        grid-column: auto;
    }
}

.freight360-cork-theme.cork-dark .sales-tocly-workspace .sale-inquiry-view-modal :is(.sale-inquiry-view-hero, .sale-inquiry-view-card, .sale-inquiry-view-copy, .sale-status-log-item) {
    border-color: #263247;
    background: #20283c;
}

.freight360-cork-theme.cork-dark .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero strong {
    color: #f1f3f5;
}

/* Refined typography and alignment for the Sale Inquiry detail view. */
.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal {
    width: min(880px, calc(100vw - 40px));
    font-size: 12px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal>.modal-header h3 {
    color: #2f3542;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal>.modal-header p {
    max-width: 560px;
    color: #8a909f;
    font-size: 10.5px;
    line-height: 1.4;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero {
    min-height: 62px;
    padding: 10px 12px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero>div {
    min-width: 0;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero strong {
    overflow: hidden;
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero small {
    display: block;
    max-width: 680px;
    margin-top: 2px;
    overflow: hidden;
    color: #74788d;
    font-size: 10.5px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-status-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 8px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 -2px;
    padding: 0 2px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-section-title h4 {
    margin: 0;
    color: #343a40;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-section-title p {
    margin: 1px 0 0;
    color: #9297a3;
    font-size: 9.5px;
    line-height: 1.35;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-section-title>span {
    border: 1px solid rgba(12, 118, 138, .14);
    border-radius: 999px;
    background: rgba(12, 118, 138, .06);
    color: #0c768a;
    font-size: 9.5px;
    font-weight: 600;
    padding: 4px 7px;
    white-space: nowrap;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-section-title.compact {
    margin-top: 3px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 46px;
    padding: 7px 9px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-card>span,
.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-copy>span {
    color: #9297a3;
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .055em;
    line-height: 1.25;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-card strong,
.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-copy p {
    overflow-wrap: anywhere;
    color: #404756;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.35;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-copy {
    min-height: 54px;
    padding: 8px 10px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .modal-section-head h4 {
    color: #343a40;
    font-size: 11.5px;
    font-weight: 600;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-status-log-item {
    color: #5d6472;
    font-size: 9.5px;
    line-height: 1.4;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-status-log-item strong {
    display: block;
    margin-bottom: 2px;
    color: #404756;
    font-size: 10px;
    font-weight: 600;
}

@media (max-width: 760px) {
    .freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-grid {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-card.wide {
        grid-column: auto;
    }
}

.freight360-cork-theme.cork-dark .sales-tocly-workspace .sale-inquiry-view-section-title h4,
.freight360-cork-theme.cork-dark .sales-tocly-workspace .sale-inquiry-view-modal .sale-status-log-item strong {
    color: #e9ecef;
}

/* Distinct Customer / Enquiry / Status fields in the inquiry header. */
.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 7px;
    border: 0;
    background: transparent;
    padding: 0;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-hero-field,
.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-hero-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 54px;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    background: #fbfbfc;
    padding: 8px 10px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero :is(.sale-inquiry-hero-field, .sale-inquiry-hero-status)>span {
    display: block;
    margin-bottom: 3px;
    color: #9297a3;
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .055em;
    line-height: 1.2;
    text-transform: uppercase;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-hero-field>strong {
    display: block;
    overflow: visible;
    margin: 0;
    color: #404756;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-hero-field.customer>strong {
    color: #2f3542;
    font-size: 11px;
    font-weight: 600;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-hero-status {
    align-items: flex-start;
    min-width: 104px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-hero-status .sale-status-pill {
    display: inline-flex;
    margin: 0;
    font-size: 9px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-status-activity-modal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    max-height: 170px;
    overflow: auto;
    padding: 3px 4px 0;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-status-activity-modal .sale-status-activity-item {
    min-width: 0;
    padding: 0 0 10px 15px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-status-activity-modal .sale-status-activity-item::before {
    top: 4px;
    width: 6px;
    height: 6px;
    background: #0c768a;
    box-shadow: 0 0 0 2px rgba(12, 118, 138, .13);
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-status-activity-modal .sale-status-activity-item::after {
    border-left-color: rgba(12, 118, 138, .22);
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-status-activity-label {
    color: #404756;
    font-size: 9.5px;
    font-weight: 600;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal :is(.sale-status-activity-date, .sale-status-activity-meta) {
    color: #9297a3;
    font-size: 8.5px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-status-activity-remark {
    display: block;
    margin-top: 3px;
    color: #5f6673;
    font-size: 9px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 650px) {
    .freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-status-activity-modal {
        grid-template-columns: 1fr;
    }
}

.freight360-cork-theme.cork-dark .sales-tocly-workspace .sale-inquiry-view-modal .sale-status-activity-label {
    color: #e1e5eb;
}

@media (max-width: 680px) {
    .freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero {
        grid-template-columns: 1fr 1fr;
    }

    .freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-hero-field.customer {
        grid-column: 1 / -1;
    }
}

@media (max-width: 430px) {
    .freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-hero-field.customer {
        grid-column: auto;
    }
}

.freight360-cork-theme.cork-dark .sales-tocly-workspace .sale-inquiry-view-modal :is(.sale-inquiry-hero-field, .sale-inquiry-hero-status) {
    border-color: #263247;
    background: #20283c;
}

.freight360-cork-theme.cork-dark .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-hero-field>strong {
    color: #dfe3ea;
}

/* Final top-summary type scale; overrides the legacy hero typography. */
.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero :is(.sale-inquiry-hero-field, .sale-inquiry-hero-status) {
    min-height: 52px;
    padding: 7px 9px;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero :is(.sale-inquiry-hero-field, .sale-inquiry-hero-status)>span {
    margin-bottom: 2px;
    font-size: 8.5px !important;
    line-height: 1.15;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero .sale-inquiry-hero-field>strong {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-view-hero .sale-inquiry-hero-field.customer>strong {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
}

.freight360-cork-theme .sales-tocly-workspace .sale-inquiry-view-modal .sale-inquiry-hero-status .sale-status-pill {
    font-size: 9px !important;
    padding: 5px 7px;
}

.freight360-cork-theme.cork-dark .customer-tocly-page .customer-identity-cell strong {
    color: #f1f3f5;
}

.freight360-cork-theme .customer-tocly-page>.panel {
    border: 1px solid #eff0f2;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(56, 65, 74, .06);
}

.freight360-cork-theme .customer-tocly-page>.page-head {
    margin-bottom: 10px;
    padding: 12px 16px;
}

.freight360-cork-theme .customer-tocly-page>.page-head h2 {
    color: #343a40;
    font-size: 18px;
    font-weight: 500;
}

.freight360-cork-theme .customer-tocly-page>.page-head p {
    margin-top: 2px !important;
    font-size: 12px;
}

.freight360-cork-theme .customer-tocly-page>.page-head .badge {
    border: 1px solid rgba(12, 118, 138, .16);
    border-radius: 999px;
    background: rgba(12, 118, 138, .08);
    color: #0c768a;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 8px;
}

.freight360-cork-theme .customer-tocly-page>.panel:not(.page-head) {
    padding: 0;
    overflow: hidden;
}

.freight360-cork-theme .customer-tocly-page>.panel:not(.page-head)>.page-head {
    margin: 0 !important;
    border-bottom: 1px solid #eff0f2;
    padding: 12px 14px;
}

.freight360-cork-theme .customer-tocly-page>.panel:not(.page-head)>.page-head h3 {
    color: #343a40;
    font-size: 15px;
    font-weight: 500;
}

.freight360-cork-theme .customer-tocly-page>.panel:not(.page-head)>.page-head p {
    margin-top: 2px !important;
    font-size: 11px;
}

.freight360-cork-theme .customer-tocly-page .setup-customer-search {
    display: grid;
    grid-template-columns: auto minmax(150px, .5fr) auto minmax(280px, 1fr);
    align-items: end;
    gap: 4px 8px;
    margin: 0;
    border-bottom: 1px solid #eff0f2;
    padding: 10px 14px;
    background: #fbfbfc;
}

.freight360-cork-theme .customer-tocly-page .setup-customer-search>label {
    align-self: center;
    margin: 0;
    color: #495057;
    font-size: 10px;
    font-weight: 500;
}

.freight360-cork-theme .customer-tocly-page .setup-customer-search>div {
    display: flex;
    gap: 6px;
    min-width: 0;
}

.freight360-cork-theme .customer-tocly-page .setup-customer-search :is(input, select) {
    height: 32px;
    min-height: 32px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 5px 9px;
    font-size: 12px;
}

.freight360-cork-theme .customer-tocly-page .setup-customer-search input {
    min-width: 0;
    flex: 1;
}

.freight360-cork-theme .customer-tocly-page .setup-customer-search :is(.btn-primary, .btn-link) {
    min-height: 32px;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
}

.freight360-cork-theme .customer-tocly-page table {
    margin: 0;
}

.freight360-cork-theme .customer-tocly-page table th,
.freight360-cork-theme .customer-tocly-page table td {
    border-color: #eff0f2;
    padding: 10px 12px;
}

.freight360-cork-theme .customer-tocly-page table th {
    background: #f8f9fa;
    color: #878a99;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
}

.freight360-cork-theme .customer-tocly-page table td {
    color: #495057;
    font-size: 12.5px;
}

.freight360-cork-theme .customer-tocly-page table tbody tr:hover {
    background: rgba(12, 118, 138, .025);
}

.freight360-cork-theme .customer-tocly-page table td strong {
    color: #343a40;
    font-weight: 500;
}

.freight360-cork-theme .customer-tocly-page table .action-row {
    gap: 5px;
    flex-wrap: nowrap;
}

.freight360-cork-theme .customer-tocly-page table .small-btn {
    min-height: 28px;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
}

.modal-shell.customer-tocly-workspace {
    padding: 18px;
}

.customer-tocly-workspace .customer-modal-card {
    display: flex;
    flex-direction: column;
    width: min(760px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(30, 32, 37, .18);
    overflow: hidden;
}

.customer-tocly-workspace .customer-modal-card>.modal-header {
    flex: 0 0 auto;
    border-bottom: 1px solid #eff0f2;
    padding: 14px 18px;
}

.customer-tocly-workspace .customer-modal-card .modal-header h3 {
    color: #343a40;
    font-size: 17px;
    font-weight: 500;
}

.customer-tocly-workspace .customer-modal-card .modal-header p {
    margin-top: 2px !important;
    color: #74788d;
    font-size: 12px;
}

.customer-tocly-workspace .customer-modal-card .close-link {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    color: #878a99;
}

.customer-tocly-workspace .customer-modal-card>form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow: auto;
    padding: 14px 18px;
}

.customer-tocly-workspace .customer-modal-card .form-grid {
    gap: 10px 12px;
}

.customer-tocly-workspace .customer-modal-card form label {
    margin-bottom: 4px;
    color: #495057;
    font-size: 11px;
    font-weight: 500;
}

.customer-tocly-workspace .customer-modal-card form :is(input, select, textarea) {
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #495057;
    font-size: 13px;
}

.customer-tocly-workspace .customer-modal-card form :is(input, select) {
    min-height: 34px;
    padding: 6px 10px;
}

.customer-tocly-workspace .customer-modal-card form textarea {
    padding: 8px 10px;
}

.customer-tocly-workspace .customer-modal-card form :is(input, select, textarea):focus {
    border-color: rgba(12, 118, 138, .55);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(12, 118, 138, .1);
}

.customer-tocly-workspace .customer-modal-card .modal-actions {
    position: sticky;
    bottom: -14px;
    z-index: 20;
    margin: 0 -18px -14px;
    border-top: 1px solid #eff0f2;
    background: #fff;
    padding: 10px 18px;
}

.customer-tocly-workspace .customer-modal-card :is(.btn-primary, .btn-link) {
    min-height: 32px;
    border-radius: 4px;
    padding: 6px 11px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .freight360-cork-theme .customer-tocly-page .setup-customer-search {
        grid-template-columns: auto minmax(140px, 1fr);
    }

    .freight360-cork-theme .customer-tocly-page .setup-customer-search>div {
        grid-column: 1 / -1;
    }

    .freight360-cork-theme .customer-tocly-page>.panel:not(.page-head) {
        overflow-x: auto;
    }

    .freight360-cork-theme .customer-tocly-page table {
        min-width: 760px;
    }
}

@media (max-width: 575px) {
    .freight360-cork-theme .customer-tocly-page>.page-head {
        align-items: flex-start;
        padding: 12px;
    }

    .freight360-cork-theme .customer-tocly-page .setup-customer-search {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .customer-tocly-page .setup-customer-search>div {
        grid-column: auto;
        flex-wrap: wrap;
    }

    .freight360-cork-theme .customer-tocly-page .setup-customer-search input {
        flex-basis: 100%;
    }

    .modal-shell.customer-tocly-workspace {
        align-items: flex-end;
        padding: 0;
    }

    .customer-tocly-workspace .customer-modal-card {
        width: 100%;
        max-height: 94vh;
        border-radius: 8px 8px 0 0;
    }

    .customer-tocly-workspace .customer-modal-card>.modal-header,
    .customer-tocly-workspace .customer-modal-card>form {
        padding-left: 12px;
        padding-right: 12px;
    }

    .customer-tocly-workspace .customer-modal-card .form-grid.two {
        grid-template-columns: 1fr;
    }

    .customer-tocly-workspace .customer-modal-card .modal-actions {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

.freight360-cork-theme.cork-dark .customer-tocly-page>.panel,
.freight360-cork-theme.cork-dark .customer-tocly-page .setup-customer-search,
.freight360-cork-theme.cork-dark .customer-tocly-workspace .customer-modal-card,
.freight360-cork-theme.cork-dark .customer-tocly-workspace .customer-modal-card :is(input, select, textarea, .modal-actions) {
    border-color: #263247;
    background: #1b2234;
    color: #c3cbe0;
}

.freight360-cork-theme.cork-dark .customer-tocly-page table th {
    background: #20283c;
}

/* Finance aging workspace — Tocly-aligned report UI. */
.freight360-cork-theme .finance-aging-card {
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.freight360-cork-theme .finance-aging-toolbar,
.freight360-cork-theme .finance-aging-filter-panel,
.freight360-cork-theme .finance-aging-register-head,
.freight360-cork-theme .finance-aging-table-wrap {
    border: 1px solid #eff0f2;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(56, 65, 74, .06);
}

.freight360-cork-theme .finance-aging-toolbar {
    align-items: center;
    margin-bottom: 10px;
    padding: 14px 16px;
}

.freight360-cork-theme .finance-aging-kicker {
    margin-bottom: 4px;
    color: #0c768a;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .08em;
}

.freight360-cork-theme .finance-aging-head h3 {
    color: #343a40;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
}

.freight360-cork-theme .finance-aging-head .muted {
    margin-top: 3px !important;
    color: #74788d !important;
}

.freight360-cork-theme .finance-aging-period {
    min-width: 148px;
    border-left: 3px solid #0c768a;
    border-radius: 4px;
    background: #f8f9fa;
    padding: 9px 12px;
}

.freight360-cork-theme .finance-aging-period span {
    display: block;
    color: #878a99;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-aging-period strong {
    display: block;
    margin-top: 3px;
    color: #343a40;
    font-size: 13px;
    font-weight: 500;
}

.freight360-cork-theme .finance-aging-summary {
    gap: 8px;
    margin-bottom: 10px;
}

.freight360-cork-theme .finance-aging-summary div {
    position: relative;
    min-height: 88px;
    overflow: hidden;
    border: 1px solid #eff0f2;
    border-left: 3px solid #0c768a;
    border-radius: 4px;
    background: #fff;
    padding: 11px 12px;
    box-shadow: 0 1px 2px rgba(56, 65, 74, .04);
}

.freight360-cork-theme .finance-aging-summary .metric-current {
    border-left-color: #34c38f;
}

.freight360-cork-theme .finance-aging-summary .metric-overdue {
    border-left-color: #f46a6a;
}

.freight360-cork-theme .finance-aging-summary .metric-parties {
    border-left-color: #556ee6;
}

.freight360-cork-theme .finance-aging-summary .metric-largest {
    border-left-color: #f1b44c;
}

.freight360-cork-theme .finance-aging-summary span {
    color: #878a99;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
}

.freight360-cork-theme .finance-aging-summary strong {
    margin-top: 5px;
    color: #343a40;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
}

.freight360-cork-theme .finance-aging-summary small {
    margin-top: 4px;
    color: #74788d;
    font-size: 10px;
    line-height: 1.3;
}

.freight360-cork-theme .finance-aging-filter-panel {
    margin-bottom: 10px;
    padding: 12px 16px;
}

.freight360-cork-theme .finance-aging-filter-head,
.freight360-cork-theme .finance-aging-register-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.freight360-cork-theme .finance-aging-filter-head {
    margin-bottom: 9px;
}

.freight360-cork-theme :is(.finance-aging-filter-head, .finance-aging-register-head) h4 {
    margin: 0;
    color: #343a40;
    font-size: 14px;
    font-weight: 500;
}

.freight360-cork-theme .finance-aging-active-filter {
    border-radius: 999px;
    background: rgba(12, 118, 138, .09);
    color: #0c768a;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 600;
}

.freight360-cork-theme .finance-aging-actions {
    width: 100%;
    align-items: stretch;
}

.freight360-cork-theme .finance-aging-filter,
.freight360-cork-theme .finance-aging-share {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.freight360-cork-theme .finance-aging-filter:not(.finance-due-filter) label:first-of-type {
    flex: 1 1 210px;
}

.freight360-cork-theme .finance-aging-filter:not(.finance-due-filter) label:first-of-type input {
    width: 100%;
}

.freight360-cork-theme .finance-aging-filter span,
.freight360-cork-theme .finance-aging-share>span {
    color: #495057;
    font-size: 10px;
    font-weight: 500;
}

.freight360-cork-theme .finance-aging-filter :is(input[type="date"], input[type="text"]) {
    min-width: 150px;
    height: 34px;
    border-color: #ced4da;
    border-radius: 4px;
    font-size: 12px;
}

.freight360-cork-theme .finance-aging-filter :is(input[type="date"], input[type="text"]):focus {
    border-color: rgba(12, 118, 138, .6);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(12, 118, 138, .1);
}

.freight360-cork-theme .finance-aging-actions .btn-link {
    min-height: 34px;
    border-radius: 4px;
    font-size: 11px;
}

.freight360-cork-theme .finance-aging-share {
    flex: 0 0 auto;
    border-left: 1px solid #eff0f2;
    padding-left: 12px;
}

.freight360-cork-theme .finance-aging-buckets {
    gap: 8px;
    margin-bottom: 10px;
}

.freight360-cork-theme .finance-aging-buckets div {
    border: 1px solid #eff0f2;
    border-radius: 4px;
    background: #fff;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(56, 65, 74, .04);
}

.freight360-cork-theme .finance-aging-buckets span {
    color: #878a99;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
}

.freight360-cork-theme .finance-aging-buckets strong {
    margin-top: 4px;
    color: #343a40;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
}

.freight360-cork-theme .finance-aging-buckets small {
    display: block;
    margin-top: 2px;
    color: #878a99;
    font-size: 9px;
}

.freight360-cork-theme .finance-aging-track,
.freight360-cork-theme .finance-aging-exposure {
    display: block;
    overflow: hidden;
    height: 3px;
    margin-top: 8px;
    border-radius: 4px;
    background: #eff0f2;
}

.freight360-cork-theme :is(.finance-aging-track, .finance-aging-exposure) i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #0c768a;
}

.freight360-cork-theme .finance-aging-buckets .is-current i {
    background: #34c38f;
}

.freight360-cork-theme .finance-aging-buckets .is-watch i {
    background: #50a5f1;
}

.freight360-cork-theme .finance-aging-buckets .is-warning i {
    background: #f1b44c;
}

.freight360-cork-theme .finance-aging-buckets .is-danger i {
    background: #f46a6a;
}

.freight360-cork-theme .finance-aging-register-head {
    border-radius: 4px 4px 0 0;
    padding: 11px 14px;
    box-shadow: none;
}

.freight360-cork-theme .finance-aging-register-head p {
    margin: 2px 0 0;
    color: #878a99;
    font-size: 10px;
}

.freight360-cork-theme .finance-aging-register-total {
    color: #878a99;
    font-size: 10px;
}

.freight360-cork-theme .finance-aging-register-total strong {
    margin-left: 5px;
    color: #0c768a;
    font-size: 13px;
    font-weight: 600;
}

.freight360-cork-theme .finance-aging-table-wrap {
    border-top: 0;
    border-radius: 0 0 4px 4px;
}

.freight360-cork-theme .finance-aging-table {
    min-width: 850px;
}

.freight360-cork-theme .finance-aging-table :is(th, td) {
    border-color: #eff0f2;
    padding: 10px 12px;
}

.freight360-cork-theme .finance-aging-table th {
    background: #f8f9fa !important;
    color: #878a99 !important;
    font-size: 10px;
    font-weight: 600 !important;
    letter-spacing: .04em;
}

.freight360-cork-theme .finance-aging-table td {
    color: #495057;
    font-size: 12px;
}

.freight360-cork-theme .finance-aging-table tbody tr:hover {
    background: rgba(12, 118, 138, .025);
}

.freight360-cork-theme .finance-aging-party strong {
    color: #343a40;
    font-size: 12px;
    font-weight: 500;
}

.freight360-cork-theme .finance-aging-party strong a {
    color: inherit;
}

.freight360-cork-theme .finance-aging-party strong a:hover {
    color: #0c768a;
}

.freight360-cork-theme .finance-aging-party small {
    margin-top: 2px;
    color: #878a99;
    font-size: 9px;
}

.freight360-cork-theme .finance-aging-exposure {
    width: 100px;
    margin-top: 6px;
}

.freight360-cork-theme .finance-aging-badge {
    min-height: 40px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .03em;
}

.freight360-cork-theme .finance-aging-total {
    font-weight: 600 !important;
}

.freight360-cork-theme .finance-aging-table tfoot th {
    background: #f8f9fa !important;
    color: #343a40 !important;
    font-weight: 600 !important;
}

.freight360-cork-theme .finance-aging-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 34px 16px;
    text-align: center;
}

.freight360-cork-theme .finance-aging-empty strong {
    color: #343a40;
    font-size: 14px;
    font-weight: 500;
}

.freight360-cork-theme .finance-aging-empty span {
    margin-top: 4px;
    color: #878a99;
    font-size: 11px;
}

.freight360-cork-theme .finance-aging-empty a {
    margin-top: 10px;
    color: #0c768a;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .freight360-cork-theme .finance-aging-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .freight360-cork-theme .finance-aging-buckets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .freight360-cork-theme .finance-aging-actions {
        display: flex;
    }

    .freight360-cork-theme .finance-aging-share {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 650px) {
    .freight360-cork-theme .finance-aging-toolbar {
        display: flex;
        align-items: flex-start;
        padding: 12px;
    }

    .freight360-cork-theme .finance-aging-period {
        min-width: 128px;
    }

    .freight360-cork-theme .finance-aging-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .freight360-cork-theme .finance-aging-filter-panel {
        padding: 12px;
    }

    .freight360-cork-theme .finance-aging-filter-head {
        align-items: flex-start;
    }

    .freight360-cork-theme .finance-aging-actions,
    .freight360-cork-theme .finance-aging-filter,
    .freight360-cork-theme .finance-aging-share {
        display: flex;
        flex-wrap: wrap;
    }

    .freight360-cork-theme .finance-aging-filter label {
        flex: 1 1 100% !important;
    }

    .freight360-cork-theme .finance-aging-filter :is(input[type="date"], input[type="text"]) {
        width: 100%;
    }

    .freight360-cork-theme .finance-aging-filter .btn-link {
        flex: 1 1 calc(50% - 5px);
        justify-content: center;
    }
}

@media (max-width: 440px) {
    .freight360-cork-theme .finance-aging-toolbar {
        display: block;
    }

    .freight360-cork-theme .finance-aging-period {
        margin-top: 10px;
    }

    .freight360-cork-theme .finance-aging-summary,
    .freight360-cork-theme .finance-aging-buckets {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .finance-aging-register-head {
        align-items: flex-start;
    }
}

.freight360-cork-theme.cork-dark :is(.finance-aging-toolbar, .finance-aging-filter-panel, .finance-aging-register-head, .finance-aging-table-wrap, .finance-aging-summary div, .finance-aging-buckets div) {
    border-color: #263247 !important;
    background: #1b2234 !important;
}

.freight360-cork-theme.cork-dark :is(.finance-aging-head h3, .finance-aging-period strong, .finance-aging-summary strong, .finance-aging-buckets strong, .finance-aging-filter-head h4, .finance-aging-register-head h4, .finance-aging-party strong, .finance-aging-empty strong) {
    color: #c3cbe0 !important;
}

.freight360-cork-theme.cork-dark .finance-aging-period,
.freight360-cork-theme.cork-dark .finance-aging-table :is(th, tfoot th) {
    background: #20283c !important;
}

.freight360-cork-theme.cork-dark .finance-aging-share {
    border-color: #263247;
}

.freight360-cork-theme .finance-aging-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.freight360-cork-theme .finance-aging-back {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #495057;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.freight360-cork-theme .finance-aging-back:hover {
    border-color: #0c768a;
    color: #0c768a;
}

.freight360-cork-theme .finance-aging-customer-picker {
    min-width: 230px;
}

.freight360-cork-theme .finance-aging-customer-picker [data-finance-picker-label] {
    width: 100%;
}

.freight360-cork-theme .finance-aging-invoice-table {
    min-width: 1050px;
}

.freight360-cork-theme .finance-aging-bucket-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 999px;
    background: rgba(12, 118, 138, .09);
    color: #0c768a;
    padding: 0 8px;
    font-size: 9px;
    font-weight: 600;
}

.freight360-cork-theme .finance-aging-bucket-badge.is-current {
    background: rgba(52, 195, 143, .12);
    color: #238b68;
}

.freight360-cork-theme .finance-aging-bucket-badge.is-watch {
    background: rgba(80, 165, 241, .12);
    color: #2f7fbd;
}

.freight360-cork-theme .finance-aging-bucket-badge.is-warning {
    background: rgba(241, 180, 76, .16);
    color: #a87316;
}

.freight360-cork-theme .finance-aging-bucket-badge.is-danger {
    background: rgba(244, 106, 106, .13);
    color: #c34d4d;
}

.freight360-cork-theme .finance-aging-paid {
    color: #238b68 !important;
}

@media (max-width: 767px) {
    .freight360-cork-theme .finance-aging-toolbar-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .freight360-cork-theme .finance-aging-back {
        justify-content: center;
    }
}

.freight360-cork-theme.cork-dark .finance-aging-back {
    border-color: #263247;
    background: #20283c;
    color: #c3cbe0;
}

.freight360-cork-theme.cork-dark .finance-aging-customer-picker [data-finance-picker-label] {
    border-color: #263247;
    background: #20283c;
    color: #c3cbe0;
}

/* Finance transaction register: Journal Entry (first transactional page). */
.freight360-cork-theme .finance-transaction-register-head {
    align-items: center;
}

.freight360-cork-theme .finance-transaction-register-head h3 {
    margin: 0;
    color: #343a40;
    font-size: 18px;
    font-weight: 500;
}

.freight360-cork-theme .finance-transaction-register-head .muted {
    margin: 3px 0 0 !important;
    color: #74788d !important;
    font-size: 11px !important;
}

.freight360-cork-theme .finance-transaction-register-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.freight360-cork-theme .finance-transaction-register-filters {
    display: grid;
    grid-template-columns: repeat(2, 154px) minmax(145px, .7fr) minmax(145px, .7fr) minmax(190px, 1fr) minmax(130px, .6fr) auto;
    gap: 10px;
    align-items: end;
    padding: 14px 16px;
    border-top: 1px solid #eff0f2;
    border-bottom: 1px solid #eff0f2;
    background: #fff;
}

.freight360-cork-theme .finance-transaction-register-filters label {
    display: grid;
    gap: 5px;
    margin: 0;
    min-width: 0;
}

.freight360-cork-theme .finance-transaction-register-filters label>span {
    color: #495057;
    font-size: 10px;
    font-weight: 500;
}

.freight360-cork-theme .finance-transaction-register-filters :is(input, select) {
    width: 100%;
    min-height: 36px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 9px;
    background: #fff;
    font-size: 12px;
}

.freight360-cork-theme .finance-transaction-filter-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.freight360-cork-theme .finance-transaction-filter-actions :is(.btn-primary, .btn-link) {
    min-height: 36px;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 10px;
    white-space: nowrap;
}

.freight360-cork-theme .finance-transaction-register-analytics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px;
    background: #f8f9fa;
}

.freight360-cork-theme .finance-transaction-register-analytics article {
    min-height: 82px;
    border: 1px solid #eff0f2;
    border-left: 3px solid #556ee6;
    border-radius: 4px;
    background: #fff;
    padding: 12px;
}

.freight360-cork-theme .finance-transaction-register-analytics article.is-posted {
    border-left-color: #34c38f;
}

.freight360-cork-theme .finance-transaction-register-analytics article.is-amount {
    border-left-color: #0c768a;
}

.freight360-cork-theme .finance-transaction-register-analytics span {
    display: block;
    color: #878a99;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.freight360-cork-theme .finance-transaction-register-analytics strong {
    display: block;
    margin-top: 5px;
    color: #343a40;
    font-size: 17px;
    font-weight: 500;
}

.freight360-cork-theme .finance-transaction-register-analytics small {
    display: block;
    margin-top: 4px;
    color: #74788d;
    font-size: 10px;
}

.freight360-cork-theme .finance-transaction-register-table {
    min-width: 1120px;
}

.freight360-cork-theme .finance-transaction-register-table :is(th, td) {
    padding: 10px 12px;
}

.freight360-cork-theme .finance-transaction-identity a,
.freight360-cork-theme .finance-transaction-description strong {
    display: block;
    color: #343a40;
    font-size: 12px;
    font-weight: 500;
}

.freight360-cork-theme .finance-transaction-identity a:hover {
    color: #0c768a;
}

.freight360-cork-theme :is(.finance-transaction-identity, .finance-transaction-description) small {
    display: block;
    margin-top: 3px;
    max-width: 320px;
    color: #878a99;
    font-size: 9px;
    line-height: 1.35;
}

.freight360-cork-theme .finance-transaction-line-count {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(85, 110, 230, .1);
    color: #556ee6;
    padding: 4px 8px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.freight360-cork-theme .finance-transaction-amount {
    color: #0c768a !important;
    font-weight: 600;
    white-space: nowrap;
}

@media(max-width:1250px) {
    .freight360-cork-theme .finance-transaction-register-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .freight360-cork-theme .finance-transaction-filter-actions {
        grid-column: span 3
    }

    .freight360-cork-theme .finance-transaction-register-analytics {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:700px) {
    .freight360-cork-theme .finance-transaction-register-head {
        align-items: flex-start
    }

    .freight360-cork-theme .finance-transaction-register-actions {
        width: 100%;
        justify-content: flex-start
    }

    .freight360-cork-theme .finance-transaction-register-filters {
        grid-template-columns: 1fr
    }

    .freight360-cork-theme .finance-transaction-filter-actions {
        grid-column: auto
    }

    .freight360-cork-theme .finance-transaction-register-analytics {
        grid-template-columns: 1fr
    }
}

.freight360-cork-theme.cork-dark :is(.finance-transaction-register-filters, .finance-transaction-register-analytics, .finance-transaction-register-analytics article) {
    border-color: #263247;
    background: #1b2234;
    color: #c3cbe0
}

.freight360-cork-theme.cork-dark .finance-transaction-register-filters :is(input, select) {
    border-color: #263247;
    background: #20283c;
    color: #c3cbe0
}

.freight360-cork-theme.cork-dark :is(.finance-transaction-register-head h3, .finance-transaction-register-analytics strong, .finance-transaction-identity a, .finance-transaction-description strong) {
    color: #c3cbe0
}

.freight360-cork-theme .finance-expense-register-filters {
    grid-template-columns: repeat(2, 145px) repeat(4, minmax(125px, 1fr)) 115px auto;
}

.freight360-cork-theme .finance-transaction-register-filters:not(.finance-expense-register-filters) {
    grid-template-columns: repeat(2, 145px) repeat(4, minmax(125px, 1fr)) 115px auto;
}

.freight360-cork-theme .finance-expense-register-table {
    min-width: 1260px;
}

@media(max-width:1250px) {
    .freight360-cork-theme .finance-expense-register-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:1250px) {
    .freight360-cork-theme .finance-transaction-register-filters:not(.finance-expense-register-filters) {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:700px) {
    .freight360-cork-theme .finance-expense-register-filters {
        grid-template-columns: 1fr
    }
}

@media(max-width:700px) {
    .freight360-cork-theme .finance-transaction-register-filters:not(.finance-expense-register-filters) {
        grid-template-columns: 1fr
    }
}

.freight360-cork-theme .finance-account-create-modal .modal-card {
    width: min(720px, calc(100vw - 32px));
}

.freight360-cork-theme .finance-account-parent-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    background: #f8f9fa;
}

.freight360-cork-theme .finance-account-parent-summary>div {
    min-width: 0;
    border-left: 3px solid #0c768a;
    border-radius: 4px;
    background: #fff;
    padding: 10px 12px;
}

.freight360-cork-theme .finance-account-parent-summary span {
    display: block;
    color: #878a99;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.freight360-cork-theme .finance-account-parent-summary strong {
    display: block;
    margin-top: 5px;
    color: #343a40;
    font-size: 13px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.freight360-cork-theme .finance-account-parent-summary small {
    display: block;
    margin-top: 4px;
    color: #878a99;
    font-size: 9px;
}

.freight360-cork-theme .finance-account-create-modal textarea {
    resize: vertical;
}

@media(max-width:650px) {
    .freight360-cork-theme .finance-account-parent-summary {
        grid-template-columns: 1fr
    }
}

.freight360-cork-theme.cork-dark .finance-account-parent-summary {
    background: #20283c
}

.freight360-cork-theme.cork-dark .finance-account-parent-summary>div {
    background: #1b2234
}

.freight360-cork-theme.cork-dark .finance-account-parent-summary strong {
    color: #c3cbe0
}

.freight360-cork-theme .chart-add-account-trigger {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #22a06b;
    padding: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
}

.freight360-cork-theme .chart-add-account-trigger::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.freight360-cork-theme .chart-add-account-trigger:hover {
    background: transparent;
    color: #168257;
    text-decoration: underline;
}

.freight360-cork-theme.cork-dark .chart-add-account-trigger {
    color: #4ade80;
}

.freight360-cork-theme.cork-dark .chart-add-account-trigger::before {
    background: #e2e8f0;
    color: #111827;
}

.freight360-cork-theme .chart-account-code {
    color: #667085;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    white-space: nowrap;
}

.freight360-cork-theme .chart-account-code.is-group {
    color: #0c768a;
    font-weight: 700;
}

.freight360-cork-theme.cork-dark .chart-account-code {
    color: #94a3b8;
}

.freight360-cork-theme.cork-dark .chart-account-code.is-group {
    color: #67e8f9;
}

/* Final shared report control sizing and typography. */
.freight360-cork-theme .finance-standard-report>.finance-standard-report-filters :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    .finance-picker > input[data-finance-picker-label]) {
    min-height: 36px !important;
    height: 36px;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    background: #fff;
    padding: 6px 10px !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

.freight360-cork-theme .finance-standard-report>.finance-standard-report-filters input[type="date"] {
    width: 154px !important;
    min-width: 154px !important;
    max-width: 154px !important;
}

.freight360-cork-theme .finance-standard-report>.finance-standard-report-filters :is(label, label span) {
    color: #495057;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.freight360-cork-theme .finance-standard-report :is(.ledger-filter-grid, .pl-filter-row) {
    gap: 12px;
    align-items: end;
}

.freight360-cork-theme .finance-standard-report .ledger-report-actions {
    margin-top: 12px;
}

.freight360-cork-theme .finance-standard-report :is(.ledger-action-button, .btn-link, .btn-primary) {
    min-height: 36px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.freight360-cork-theme .finance-standard-report>.finance-standard-report-analytics span {
    color: #878a99;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-standard-report>.finance-standard-report-analytics strong {
    display: block;
    margin-top: 5px;
    color: #343a40;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
}

.freight360-cork-theme .finance-standard-report>.finance-standard-report-analytics small {
    display: block;
    margin-top: 4px;
    color: #74788d;
    font-size: 10px;
    line-height: 1.35;
}

.freight360-cork-theme .finance-standard-report-results :is(table th, table td) {
    padding: 10px 12px;
}

.freight360-cork-theme .finance-standard-report-results table th {
    background: #f8f9fa;
    color: #878a99;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
}

/* Product inventory report */
.freight360-cork-theme .finance-inventory-filters {
    display: grid !important;
    grid-template-columns: 154px 154px minmax(210px, 1fr) minmax(150px, .7fr) minmax(160px, .7fr) auto;
    gap: 12px;
    align-items: end;
}

.freight360-cork-theme .finance-inventory-filters label {
    display: grid;
    gap: 5px;
    margin: 0;
}

.freight360-cork-theme .finance-inventory-filters :is(.finance-picker, input[data-finance-picker-label]) {
    width: 100%;
}

.freight360-cork-theme .finance-inventory-filters .finance-report-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.freight360-cork-theme .finance-inventory-summary-table td:first-child strong {
    display: block;
    color: #343a40;
}

.freight360-cork-theme .finance-inventory-summary-table td:first-child small {
    display: block;
    margin-top: 4px;
}

.freight360-cork-theme .inventory-inflow {
    color: #168257;
}

.freight360-cork-theme .inventory-outflow {
    color: #dc3545;
}

.freight360-cork-theme .finance-inventory-movements>.finance-list-head {
    padding: 14px 16px;
    border-bottom: 1px solid #eff0f2;
}

.freight360-cork-theme .finance-inventory-movements>.finance-list-head h3 {
    margin: 2px 0 0;
    font-size: 15px;
}

.freight360-cork-theme .finance-inventory-movements>.finance-list-head p {
    margin: 4px 0 0;
    font-size: 10px;
}

@media (max-width: 1200px) {
    .freight360-cork-theme .finance-inventory-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .freight360-cork-theme .finance-inventory-filters {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .finance-standard-report>.finance-standard-report-filters input[type="date"] {
        width: 100% !important;
        max-width: none !important;
    }
}

.freight360-cork-theme.cork-dark .finance-standard-report>.finance-standard-report-filters :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    .finance-picker > input[data-finance-picker-label]) {
    border-color: #263247 !important;
    background: #20283c;
    color: #c3cbe0;
}

.freight360-cork-theme.cork-dark .finance-standard-report>.finance-standard-report-analytics strong {
    color: #c3cbe0;
}

@media (max-width: 767px) {
    .freight360-cork-theme .finance-standard-report :is(.ledger-filter-grid, .pl-filter-row) {
        grid-template-columns: 1fr;
    }

    .freight360-cork-theme .finance-standard-report>.finance-standard-report-filters input[type="date"] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* Keep report gutters and section rhythm equal on every side. */
.freight360-cork-theme .finance-aging-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.freight360-cork-theme .finance-aging-card> :is(.finance-aging-head,
    .finance-aging-summary,
    .finance-aging-filter-panel,
    .finance-due-filter,
    .finance-aging-buckets,
    .finance-aging-register-head,
    .finance-aging-table-wrap) {
    margin: 0;
}

.freight360-cork-theme .finance-aging-card>.finance-aging-head,
.freight360-cork-theme .finance-aging-card>.finance-due-filter {
    border: 1px solid #eff0f2;
    border-radius: 4px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(56, 65, 74, .06);
}

.freight360-cork-theme .finance-aging-summary,
.freight360-cork-theme .finance-aging-buckets {
    gap: 16px;
}

.freight360-cork-theme .finance-aging-summary div,
.freight360-cork-theme .finance-aging-buckets div,
.freight360-cork-theme .finance-aging-filter-panel,
.freight360-cork-theme .finance-aging-register-head {
    padding: 16px;
}

.freight360-cork-theme .finance-aging-filter-head {
    margin-bottom: 16px;
}

.freight360-cork-theme .finance-aging-register-head+.finance-aging-table-wrap {
    margin-top: -16px;
}

.freight360-cork-theme .finance-trial-balance-summary {
    gap: 16px;
    padding: 16px;
}

.freight360-cork-theme .finance-trial-balance-summary>div {
    padding: 16px;
}

.freight360-cork-theme .finance-trial-balance-report {
    margin: 0 16px 16px;
}

.freight360-cork-theme .pl-kpi-grid {
    gap: 16px;
    margin: 16px 0;
}

.freight360-cork-theme .pl-kpi-grid>div {
    padding: 16px;
}

.freight360-cork-theme .pl-report-card {
    margin: 0 0 16px;
}

.freight360-cork-theme .balance-sheet-card {
    gap: 16px;
}

.freight360-cork-theme .balance-sheet-summary {
    gap: 16px;
    padding: 0 16px;
}

.freight360-cork-theme .balance-sheet-summary>div {
    padding: 16px;
}

.freight360-cork-theme .balance-sheet-grid {
    gap: 16px;
    padding: 0 16px 16px;
}

@media (max-width: 650px) {
    .freight360-cork-theme .finance-aging-card {
        gap: 12px;
    }

    .freight360-cork-theme .finance-aging-card>.finance-aging-head,
    .freight360-cork-theme .finance-aging-card>.finance-due-filter,
    .freight360-cork-theme .finance-aging-summary div,
    .freight360-cork-theme .finance-aging-buckets div,
    .freight360-cork-theme .finance-aging-filter-panel,
    .freight360-cork-theme .finance-aging-register-head {
        padding: 12px;
    }

    .freight360-cork-theme .finance-aging-summary,
    .freight360-cork-theme .finance-aging-buckets {
        gap: 12px;
    }

    .freight360-cork-theme .finance-aging-filter-head {
        margin-bottom: 12px;
    }

    .freight360-cork-theme .finance-aging-register-head+.finance-aging-table-wrap {
        margin-top: -12px;
    }
}

.freight360-cork-theme.cork-dark .finance-aging-card> :is(.finance-aging-head, .finance-due-filter) {
    border-color: #263247;
    background: #1b2234;
}

/* Due reports keep the heading and filters in one continuous control card. */
.freight360-cork-theme .finance-due-report-card {
    gap: 0;
}

.freight360-cork-theme .finance-due-report-card>.finance-aging-head {
    border-radius: 4px 4px 0 0;
    border-bottom: 0;
    padding-bottom: 0;
    box-shadow: none;
}

.freight360-cork-theme .finance-due-report-card>.finance-aging-head .muted {
    margin: 3px 0 0 !important;
}

/* Colored report actions matching the Tocly sales workspace hierarchy. */
.freight360-cork-theme .finance-report-action {
    border: 1px solid transparent !important;
    color: #fff !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(15, 34, 58, .12);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.freight360-cork-theme .finance-report-action.action-print {
    background: #50a5f1 !important;
}

.freight360-cork-theme .finance-report-action.action-html {
    background: #556ee6 !important;
}

.freight360-cork-theme .finance-report-action.action-excel {
    background: #34c38f !important;
}

.freight360-cork-theme .finance-report-action.action-pdf {
    background: #f46a6a !important;
}

.freight360-cork-theme .finance-report-action:hover {
    color: #fff !important;
    filter: brightness(.93);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(15, 34, 58, .16);
}

.freight360-cork-theme .finance-report-share-trigger,
.freight360-cork-theme .finance-report-row-action {
    border-color: #0c768a !important;
    background: #0c768a !important;
    color: #fff !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(12, 118, 138, .18);
}

.freight360-cork-theme :is(.finance-report-share-trigger, .finance-report-row-action):hover {
    border-color: #0a6374 !important;
    background: #0a6374 !important;
    color: #fff !important;
}

.freight360-cork-theme .finance-standard-report-header-actions,
.freight360-cork-theme .finance-standard-export,
.freight360-cork-theme .finance-standard-export-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.freight360-cork-theme .finance-standard-report-header-actions {
    justify-content: flex-end;
}

.freight360-cork-theme .finance-standard-export>span {
    margin-right: 2px;
    color: #878a99;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.freight360-cork-theme .finance-standard-export .finance-report-action {
    min-width: 58px;
    min-height: 34px;
    justify-content: center;
    border-radius: 4px !important;
    padding: 6px 10px;
    font-size: 10px;
}

.freight360-cork-theme .finance-standard-export [aria-disabled="true"] {
    pointer-events: none;
    opacity: .42;
    filter: grayscale(.4);
    box-shadow: none;
}

@media (max-width: 767px) {

    .freight360-cork-theme .finance-standard-report-header-actions,
    .freight360-cork-theme .finance-standard-export {
        width: 100%;
        justify-content: flex-start;
    }

    .freight360-cork-theme .finance-standard-export-buttons {
        flex: 1 1 auto;
    }
}

.freight360-cork-theme .finance-due-report-card>.finance-due-filter {
    border-radius: 0 0 4px 4px;
    border-top: 0;
    padding-top: 0;
    box-shadow: 0 1px 2px rgba(56, 65, 74, .06);
}

.freight360-cork-theme .finance-due-report-card>.finance-aging-summary {
    margin-top: 16px;
}

.freight360-cork-theme .finance-due-report-card>.finance-aging-table-wrap {
    margin-top: 16px;
}

@media (max-width: 650px) {

    .freight360-cork-theme .finance-due-report-card>.finance-aging-summary,
    .freight360-cork-theme .finance-due-report-card>.finance-aging-table-wrap {
        margin-top: 12px;
    }
}
