:root {
    --nci-navy: #141D4B;
    --nci-orange: #FF9D3D;
    --nci-orange-hover: #e88a2d;
    --nci-white: #FFFFFF;
    --nci-dark: #212529;
    --nci-gray: #6c757d;
    --nci-light-gray: #f8f9fa;
    --nci-border: #dee2e6;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--nci-dark);
    font-size: 0.875rem;
}

/* Consistent form elements */
.form-control, .form-select, .bootstrap-select .btn {
    font-size: 0.85rem;
    border-radius: 6px;
    border-color: var(--nci-border);
}
.form-control:focus, .form-select:focus {
    border-color: var(--nci-orange);
    box-shadow: 0 0 0 0.15rem rgba(255, 157, 61, 0.2);
}
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nci-dark);
    margin-bottom: 0.25rem;
}
/* Pagination bar — compact, right-aligned, with summary + page-size selector
   so the bar never stretches full-width or dominates the bottom of the grid. */
.nci-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 6px 0;
}
.nci-pager .nci-pager-summary {
    font-size: 0.78rem;
    color: var(--nci-gray);
    white-space: nowrap;
}
.nci-pager .nci-pager-summary strong { color: var(--nci-dark); }
.nci-pager .nci-pager-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--nci-gray);
}
.nci-pager .nci-pager-size select {
    width: auto;
    min-width: 60px;
    padding: 2px 24px 2px 8px;
    font-size: 0.78rem;
    height: 28px;
}
/* The Bootstrap .pagination inside the pager stays compact. */
.nci-pager .pagination {
    margin: 0;
}
.nci-pager .pagination .page-link {
    font-size: 0.78rem;
    padding: 2px 8px;
    min-width: 28px;
    text-align: center;
}

/* Filter bar field: label stacked above input/select/datepicker.
   Usage: <div class="filter-field"><label>Caption</label>{control}</div> */
.filter-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Cap the per-field width so the toolbar packs more fields per row on
       a 14" laptop (1366×768) before wrapping. Inline style="width:200px"
       in views still overrides this, but the cap kicks in for the many
       call sites that don't set an explicit width. */
    max-width: 200px;
    flex: 0 0 auto;
}
.filter-field > label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.filter-field > .bootstrap-select {
    width: 100% !important;
}
/* On screens narrower than ~1280px (typical 14" laptops at default zoom),
   shrink filter-field default cap so 5–6 fields fit before wrap. Form
   controls inherit the parent width so the visible difference is real. */
@media (max-width: 1280px) {
    .filter-field { max-width: 170px; }
    .filter-field > label { font-size: 0.65rem; }
}

/* bootstrap-select: inside .col-* form columns, force block so label stacks above.
   Outside a .col-* (e.g. filter bars with explicit widths), leave default inline-block. */
[class*="col-"] > .bootstrap-select,
[class*="col-"] .bootstrap-select {
    display: block !important;
    width: 100% !important;
}
.bootstrap-select > .btn {
    padding: 0.3rem 0.65rem;
    background-color: #fff;
    border: 1px solid var(--nci-border);
    box-shadow: none;
    text-align: left;
}
.bootstrap-select > .btn:focus,
.bootstrap-select > .btn:focus-visible {
    border-color: var(--nci-orange);
    box-shadow: 0 0 0 0.15rem rgba(255, 157, 61, 0.2);
    outline: 0;
}
/* Match form-select-sm height when wrapped select was sm */
.bootstrap-select.form-select-sm > .btn {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    min-height: calc(1.5em + 0.5rem + 2px);
}

/* Navbar */
.nci-navbar {
    background-color: var(--nci-white);
    border-bottom: 3px solid var(--nci-orange);
    padding: 0.5rem 2rem;
}
.nci-navbar .nav-link {
    color: var(--nci-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
}
.nci-navbar .nav-link:hover {
    color: var(--nci-orange);
}
.nci-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--nci-navy);
}
.nci-logo-icon {
    color: var(--nci-orange);
    font-size: 2rem;
}

