/* ============================================
   MODERN STRICT DESIGN SYSTEM
   Clean, Interactive, Responsive
   ============================================ */

/* ============================================
   BASE STYLES
   ============================================ */

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 16px;
    }
}

/* Selection */
::selection {
    background: var(--color-dark);
    color: var(--color-white);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-black);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }

.text-muted {
    color: var(--color-muted) !important;
}

/* ============================================
   LINKS
   ============================================ */

a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-black);
}

/* ============================================
   BUTTONS - Interactive & Modern
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn:focus, .btn:focus-visible, .btn:active:focus, .btn-link.nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Dark button - Primary action */
.btn-dark {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.btn-dark:hover {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Outline buttons */
.btn-outline-dark {
    background: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}

.btn-outline-dark:hover {
    background: var(--color-dark);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--color-gray);
    border-color: var(--color-border);
}

.btn-outline-secondary:hover {
    background: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-gray);
}

/* Success button */
.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: var(--shadow-sm);
}

/* Danger button */
.btn-danger {
    background: var(--color-danger);
    border-color: var(--color-danger);
}

.btn-danger:hover {
    background: #a82222;
    border-color: #a82222;
}

/* Small button */
.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* Large button */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Link button */
.btn-link {
    background: none;
    border: none;
    color: var(--color-dark);
    padding: 0.25rem 0.5rem;
}

.btn-link:hover {
    color: var(--color-black);
    text-decoration: underline;
}

/* ============================================
   FORMS - Clean & Helpful
   ============================================ */

.form-control, .form-select {
    padding: 0.6rem 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--color-white);
    transition: all var(--transition-fast);
}

.form-control:hover, .form-select:hover {
    border-color: var(--color-gray);
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-dark);
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    outline: none;
}

.form-control::placeholder {
    color: var(--color-muted);
}

/* Small form controls */
.form-control-sm, .form-select-sm {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
}

/* Form labels */
.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

/* Form text/help */
.form-text {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

/* Validation states */
.form-control.is-invalid {
    border-color: var(--color-danger);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(198,40,40,0.15);
}

.invalid-feedback, .text-danger {
    font-size: 0.8rem;
    color: var(--color-danger);
}

/* Checkbox & Radio */
.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.form-check-input:checked {
    background-color: var(--color-dark);
    border-color: var(--color-dark);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-check-label {
    font-size: 0.9rem;
    cursor: pointer;
}

/* ============================================
   CARDS - Modern with subtle depth
   ============================================ */

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: var(--color-lighter);
    border-top: 1px solid var(--color-border);
    padding: 0.875rem 1.25rem;
}

/* Clickable card */

/* ============================================
   TABLES - Clean & Scannable
   ============================================ */

.table {
    background: var(--color-white);
    margin-bottom: 0;
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.875rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--color-lighter);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Small table */
.table-sm th {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
}

.table-sm td {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

/* ============================================
   BADGES - Subtle status indicators
   ============================================ */

.badge {
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    border-radius: var(--radius-sm);
}

/* Status badges with colors */
.bg-success {
    background: var(--color-success-bg) !important;
    color: var(--color-success) !important;
}

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

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

.bg-secondary {
    background: var(--color-light) !important;
    color: var(--color-gray) !important;
}

/* ============================================
   ALERTS - Informative & Clear
   ============================================ */

.alert {
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    border: none;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.alert-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.alert-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.alert-info {
    background: var(--color-info-bg);
    color: var(--color-info);
    border-color: #e5e7eb;
}

/* Bootstrap info class overrides to use theme color */
.btn-info {
    background-color: var(--color-info);
    border-color: var(--color-info);
    color: #fff;
}
.btn-info:hover, .btn-info:focus {
    background-color: var(--color-dark);
    border-color: var(--color-dark);
    color: #fff;
}

.bg-info {
    background: var(--color-info-bg) !important;
    color: var(--color-info) !important;
    background-color: var(--color-info) !important;
}
.text-info {
    color: var(--color-info) !important;
}

.alert .btn-close {
    padding: 1rem;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--color-muted);
}

.breadcrumb-item a:hover {
    color: var(--color-dark);
}

.breadcrumb-item.active {
    color: var(--color-dark);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--color-border);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    gap: 0.25rem;
}

.page-link {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--color-border);
    color: var(--color-dark);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.page-link:hover {
    background: var(--color-light);
    border-color: var(--color-gray);
    color: var(--color-dark);
}

.page-item.active .page-link {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: var(--color-white);
}

.page-item.disabled .page-link {
    background: var(--color-lighter);
    color: var(--color-muted);
}

/* ============================================
   DROPDOWNS
   ============================================ */

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item i {
    width: 1.25rem;
    color: var(--color-muted);
}

.dropdown-divider {
    border-color: var(--color-border-light);
    margin: 0.5rem 0;
}

/* ============================================
   MODALS
   ============================================ */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
}

