﻿/* CSS Variables */
:root {
    /* Table settings */
    --table-cell-gap: 2px;
    --table-cell-padding-vertical: 8px;
    --table-cell-padding-horizontal: 14px;

    /* Font sizes */
    --font-size-input: 14px;
    --font-size-text: 14px;
    --font-size-table-cell: 14px;
    --font-size-label: 14px;

    /* Layout gaps */
    --card-row-gap: 2px;
    --form-row-gap: 2px;
    --form-column-gap: 8px;
}

/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif !important;
    background-color: #F7F6F5B2;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "DM Sans", sans-serif !important;
}

/* Sidebar container */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 264px;
    background-color: #022937;
    border-right: 1px solid #e5e7eb;
    transition: width 0.1s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 32px 16px 8px 16px;
    z-index: 1000;
}

/* Collapsed state */
#sidebar-toggle:checked ~ .sidebar {
    width: 90px;
}

#sidebar-toggle:checked ~ .sidebar .text, #sidebar-toggle:checked ~ .sidebar .user-profile-text-group, #sidebar-toggle:checked ~ .sidebar .icon-vertical-dots {
    display: none;
}

/* Header section */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    height: 33px;
}

.sidebar-header .logo {
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.sidebar-header .logo-icon {
    display: flex;
    align-items: center;
    height: 33px;
}


.sidebar .sidebar-header div.logo {
    width: 168px !important;
    height: 33px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none !important
}

.sidebar .sidebar-header .logo-icon img {
    content: var(--logo-expanded);
    width: 168px !important;
    height: 33px !important;
    transition: none !important;
}

#sidebar-toggle:checked ~ .sidebar .sidebar-header div.logo {
    width: 47px;
    height: 33px;
}

#sidebar-toggle:checked ~ .sidebar .sidebar-header .logo-icon img {
    content: var(--logo-collapsed);
    width: 47px;
    height: 33px;
}

/* Toggle button (hamburger icon) */
.toggle-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin-bottom: 0;
}

    .toggle-btn:hover {
        background-color: #D2D2D240;
    }

#sidebar-toggle:checked ~ .sidebar .toggle-btn {
    display: none;
}

.expand-btn {
    cursor: pointer;
    display: none;
    align-items: center;
    width: 50px;
    height: 36px;
    border-radius: 4px;
    transition: background-color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.expand-btn img {
    width: 30px;
    height: 30px;
}

.expand-btn:hover {
    background-color: #D2D2D240;
}

#sidebar-toggle:checked ~ .sidebar .expand-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#sidebar-toggle:not(:checked) ~ .sidebar .expand-li {
    display: none;
}

.sidebar-expand-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
}

#sidebar-toggle:checked ~ .sidebar .sidebar-expand-icon {
    padding: 20px 0;
}

.sidebar-expand-icon .expand-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    background: #D2D2D240;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .sidebar-expand-icon .expand-btn:hover {
        background: #F7F6F5B2;
        color: #022937;
    }

/* Body section */
.sidebar-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    /* Modern invisible scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.05) transparent;
}

/* More opaque scrollbar when scrolling in Firefox */
.sidebar-body.is-scrolling {
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Webkit browsers (Chrome, Safari, Edge) - thin overlay scrollbar */
.sidebar-body::-webkit-scrollbar {
    width: 6px;
    -webkit-appearance: none;
}

.sidebar-body::-webkit-scrollbar-track {
    background: transparent;
    -webkit-appearance: none;
}

.sidebar-body::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    transition: background-color 0.2s ease;
    -webkit-appearance: none;
}

/* More opaque scrollbar when scrolling */
.sidebar-body.is-scrolling::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
}

