.dropdown-menu.show {
    z-index: 1050;
}
/* pretty much the same thing as toast */
/* should probably consolidate */

.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash-message {
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation:
        fadeIn 0.5s ease,
        fadeOut 0.5s ease 3.5s forwards;
    opacity: 1;
    border: 1px solid;
}

.flash-message.success {
    background-color: #d4edda;
    border-color: #155724;
    color: #155724;
}

.flash-message.alert {
    background-color: #fff3cd;
    border-color: #856404;
    color: #856404;
}

.flash-message.error {
    background-color: #f8d7da;
    border-color: #721c24;
    color: #721c24;
}

.flash-message.info {
    background-color: #cce5ff;
    border-color: #004085;
    color: #004085;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.flash-message {
    animation:
        fadeIn 0.5s ease,
        fadeOut 0.5s ease 3.5s forwards;
}
.custom-modal {
    background-color: white;
    border: 1px solid rgba(20, 20, 20, 0.25);
    border-radius: 0.3125rem;
    box-shadow: 0 0 2.5rem rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    padding: 1rem;

    /* Centering the modal */
    position: fixed;
    /* Fixed positioning relative to the viewport */
    top: 50%;
    /* Position the modal halfway down the viewport */
    left: 50%;
    /* Position the modal halfway across the viewport */
    transform: translate(-50%, -50%);
    /* Offset the modal to center it on the page */
    z-index: 1000;
    /* Ensure it's above other content */
}

.custom-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    /* 6px */
}
/* Navbar styling with Inter font - light grey color */
.navbar {
    background-color: #e2e8f0;
    /* Light grey */
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.5rem 1rem;
}

.navbar .navbar-brand {
    color: #2d3748;
    /* Dark grey text for brand */
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    margin-right: 1.5rem;
    letter-spacing: -0.01em;
}

.navbar .navbar-nav .nav-item {
    margin: 0 2px;
}

.navbar .navbar-nav .nav-item .nav-link {
    color: #4a5568;
    /* Medium grey for text */
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.navbar .navbar-nav .nav-item .nav-link:hover {
    color: #2d3748;
    /* Darker on hover */
    background-color: rgba(0, 0, 0, 0.05);
}

.navbar .navbar-nav .nav-item .nav-link.active {
    color: #2d3748;
    /* Dark grey for active state */
    background-color: rgba(0, 0, 0, 0.075);
    font-weight: 600;
}

.navbar .navbar-nav .dropdown-menu {
    background-color: #f7fafc;
    /* Slightly lighter than navbar */
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 0.5rem 0;
}

.navbar .navbar-nav .dropdown-menu .dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    color: #4a5568;
}

.navbar .navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar .navbar-nav .dropdown-menu .dropdown-item:focus {
    background-color: rgba(0, 0, 0, 0.03);
    color: #2d3748;
}

/* Special styling for feedback and logout */
.navbar .navbar-nav:last-child .nav-link.text-primary {
    color: #3182ce !important;
    /* Blue for feedback */
}

.navbar .navbar-nav:last-child .nav-link.text-primary:hover {
    color: #2c5282 !important;
    background-color: rgba(49, 130, 206, 0.05);
}

.navbar .navbar-nav:last-child .btn-outline-secondary {
    border: 1px solid #cbd5e0;
    padding: 0.375rem 1rem;
    color: #4a5568;
}

.navbar .navbar-nav:last-child .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #2d3748;
    border-color: #a0aec0;
}

.nav-tabs .nav-link {
    color: #4a5568;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #2d3748;
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0 #e2e8f0 #dee2e6;
}

.nav-tabs .nav-link.active {
    color: #2d3748;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .navbar .navbar-toggler {
        border-color: rgba(0, 0, 0, 0.1);
    }

    .navbar .navbar-nav {
        padding: 0.5rem 0;
    }

    .navbar .navbar-nav .nav-item {
        margin: 2px 0;
    }

    .navbar .navbar-nav .nav-item .nav-link {
        padding: 0.625rem 1rem;
    }

    .navbar .navbar-nav:last-child {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding-top: 0.75rem;
        margin-top: 0.5rem;
    }
}
.notes-container {
    max-height: 20vh;
    overflow-y: auto;
}

