:root {
    --primary-color: #d3a444;
    --primary-hover: #b8922a;
    --danger-color: #f1416c;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f8fafc;
    --bg-grey: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    --border-light: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: "Open Sans", "lucida grande", "Segoe UI", arial, verdana, "lucida sans unicode", tahoma, sans-serif;
    background-color: var(--bg-grey);
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

/* Rewrite Defaults */
.btn:hover, .dropdown-item:hover {
    background-color: #eff2f4;
}

.btn:focus {
    box-shadow: none !important;
}

.search-tor-highlights:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
}

/* Spacing */
.w-14 {
    width: 14% !important;
}

.p-6 {
    padding: 1.5rem !important;
}

.p-7 {
    padding: 1.75rem !important;
}

.p-8 {
    padding: 2rem !important;
}

.p-9 {
    padding: 2.25rem !important;
}

.p-10 {
    padding: 2.5rem !important;
}

.p-11 {
    padding: 2.75rem !important;
}

.p-12 {
    padding: 3rem !important;
}

.p-13 {
    padding: 3.25rem !important;
}

.p-14 {
    padding: 3.5rem !important;
}

.p-15 {
    padding: 3.75rem !important;
}

.p-16 {
    padding: 4rem !important;
}

.p-17 {
    padding: 4.25rem !important;
}

.p-18 {
    padding: 4.5rem !important;
}

.p-19 {
    padding: 4.75rem !important;
}

.p-20 {
    padding: 5rem !important;
}

.mt-225 {
    margin-top: 2.25rem;
}

.px-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.px-7 {
    padding-left: 1.75rem !important;
    padding-right: 1.75rem !important;
}

.px-8 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.px-9 {
    padding-left: 2.25rem !important;
    padding-right: 2.25rem !important;
}

.px-10 {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
}

.px-11 {
    padding-left: 2.75rem !important;
    padding-right: 2.75rem !important;
}

.px-12 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

.px-13 {
    padding-left: 3.25rem !important;
    padding-right: 3.25rem !important;
}

.px-14 {
    padding-left: 3.5rem !important;
    padding-right: 3.5rem !important;
}

.px-15 {
    padding-left: 3.75rem !important;
    padding-right: 3.75rem !important;
}

.px-16 {
    padding-left: 4rem !important;
    padding-right: 4rem !important;
}

.px-17 {
    padding-left: 4.25rem !important;
    padding-right: 4.25rem !important;
}

.px-18 {
    padding-left: 4.5rem !important;
    padding-right: 4.5rem !important;
}

.px-19 {
    padding-left: 4.75rem !important;
    padding-right: 4.75rem !important;
}

.px-20 {
    padding-left: 5rem !important;
    padding-right: 5rem !important;
}

@media screen and (min-width: 768px) {
    .p-md-8 {
        padding: 2rem !important;
    }

    .px-md-8 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .m-md-8 {
        margin: 2rem !important;
    }

    .m-md-none {
        margin: 0rem;
    }

    .mx-md-8 {
        margin-left: 2rem !important;
        margin-right: 2rem !important;
    }
}

.py-6 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-7 {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
}

.py-8 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.py-9 {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
}

.py-10 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.py-11 {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
}

.py-12 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.py-13 {
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
}

.py-14 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

.py-15 {
    padding-top: 3.75rem !important;
    padding-bottom: 3.75rem !important;
}

.py-16 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-17 {
    padding-top: 4.25rem !important;
    padding-bottom: 4.25rem !important;
}

.py-18 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

.py-19 {
    padding-top: 4.75rem !important;
    padding-bottom: 4.75rem !important;
}

.py-20 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.mx-8 {
    margin-left: 2rem !important;
    margin-right: 2rem !important;
}

/* Typography */
.fs-085 {
    font-size: 0.85rem;
}

.fs-0875 {
    font-size: 0.875rem;
}

.fs-095 {
    font-size: 0.95rem;
}

.fs-7 {
    font-size: 0.75rem !important;
}

.fs-8 {
    font-size: 0.5rem !important;
}

.fs-9 {
    font-size: 0.25rem !important;
}