.sidebar-body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Remove all scrollbar buttons and corners */
.sidebar-body::-webkit-scrollbar-button,
.sidebar-body::-webkit-scrollbar-button:single-button,
.sidebar-body::-webkit-scrollbar-button:double-button,
.sidebar-body::-webkit-scrollbar-button:vertical:start:decrement,
.sidebar-body::-webkit-scrollbar-button:vertical:start:increment,
.sidebar-body::-webkit-scrollbar-button:vertical:end:decrement,
.sidebar-body::-webkit-scrollbar-button:vertical:end:increment,
.sidebar-body::-webkit-scrollbar-corner {
    display: block;
    height: 0;
    width: 0;
    background: transparent;
    border: 0;
}

/* Gradient overlay at the top of sidebar-body to indicate scrollable content above */
.sidebar-body::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, transparent, rgba(2, 41, 55, 1));
    pointer-events: none;
    z-index: 10;
    display: block;
    margin-bottom: -80px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show top gradient when scrolled down */
.sidebar-body.scrolled-down::before {
    opacity: 1;
}

/* Gradient overlay at the bottom of sidebar-body to indicate scrollable content */
.sidebar-body::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(2, 41, 55, 1));
    pointer-events: none;
    z-index: 10;
    display: block;
    margin-top: -80px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show bottom gradient when there's overflow */
.sidebar-body.has-overflow::after {
    opacity: 1;
}

/* Hide bottom gradient when scrolled to bottom */
.sidebar-body.scrolled-to-bottom::after {
    opacity: 0;
}

.sidebar-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sidebar-body li {
    height: 36px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

#sidebar-toggle:checked ~ .sidebar .sidebar-body li {
    justify-content: center;
}

.sidebar-body a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #F7F6F5B2;
    border-radius: 4px;
    transition: background-color 0.1s;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -2%;
    height: 36px;
    padding: 0 4px;
}

#sidebar-toggle:checked ~ .sidebar li {
    justify-content: center;
}

#sidebar-toggle:checked ~ .sidebar a {
    width: 50px;
    justify-content: center;
}

.sidebar-body a.active {
    background-color: #EE522C;
    color: #ffffff;
}

.sidebar-body a.active .text {
    color: #ffffff;
}

#sidebar-toggle:checked ~ .sidebar .sidebar-body a {
    justify-content: center;
    width: 50px;
}

.sidebar-body a:hover {
    background-color: #D2D2D240;
    color: #FFFFFF;
    text-decoration: none;
}

.sidebar-body a:visited, .sidebar-body a:active, .sidebar-footer a:visited, .sidebar-footer a:active {
    text-decoration: none;
    color: #F7F6F5B2;
}

.sidebar-body .icon, .sidebar-footer .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sidebar-body .text, .sidebar-footer .text {
    margin-left: 8px !important;
    opacity: 0;
    transition: opacity 0.15s ease 0.3s;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.sidebar-body .text {
    color: #F7F6F5B2;
}

.sidebar-footer .text {
    color: #ffffff;
}

#sidebar-toggle:not(:checked) ~ .sidebar .sidebar-body .text {
    opacity: 1;
}

#sidebar-toggle:checked ~ .sidebar .sidebar-body .text {
    opacity: 0;
    transition: opacity 0.15s ease 0s;
}

/* Footer section */
.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    position: relative;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #374151;
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sidebar-footer .icon {
    width: 40px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.icon-vertical-dots {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-color: #FFFFFF14;
}

.sidebar-footer .text {
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.15s ease 0.3s;
}

.sidebar-footer .footnote {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -1%;
    color: #697F87;
    margin: 0 !important;
    padding: 0;
}

.footnote-group {
    gap: 0 !important;
}

#sidebar-toggle:checked ~ .sidebar .footnote-group {
    display: none !important;
}

#sidebar-toggle:not(:checked) ~ .sidebar .sidebar-footer .text {
    opacity: 1;
}

#sidebar-toggle:checked ~ .sidebar .sidebar-footer .text {
    opacity: 0;
    transition: opacity 0.15s ease 0s;
}