/* Modern minimalist timeline styles */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline-item {
    position: relative;
    padding: 0.5rem 0;
}

/* Timeline marker (dot) */
.timeline-marker {
    position: absolute;
    top: 1.25rem;
    left: -1.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e9ecef;
    z-index: 1;
}

/* Timeline line */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1.1rem;
    width: 1px;
    background-color: #e9ecef;
}

.timeline-content {
    position: relative;
}

.note-body {
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.note-text p {
    margin-bottom: 0.5rem;
}

.note-text p:last-child {
    margin-bottom: 0;
}

.note-meta {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-top: 0.5rem;
}

.time-dot {
    display: inline-block;
    margin: 0 0.25rem;
    color: #ced4da;
}

/* Custom input group with no borders */
.input-group-seamless {
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.input-group-seamless:focus-within {
    background-color: #fff;
    border-color: #dee2e6;
}

.input-group-seamless .form-control {
    background-color: transparent;
}

.input-group-seamless .form-control:focus {
    box-shadow: none;
}

.input-group-seamless .btn-link {
    border-radius: 0 0.25rem 0.25rem 0;
    box-shadow: none;
    padding: 0.25rem 0.75rem;
}

.input-group-seamless .btn-link:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.input-group-seamless .btn-link:focus,
.input-group-seamless .btn-link:active {
    box-shadow: none;
}
.pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pill {
    display: inline-block;
    padding: 5px 10px;
    background-color: #e0e0e0;
    /* light gray */
    border-radius: 15px;
    font-size: 12px;
}
/* Custom styles to match the design */
.custom-tabs {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.nav-pills .nav-link {
    color: #6c757d;
    background-color: transparent;
    border: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0.25rem;
    text-decoration: none;
}

.nav-pills .nav-link button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
}

.nav-pills .nav-link:hover {
    background-color: #e9ecef;
}

.nav-pills .nav-link.active {
    background-color: #ffffff;
    color: #212529;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Remove default Bootstrap focus styles */
.nav-pills .nav-link:focus {
    box-shadow: none;
}

/* Tab content styling */
.tab-content {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
/* Column widths */
.col-status {
    min-width: 100px;
}

.col-ro-number {
    min-width: 130px;
}

.col-ro-rev {
    min-width: 110px;
}

.col-work-order {
    min-width: 100px;
}

.col-ata-code {
    min-width: 100px;
}

.col-qty-sent {
    min-width: 100px;
}

.col-qty-received {
    min-width: 140px;
}

.col-part-description {
    min-width: 300px;
}

.col-part-number {
    min-width: 130px;
}

.col-date-sent {
    min-width: 120px;
}

.col-date-received {
    min-width: 120px;
}

.col-sent-by {
    min-width: 120px;
}

.col-date-promised {
    min-width: 120px;
}

.col-vendor {
    min-width: 180px;
}

.col-work-required {
    min-width: 180px;
    width: 100%;
}

.col-actions {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.table-text {
    font-family: var(--font-family-roboto);
    font-size: var(--table-text-size);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-body);
}

/* Style the DataTables container */
.dataTables_wrapper {
    width: 100%;
    margin: 0 auto;
}

/* Table head styles */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 10px;
}

/* Table head input and select box styles */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: var(--white-color) !important;
}

/* Table head pagination styles */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 0 2px;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
    color: #333;
    background-color: #f9f9f9;
    text-align: center;
    text-decoration: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #e9e9e9;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* Style the table */
.table-component {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table-component th,
.table-component td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table-component thead th {
    vertical-align: bottom;
    background-color: #f8f9fa;
}

.table-component tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075) !important;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    /* Allows table to scroll horizontally on small screens */
}

/* Table row */
table tbody tr.selected-row {
    background-color: var(--tertiary-color) !important;
    color: white !important;
}

.scrapped-row {
    background-color: var(--bg-scrapped) !important;
}

.not-inspected-row {
    background-color: var(--bg-not-inspected) !important;
}

.as-removed-row {
    background-color: var(--bg-as-removed) !important;
}

.serviceable-row {
    background-color: var(--bg-serviceable) !important;
}

.oss-row {
    background-color: var(--bg-oss) !important;
}

.repairable-row {
    background-color: var(--bg-repaired) !important;
}

table,
.table {
    width: 100%;
    max-width: 100vw;
    overflow: scroll;
    border-collapse: collapse;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

table th,
table td,
table .th,
table .td,
.table th,
.table td,
.table .th,
.table .td {
    padding: 8px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th,
table .th,
.table th,
.table .th {
    background-color: var(--white-color);
    color: #333;
    font-weight: bold;
}

table tr:nth-child(even),
.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover,
.table tr:hover {
    background-color: #f1f1f1;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    table th,
    table td,
    .table th,
    .table td {
        padding: 10px 5px;
    }
}

tr[data-controller="clickable-row"] {
    cursor: pointer;
}

/* Table Sorting Styles */
.sortable {
    position: relative;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: #e9ecef;
}

.sortable:hover .sort-icon {
    opacity: 1 !important;
    color: #495057;
}

.sortable .sort-icon {
    display: inline-block;
    font-size: 0.8em;
    color: #6c757d;
    transition: all 0.2s ease;
}

.sortable.sort-asc,
.sortable.sort-desc {
    background-color: #f8f9fa;
}

.sortable.sort-asc .sort-icon,
.sortable.sort-desc .sort-icon {
    color: #495057;
    font-weight: bold;
    opacity: 1 !important;
}
.tooltip-trigger {
  position: relative;
  display: inline-block;
}

.tooltip-content {
  visibility: hidden;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  width: 200px;
  white-space: normal;
  text-align: center;
  z-index: 1000;
}

.tooltip-content.left {
  transform: translateX(-100%);
}

.tooltip-trigger:hover .tooltip-content {
  visibility: visible;
}
#receive-router-task-part-number {
    width: 50%;
}
.new-repair-order-woli {
    margin-bottom: 20px;
}

.new-repair-order-woli table {
    width: 100%;
    border-collapse: collapse;
}

.new-repair-order-woli table th,
.new-repair-order-woli table td {
    border: 1px solid #ddd;
}

.new-repair-order-woli table th {
    font-family: var(--font-family-roboto);
    font-size: var(--label-text-size);
    font-weight: 700;
    line-height: var(--line-height-body);
    background-color: #f2f2f2;
}

.new-repair-order-woli table td {
    padding: 0.2rem;
    font-family: var(--font-family-roboto);
    font-size: 16px;
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-body);
}
.print-repair-order {
    width: 100%;
    max-width: 1080px;
    background-color: var(--white-color);
    height: 100vh;
}

.print-repair-order .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid black;
    padding: 10px;
}