/* ============================================
   TOOLTIPS
   ============================================ */

.tooltip-inner {
    background: var(--color-black);
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

/* ============================================
   LOADING STATES
   ============================================ */

.spinner-border {
    width: 1.25rem;
    height: 1.25rem;
    border-width: 2px;
}

.btn .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Skeleton loading */

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Hover lift effect */

/* Monospace */
.font-monospace {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    font-size: 0.9em;
}

/* Text truncate */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Interactive element */

/* Fade in animation */

/* ============================================
   STAT CARDS - Dashboard
   ============================================ */

.stat-card .stat-icon {
    font-size: 1.5rem;
    color: var(--color-muted);
    opacity: 0.5;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

/* Mobile cards container */
.mobile-cards {
    display: none;
}

.desktop-table {
    display: block;
}

@media (max-width: 991px) {
    .desktop-table {
        display: none !important;
    }

    .mobile-cards {
        display: block !important;
    }

    .mobile-card {
        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: var(--shadow-sm);
        transition: all var(--transition-normal);
    }

    .mobile-card:hover {
        box-shadow: var(--shadow-md);
    }

    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--color-border-light);
    }

    .mobile-card-title {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--color-black);
        margin: 0;
    }

    .mobile-card-subtitle {
        font-size: 0.8rem;
        color: var(--color-muted);
        margin-top: 0.25rem;
    }

    .mobile-card-body {
        display: flex;
        flex-direction: column;
    }

    .mobile-card-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 0.75rem;
        padding: 0.45rem 0;
        border-bottom: 1px solid var(--color-border-light);
    }

    .mobile-card-row:last-child {
        border-bottom: none;
    }

    .mobile-card-label {
        font-size: 0.75rem;
        color: var(--color-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
    }

    .mobile-card-value {
        font-size: 0.875rem;
        color: var(--color-dark);
        text-align: right;
        min-width: 0;
    }

    .mobile-card-footer {
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--color-border-light);
    }

    /* Container */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Typography */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }

    /* Cards */
    .card-header {
        padding: 0.875rem 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Form controls - prevent zoom on iOS */
    .form-control, .form-select {
        font-size: 16px;
    }

    /* Stat cards */
    .stat-card {
        margin-bottom: 0.75rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .mobile-card {
        padding: 0.875rem;
        border-radius: var(--radius-sm);
    }

    h1 { font-size: 1.25rem; }

    .mobile-card-footer {
        flex-direction: column;
    }

    .mobile-card-footer .btn {
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   FOCUS STATES - Accessibility
   ============================================ */

:focus-visible {
    outline: 2px solid #258cfb;
    outline-offset: 2px;
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .btn, .nav, .pagination, .alert-dismissible .btn-close {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        background: white;
    }
}

/* ============================================
   SECTION TITLES AND INFO CARDS
   ============================================ */

.section-title i {
    color: #1a3aaf;
}

.info-card:hover {
    border-color: #4cc472;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* Dashboard Company Card Progress Indicators */

/* Container wide utility */

/* ============================================
   DASHBOARD INDEX PAGE STYLES
   (Extracted from Dashboard/Index.cshtml)
   ============================================ */

.company-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.company-eik {
    font-size: 0.85rem;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #f3f4f6;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

/* ============================================
   DASHBOARD DOCUMENTS PAGE STYLES
   (Extracted from Dashboard/Documents.cshtml)
   ============================================ */

.company-doc-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s;
}

.company-doc-card:hover {
    border-color: #4cc472;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.company-doc-card .company-info {
    flex: 1;
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.company-doc-card .company-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.company-doc-card .company-eik {
    font-size: 0.8rem;
    color: #6b7280;
    font-family: monospace;
}

.doc-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.doc-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
}

.doc-badge.complete {
    background: #ecfdf5;
    color: #047857;
}

.doc-badge.incomplete {
    background: #fef3c7;
    color: #92400e;
}

.btn-docs {
    background: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
    border: none;
    color: white;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
}

.btn-docs:hover {
    background: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
    color: white;
}

/* Mobile responsive for Documents page */
@media (max-width: 575.98px) {
    .company-doc-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }

    .company-doc-card .company-info {
        text-align: left;
    }

    .company-doc-card .company-name {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .doc-status {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .btn-docs {
        flex-shrink: 0;
    }
}

/* ============================================
   TICKET CREATE PAGE STYLES
   (Extracted from Ticket/Create.cshtml)
   ============================================ */

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    background: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
    color: white;
}

.form-container {
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .form-container .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-container .d-flex.justify-content-between .btn, 
    .form-container .d-flex.justify-content-between .btn-submit {
        width: 100%;
    }

    .form-container .d-flex.justify-content-between .btn-submit {
        order: -1;
    }
}

/* ============================================
   TICKET INDEX (LIST) PAGE STYLES
   (Extracted from Ticket/Index.cshtml)
   ============================================ */

.inbox-container {
    max-width: 100%;
    margin: 0 auto;
}

.page-header {
    background: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

/* Ticket header - white text on gradient */
.page-header.ticket-header h4 a {
    color: white;
}

.page-header.ticket-header h4 a:hover {
    color: rgba(255,255,255,0.85);
}

.btn-new {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-new:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.message-list {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.message-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.message-item:hover {
    background: #f0fdfa;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item.unread {
    background: #f0f9ff;
    border-left: 3px solid #1a3aaf;
}

.message-item.unread .message-subject {
    font-weight: 600;
    color: #1a3aaf;
}

.message-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.85rem;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.message-icon.new {
    background: #fef3c7;
    color: #d97706;
}

.message-icon.in-progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.message-icon.answered {
    background: #d1fae5;
    color: #059669;
}

.message-icon.closed {
    background: #f3f4f6;
    color: #6b7280;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-subject {
    font-size: 0.9rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}

.message-preview {
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-date {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    margin-left: 0.75rem;
    text-align: right;
}

.message-date .time {
    display: block;
    font-size: 0.7rem;
}

.empty-inbox {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-inbox i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #4cc472;
    opacity: 0.6;
}

.btn-outline-theme {
    border: 1px solid #1a3aaf;
    color: #1a3aaf;
    border-radius: 6px;
    background: transparent;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.btn-outline-theme:hover {
    background: #2f62d0;
    color: white;
}

@media (max-width: 576px) {
    .page-header {
        padding: 1rem;
    }

    .page-header h4 {
        font-size: 1rem;
    }

    .message-item {
        padding: 0.75rem;
    }

    .message-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        margin-right: 0.65rem;
    }

    .message-subject {
        font-size: 0.85rem;
    }

    .message-date .time {
        display: none;
    }
}

/* ============================================
   LAYOUT STYLES
   (Extracted from _Layout.cshtml)
   ============================================ */

:root {
    --color-dark: #374151;
    --color-gray: #6b7280;
    --color-muted: #6b7280;
    --color-light: #f9fafb;
    --color-lighter: #f9fafb;
    --color-white: #fff;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --color-success-bg: #e8f5e9;
    --color-warning: #f57c00;
    --color-warning-bg: #fff3e0;
    --color-danger: #c62828;
    --color-danger-bg: #ffebee;
    --color-info: #1f2937;
    --color-info-bg: #f3f4f6;
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    --radius-md: 8px;
    --radius-lg: 12px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --primary-color: #2f62d0;
    --secondary-color: #2a57ac;
    --accent-color: #4cc472;
    --bg-gradient: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
}

body {
    color: var(--color-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Modern Navbar Styles */
.navbar {
    background: white !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a3aaf !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: #2a57ac !important;
}

.btn-primary-action {
    background: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
    color: white;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-primary-action:hover {
    background: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
    color: white;
}

.btn-primary-action:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.dropdown-menu {
    animation: dropdownFade 0.15s ease;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--color-dark);
    transition: background var(--transition-fast);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.dropdown-item:hover {
    color: var(--color-black);
    background: #f1f5f9;
}

.navbar-toggler {
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a3aaf' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.card {
    background: var(--color-white);
    transition: box-shadow var(--transition-normal);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header {
    background: var(--color-lighter);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

.btn-primary {
    background: var(--bg-gradient);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
}

.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    padding: 0.4em 0.8em;
}

.stat-card .stat-value {
    line-height: 1;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card .stat-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.app-main {
    flex: 1;
}

/* Mobile Responsive Global Styles */

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 0.95rem;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Stat cards */
    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    /* Table responsive */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    /* Form controls */
    .form-control, .form-select {
        font-size: 16px;
    }

    /* Cards */
    .card {
        border-radius: 8px;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 0.85rem;
    }

    .navbar-brand span:not(.brand-icon) {
        display: none;
    }

    .btn {
        padding: 0.5rem 0.75rem;
    }

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

/* Print Styles - hide site chrome */
@media print {
    .navbar,
.company-footer,
.footer,
#developmentWarningBanner {
        display: none !important;
    }
    .app-main {
        padding: 0 !important;
        margin: 0 !important;
    }
    .app-main > .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    body {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Toast Animation */
@keyframes toastSlideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastSlideOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-20px); opacity: 0; } }

/* ============================================
   TICKET DETAILS PAGE STYLES
   (Extracted from Ticket/Details.cshtml)
   ============================================ */

.thread-container {
    max-width: 100%;
    margin: 0 auto;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-dot.new { background: #fbbf24; }
.status-dot.in-progress { background: #4cc472; }
.status-dot.answered { background: #34d399; }
.status-dot.closed { background: rgba(255,255,255,0.5); }

/* Original request (main ticket) */
.original-request {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.original-request-label {
    background: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.original-request-label-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.original-request-label-right {
    display: flex;
    align-items: center;
}

.original-request-label .status-badge-light {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.original-request-label .ticket-number {
    font-family: monospace;
    opacity: 0.9;
}

.original-request-label .separator {
    opacity: 0.6;
}

.original-request-content {
    padding: 1.25rem 1.5rem;
}

.original-request-subject {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.original-request-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 0.75rem;
}

.original-request-body > *:first-child,
.message-body > *:first-child {
    margin-top: 0;
}

.original-request-body > *:last-child,
.message-body > *:last-child {
    margin-bottom: 0;
}

.original-request-body a,
.message-body a {
    color: #1a3aaf;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.original-request-body a:hover,
.message-body a:hover {
    color: #2a57ac;
}

.original-request-attachments {
    padding: 0.75rem 0;
    border-top: 1px solid #f3f4f6;
    margin-top: 0.5rem;
}

.original-request-attachments .attachment-link {
    display: inline-flex;
    align-items: center;
    color: #1a3aaf;
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.15s;
}

.original-request-attachments .attachment-link:hover {
    background: #f0f9ff;
}

/* Correspondence section */
.correspondence-section {
}

.correspondence-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.messages-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.message {
    border-bottom: 1px solid #f3f4f6;
}

.message:last-child {
    border-bottom: none;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.85rem;
}

.message-sender {
    font-weight: 600;
    color: #1a3aaf;
}

.message-body {
    padding: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #374151;
}

.message.admin .message-header {
    background: #ecfdf5;
    border-bottom-color: #d1fae5;
}

.message.admin .message-sender {
    color: #047857;
}

/* Unread message styles */
.message.unread {
    background: #f0f9ff;
    border-left: 3px solid #047857;
}

.message.unread .message-header {
    background: #ecfdf5;
}

.message.unread.admin .message-header {
    background: #d1fae5;
}

.reply-form {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.reply-form textarea {
    border: none;
    resize: none;
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
}

.reply-form textarea:focus {
    box-shadow: none;
    outline: none;
}

/* Reply section */
.reply-section {
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.reply-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
}

.reply-form .tox-tinymce {
    border-radius: 8px 8px 0 0 !important;
    border: 1px solid #e5e7eb !important;
    border-bottom: none !important;
}

.attachments-section {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.attachments-list:empty {
    margin-bottom: 0;
}

.attachment-chip {
    display: inline-flex;
    align-items: center;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 20px;
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: #2e7d32;
}

.attachment-chip .file-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-chip .remove-btn {
    background: none;
    border: none;
    color: #666;
    padding: 0 0.25rem;
    margin-left: 0.25rem;
    cursor: pointer;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.15s;
}

.attachment-chip .remove-btn:hover {
    color: #c62828;
    background: rgba(198, 40, 40, 0.1);
}

.add-attachment-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border: 1px dashed #ccc;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
    background: white;
}

.add-attachment-btn:hover {
    border-color: #1a3aaf;
    color: #1a3aaf;
    background: #f0f9ff;
}

.attachment-hint {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.reply-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-theme {
    background: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
    border: none;
    color: white;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.btn-theme:hover {
    background: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
    color: white;
}

.info-panel {
    font-size: 0.8rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.info-panel dt {
    color: #6b7280;
    font-weight: normal;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-panel dd {
    margin-bottom: 0;
    color: #1f2937;
}

.closed-notice {
    text-align: center;
    padding: 1rem;
    color: #6b7280;
    font-size: 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

@media (max-width: 576px) {

    .message-body {
        padding: 1rem;
    }
}

/* Dialogs: confirmations, alerts and the message after a page loads, in the colours of the theme */

#alertModal .modal-content,
#confirmModal .modal-content,
.user-message .modal-content {
    border: 1px solid #e3dccf;
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: 0 24px 60px -30px rgba(16, 40, 70, 0.55);
    overflow: hidden;
}

#alertModal .modal-header,
#confirmModal .modal-header,
.user-message .modal-header {
    padding: 1.1rem 1.5rem 0.5rem;
    background: transparent;
    border-bottom: none;
    align-items: center;
}

#alertModal .modal-title,
#confirmModal .modal-title,
.user-message .modal-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    color: #1f4468;
    font-family: "Fira Sans Condensed", "Golos Text", system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

#alertModal .modal-title i,
#confirmModal .modal-title i,
.user-message .modal-title i {
    color: #27507c !important;
    font-size: 1.3rem;
}

.user-message.is-success .modal-title i,
.alert-modal-success .modal-title i {
    color: #0f766e !important;
}

.user-message.is-warning .modal-title i,
.alert-modal-warning .modal-title i,
.confirm-modal-warning .modal-title i {
    color: #8a6510 !important;
}

.user-message.is-error .modal-title i,
.alert-modal-error .modal-title i,
.confirm-modal-danger .modal-title i {
    color: #b42318 !important;
}

#alertModal .modal-body,
#confirmModal .modal-body,
.user-message .modal-body {
    padding: 0.5rem 1.5rem 1rem;
    color: #3d4b5c;
    font-size: 1rem;
    line-height: 1.5;
}

#alertModal .modal-footer,
#confirmModal .modal-footer,
.user-message .modal-footer {
    gap: 0.5rem;
    padding: 0.5rem 1.5rem 1.25rem;
    border-top: none;
}

#alertModal .modal-footer .btn,
#confirmModal .modal-footer .btn,
.user-message .modal-footer .btn {
    min-width: 110px;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
}

#alertModal .btn-primary,
#confirmModal .btn-primary,
.user-message .btn-primary {
    background-color: #1f4468;
    border-color: #1f4468;
}

#alertModal .btn-primary:hover,
#confirmModal .btn-primary:hover,
.user-message .btn-primary:hover,
#alertModal .btn-primary:focus-visible,
#confirmModal .btn-primary:focus-visible,
.user-message .btn-primary:focus-visible {
    background-color: #2a5483;
    border-color: #2a5483;
}

#confirmModal .btn-danger {
    background-color: #b42318;
    border-color: #b42318;
}

#confirmModal .btn-outline-secondary {
    border-color: #e3dccf;
    color: #1f4468;
    background: #ffffff;
}

#confirmModal .btn-outline-secondary:hover {
    background: #fbf1d6;
    color: #1f4468;
}

/* ============================================
   APPLICATION HISTORY (Company) PAGE
   ============================================ */

.back-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    color: #64748b;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.back-link:hover {
    color: #334155;
}

/* ============================================
   INSTRUCTIONS PAGE
   ============================================ */

/* ============================================
   PROFILE PAGE (Dashboard)
   ============================================ */

.profile-header {
    background: linear-gradient(135deg, #2f62d0 0%, #4373db 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.profile-email {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.profile-member-since {
    opacity: 0.85;
    font-size: 0.9rem;
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid var(--accent-color);
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
}

.stat-icon.companies { background: #dbeafe; color: #2563eb; }
.stat-icon.vehicles { background: #fef3c7; color: #d97706; }
.stat-icon.tickets { background: #f3e8ff; color: #9333ea; }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.85rem;
}

.info-card {
    padding: 1.5rem;
    height: 100%;
    transition: all 0.2s;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.info-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card-body {
    padding: 1.25rem;
}

.profile-page .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.profile-page .info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-page .info-row:first-child {
    padding-top: 0;
}

.profile-page .info-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.profile-page .info-value {
    font-weight: 500;
    color: #1f2937;
}

.security-card {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 1px solid #fde047;
}

.security-card .info-card-header {
    border-bottom-color: #fde047;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.quick-link:hover {
    background: #2f62d0;
    border-color: #1a3aaf;
    color: white;
}

@media (max-width: 575.98px) {
    .profile-header {
        padding: 1.5rem;
        text-align: center;
    }

    .profile-avatar {
        margin: 0 auto 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .profile-page .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.vehicle-import .vi-divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1rem 0 0.75rem;
    color: #6c757d;
    font-size: 0.78rem;
}
.vehicle-import .vi-divider::before,
.vehicle-import .vi-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #dee2e6;
}

.vehicle-import .vi-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.vehicle-import .vi-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.83rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.vehicle-import .vi-btn i {
    font-size: 1rem;
}
.vehicle-import .vi-btn-upload {
    background: #e8f1f5;
    border-color: #a3c4d2;
    color: #14506a;
}
.vehicle-import .vi-btn-upload:hover {
    background: #2f62d0;
    border-color: #1a3aaf;
    color: #ffffff;
}
.vehicle-import .vi-btn-template {
    background: #ffffff;
    border-color: #ced4da;
    color: #495057;
}
.vehicle-import .vi-btn-template:hover {
    background: #f1f3f5;
    border-color: #adb5bd;
    color: #212529;
}
.vehicle-import .btn-group .vi-btn-template.dropdown-toggle-split {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}
.vehicle-import .vi-hint {
    margin-top: 0.7rem;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #6c757d;
}
.vehicle-status-pending {
    color: #b8860b;
}
.vehicle-status-failed {
    color: #c62828;
}

.vehicle-import .vi-result-inner {
    position: relative;
    padding-right: 1.9rem;
}
.vehicle-import .vi-result-inner .vi-close {
    position: absolute;
    top: 0.6rem;
    right: 0.15rem;
    font-size: 0.7rem;
}
.vehicle-import .vi-errors {
    overflow-y: auto;
    max-height: 320px;
}

.vehicle-import .vi-error-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
    column-gap: 1.5rem;
}
.vehicle-import .vi-error-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f3f5;
}
.vehicle-import .vi-error-list li:last-child {
    border-bottom: 0;
}
.vehicle-import .vi-error-head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 0 0 auto;
}
.vehicle-import .vi-error-row {
    color: #adb5bd;
    white-space: nowrap;
}
.vehicle-import .vi-error-reg {
    font-family: var(--bs-font-monospace, monospace);
    font-weight: 600;
    color: #212529;
}
.vehicle-import .vi-error-msg {
    flex: 1 1 15rem;
    color: #6c757d;
}

.vehicle-import .vi-btn-clear {
    background: #ffffff;
    border-color: #f1aeb5;
    color: #b02a37;
}
.vehicle-import .vi-btn-clear:hover {
    background: #b02a37;
    border-color: #b02a37;
    color: #ffffff;
}
.vehicle-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vehicle-clear {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.vehicle-clear .vi-btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.83rem;
    font-weight: 600;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #f1aeb5;
    color: #b02a37;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.vehicle-clear .vi-btn-clear:hover {
    background: #b02a37;
    border-color: #b02a37;
    color: #ffffff;
}

.document-buttons {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.document-buttons .btn {
    display: inline-flex;
    align-items: center;
}

.document-buttons-label {
    margin-left: 0.3rem;
}

@media (max-width: 575.98px) {
    .document-buttons-label {
        display: none;
    }
}

.document-viewer-header {
    gap: 0.75rem;
}

.document-viewer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

.document-viewer-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-viewer-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.document-viewer-counter {
    min-width: 3.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

.document-viewer-stage {
    position: relative;
    padding: 0;
    background: #525659;
}

.document-viewer-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.document-viewer-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.7);
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    transform: translateY(-50%);
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.document-viewer-nav:hover:not(:disabled),
.document-viewer-nav:focus-visible {
    background: rgba(17, 24, 39, 0.9);
}

.document-viewer-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.document-viewer-prev {
    left: 1rem;
}

.document-viewer-next {
    right: 1.75rem;
}

.document-viewer .modal-content:fullscreen {
    height: 100vh;
    border-radius: 0;
}

.document-viewer-stage iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.document-viewer-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.document-viewer-message {
    padding: 2rem;
    color: #fff;
    text-align: center;
}

@media (min-width: 992px) {
    .document-viewer .modal-content {
        height: calc(100vh - 3.5rem);
    }
}

.document-link {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0.75rem 0.35rem 0;
}

.impersonation-return {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
}

.impersonation-return .btn {
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.45);
}

.eik-link {
    color: inherit;
    text-decoration: underline dotted;
    text-underline-offset: 0.2em;
}

.eik-link:hover,
.eik-link:focus {
    color: #142f8f;
    text-decoration-style: solid;
}

@media print {
    .eik-link {
        color: inherit;
        text-decoration: none;
    }
}

.country-code-input {
    flex: 0 0 4.5rem;
    max-width: 4.5rem;
}