/* Global button rounding */
.btn {
    border-radius: 25px;
}
.btn-sm {
    border-radius: 20px;
}
.btn-lg {
    border-radius: 30px;
}

/* Orange buttons */
.btn-nci {
    background-color: var(--nci-orange);
    border-color: var(--nci-orange);
    color: var(--nci-white);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}
.btn-nci:hover {
    background-color: var(--nci-orange-hover);
    border-color: var(--nci-orange-hover);
    color: var(--nci-white);
}
.btn-nci:disabled, .btn-nci.disabled {
    background-color: var(--nci-orange);
    border-color: var(--nci-orange);
    color: var(--nci-white);
    opacity: 1;
    cursor: not-allowed;
}
.btn-nci-outline {
    border: 2px solid var(--nci-orange);
    color: var(--nci-orange);
    background: transparent;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}
.btn-nci-outline:hover {
    background-color: var(--nci-orange);
    color: var(--nci-white);
}

/* Hero section */
.nci-hero {
    background-color: var(--nci-navy);
    color: var(--nci-white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.nci-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--nci-orange);
    line-height: 1.2;
}
.nci-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

/* Section headings */
.section-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--nci-gray);
    font-weight: 600;
}
.section-heading {
    color: var(--nci-orange);
    font-size: 2rem;
    font-weight: 700;
}

/* Footer */
.nci-footer {
    border-top: 1px solid var(--nci-border);
    padding: 3rem 0 1rem;
}
.nci-footer .footer-heading {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--nci-orange);
    font-weight: 700;
    margin-bottom: 1rem;
}
.nci-footer a {
    color: var(--nci-dark);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
}
.nci-footer a:hover {
    color: var(--nci-orange);
}

/* Newsletter */
.nci-newsletter {
    padding: 2.5rem 0;
    border-bottom: 3px solid var(--nci-orange);
}

/* Tracking input */
.nci-track-input {
    border: 1px solid var(--nci-border);
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
}

/* Location dropdown */
.nci-location-dropdown {
    cursor: pointer;
    font-weight: 500;
    color: var(--nci-dark);
}
.nci-location-dropdown .location-icon {
    color: var(--nci-orange);
}