.print-repair-order .header .group {
    display: flex;
    align-items: flex-end;
}

.print-repair-order .header .logo {
    width: 150px;
    margin-right: 1rem;
}

.print-repair-order .header .header-details {
    text-align: left;
}

.print-repair-order .header .text {
    font-family: var(--font-family-roboto);
    font-size: var(--table-text-size);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-body);
}

.print-repair-order .print-repair-order-info {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.print-repair-order .print-repair-order-info .shipping-info {
    width: 43%;
}

.print-repair-order .print-repair-order-info .shipping-details {
    border: 1px solid var(--black-color);
    padding: 10px;
}

.print-repair-order .print-repair-order-info .shipping-notes {
    display: flex;
    height: 2rem;
    align-items: center;
    margin-top: 10px;
    border: 1px solid var(--black-color);
}

.print-repair-order .print-repair-order-info .shipping-title {
    margin-right: 8px;
    background-color: var(--tertiary-color);
    padding: 6px;
}

.print-repair-order .print-repair-order-terms {
    padding: 10px;
    border: 2px solid black;
}

.print-repair-order .print-repair-order-table {
    width: 1000px;
    table-layout: fixed;
    /* Add this line */
    border-collapse: collapse;
    margin: 20px auto;
    font-size: 0.9em;
}

.print-repair-order .print-repair-order-table th,
.print-repair-order .print-repair-order-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
    font-family: var(--font-family-roboto);
    font-size: var(--table-text-size);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-body);
}

