/*
 * 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: 24px 26px 34px;
}

.freight360-cork-theme .cork-app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 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 #e0e6ed;
    background: #fff;
    box-shadow: 10px 0 30px rgba(31, 45, 61, 0.04);
    transition: width .18s ease, transform .2s ease;
}

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

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

.freight360-cork-theme .cork-brand-link img {
    width: 42px;
    height: 42px;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    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: 10px;
    padding-right: 10px;
}

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

.freight360-cork-theme.sidebar-collapsed .cork-menu-icon {
    width: 34px;
    height: 34px;
    margin: 0;
    border-color: #dbe4ff;
    border-radius: 11px;
    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: 16px 12px 24px;
}

.freight360-cork-theme .cork-menu-section {
    margin: 16px 10px 8px;
    color: #98a2b3;
    font-size: 11px;
    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: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #3b3f5c;
    text-decoration: none;
    font-size: 13px;
    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 3px 0 0 #4361ee;
}

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

.freight360-cork-theme .cork-menu-group {
    margin: 4px 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 8px 32px;
    padding-left: 10px;
    border-left: 1px dashed #d8e0ea;
}

.freight360-cork-theme .cork-submenu a {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
}

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

.freight360-cork-theme .cork-nested-menu summary {
    min-height: 32px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #0e1726;
    font-size: 12px;
    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[open] summary,
.freight360-cork-theme .cork-nested-menu summary:hover {
    background: #f1f5ff;
    color: #4361ee;
}

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

.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: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 26px;
    border-bottom: 1px solid #e0e6ed;
    background: rgba(255, 255, 255, 0.92);
    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 h1 {
    margin: 0;
    color: #0e1726;
    font-size: 20px;
    font-weight: 800;
}

.freight360-cork-theme .cork-header-left p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 12px;
}

.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: 1px solid #e0e6ed;
    border-radius: 10px;
    background: #fff;
    color: #3b3f5c;
    font-weight: 700;
    cursor: pointer;
}

.freight360-cork-theme .cork-logout-button {
    padding: 0 14px;
    color: #e7515a;
}

.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: 8px;
    padding: 0 14px;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    background: #fff;
    color: #3b3f5c;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

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

.freight360-cork-theme .cork-account-menu[open] summary {
    border-color: rgba(67, 97, 238, 0.28);
    background: #f1f5ff;
    color: #4361ee;
}

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

.freight360-cork-theme .cork-account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1100;
    min-width: 210px;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid #e0e6ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(31, 45, 61, 0.16);
}

.freight360-cork-theme .cork-account-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #3b3f5c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.freight360-cork-theme .cork-account-dropdown a:hover,
.freight360-cork-theme .cork-account-dropdown a.active {
    background: #f1f5ff;
    color: #4361ee;
}

.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 .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 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, 2.4vw, 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 .topbar {
        position: static;
    }
}

.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 .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.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 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: -36px;
    top: -36px;
    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;
}
