/* --- Styles moved from ads.html and dashboard.html --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --dark-bg: #0f111e;
    --card-bg: #171b2d;
    --green: #4cd964;
    --text-color: #ffffff;
    --secondary-text: #8a8f9e;
    --border-color: #2a2e3f;
    --radius: 0.75rem;
    --gray-light: #334155;
    --gray: #475569;
    --gray-dark: #8a8f9e;
    --primary: #4cd964;
    --primary-dark: #334155;
    --success: #4cd964;
    --danger: #e74c3c;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body {
    background-color: #1e293b;
    color: #e2e8f0;
    line-height: 1.6;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, var(--primary), #2a3c5c);
    color: white;
    padding: 24px 0;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.logo-icon {
    font-size: 28px;
    margin-right: 12px;
    color: white;
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    color: white;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary);
}

.nav-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon {
    margin-right: 12px;
    width: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 32px;
    overflow: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Dashboard */
.adsTxt-container, .dashboard {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    height: 90%;
    min-height: 0;
    max-height: 100vh;
}

/* Domain List */
.domain-list {
    background: #334155;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.section-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
}

.domain-items {
    padding: 8px 0;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.domain-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.domain-item:hover {
    background: var(--gray-light);
}

.domain-item.active {
    background: rgba(76, 217, 100, 0.1);
    border-left: 4px solid var(--primary);
}

.domain-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--primary);
    font-size: 18px;
}

.domain-info {
    flex: 1;
}

.domain-url {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.domain-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.status-present {
    background: rgba(76, 217, 100, 0.1);
    color: var(--success);
}

.status-missing {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

/* Domain Detail */
.domain-detail {
    background: #334155;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.detail-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray);
    display: flex;
    align-items: center;
}

.detail-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(76, 217, 100, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--primary);
    font-size: 24px;
}

.detail-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.detail-info p {
    color: var(--gray-dark);
}

.detail-content {
    padding: 24px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.status-card {
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.status-card.present {
    background: rgba(76, 217, 100, 0.05);
    border: 1px solid rgba(76, 217, 100, 0.2);
}

.status-card.missing {
    background: rgba(231, 76, 60, 0.05);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.status-icon {
    font-size: 32px;
    margin-right: 20px;
}

.status-icon.present {
    color: var(--success);
}

.status-icon.missing {
    color: var(--danger);
}

.status-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.status-text p {
    color: var(--gray-dark);
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #3bc050;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray);
    color: var(--text-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-dark);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard, .adsTxt-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        width: 80px;
    }
    .logo-text, .nav-text {
        display: none;
    }
    .logo {
        justify-content: center;
        padding-bottom: 20px;
    }
    .nav-item {
        justify-content: center;
        padding: 16px 0;
    }
    .nav-icon {
        margin-right: 0;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 24px 16px;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .action-buttons {
        flex-direction: column;
    }
}

/* File Content Box */
.file-content-box {
    border-radius: 8px;
    padding: 16px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
    border: 2px solid #2a2e3f;
    color: #e2e8f0;
    width: 100%;
    min-height: 120px;
    box-sizing: border-box;
    white-space: pre;
    overflow-x: auto;
    resize: none !important;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Missing lines section */
.missing-section {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger);
    border-radius: 8px;
    padding: 16px;
}

.missing-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--danger);
}

.missing-header i {
    font-size: 20px;
}

.missing-lines {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
}

.missing-line {
    padding: 4px 0;
}


.dashboard {
    min-height: 100vh;
}

/* Header */
/*
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #0f172a;
    border-bottom: 1px solid #334155;
}*/

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e2e8f0;
}

.logo-accent {
    color: #4ade80;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.nav-link.active {
    background-color: #334155;
}

/* Main Content */
.main-content {
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: bold;
}

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

.download-button {
    background-color: #334155;
    border: 1px solid #475569;
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
    margin-left: 0.5rem;
    height: 40px;
    display: flex;
    align-items: center;
}

.download-button:focus {
    border-color: #4ade80;
}

.download-button:hover {
    background-color: #475569;
    color: #4ade80;
}

.select,
.date-input {
    background-color: #334155;
    border: 1px solid #475569;
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.select:focus,
.date-input:focus {
    border-color: #4ade80;
}


/* Metrics Grid */
.metrics-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background-color: #334155;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #475569;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.metric-card.green {
    background-color: #4ade80;
    color: #000;
    border-color: #4ade80;
}

.metric-card h3 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.metric-label,
.metric-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    background-color: #334155;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #475569;
}

.chart-container h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.chart-wrapper {
    position: relative;
    height: 320px;
    margin-bottom: 1rem;
}

.chart-wrapper canvas {
    max-height: 100%;
}

/* Domain Legend */
.domain-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-value {
    opacity: 0.7;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Table */
.revenue-per-day {
    background-color: #334155;
    border-radius: 0.75rem;
    border: 1px solid #475569;
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
    max-height: 400px; /* Set a fixed height for the table container */
    overflow-y: auto; /* Enable vertical scrolling */
    position: auto /* For sticky header */
}

.revenue-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    position: relative; /* For sticky header */
}

.revenue-table th,
.revenue-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #475569;
}