.print-repair-order .print-repair-order-table th {
    background-color: var(--secondary-color);
    font-weight: bold;
}

.print-repair-order .print-repair-order-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.print-repair-order .print-repair-order-table th:nth-child(1),
.print-repair-order .print-repair-order-table td:nth-child(1) {
    width: 30px;
}

/* No column */

.print-repair-order .print-repair-order-table th:nth-child(2),
.print-repair-order .print-repair-order-table td:nth-child(2) {
    width: 70px;
}

/* WO# column */

.print-repair-order .print-repair-order-table th:nth-child(3),
.print-repair-order .print-repair-order-table td:nth-child(3) {
    width: 150px;
}

/* Description column */

.print-repair-order .print-repair-order-table th:nth-child(4),
.print-repair-order .print-repair-order-table td:nth-child(4) {
    width: 110px;
}

/* Part No column */

.print-repair-order .print-repair-order-table th:nth-child(5),
.print-repair-order .print-repair-order-table td:nth-child(5) {
    width: 110px;
}

/* Serial No column */

.print-repair-order .print-repair-order-table th:nth-child(6),
.print-repair-order .print-repair-order-table td:nth-child(6) {
    width: 40px;
}

/* Qty column */

.print-repair-order .print-repair-order-table th:nth-child(7),
.print-repair-order .print-repair-order-table td:nth-child(7) {
    width: 80px;
}

/* Unit Cost column */

.print-repair-order .print-repair-order-table th:nth-child(8),
.print-repair-order .print-repair-order-table td:nth-child(8) {
    width: 80px;
}

/* Total Cost column */

.print-repair-order .print-repair-order-table th:nth-child(9),
.print-repair-order .print-repair-order-table td:nth-child(9) {
    width: 340px;
}

/* Works Required column */

.print-repair-order .print-repair-order-footer {
    display: flex;
    justify-content: space-between;
    border: 2px solid black;
    width: 86%;
    margin: 20px auto;
    padding: 10px;
    text-align: left;
}

.print-repair-order .print-repair-order-footer-info {
    width: 40%;
    text-align: left;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* CSS Custom Properties (variables) */
:root {
    /* Colors */
    --primary-color: #274c77;
    --secondary-color: #6096ba;
    --tertiary-color: #a3cef1;
    --neutral-color: #ced4da;
    --neutral-muted-color: #dee2e6;
    --neutral-off-white-color: #e9ecef;
    --white-color: #ffffff;
    --black-color: #000000;
    --error-color: #dc3545;
    --error-glow: rgba(220, 53, 69, 0.25);

    /* Table font colors */
    --color-danger: #721c24;
    --color-light: #343a40;
    --color-dark: #000;

    /* Table background colors */
    --bg-scrapped: #d7706c;
    --bg-not-inspected: #ffffff;
    --bg-as-removed: #d6fefe;
    --bg-serviceable: #b1fca3;
    --bg-oss: #ffff7f;
    --bg-repaired: #f7ce46;
    --bg-done: #b1fca3;
    --bg-selected: gray;

    /* Fonts */
    --font-family-roboto: "Roboto", sans-serif;
    --font-family-roboto-condensed: "Roboto Condensed", sans-serif;
    --font-family-roboto-serif: "Roboto Serif", serif;
    --font-family-roboto-mono: "Roboto Mono", monospace;

    /* Font weights */
    --font-weight-bold: 700;
    --font-weight-normal: 400;

    /* Line heights */
    --line-height-heading: 1.4;
    --line-height-body: 1.5;

    /* Heading sizes */
    --heading1-size: 28px;
    --heading2-size: 24px;
    --heading3-size: 20px;
    --heading4-size: 18px;
    --heading5-size: 14px;

    /* Table text */
    --table-text-size: 12px;

    /* Description */
    --description-text-size: 16px;

    /* Buttons */
    --button-text-size: 12px;
    --button-text-weight: 400;

    /* Labels */
    --label-text-size: 12px;
}

/* CSS Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    font-family: var(--font-family-roboto);
    color: var(--black-color);
}

body {
    margin: 0;
    padding: 0;
    min-width: 1280px;
    overflow-x: auto;
}

/* Typography utility classes (converted from mixins) */
.heading1 {
    font-family: var(--font-family-roboto);
    font-size: var(--heading1-size);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    text-transform: uppercase;
}

.heading2 {
    font-family: var(--font-family-roboto-condensed);
    font-size: var(--heading2-size);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    text-transform: uppercase;
}

.heading3 {
    font-family: var(--font-family-roboto-mono);
    font-size: var(--heading3-size);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    text-transform: uppercase;
}

.heading5 {
    font-family: var(--font-family-roboto);
    font-size: var(--heading5-size);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    text-transform: uppercase;
}

.body-text {
    font-family: var(--font-family-roboto);
    font-size: 16px;
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-body);
}