.fw-600 {
    font-weight: 600;
}

/* The Rest */
.bg-div-highlight:hover, .bg-div-highlight:focus {
    border-radius: 0.5rem !important;
    background-color: #e9ecef !important;
}

.navbar-user-icon {
    width: 2.5rem;
    height: 2.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    line-height: 1.9rem;
    color: white;
}

.navbar-user-icon-dropdown-menu {
    font-size: 0.9rem !important;
}

.tor-text-primary {
    color: var(--primary-color) !important;
}

.text-hover-primary:hover {
    color: var(--primary-color) !important;
}

.sidebar-dropdown-menu {
    position: unset !important;
    transform: none !important;
    border: none;
    background-color: unset;
}

.tor-dropdown-menu-scrollable {
    max-height: 230px;
    overflow-y: auto;
}

.tor-bg-primary {
    background-color: var(--primary-color) !important;
}

.tor-bg-info {
    background-color: #fff8c6 !important;
}

.tor-link-normal-primary:hover {
    color: white;
    background-color: var(--primary-color);
}

.tor-link-normal-primary.active,
.tor-link-normal-primary:active {
    color: #fff;
    background-color: var(--primary-color);
}

.tor-link-primary {
    text-decoration: none;
    color: var(--primary-color);
}

    .tor-link-primary:hover, .tor-link-primary:focus {
        text-decoration: none;
        color: #b37800;
    }

.tor-btn-outline-collapsible {
    border-color: #ccc;
    color: #595959;
}

    .tor-btn-outline-collapsible:hover, .tor-btn-outline-collapsible:focus {
        color: #595959;
        background-color: #f5f5f5;
        border-color: #ccc;
    }

.tor-btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .tor-btn-primary:hover, .tor-btn-primary:focus {
        color: #fff;
        background-color: #b37800;
        border-color: #b37800;
    }

.tor-btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .tor-btn-outline-primary:hover, .tor-btn-outline-primary:focus {
        color: #fff;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.tor-btn-secondary {
    color: #fff;
    background-color: #aaa;
    border-color: #aaa;
}

    .tor-btn-secondary:hover, .tor-btn-secondary:focus {
        color: #fff;
        background-color: #888;
        border-color: #888;
    }

.tor-btn-outline-secondary {
    color: #888;
    border-color: #888;
}

    .tor-btn-outline-secondary:hover, .tor-btn-outline-secondary:focus {
        color: #fff;
        background-color: #888;
        border-color: #888;
    }

.tor-btn-suspend {
    color: #fff;
    background-color: #f08130;
    border-color: #f08130;
}

    .tor-btn-suspend:hover, .tor-btn-suspend:focus {
        color: #fff;
        background-color: #d7732b;
        border-color: #d7732b;
    }

.tor-btn-outline-suspend {
    color: #f08130;
    border-color: #f08130;
}

    .tor-btn-outline-suspend:hover, .tor-btn-outline-suspend:focus {
        color: #fff;
        background-color: #f08130;
        border-color: #f08130;
    }

.tor-btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

    .tor-btn-danger:hover, .tor-btn-danger:focus {
        color: #fff;
        background-color: #bb2d3b;
        border-color: #bb2d3b;
    }

.tor-btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

    .tor-btn-outline-danger:hover, .tor-btn-outline-danger:focus {
        color: #fff;
        background-color: #dc3545;
        border-color: #dc3545;
    }

.tor-btn-green {
    color: #fff;
    background-color: #5cc946;
    border-color: #5cc946;
}

    .tor-btn-green:hover {
        color: #fff;
        background-color: #378e26;
        border-color: #378e26;
    }

.tor-btn-info {
    color: #fff;
    background-color: #2ab3ce;
    border-color: #2ab3ce;
}

    .tor-btn-info:hover {
        color: #fff;
        background-color: #53a7b7;
        border-color: #53a7b7;
    }

.tor-a-link {
    text-decoration: none;
    color: var(--primary-color);
}

    .tor-a-link:hover {
        text-decoration: none;
        color: #b58c38;
    }