.logout-container {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#sidebar-toggle:checked ~ .sidebar .logout-container {
    width: 50px;
    justify-content: center;
}

#sidebar-toggle:checked ~ .sidebar .logout-container .footnote {
    display: none;
}

a#lnkLogout {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    padding: 12px 0px 12px 0px;
    border-radius: 4px;
    transition: background-color 0.1s;
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

a#lnkLogout:hover {
    background-color: #FFFFFF;
    color: #022937;
}

a#lnkLogout:hover .text {
    color: #022937;
}

a#lnkLogout .icon img {
    content: var(--logout-icon);
}

a#lnkLogout:hover .icon img {
    content: var(--logout-icon-hover);
}

a#lnkUserProfile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    align-items: stretch;
    border-top: 1px solid #FFFFFF14;
    border-radius: 0;
    padding: 8px 0px 8px 0px;
}

.user-profile-text-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

#sidebar-toggle:checked ~ .sidebar a#lnkUserProfile {
    border-top: none;
    justify-content: center;
}

.user-profile-text-group .user-profile-text {
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -2%;
    color: #ffffff;
}

.user-profile-text-group .user-profile-subtext {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -1%;
    color: #F7F6F5B2;
}

/* User menu button */
#btnUserMenu {
    cursor: pointer;
}

/* User menu popup */
.user-menu-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 8px;
    right: 8px;
    background-color: #022937;
    border: 1px solid #FFFFFF24;
    border-radius: 8px;
    padding: 8px 0;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.user-menu-popup.show {
    display: block;
}

.user-menu-popup .user-menu-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.1s;
}

.user-menu-item:hover {
    background-color: #FFFFFF14;
}

.user-menu-item.footnote-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    cursor: default;
    border-bottom: 1px solid #FFFFFF14;
    margin-bottom: 4px;
}

.user-menu-item.footnote-item:hover {
    background-color: transparent;
}

#sidebar-toggle:checked ~ .sidebar .user-menu-popup {
    left: 60px;
    right: auto;
    min-width: 200px;
}


/* Top navbar */
.top-navbar {
    position: fixed;
    top: 0;
    left: 264px;
    right: 0;
    height: 84px;
    border-bottom: 1px solid #E8E8E8;
    transition: left 0.1s ease;
    z-index: 100;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding-left: 50px;
    padding-right: 50px;
    background-color: #F3F3F3;
}

.top-warning-banner {
    position: fixed;
    left: 264px;
    right: 0;
    top: 84px;
    height: 46px;
    z-index: 101;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: darkred;
    color: #ffffff;
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    transition: left 0.1s ease;
}

#sidebar-toggle:checked ~ .top-warning-banner {
    left: 90px;
}

.top-navbar .nav-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.nav-group.right-justified {
    justify-content: flex-end;
}

#sidebar-toggle:checked ~ .top-navbar {
    left: 90px;
}

.form-container {
    min-height: 100vh;
}

#sidebar-toggle:checked ~ .main-content {
    padding-left: 150px;
}

/* Adjust main-content padding when warning banner is visible */
.top-warning-banner:not([style*="display:none"]):not([style*="display: none"]) ~ .main-content {
    padding-top: 145px;
}

.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 99px 60px 30px 324px;
    gap: 12px;
    transition: padding-top 0.3s ease, margin-left 0.1s ease;
}

.hidden {
    display: none;
}