.small-text {
    font-family: var(--font-family-roboto);
    font-size: var(--table-text-size);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-body);
}

.button-text {
    font-family: var(--font-family-roboto-mono);
    font-size: var(--button-text-size);
    font-weight: var(--button-text-weight);
    text-transform: uppercase;
}

.caption-text {
    font-family: var(--font-family-roboto);
    font-size: var(--table-text-size);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-body);
}

.label-text {
    font-family: var(--font-family-roboto);
    font-size: var(--label-text-size);
    font-weight: 700;
    line-height: var(--line-height-body);
}

/* Flexbox utility classes (converted from mixins) */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

.flex-wrap-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Error styling */
.error-border {
    border: 1px solid var(--error-color);
    box-shadow: 0 0 8px var(--error-glow);
}

/* Apply typography to heading elements */
h1 {
    font-family: var(--font-family-roboto);
    font-size: var(--heading1-size);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    text-transform: uppercase;
}

h2 {
    font-family: var(--font-family-roboto-condensed);
    font-size: var(--heading2-size);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    text-transform: uppercase;
}

h3 {
    font-family: var(--font-family-roboto-mono);
    font-size: var(--heading3-size);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    text-transform: uppercase;
}

p {
    font-family: var(--font-family-roboto);
    font-size: 16px;
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-body);
}

.uppercase-input {
    text-transform: uppercase;
}

.nav-link {
    font-family: var(--font-family-roboto-mono);
    color: white;
}

.link-color {
    color: #4169e1;
}

/* Forms */
input[readonly] {
    background-color: #e5e4e2 !important;
}

.tr-clicked {
    border: 2px solid #31708f;
    /* A contrasting border color */
    background-color: inherit;
    /* Keeps the original color coding */
    transition:
        background-color 0.3s,
        border-color 0.3s;
    /* Smooth transition for visual feedback */
}

.btn-no-style {
    background-color: transparent;
    border: none;
    color: inherit;
}

.scroll-shadows {
    overflow: auto;

    background:
        /* Shadow Cover TOP */
        linear-gradient(white 30%, rgba(255, 255, 255, 0)) center top,
        /* Shadow Cover BOTTOM */
        linear-gradient(rgba(255, 255, 255, 0), white 70%) center bottom,
        /* Shadow TOP */
        radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) center top,
        /* Shadow BOTTOM */
        radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) center bottom;

    background-repeat: no-repeat;
    background-size:
        100% 40px,
        100% 40px,
        100% 14px,
        100% 14px;
    background-attachment: local, local, scroll, scroll;
}

tr[data-controller="clickable-row"]:hover {
    cursor: pointer;
}

tr[data-controller="clickable-row"] .clickable-row-icon {
    display: none;
}

tr[data-controller="clickable-row"].selected .clickable-row-icon {
    display: block;
}