.tor-accordion-highlight.collapsed {
    font-weight: bold;
    color: #595959;
}

.tor-accordion-highlight:not(.collapsed) {
    color: #fff;
    background-color: var(--primary-color);
    font-weight: bold;
}

    .tor-accordion-highlight:not(.collapsed)::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")
    }

.tor-collapsible-highlight {
    cursor: pointer;
    background-color: #fdfdfd;
    color: #595959;
}

#radio-installation-table tbody tr {
    cursor: move;
}

    #radio-installation-table tbody tr td:first-child {
        touch-action: none;
    }

.owner-counter-buttons {
    cursor: pointer;
}

.mod-btn-primary {
    color: #3888ff;
    border-color: #3888ff;
}

    .mod-btn-primary:hover, .mod-btn-primary:focus {
        color: #fff;
        background-color: #3888ff;
        border-color: #0078c8;
    }

.bg-grey-light {
    --bs-bg-opacity: 1;
    background-color: rgb(234, 234, 234) !important;
}

.bg-black-semi-opaque {
    z-index: 1093;
    background-color: black !important;
    opacity: 0.5;
}

.tor-form-check-input {
    /* Need to have the based for the custom :checked to work */
}

    .tor-form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

#navbarUserDropdownMenu > li .dropdown-item:active,
#navbarUserDropdownMenu > li .dropdown-item:focus {
    color: var(--primary-color) !important;
    background-color: #eff2f4;
}

#navbarUserDropdownMenu > li .dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

#navbarUserDropdownMenu[data-bs-popper] {
    min-width: 14rem;
}

#vessel-collapse li, #entities-collapse li,
#finance-collapse li, #crewing-collapse li,
#technical-collapse li, #admin-collapse li,
#settings-collapse li {
    color: #3f4254;
    font-weight: 500;
}

.sidebar-menu-link {
    cursor: pointer;
    display: block;
    text-decoration: none !important;
    font-weight: 600;
    color: #646464;
}

    .sidebar-menu-link:hover {
        text-decoration: none !important;
        color: #fff !important;
        background-color: rgb(211, 164, 68);
    }

.tor-sidebar-dropdown:hover {
    background-color: unset;
}

.tor-sidebar-dropdown::before {
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: 50% 50%;
    margin-right: 0.2rem;
}

.tor-sidebar-dropdown[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

/* View As Sidebar Styles */
.view-as-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.view-as-sidebar:not(.d-none) {
    opacity: 1;
    visibility: visible;
}

.view-as-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1051;
}

.view-as-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: white;
    z-index: 1052;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    width: 420px;
    max-width: 90vw;
}

.view-as-sidebar:not(.d-none) .view-as-panel {
    transform: translateX(0);
}

.view-as-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.view-as-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.view-as-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.view-as-subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.view-as-close-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-as-close-btn:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.view-as-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.view-as-search-container {
    margin-bottom: 1rem;
}

.view-as-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.view-as-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 164, 68, 0.1);
}

.view-as-users-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.view-as-user-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.view-as-user-item:hover {
    border-color: var(--primary-color);
    background: #fefdf8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-as-user-item.hidden {
    display: none;
}

.view-as-user-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.view-as-user-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.view-as-user-details {
    flex: 1;
    min-width: 0;
}

.view-as-user-email {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
    word-break: break-all;
    line-height: 1.3;
}

.view-as-user-role {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.view-as-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .view-as-panel {
        width: 100%;
        max-width: 100vw;
    }
    
    .view-as-header {
        padding: 1rem;
    }
    
    .view-as-body {
        padding: 1rem;
    }
    
    .view-as-title {
        font-size: 1.125rem;
    }
    
    .view-as-user-item {
        padding: 0.875rem;
    }
    
    .view-as-user-email {
        font-size: 0.8125rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .view-as-panel {
        width: 380px;
    }
}

/* Large desktop adjustments */
@media (min-width: 1400px) {
    .view-as-panel {
        width: 480px;
    }
}

#dynamicMenuSwitch.form-check-input:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.25);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
}