.top-navbar h2 {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

.top-navbar label {
    color: #7F7F7F;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}

.top-navbar select {
    background-color: #FFFFFF !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 16px;
}

.top-navbar button, .top-navbar input[type="submit"] {
    border-radius: 8px;
    padding: 12px 24px;
    color: #ffffff;
    background-color: #022937;
    border-style: none;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-navbar button img {
    vertical-align: middle;
}

input[type="submit"].button-carrier-tools,
button.button-carrier-tools {
    background-color: #022937;
}

input[type="submit"].button-client-portal,
button.button-client-portal {
    background-color: #EE522C;
}

.input-group-horizontal {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

    .input-group-horizontal .input-label {
        margin-bottom: 0;
        width: fit-content;
    }

/* Page Title */
h1.page-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: -2%;
    margin-top: 0px;
    margin-bottom: 0px;
    color: #022937;
}

/* Card Component */
.card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 12px 16px 0 #4C67640D;
    padding: 20px 24px 28px 24px;
    gap: 12px;
}

.card-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #F3F3F3;
    padding-bottom: 12px;
    width: 100%;
}

.card-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #022937;
}

.card-subtitle {
    font-weight: 400;
    font-size: 14px;
    color: #525256;
    line-height: 20px;
    letter-spacing: -2%;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: var(--card-row-gap);
    width: 100%;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    width: 100%;
    grid-gap: var(--form-row-gap) var(--form-column-gap);
    align-items: start;
}

/* Form Input Row */
.input-row, .card-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 24px;
}

/* Input Group */
.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.input-label {
    font-size: var(--font-size-label);
    font-weight: 400;
    line-height: 20px;
    color: #000000;
    padding: 0 0 4px 0;
    letter-spacing: -2%;
}