td[data-clickable-row-target="exclude"] {
    cursor: default;
}

/* Reusable Color Styles */
.color-warning-light {
    background-color: #fff3cd;
    border-color: #ffe69c;
}

.color-warning-medium {
    background-color: #ffd54f;
    border-color: #ffca28;
}

.color-danger-dark {
    background-color: #b22222;
    border-color: #cd5c5c;
    color: #fff;
}

.color-success-deep {
    background-color: #4caf50;
    border-color: #45a049;
}

.color-info-deep {
    background-color: #5bc0de;
    border-color: #46b8da;
}

/* Bootstrap table-* extended */
.table-xs td,
.table-xs th {
    padding: 0;
    vertical-align: middle;
}

.table-danger-dark {
    --bs-table-color: #fff;
    --bs-table-bg: #b22222;
    --bs-table-border-color: #cd5c5c;
    --bs-table-striped-bg: #bc3333;
    --bs-table-striped-color: #fff;
    --bs-table-active-bg: #cd5c5c;
    --bs-table-active-color: #fff;
    --bs-table-hover-bg: #bc3333;
    --bs-table-hover-color: #fff;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-danger-dark> :not(caption)>*>* {
    background-color: var(--bs-table-bg);
}

.table-danger-dark.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
    color: var(--bs-table-striped-color);
}

.table-danger-dark.table-hover>tbody>tr:hover>* {
    --bs-table-accent-bg: var(--bs-table-hover-bg);
    color: var(--bs-table-hover-color);
}

.table-danger-dark.table-active {
    --bs-table-accent-bg: var(--bs-table-active-bg);
    color: var(--bs-table-active-color);
}

.table-warning-medium {
    --bs-table-color: #000;
    --bs-table-bg: #ffd54f;
    --bs-table-border-color: #ffca28;
    --bs-table-striped-bg: #ffdb6f;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #ffca28;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #ffdb6f;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-warning-light {
    --bs-table-color: #000;
    --bs-table-bg: #fff3cd;
    --bs-table-border-color: #ffe69c;
    --bs-table-striped-bg: #fff5d4;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #ffe69c;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #fff5d4;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-orange {
    --bs-table-color: #000;
    --bs-table-bg: #ff9800;
    --bs-table-border-color: #fb8c00;
    --bs-table-striped-bg: #ffa726;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #fb8c00;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #ffa726;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-warning-medium> :not(caption)>*>* {
    background-color: var(--bs-table-bg);
}

.table-warning-medium.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
    color: var(--bs-table-striped-color);
}

.table-warning-medium.table-hover>tbody>tr:hover>* {
    --bs-table-accent-bg: var(--bs-table-hover-bg);
    color: var(--bs-table-hover-color);
}

.table-warning-medium.table-active {
    --bs-table-accent-bg: var(--bs-table-active-bg);
    color: var(--bs-table-active-color);
}

.table-orange> :not(caption)>*>* {
    background-color: var(--bs-table-bg);
}

.table-orange.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
    color: var(--bs-table-striped-color);
}

.table-orange.table-hover>tbody>tr:hover>* {
    --bs-table-accent-bg: var(--bs-table-hover-bg);
    color: var(--bs-table-hover-color);
}

.table-orange.table-active {
    --bs-table-accent-bg: var(--bs-table-active-bg);
    color: var(--bs-table-active-color);
}

/* Deeper Success Table */
.table-success-deep {
    --bs-table-color: #000;
    --bs-table-bg: #4caf50;
    --bs-table-border-color: #45a049;
    --bs-table-striped-bg: #5cb860;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #45a049;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #5cb860;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-success-deep> :not(caption)>*>* {
    background-color: var(--bs-table-bg);
}

.table-success-deep.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
    color: var(--bs-table-striped-color);
}

.table-success-deep.table-hover>tbody>tr:hover>* {
    --bs-table-accent-bg: var(--bs-table-hover-bg);
    color: var(--bs-table-hover-color);
}

.table-success-deep.table-active {
    --bs-table-accent-bg: var(--bs-table-active-bg);
    color: var(--bs-table-active-color);
}