#dynamicMenuSwitch.form-check-input:checked {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.tor-required::after {
    content: "*";
    position: relative;
    font-size: inherit;
    color: #f1416c;
    padding-left: .25rem;
    font-weight: 700;
}

.tor-check-input:checked {
    background-color: #ca9d42;
    border-color: #ca9d42;
}

/* 
    Accounts - New Sign-Ups, Team Console, Customers Console, Gov Console 
    Settings - AAIC, P&I Insureres, Flag Contacts, Billing
*/
.dataTables_filter .form-control[type="search"]:focus {
    box-shadow: white 0px 0px 0px 0.1rem, var(--primary-color) 0px 0px 0px 0.25rem;
}

.dataTables_paginate .pagination .active .page-link {
    color: #FFF;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.dataTables_paginate .pagination .disabled .page-link {
    color: #6c757d;
}

.dataTables_paginate .pagination .page-link {
    color: var(--primary-color);
}

    .dataTables_paginate .pagination .page-link:focus {
        box-shadow: none;
    }

.dataTable .edit-user {
    margin: 0.5rem 0.5rem 0.5rem 0;
}

.dataTable .delete-user {
    margin: 0.5rem 0 0.5rem 0;
}

    .dataTable .edit-user:hover, .dataTable .delete-user:hover {
        cursor: pointer;
    }

.dataTable .icon-action {
    cursor: pointer;
}

.toast-success {
    background-color: #aaf0aa !important;
    color: #424242 !important;
}

.toast-fail {
    color: #842029 !important;
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
}

#relationUpdateSuccessCard.bg-success,
.deleteTeamUserCard.bg-success,
.successDeleteCard.bg-success,
.successUpdateCard.bg-success,
#infoUpdateCard.bg-success {
    background-color: #aaf0aa !important;
}

#relationUpdateSuccessCard .card-text,
.deleteTeamUserCard .card-text,
.successDeleteCard .card-text,
.successUpdateCard .card-text,
#infoUpdateCard .card-text,
#infoUpdateCard .card-text li {
    color: #424242;
}

.tor-bg-warning {
    background-color: rgb(253, 250, 200);
    border-color: #cca300 !important;
}

    .tor-bg-warning > .card-header {
        border-color: #cca300;
    }

.nsu-username-link {
    color: #b37800;
    text-decoration: none;
}

    .nsu-username-link:hover {
        color: var(--primary-color);
    }

/* For Edit page
    Accounts - New Sign-Ups, Team Console, Customers Console, Gov Console
    Settings - AAIC
*/
#tmActionForm .btn-secondary,
#nsuActionForm .btn-secondary,
#cmActionForm .btn-secondary,
#tuvGovActionForm .btn-secondary,
#ceActionForm .btn-secondary,
#editAaicActionForm .btn-secondary,
#addAaicActionForm .btn-secondary,
#updateProfileCancel {
    background-color: #aaa;
    border-color: #aaa;
}

    #tmActionForm .btn-secondary:hover,
    #nsuActionForm .btn-secondary:hover,
    #cmActionForm .btn-secondary:hover,
    #tuvGovActionForm .btn-secondary:hover,
    #ceActionForm .btn-secondary:hover,
    #editAaicActionForm .btn-secondary:hover,
    #addAaicActionForm .btn-secondary:hover,
    #updateProfileCancel:hover {
        background-color: #888;
    }

#tmActionForm .btn-danger:hover,
#nsuActionForm .btn-danger:hover,
#cmActionForm .btn-danger:hover,
#tuvGovActionForm .btn-danger:hover,
#ceActionForm .btn-danger:hover,
#editAaicActionForm .btn-danger:hover,
#addAaicActionForm .btn-danger:hover {
    background-color: #bb2d3b;
}

#tmActionForm .btn-primary:hover,
#nsuActionForm .btn-primary:hover,
#cmActionForm .btn-primary:hover,
#tuvGovActionForm .btn-primary:hover,
#ceActionForm .btn-primary:hover,
#editAaicActionForm .btn-primary:hover,
#addAaicActionForm .btn-primary:hover {
    background-color: #0b5ed7;
}

.table-list-custom {
    margin: 0;
    padding-left: 0.5rem;
}

