/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #007CBA;
    --primary-dark: #004B6F;
    --success-color: #10b981;
    --success-dark: #059669;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #0096d6;

    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;

    --header-height: 60px;
    --footer-height: 50px;
    --border-radius: 0.75rem;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* ===== BASE ===== */
html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.app-logo {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-logo:hover {
    color: rgba(255,255,255,0.9);
}

.company-badge {
    background: rgba(255,255,255,0.15);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-logout {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.main-content-login {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ===== FOOTER ===== */
.app-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-header i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.card-body {
    padding: 1.25rem;
}

/* ===== MENU CARDS (Job Types, Companies, etc.) ===== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.menu-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.menu-card-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
}

.menu-card-bar.sales { background: linear-gradient(90deg, var(--success-color), var(--success-dark)); }
.menu-card-bar.debtor { background: linear-gradient(90deg, var(--primary-color), var(--primary-dark)); }
.menu-card-bar.inventory { background: linear-gradient(90deg, var(--warning-color), #d97706); }

.menu-card-content {
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.menu-card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.menu-card-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem 0;
    color: var(--text-primary);
}

.menu-card-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* ===== FORMS ===== */
.form-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    max-width: 450px;
    width: 100%;
}

.form-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-card-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.form-card-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.15);
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #003a54);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    border: none;
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* ===== WIZARD ===== */
.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.wizard-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.wizard-step.active .wizard-step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.wizard-step.completed .wizard-step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.wizard-step-label {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    display: none;
}

@media (min-width: 768px) {
    .wizard-step-label { display: block; }
}

.wizard-step-line {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin: 0 0.5rem;
}

.wizard-step.completed + .wizard-step .wizard-step-line,
.wizard-step.completed .wizard-step-line {
    background: var(--success-color);
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-info {
    background: rgba(0, 150, 214, 0.1);
    color: var(--primary-dark);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-dark);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

/* ===== TABLES ===== */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-bottom-width: 1px;
}

.table td {
    vertical-align: middle;
    color: var(--text-primary);
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-dark);
}

.status-badge.disabled {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* ===== INFO BOX ===== */
.info-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-box-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.info-box-row i {
    color: var(--primary-color);
    width: 20px;
}

.info-box-row .label {
    color: var(--text-secondary);
    min-width: 100px;
}

.info-box-row .value {
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== SCHEDULE DISPLAY ===== */
.schedule-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.schedule-day {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
}

.schedule-day:hover {
    border-color: var(--primary-color);
    background: rgba(0, 124, 186, 0.1);
    transform: scale(1.05);
}

.schedule-day.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}

.schedule-day.active:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.schedule-day-label {
    cursor: pointer;
}

/* Month days grid - responsive layout for 31 days */
.schedule-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    max-width: 20rem;
}

/* Larger screens - show more columns */
@media (min-width: 576px) {
    .schedule-days-grid {
        grid-template-columns: repeat(7, 2.25rem);
        gap: 0.5rem;
        max-width: none;
    }
}

/* ===== LOGIN TABS ===== */
.login-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.login-tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.login-tab:hover {
    color: var(--text-primary);
}

.login-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ===== LOADING SPINNER ===== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== SECTION HEADERS ===== */
h6.text-muted {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary) !important;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

h6.text-muted i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* ===== BTN-GROUP IMPROVEMENTS ===== */
.btn-group.w-100 .btn {
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-group.w-100 .btn i {
    font-size: 1.1rem;
}

.btn-check:checked + .btn-outline-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.2);
}

.btn-check:checked + .btn-outline-success {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    border-color: var(--success-color);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-check:checked + .btn-outline-secondary {
    background: var(--text-secondary);
    border-color: var(--text-secondary);
    color: white;
}

/* ===== FORM CHECK ICONS ===== */
.form-check-label i {
    font-size: 1.1rem;
    vertical-align: -0.1em;
    color: var(--primary-color);
}

.form-check-label strong {
    font-size: 0.95rem;
}

.form-check-input:checked ~ .form-check-label i {
    color: var(--success-color);
}

/* ===== BADGE IMPROVEMENTS ===== */
.card-header .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    font-weight: 500;
}

/* ===== BUTTON ICONS ===== */
.btn i {
    font-size: 1.1rem;
}

.btn-lg i {
    font-size: 1.35rem;
}

/* ===== ACTION BUTTON GROUP (Job table actions) ===== */
.table .btn-group {
    gap: 0.25rem;
}

.table .btn-group .btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: 0.5rem !important;
    transition: all 0.2s ease;
}

.table .btn-group .btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}

.table .btn-group .btn i {
    font-size: 1.15rem;
}