.revenue-table th {
    background-color: #1e293b;
    font-weight: 600;
    font-size: 0.875rem;
    position: sticky;
    top: 0; /* Stick to the top of the container */
    z-index: 10;
}

.revenue-table td {
    font-size: 0.875rem;
}

.revenue-table tbody tr {
    transition: background-color 0.2s;
}

.revenue-table tbody tr:hover {
    background-color: #475569;
}

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



/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .legend-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .date-range {
        flex-direction: column;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chart-wrapper {
        height: 250px;
    }
    
    .header {
        padding: 1rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .chart-wrapper {
        height: 200px;
    }
    
    .revenue-table th,
    .revenue-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card,
.chart-container,
.revenue-per-day {
    animation: fadeIn 0.6s ease-out;
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }

 /* Personalización de Flatpickr */
.flatpickr-calendar {
    background: #334155;
    border: 1px solid #1e293b;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flatpickr-day {
    color: #e2e8f0;
    border-radius: 4px;
}

.flatpickr-day.selected {
    background: #4ade80 ;
    border-color: #1e293b;
}

.flatpickr-day.disabled {
    color: #334155 ;
    cursor: not-allowed;
}

.flatpickr-day:hover:not(.disabled) {
    background: #4ade80 ;
}

/* Header (mes/año) */
.flatpickr-current-month {
    font-size: 1.1em;
    color: #e2e8f0;
}

/* Texto de los días (Sun, Mon...) */
.flatpickr-weekday {
    color: #e2e8f0 !important; /* Color del texto */
    font-weight: 600 !important; /* Grosor de la letra */
    text-transform: uppercase; /* Convertir a mayúsculas */
}

/* Flechas de navegación (contorno) */
.flatpickr-prev-month,
.flatpickr-next-month {
    padding: 8px; /* Espacio alrededor */
    transition: all 0.3s; /* Efecto suave al hover */
}

/* SVG (iconos de flechas) */
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: #e2e8f0; /* Color normal */
    width: 18px !important; /* Tamaño */
    height: 18px !important;
}

/* Hover en flechas */
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: #4ade80 !important; /* Color al pasar el mouse */
}

.flatpickr-monthDropdown-months {
    background: #334155 !important;
    color: white;
    border-color: #1e293b !important;
}

.flatpickr-monthDropdown-months option {
    background: #334155 !important;
    color: white;
}



/* Fix for date input calendar icon color */
.date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--primary), #2a3c5c);
    min-height: 100vh;
}

.app-container.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-form-container {
    width: 100%;
    max-width: 28rem;
    animation: fadeInUp 0.6s ease-out;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.login-logo .logo-icon {
    font-size: 2.5rem;
    color: var(--text-color);
}

.login-logo .logo-text {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.login-subtitle {
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.login-form-card {
    background-color: rgba(23, 27, 45, 0.95);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    font-size: 1.125rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--primary);
    font-size: 1rem;
}

.form-input {
    width: 100%;
    background-color: rgba(15, 17, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(76, 217, 100, 0.2);
    background-color: rgba(15, 17, 30, 0.8);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-button {
    width: 100%;
    background-color: var(--primary);
    color: var(--text-color);
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    border-color: var(--border-color);
    border-style: solid;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.login-button:hover {
    background-color: #3bc050;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 217, 100, 0.2);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

  .client-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: #4ade80;
    text-align: center;
    flex-grow: 1;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background: #1e293b;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 8px;
    border: 2px solid #1e293b;
}
::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}
::-webkit-scrollbar-corner {
    background: #1e293b;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #334155 #1e293b;
}

/* ADS.TXT missing lines */
.content-section {
        display: flex;
        flex-direction: column;
        margin-top: 24px;
    }

    .content-section.full-height {
        flex: 1;
        min-height: 0;
    }

    .content-section.full-height .content-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .file-content-box {
        background: #2a2e3f;
        border-radius: 8px;
        padding: 16px;
        font-family: monospace;
        font-size: 14px;
        line-height: 1.8;
        border: 2px solid #2a2e3f;
        color: #e2e8f0;
        resize: vertical;
        width: 100%;
        min-height: 120px;
        box-sizing: border-box;
        white-space: pre;
        overflow: auto;
    }

    .full-height .file-content-box {
        flex: 1;
        min-height: 0;
        resize: none;
    }

    #domain-detail-content {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .missing-lines.all-lines {
        max-height: calc(1.8em * 4 + 16px); /* 3 lines + padding */
        overflow-y: auto;
        margin-bottom: 8px;
    }

    .missing-line {
        padding: 2px 0;
    }

    .more-lines {
        color: #8a8f9e;
        font-style: italic;
        border-top: 1px dashed rgba(255, 255, 255, 0.1);
        margin-top: 8px;
        padding-top: 8px;
    }

    .more-lines i {
        margin-right: 8px;
    }

    /*flatpickr*/
    .flatpickr-custom-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    border-top: 1px solid #475569;
}

.flatpickr-custom-buttons button {
    flex: 1;
    padding: 4px 8px;
    background: var(--gray-light);
    color: var(--text-color);
    border: var(--border-color) solid 1px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.flatpickr-custom-buttons button:hover {
    background: #3bc050;
}