.clickable-svg-table {
    cursor: pointer;
}

.main-text-highlight {
    color: #6c757d !important;
    font-weight: bold;
}

/* Start::Sizing Not In Bootstrap*/
@media (max-width: 575.99px) {
    .w-xs-70 {
        width: 70% !important;
    }

    .w-sm-100 {
        width: 100%
    }

    .select-form-custom {
        width: 100%;
    }
}

@media (min-width: 576px) {
    .w-sm-45 {
        width: 45% !important;
    }
}

@media (min-width: 768px) {
    .w-md-35 {
        width: 35% !important;
    }
}

@media (min-width: 992px) {
    .w-lg-16 {
        width: 16% !important;
    }

    .w-lg-25 {
        width: 25% !important;
    }

    .w-lg-31 {
        width: 31% !important;
    }
}

@media (min-width: 1200px) {
    .w-xl-22 {
        width: 22% !important;
    }

    .w-xl-24 {
        width: 24% !important;
    }
}

@media (min-width: 1400px) {
    .w-xxl-17 {
        width: 17% !important;
    }
}
/* End::Sizing Not In Bootstrap*/

/* Start::Vessel Registration */
.remove-ops-enp-field, .remove-crew-enp-field,
.remove-tech-enp-field, .remove-primary-cso-email-field,
.remove-second-cso-email-field, .remove-manager-email-field,
.remove-primary-dpa-email-input-field, .remove-second-dpa-email-input-field,
.remove-billing-email-field, .remove-owner-email-field-btn,
.remove-bbc-email-field, .remove-email-field,
.remove-imo-enp-field, .remove-itu-enp-field {
    cursor: pointer;
    color: #ff6363;
    font-weight: bold;
    background-color: #ffe6e6;
}

.file-item {
    background-color: #f0f0f0;
}

.file-remove {
    cursor: pointer;
}

.upload-file-btn {
    border-radius: 0.25rem !important;
    background-color: #fff4d6;
}
/* End::Vessel Registration */

/* Start:: Billing */
.new-billing-count {
    font-weight: bold;
    color: gray;
}

.tor-btn-outline-suspend:hover .new-billing-count {
    color: white;
}
/* End:: Billing */

/* View as Ext User*/
.user {
    background: #f9f9f9;
    padding-top: 5px;
    padding-left: 8px;
}

    .user.hidden {
        display: none;
    }

.switch-loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 999999999;
    background: url('../images/loader.gif') 50% 50% no-repeat rgb(249,249,249);
}

/* ===============================================
   SIDEBAR SYSTEM
   =============================================== */

:root {
    --sidebar-width: min(240px, 20vw);
    --sidebar-width-collapsed: 64px;
    --sidebar-mobile-width: min(320px, 85vw);
    --sidebar-bg: #ffffff;
    --sidebar-border: #e5e7eb;
    --sidebar-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sidebar-item-hover: rgba(211, 164, 68, 0.1);
    --sidebar-item-active: var(--primary-color);
    --sidebar-text: #374151;
    --sidebar-text-secondary: #6b7280;
    --sidebar-text-hover: var(--primary-color);
    --sidebar-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-submenu-bg: #f9fafb;
}

/* Sidebar Container */
.modern-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    transition: var(--sidebar-transition);
    position: relative;
    z-index: 10;
}

/* Sidebar Content */
.modern-sidebar-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modern-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    padding: 1rem 0;
}

.modern-sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.modern-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.modern-sidebar-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.modern-sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Navigation Menu */
.modern-nav-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.modern-nav-section {
    margin-bottom: 1.25rem;
}

.modern-nav-section:last-child {
    margin-bottom: 1rem;
}

/* Section Headers */
.modern-nav-header {
    padding: 0.75rem 1.5rem 0.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sidebar-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 1px solid var(--sidebar-border);
    margin-top: 1.5rem;
}

.modern-nav-section:first-child .modern-nav-header {
    border-top: none;
    margin-top: 0;
}

/* Navigation Items */
.modern-nav-item {
    position: relative;
}

.modern-nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1.5rem 0.75rem 0.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--sidebar-transition);
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    border-radius: 0;
    text-align: left;
}