/* Danger button special hover */
.table .btn-group .btn-outline-danger:hover {
    background: var(--danger-color);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Success button special hover */
.table .btn-group .btn-outline-success:hover {
    background: var(--success-color);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

/* ===== FILTER GROUP STYLING ===== */
.filter-group {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.filter-group .card-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 0.75rem 1rem;
}

.filter-group .btn-link {
    font-size: 1.1rem;
}

/* ===== IMPROVED FORM CONTROLS ===== */
.form-select-sm, .form-control-sm {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}

/* ===== ALERT ICONS ===== */
.alert i {
    font-size: 1.1rem;
}

/* ===== JOB DESCRIPTION BOX ===== */
.alert-info.mb-4 {
    background: linear-gradient(135deg, rgba(0, 150, 214, 0.08), rgba(0, 124, 186, 0.05));
    border: 1px solid rgba(0, 124, 186, 0.2);
    border-left: 4px solid var(--primary-color);
}

.alert-info.mb-4 p {
    margin-bottom: 0.5rem;
}

.alert-info.mb-4 ul {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.alert-info.mb-4 li {
    margin-bottom: 0.35rem;
}

.alert-info.mb-4 .bi-info-circle-fill {
    color: var(--primary-color);
}

/* ===== JOB DESCRIPTION FOLDOUT ===== */
.job-description-details {
    background: linear-gradient(135deg, rgba(0, 150, 214, 0.08), rgba(0, 124, 186, 0.05));
    border: 1px solid rgba(0, 124, 186, 0.2);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.job-description-summary {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
    user-select: none;
    list-style: none;
    transition: background 0.2s ease;
}

.job-description-summary::-webkit-details-marker {
    display: none;
}

.job-description-summary:hover {
    background: rgba(0, 124, 186, 0.08);
}

.job-description-summary i.bi-info-circle {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.job-description-summary .chevron-icon {
    transition: transform 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.job-description-details[open] .chevron-icon {
    transform: rotate(180deg);
}

.job-description-content {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid rgba(0, 124, 186, 0.15);
    margin-top: 0;
    padding-top: 1rem;
    color: var(--text-primary);
    font-size: 0.925rem;
    line-height: 1.6;
}

.job-description-content p {
    margin-bottom: 0.75rem;
}

.job-description-content ul {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.job-description-content li {
    margin-bottom: 0.35rem;
}

.job-description-content p:last-child,
.job-description-content ul:last-child {
    margin-bottom: 0;
}

/* ===== LANGUAGE SELECTOR ===== */
.app-header .dropdown-menu {
    min-width: 140px;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
}

.app-header .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.app-header .dropdown-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.app-header .dropdown-item:hover:not(.active) {
    background: var(--bg-light);
}

/* Language flag placeholders (using text for now) */
.fi {
    display: inline-block;
    width: 1.2rem;
    text-align: center;
}

.fi-dk::before { content: "🇩🇰"; }
.fi-gb::before { content: "🇬🇧"; }
.fi-de::before { content: "🇩🇪"; }

/* ===== DASHBOARD ===== */

/* Statistics Cards */
.dashboard-stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.dashboard-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dashboard-stat-card.attention-needed {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.02));
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card.attention-card {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.03), rgba(239, 68, 68, 0.01));
}

.dashboard-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card-header h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.dashboard-card-header h5 i {
    color: var(--primary-color);
}

.dashboard-card-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
}

/* Upcoming Jobs List */
.upcoming-jobs-list {
    display: flex;
    flex-direction: column;
}

.upcoming-job-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.upcoming-job-item:last-child {
    border-bottom: none;
}

.upcoming-job-item:hover {
    background: var(--bg-light);
}

.job-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 124, 186, 0.1), rgba(0, 124, 186, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-icon i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.job-info {
    flex: 1;
    min-width: 0;
}

.job-name {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-company {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.job-time {
    text-align: right;
    flex-shrink: 0;
}

.time-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.job-time small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
}

/* Recent Runs List */
.recent-runs-list {
    display: flex;
    flex-direction: column;
}

.recent-run-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.recent-run-item:last-child {
    border-bottom: none;
}

.run-status {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.run-status i {
    font-size: 1.35rem;
}

.run-info {
    flex: 1;
    min-width: 0;
}

.run-name {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.run-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.run-details .badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
}

.run-time {
    text-align: right;
    flex-shrink: 0;
}

.time-ago {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.run-time small {
    display: block;
    font-size: 0.75rem;
}

/* Attention Jobs List */
.attention-jobs-list {
    display: flex;
    flex-direction: column;
}

.attention-job-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.attention-job-item:last-child {
    border-bottom: none;
}

.attention-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.attention-icon i {
    font-size: 1.5rem;
}

.attention-info {
    flex: 1;
    min-width: 0;
}

.attention-name {
    font-weight: 500;
}

.attention-name a {
    color: var(--text-primary);
    text-decoration: none;
}

.attention-name a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.attention-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.attention-details .badge {
    font-size: 0.75rem;
}

.error-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

.attention-action {
    flex-shrink: 0;
}

/* Dashboard Empty State */
.dashboard-card-body .empty-state {
    padding: 2rem 1rem;
}

.dashboard-card-body .empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.dashboard-card-body .empty-state p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .stat-value {
        font-size: 1.5rem;
    }

    .stat-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .stat-icon i {
        font-size: 1.25rem;
    }

    .upcoming-job-item,
    .recent-run-item,
    .attention-job-item {
        padding: 0.75rem 1rem;
    }
}