/* Deeper Info Table */
.table-info-deep {
    --bs-table-color: #000;
    --bs-table-bg: #5bc0de;
    --bs-table-border-color: #46b8da;
    --bs-table-striped-bg: #6bc7e3;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #46b8da;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #6bc7e3;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.table-info-deep> :not(caption)>*>* {
    background-color: var(--bs-table-bg);
}

.table-info-deep.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
    color: var(--bs-table-striped-color);
}

.table-info-deep.table-hover>tbody>tr:hover>* {
    --bs-table-accent-bg: var(--bs-table-hover-bg);
    color: var(--bs-table-hover-color);
}

.table-info-deep.table-active {
    --bs-table-accent-bg: var(--bs-table-active-bg);
    color: var(--bs-table-active-color);
}

.accordion-button::after {
    margin-left: 0;
    position: absolute;
    right: 1rem;
}

.accordion-button {
    padding: 0.5rem 1rem;
}

.accordion-button .row {
    font-size: 0.875rem;
}

/* Bootstrap override card */
.card {
    border: none;
}

.card-header {
    background: none;
}

/* Stimulus New Searchable Select Controller */
[data-new-searchable-select-target="result"].active {
    background-color: var(--bs-primary);
    color: white !important;
}

[data-new-searchable-select-target="result"].active .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.hover-bg-light:hover {
    background-color: var(--bs-light);
}

/* Windows Like Styling */

.win-form-control {
    border-radius: 0;
    padding: 2px 4px;
    height: 24px;
    font-size: 14px;
    border: 1px solid #999;
}

.win-label {
    font-size: 14px;
    margin-bottom: 2px;
    font-weight: normal;
}

.win-form-group {
    margin-bottom: 4px;
}

.win-form-control.form-select {
    background-position: right 4px center;
    padding-right: 24px;
}

/* Table Overrides */

/* Enhanced table styles focusing on headers */
.table {
    /* Make sure the table takes full width and has no bottom margin when in a container */
    width: 100%;
    margin-bottom: 0;
}

.table thead {
    /* Add a subtle background color to the header */
    background-color: #f8fafc;
}

.table thead th {
    /* Make headers sticky so they stay visible when scrolling */
    position: sticky;
    top: 0;
    z-index: 10;

    /* Improve typography */
    font-weight: 600;
    color: #4b5563;
    /* A darker gray for better contrast */

    /* Add proper padding and borders */
    padding: 0.75rem;
    border-bottom: 2px solid #e5e7eb;

    /* Ensure text doesn't wrap in headers */
    white-space: nowrap;

    /* Add a subtle transition effect */
    transition: background-color 0.15s ease;

    /* Background color needs to be explicitly set for sticky positioning to work with proper coloring */
    background-color: #f8fafc;

    /* Optional: Add a slight shadow for depth */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Improve the table body for better readability */
.table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Improve cell alignment and padding */
.table tbody td {
    vertical-align: middle;
}

/* Add a nice container for tables that need scrolling */
.table-scrollable-container {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tabs */

.minimal-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

.minimal-tabs .tab-item {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-right: 1rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    border: none;
    background: transparent;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.minimal-tabs .tab-item:hover {
    color: #3b82f6;
}

/* Add space for the icon */
.minimal-tabs .tab-item .tab-icon {
    margin-right: 0.5rem;
}

/* Active state - underline that animates in */
.minimal-tabs .tab-item.active {
    color: #3b82f6;
    font-weight: 600;
}

.minimal-tabs .tab-item.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3b82f6;
}

/* Statistics Cards */
.stat-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
}

.stat-card h6 {
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-card .bi {
    font-size: 1.25rem;
}

/* Button Overrides */
.btn {
    border-radius: 0;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;

    /* Remove default box shadow */
    box-shadow: none !important;
}

/* Icon spacing */
.btn i,
.btn .bi {
    font-size: 0.875rem;
}

/* Size variants */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.ata-tree-global-header {
    height: 41px;
}