.modern-nav-link:hover {
    background: var(--sidebar-item-hover);
    color: var(--sidebar-text-hover);
    text-decoration: none;
}

.modern-nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    background: var(--sidebar-item-hover);
}

/* Navigation Icons */
.modern-nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown Arrow */
.modern-nav-arrow {
    margin-left: auto;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-nav-arrow::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 4px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform 0.2s ease;
}

.modern-nav-link[aria-expanded="true"] .modern-nav-arrow::before {
    transform: rotate(90deg);
}

/* Submenu */
.modern-nav-submenu {
    background: var(--sidebar-submenu-bg);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), padding 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.modern-nav-submenu.show {
    max-height: 500px;
    padding: 0.5rem 0;
}

.modern-nav-subitem {
    display: block;
    padding: 0.625rem 1.5rem 0.625rem 2.75rem;
    color: var(--sidebar-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: var(--sidebar-transition);
    border-radius: 0;
}

.modern-nav-subitem:hover {
    background: var(--sidebar-item-hover);
    color: var(--sidebar-text-hover);
    text-decoration: none;
}

.modern-nav-subitem:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

/* Active States */
.modern-nav-link.active {
    background: var(--sidebar-item-active);
    color: white;
    font-weight: 600;
}

.modern-nav-link.active:hover {
    background: var(--primary-hover);
    color: white;
}

.modern-nav-subitem.active {
    background: var(--sidebar-item-active);
    color: white;
    font-weight: 600;
}

/* Mobile Sidebar */
@media (max-width: 767.98px) {
    .modern-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: var(--sidebar-mobile-width);
        transform: translateX(-100%);
        z-index: 1050;
        transition: transform 0.3s ease;
    }
    
    .modern-sidebar.show {
        transform: translateX(0);
    }
    
    /* Align with "Navigation" text padding for mobile */
    .modern-nav-link {
        padding: 0.75rem 1.5rem 0.75rem 1rem;
    }
    
    .modern-nav-header {
        padding: 0.75rem 1.5rem 0.5rem 1rem;
    }
    
    .modern-nav-subitem {
        padding: 0.625rem 1.5rem 0.625rem 2.5rem;
    }
    
    .modern-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .modern-sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* Desktop responsive adjustments */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .modern-sidebar {
        width: 240px;
        min-width: 240px;
    }
    
    .modern-nav-link {
        padding: 0.625rem 1rem 0.625rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .modern-nav-subitem {
        padding: 0.5rem 1rem 0.5rem 2.5rem;
        font-size: 0.75rem;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .modern-sidebar {
        width: 320px;
        min-width: 320px;
    }
    
    .modern-nav-link {
        padding: 0.875rem 2rem 0.875rem 0.5rem;
    }
    
    .modern-nav-subitem {
        padding: 0.75rem 2rem 0.75rem 3rem;
    }
}

/* Text overflow handling */
.modern-nav-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Focus and accessibility */
.modern-nav-link:focus-visible,
.modern-nav-subitem:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Footer Styles */
.modern-footer {
    background: #fefefe;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8125rem;
    margin-top: auto;
}

.modern-footer .copyright-text {
    color: #6b7280;
    font-weight: 500;
}

.modern-footer .footer-separator {
    color: #d1d5db;
    margin: 0 0.75rem;
    font-weight: 300;
}

.modern-footer .footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.modern-footer .footer-link:hover {
    color: #b37800;
    text-decoration: none;
}

.modern-footer .footer-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Smooth animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-nav-submenu.show {
    animation: slideDown 0.3s ease;
}

/* Legacy compatibility - hide old sidebar when modern is active */
.modern-layout .sidebar-dropdown-menu {
    display: none;
}

.modern-layout .tor-sidebar-dropdown {
    display: none;
}

/* Reports link specific styling */
.modern-nav-link.reports-link {
    /* No submenu arrow for Reports since it's a direct link */
}

.modern-nav-link.reports-link .modern-nav-arrow {
    display: none;
}

.text-danger {
    color: var(--danger-color) !important;
}