/* Portal sidebar styles */
.nci-sidebar {
    background-color: var(--nci-navy);
    height: 100vh;
    width: 220px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
}
.nci-sidebar::-webkit-scrollbar { width: 5px; }
.nci-sidebar::-webkit-scrollbar-track { background: transparent; }
.nci-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.nci-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
.nci-sidebar .sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nci-sidebar .sidebar-header h5 {
    color: var(--nci-white);
    margin: 0;
    font-weight: 700;
}
.nci-sidebar .sidebar-header small {
    color: rgba(255,255,255,0.5);
}
.nci-sidebar .nav-section {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1.25rem 0.3rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 0.25rem;
}
.nci-sidebar .nav-section:first-child { border-top: none; margin-top: 0; }
.nci-sidebar .nav-section:hover { color: rgba(255,255,255,0.7); }
.nci-sidebar .nav-section .toggle-icon {
    transition: transform 0.2s;
    font-size: 0.6rem;
}
.nci-sidebar .nav-section[aria-expanded="false"] .toggle-icon,
.nci-sidebar .nav-section.collapsed .toggle-icon { transform: rotate(-90deg); }
.nci-sidebar .sidebar-nav { padding: 0; }
.nci-sidebar .sidebar-nav > a.nav-link { padding: 0.6rem 1.25rem; }
.nci-sidebar .sidebar-nav .collapse a.nav-link,
.nci-sidebar .sidebar-nav .collapsing a.nav-link {
    padding: 0.4rem 1.25rem 0.4rem 2.25rem;
    font-size: 0.85rem;
}
.nci-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nci-sidebar .nav-link:hover,
.nci-sidebar .nav-link.active {
    color: var(--nci-white);
    background-color: rgba(255,255,255,0.05);
    border-left-color: var(--nci-orange);
}
.nci-sidebar .nav-link i {
    width: 24px;
    margin-right: 0.5rem;
    text-align: center;
}
.nci-sidebar-content {
    margin-left: 220px;
    padding: 0;
    min-height: 100vh;
    background: #f4f6f9;
}
.nci-portal-topbar {
    background: var(--nci-white);
    border-bottom: 1px solid var(--nci-border);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.nci-portal-content {
    padding: 1.5rem;
    /* Horizontal scroll when a wide table/form overflows the viewport on
       smaller screens. min-width:0 stops flex/grid children from forcing
       their parents wider than the viewport and hiding the scrollbar. */
    overflow-x: auto;
    min-width: 0;
}

/* ===== Chat-pending bell in the agent topbar =====
   Hydrated live by chat.js — staff see pending chat requests next to
   the user menu and can Accept in a single click without leaving the
   page. Mirrors the data already shown in the floating widget. */
.chat-bell-btn { padding: 0.25rem 0.5rem; position: relative; }
.chat-bell-btn:focus { box-shadow: none; }
.chat-bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}
.chat-bell-ring i { color: #dc3545 !important; animation: chatBellShake 0.9s ease-in-out infinite; }
@keyframes chatBellShake {
    0%,100% { transform: rotate(0); }
    15% { transform: rotate(-18deg); }
    30% { transform: rotate(14deg); }
    45% { transform: rotate(-10deg); }
    60% { transform: rotate(6deg); }
    75% { transform: rotate(-3deg); }
}
.chat-bell-menu {
    border: 1px solid #e9ecef;
    box-shadow: 0 12px 32px rgba(20, 29, 75, 0.18);
    border-radius: 12px;
}
.chat-bell-header {
    background: linear-gradient(135deg, var(--nci-navy, #141D4B) 0%, #1f2960 100%);
    color: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.chat-bell-header a { color: var(--nci-orange, #FF9D3D) !important; font-weight: 600; }
.chat-bell-header a:hover { color: #fff !important; }
.chat-bell-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.15s;
    animation: chatBellSlideIn 0.35s ease-out;
}
.chat-bell-item:last-child { border-bottom: none; }
.chat-bell-item:hover { background: #fff8f0; }
.chat-bell-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--nci-navy, #141D4B);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.85rem;
    flex-shrink: 0;
}
.chat-bell-info { flex: 1; min-width: 0; }
.chat-bell-name {
    font-weight: 600; font-size: 0.85rem;
    color: var(--nci-navy, #141D4B);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-bell-preview {
    font-size: 0.75rem; color: #6c757d;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-bell-time { font-size: 0.7rem; color: #adb5bd; margin-top: 2px; }
.chat-bell-accept {
    background: var(--nci-orange, #FF9D3D);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 4px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
}
.chat-bell-accept:hover { background: #e88a2d; transform: scale(1.04); }
.chat-bell-accept:disabled { background: #adb5bd; cursor: wait; }
@keyframes chatBellSlideIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* bootstrap-select copies the native <select>'s form-select / form-select-sm
   classes onto its own wrapper <div class="dropdown bootstrap-select ...">.
   The wrapper then wears the form-select border+padding+bg AND the inner
   .btn.dropdown-toggle renders with its own btn border, giving every
   .form-select.selectpicker a double-bordered look throughout the app.
   Strip styling from the wrapper so only the inner button renders. */
.bootstrap-select.form-select,
.bootstrap-select.form-select-sm,
.bootstrap-select.form-control,
.bootstrap-select.form-control-sm {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    height: auto !important;
    box-shadow: none !important;
}
.bootstrap-select > .btn.dropdown-toggle {
    /* Make the inner button fill the wrapper cleanly */
    width: 100%;
}

/* Cards */
.nci-card {
    border: 1px solid var(--nci-border);
    border-radius: 8px;
    transition: box-shadow 0.2s;
}
.nci-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.nci-stat-card {
    border: 1px solid var(--nci-border);
    border-radius: 8px;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
}

/* Mega Dropdown */
.mega-dropdown {
    border: 1px solid var(--nci-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.mega-dropdown .dropdown-item {
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
}
.mega-dropdown .dropdown-item:hover {
    background-color: rgba(255,157,61,0.08);
    color: var(--nci-orange);
}

/* Responsive */
/* ── Dual-Language Field Labels ──────────────────────────── */
.nci-field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.4;
}
.nci-field-label .field-primary {
    display: inline;
    color: var(--nci-dark);
}
.nci-field-label .field-english {
    display: inline;
    color: var(--nci-gray);
    font-weight: 400;
    font-size: 0.75rem;
    margin-left: 0.35rem;
}
.nci-field-label .field-english::before {
    content: "(";
}
.nci-field-label .field-english::after {
    content: ")";
}

/* ── Data Grid / Table Styles ──────────────────────────── */
.nci-table {
    font-size: 0.875rem;
}
/* Defensive: any wrapper holding an .nci-table — whether it's Bootstrap's
   .table-responsive, a Manifest's #dvPackages div, or a bare .card-body —
   gets horizontal scroll. Catches the views that forgot to wrap in
   .table-responsive (Manifest packages, billing summary, etc.) so the
   STATUS/Actions columns aren't clipped on a 14" laptop. The selector
   targets the immediate parent of any .nci-table. */
.table-responsive:has(> .nci-table),
div:has(> .nci-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
/* Make the horizontal scrollbar on data tables visibly obvious — Windows'
   default is a 1-pixel auto-hiding bar that's easy to miss, so agents
   reported "scroll isn't working" when actually it was just invisible.
   Force a 12px orange-on-grey scrollbar on the .table-responsive wrapper
   so users can see at a glance there's more content to the right. */
.table-responsive {
    scrollbar-width: auto;
    scrollbar-color: var(--nci-orange) #f0f0f0;
}
.table-responsive::-webkit-scrollbar {
    height: 12px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: var(--nci-orange);
    border-radius: 6px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #e88a2c;
}
.nci-table thead th {
    background-color: var(--nci-navy);
    color: var(--nci-white);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.65rem 0.75rem;
    border: none;
    white-space: nowrap;
}
.nci-table thead th .th-english {
    display: block;
    font-weight: 400;
    font-size: 0.65rem;
    opacity: 0.7;
    text-transform: none;
    letter-spacing: 0;
}
.nci-table tbody td {
    padding: 0.55rem 0.75rem;
    vertical-align: middle;
    border-color: var(--nci-border);
    /* Keep cells single-line by default so the table forces its natural
       width on smaller screens (14" laptops, 1366×768) and the parent
       .table-responsive engages horizontal scroll. Without nowrap the
       browser shrinks columns and wraps text — agents reported "scroll
       isn't working" because the table fit the viewport via wrapping
       instead of overflowing. Apply .wrap to a cell to opt out for long
       descriptions / multiline notes. */
    white-space: nowrap;
}
.nci-table tbody td.wrap,
.nci-table tbody td .wrap {
    white-space: normal;
}
.nci-table tbody tr:hover {
    background-color: rgba(255, 157, 61, 0.05);
}
/* Primary identifier links inside data rows (Receipt #, Sailing #,
   Bill #, Order #) — render as the dark navy text the rest of the row
   uses, with an underline only on hover so the row doesn't look noisy. */
.nci-table a.row-link {
    color: var(--nci-navy);
    text-decoration: none;
    font-weight: 600;
}
.nci-table a.row-link:hover {
    color: var(--nci-orange);
    text-decoration: underline;
}
.nci-table .btn-action {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* Status badges */
.badge-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3em 0.65em;
    border-radius: 3px;
    display: inline-block;
    white-space: nowrap;
    background-color: #6c757d;  /* default fallback so unknown statuses are never invisible */
    color: #fff;
    text-transform: capitalize;
}
/* Green: completed / positive */
.badge-active, .badge-delivered, .badge-completed, .badge-released, .badge-paid,
.badge-paid-delivered, .badge-paid-picked-up, .badge-available-for-collection,
.badge-ready-for-billing, .badge-closed { background-color: #198754; color: #fff; }

/* Orange: pending / waiting / action needed */
.badge-pending, .badge-scheduled, .badge-new, .badge-created, .badge-waiting,
.badge-open, .badge-ready-to-ship, .badge-packed { background-color: var(--nci-orange); color: #fff; }

/* Cyan: processing / stored */
.badge-processing, .badge-received, .badge-stored,
.badge-processing-for-shipping, .badge-processing-at-customs,
.badge-processing-invoice-required, .badge-received-at-dest-warehouse { background-color: #0dcaf0; color: #212529; }

/* Blue: in transit / shipped */
.badge-in-transit, .badge-intransit, .badge-shipped, .badge-loaded,
.badge-in-transit-arrival-processing, .badge-paid-online,
.badge-cargo-release { background-color: #0d6efd; color: #fff; }

/* Red: problem / cancelled */
.badge-cancelled, .badge-deleted, .badge-abandoned-at-customs,
.badge-no-aoa, .badge-no-aoa-no-agent-authorization,
.badge-not-received, .badge-not-received-short-shipped,
.badge-short-shipped, .badge-delivered-short-shipped,
.badge-hold-at-dest-warehouse, .badge-on-hand-hold,
.badge-processing-held-for-inspection, .badge-suspended { background-color: #dc3545; color: #fff; }

/* Purple: warehouse hold / on-hand */
.badge-onhand, .badge-on-hand { background-color: #6f42c1; color: #fff; }

/* Gray: drafts / misc */
.badge-draft, .badge-submitted, .badge-customs-refund,
.badge-resubmitted, .badge-aum { background-color: var(--nci-gray); color: #fff; }

/* Filter bar */
.nci-filter-bar {
    background-color: var(--nci-light-gray);
    border: 1px solid var(--nci-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.nci-filter-bar .form-control,
.nci-filter-bar .form-select {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
}
.nci-filter-bar label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--nci-gray);
    margin-bottom: 0.2rem;
}

/* Page header */
.nci-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--nci-orange);
}
.nci-page-header h4 {
    margin: 0;
    color: var(--nci-navy);
    font-weight: 700;
}
.nci-page-header .page-english {
    color: var(--nci-gray);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* Print styles */
@media print {
    .nci-sidebar, .nci-portal-topbar, .nci-filter-bar,
    .btn, .no-print { display: none !important; }
    .nci-sidebar-content { margin-left: 0 !important; }
    .field-english { display: none !important; }
}

/* Responsive */
@media (max-width: 1199px) {
    .nci-sidebar { width: 200px; }
    .nci-sidebar-content { margin-left: 200px; }
    .nci-sidebar .nav-link { font-size: 0.8rem; padding: 0.35rem 0.75rem; }
    .nci-sidebar .nav-section { font-size: 0.65rem; }
    .nci-portal-content { padding: 1rem; }
}
@media (max-width: 991px) {
    .nci-sidebar { margin-left: -220px; width: 220px; }
    .nci-sidebar.show { margin-left: 0; }
    .nci-sidebar-content { margin-left: 0; }
    .nci-hero h1 { font-size: 2rem; }
}

/* Compact filter bars — prevent wrapping on smaller screens */
.filter-field { min-width: 0; }
.filter-field label { font-size: 0.75rem; white-space: nowrap; }
.filter-field select, .filter-field input { font-size: 0.8rem; }

/* Row action dots - no border, no arrow */
.nci-table .btn-link.text-dark {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.nci-table .dropdown-toggle::after {
    display: none !important;
}

/* Fix dropdown clipping inside tables - use fixed positioning */
.table-responsive {
    overflow: visible;
}
td .dropdown .dropdown-menu {
    position: fixed !important;
    z-index: 1050;
}

/* Consistent action dropdown - all tables */
td .dropdown .btn-action-dots {
    background: none;
    border: none;
    box-shadow: none;
    padding: 2px 6px;
    color: var(--nci-dark);
    font-size: 1rem;
}
td .dropdown .btn-action-dots:hover {
    color: var(--nci-orange);
}
td .dropdown .btn-action-dots::after {
    display: none;
}

/* Localized label hover - show English tooltip */
[data-en] {
    cursor: help;
    border-bottom: 1px dotted rgba(0,0,0,0.2);
}