.input-label-large {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

/* Text Input */
.input-text {
    border-radius: 4px;
    border: 1px solid #CFD3D4;
    padding: 8px 12px;
    font-size: var(--font-size-input);
    color: #022937;
    width: 100%;
    outline: 2px solid transparent;
    transition: outline 0.3s linear;
}

.input-text:focus,
input[type="text"].input-text:focus,
textarea.input-text:focus {
    outline: 2px solid #F7F6F5B2 !important;
    box-shadow: none !important;
}

.input-text:disabled {
    color: #D2D2D2;
}

/* Select/Dropdown */
.input-select {
    background-color: #F3F3F3;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: var(--font-size-input);
    color: #022937;
    outline: 2px solid transparent;
    transition: outline 0.3s;
    width: 100%;
}

.input-select:focus {
    outline: 2px solid #F7F6F5B2 !important;
}

/* Composite Input Box (for date pickers) */
.input-composite-box {
    display: flex;
    flex-direction: row;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #F3F3F3;
    color: #525256;
    font-weight: 500;
    font-size: var(--font-size-input);
    width: 100%;
    align-items: center;
    gap: 8px;
}

.input-composite-box input[type="text"],
.input-composite-box textarea,
.input-composite-box .input-date-box {
    border: none;
    background-color: transparent;
    font-size: var(--font-size-input);
    color: #022937;
    flex: 1;
    outline: none;
}

.icon-calendar {
    cursor: pointer;
    width: 20px;
    height: 20px;
}

/* Buttons */
.input-button {
    border-radius: 8px;
    background-color: #022937;
    color: #ffffff;
    font-weight: 400;
    font-size: var(--font-size-input);
    padding: 8px 14px;
    border-style: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.input-button:hover {
    opacity: 0.9;
}

.input-button:disabled {
    background-color: #D2D2D2;
    cursor: not-allowed;
    opacity: 1;
}

.input-button-primary {
    background-color: #EE522C;
}

.input-button-large {
    padding: 12px 20px;
}

/* Input Message */
.input-message {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #525256;
    padding-top: 8px;
}

.input-message-error {
    color: #EE522C;
}

/* Table/Grid Styles */
table.gridStyle {
    color: black;
    border-style: none;
    background-color: White;
    border-width: 1px;
    font-size: var(--font-size-table-cell);
    width: 100%;
    border-spacing: var(--table-cell-gap);
    border-collapse: separate !important;
}

.gridStyle th, .gridHeader th {
    background-color: #022937;
    font-weight: 500;
    color: #ffffff;
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
    padding: var(--table-cell-padding-vertical) var(--table-cell-padding-horizontal);
    border-style: none;
}

.gridStyle th.primary {
    background-color: #EE522C;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}

.gridStyle th a, .gridStyle th a:visited {
    color: white;
}

.gridStyle td {
    font-size: var(--font-size-table-cell);
    font-weight: 500;
    line-height: 16px;
    color: #022937;
    padding: var(--table-cell-padding-vertical) var(--table-cell-padding-horizontal);
    border-style: none;
}

.gridStyle tr:nth-of-type(odd) {
    background-color: #D2D2D240;
}

.gridStyle tr:nth-of-type(even) {
    background-color: #F7F6F5B2;
}

.gridFooter td {
    color: #022937;
    background-color: #E8E8E8;
    font-weight: 500;
    font-size: var(--font-size-table-cell);
    line-height: 16px;
}

.gridLink {
    color: #022937;
    text-decoration: underline;
}

.gridLink:hover {
    color: #EE522C;
}

/* Carrier cell styling for better text handling */
.carrier-cell {
    display: block;
    max-width: 180px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.error-desc-cell {
    max-width: 120px;
}

.error-desc-text {
    display: block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Checkbox Styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 2px;
    background: #F3F3F3;
    border: 1px solid #999;
    cursor: pointer;
    position: relative;
}

input[type="checkbox"]:checked {
    background-color: #EE522C;
    border-color: #EE522C;
}

input[type="checkbox"]:checked::before {
    content: '';
    display: block;
    width: 7px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 1px;
    left: 5px;
}

/* Tab Panel */
.tab-panel {
    display: flex;
    flex-direction: row;
    gap: 24px;
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
    padding: 20px 24px;
    background-color: #D2D2D240;
    align-items: center;
}

ul.tabs {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 18px;
    padding: 0;
    margin: 0;
}

ul.tabs li {
    list-style: none;
}

.tabs a {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    line-height: 24px;
    color: #878787;
}

.tabs li.active a {
    color: #022937;
    font-weight: 600;
    text-decoration: underline;
}

/* Multiselect Plugin Styling - match input-select */
.ms-parent {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
}

button.ms-choice {
    background-color: #F3F3F3 !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    font-size: var(--font-size-input) !important;
    color: #022937 !important;
    height: auto !important;
    line-height: 20px !important;
    outline: 2px solid transparent;
    transition: outline 0.3s;
    width: 100% !important;
    text-align: left;
    cursor: pointer;
}

button.ms-choice:focus,
button.ms-choice:hover {
    background-color: #E8E8E8 !important;
    outline: 2px solid transparent;
}

button.ms-choice > span {
    position: relative !important;
    padding-left: 0 !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    line-height: 20px;
    display: inline !important;
    overflow: visible !important;
}

button.ms-choice > div {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 13px;
    width: 10px;
    right: 12px;
    /* Data URI of icon-chevron-down.svg from CommonAssets */
    background: url("data:image/svg+xml,%3Csvg width='9' height='5' viewBox='0 0 9 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.951387 0L4.04846 3.09032L7.14553 0L8.09691 0.951387L4.04846 4.99984L0 0.951387L0.951387 0Z' fill='black'/%3E%3C/svg%3E") no-repeat center center !important;
    background-size: contain !important;
}

button.ms-choice > div.open {
    transform: translateY(-50%) rotate(180deg);
}

.ms-drop {
    border: 1px solid #CFD3D4 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin-top: 4px !important;
    background-color: #fff !important;
}

.ms-drop.bottom {
    width: 100% !important;
    min-width: 200px;
}

.ms-drop ul {
    padding: 8px !important;
    max-height: 250px;
}

.ms-drop ul > li {
    padding: 4px 8px !important;
    border-radius: 4px;
    list-style: none !important;
}

.ms-drop ul > li:hover {
    background-color: #F3F3F3 !important;
}

.ms-drop ul > li.selected {
    background-color: transparent;
}

.ms-drop ul > li label {
    font-size: var(--font-size-input) !important;
    font-weight: 400 !important;
    color: #022937 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

.ms-drop ul > li label .msTTCItem {
    font-size: var(--font-size-input);
    color: #022937;
    padding-left: 0 !important;
}

/* Override global checkbox styles for multiselect */
.ms-drop input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin: 0 !important;
    border-radius: 2px !important;
    background: #F3F3F3 !important;
    border: 1px solid #999 !important;
    cursor: pointer;
    position: relative !important;
    flex-shrink: 0;
}

.ms-drop input[type="checkbox"]:checked {
    background-color: #EE522C !important;
    border-color: #EE522C !important;
}

.ms-drop input[type="checkbox"]:checked::before {
    content: '' !important;
    display: block !important;
    width: 5px !important;
    height: 9px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    position: absolute !important;
    top: 1px !important;
    left: 4px !important;
}

.ms-search {
    padding: 8px !important;
    border-bottom: 1px solid #F3F3F3;
}

.ms-search input {
    background-color: #fff !important;
    border: 1px solid #CFD3D4 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-size: var(--font-size-input) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ms-search input:focus {
    outline: 2px solid #F7F6F5B2 !important;
    border-color: #F7F6F5B2 !important;
}

.ms-no-results {
    padding: 8px !important;
    color: #878787 !important;
    font-size: var(--font-size-input) !important;
}

/* Loading Spinner / Update Progress */
.divWaiting {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waitingImg {
    width: 64px;
    height: 64px;
}

.divloading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.divloading img {
    width: 64px;
    height: 64px;
}

/* ========================================
   Carrier/Public User Layout (No Sidebar)
   ======================================== */

.carrier-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: #ffffff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.carrier-top-nav .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #022937;
    width: 264px;
    height: 80px;
    margin-left: -32px;
    margin-top: 0;
    margin-bottom: 0;
}

.carrier-top-nav .carrier-greeting {
    flex-grow: 1;
    padding-left: 40px;
}

.carrier-top-nav .carrier-greeting h2 {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    color: #022937;
}

.carrier-top-nav .carrier-nav-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.carrier-top-nav .button {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.carrier-top-nav .button-secondary {
    background-color: #022937;
    color: #ffffff;
}

.carrier-top-nav .button-secondary:hover {
    background-color: #033a4d;
}

.carrier-top-nav .button-primary {
    background-color: #EE522C;
    color: #ffffff;
}

.carrier-top-nav .button-primary:hover {
    background-color: #d4461f;
}

.carrier-top-nav .button-logout {
    background-color: #6c757d;
    color: #ffffff;
}

.carrier-top-nav .button-logout:hover {
    background-color: #5a6268;
    color: #ffffff;
    text-decoration: none;
}

/* Main content in carrier mode (no sidebar) */
.main-content.carrier-mode {
    margin-left: 0 !important;
    padding: 100px 32px 32px 32px !important;
}

/* Warning banner adjustment for carrier mode */
.carrier-top-nav + .top-warning-banner {
    left: 0;
    top: 80px;
}

.carrier-top-nav + .top-warning-banner + .main-content.carrier-mode {
    padding-top: 146px !important;
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    opacity: 0.75 !important;
    z-index: 9998 !important;
}

.modal-window {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    padding: 0;
    z-index: 9999 !important;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-window iframe {
    display: block;
    border-radius: 8px;
}

.close-window {
    position: absolute !important;
    width: 32px !important;
    height: 32px !important;
    right: -16px !important;
    top: -16px !important;
    cursor: pointer !important;
    background-color: #022937 !important;
    border-radius: 50% !important;
    z-index: 10000 !important;
    display: block !important;
    text-decoration: none !important;
}

.close-window::before,
.close-window::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 3px !important;
    background-color: #fff !important;
}

.close-window::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.close-window::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.close-window:hover {
    background-color: #EE522C !important;
}
/* deployed 1774901973 */
/* v6 */
