/**
 * iGreen CRM - Stílusok
 * Moduláris, skálázható, AI-optimalizált
 */

/* Alapértelmezett stílusok */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #49ab7c;
    --secondary-color: #3d9168;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --sidebar-width: 210px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

/* App Layout */
.app-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Top Header */
.top-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    height: 60px;
    z-index: 200;
}

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

.header-logo {
    height: 35px;
    width: auto;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}


/* Sidebar Toggle Button */
.sidebar-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-toggle .toggle-icon i {
    transition: transform 0.3s ease;
}

/* Desktop Pin Style */
@media (min-width: 769px) {
    .sidebar-toggle.pinned .toggle-icon i {
        transform: rotate(0deg);
        /* Upright pin = pinned */
        color: var(--primary-color);
    }

    /* When NOT pinned (collapsed/auto-hover), show pin rotated or outlined to indicate "unpinned" */
    .sidebar-toggle:not(.pinned) .toggle-icon i {
        transform: rotate(45deg);
        opacity: 0.6;
    }
}


/* Top module menu */
.top-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-menu .menu-link {
    color: #000;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
}

.top-menu .menu-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.top-menu .menu-link.active {
    background-color: #e8f5ef;
    color: #49ab7c;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.user-label {
    color: #666;
}

.user-name {
    font-weight: 600;
}

.btn-logout {
    background-color: var(--white);
    color: var(--dark-color);
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}

/* App Body (Sidebar + Main Content) */
.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: #f5f5f5;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease;
    z-index: 100;
    height: 100%;
}

.app-content.sidebar-collapsed .sidebar {
    width: 60px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu>li {
    margin: 0;
}

.menu-item-parent {
    position: relative;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.6rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.9rem;
    cursor: pointer;
}

.menu-item:hover {
    background-color: #e8e8e8;
}

.menu-item.active {
    background-color: #49ab7c;
    color: var(--white);
}

.menu-item.active .menu-icon svg {
    stroke: var(--white);
}

.menu-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon svg {
    stroke: #333;
    transition: stroke 0.2s ease;
}

.menu-item:hover .menu-icon svg {
    stroke: #000;
}

.menu-text {
    white-space: nowrap;
    font-weight: 500;
    flex: 1;
    transition: opacity 0.3s ease;
}

.menu-arrow {
    font-size: 1.2rem;
    transition: transform 0.2s ease, opacity 0.3s ease;
    color: #666;
}

.menu-item-parent.expanded .menu-arrow {
    transform: rotate(90deg);
}

.app-content.sidebar-collapsed .menu-text,
.app-content.sidebar-collapsed .menu-arrow {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Submenu */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #ebebeb;
}

.menu-item-parent.expanded .submenu {
    max-height: 500px;
    overflow-y: auto;
}

.app-content.sidebar-collapsed .submenu {
    display: none;
}

.submenu-item {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.6rem 0.65rem 2.2rem;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    background-color: #ddd;
    color: #000;
}

.submenu-item.active {
    background-color: #49ab7c;
    color: var(--white);
}

.submenu-text {
    white-space: nowrap;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
}

/* Konténer */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    width: 100%;
    flex: 1;
}

/* Responsive container padding */
@media (min-width: 768px) {
    .container {
        padding: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 2rem;
    }
}

/* Szekciók */
.section {
    display: none;
}

.section.active {
    display: block;
}

.section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* Settings */
.settings-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.settings-content {
    flex: 1;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

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

.settings-actions {
    display: flex;
    gap: 0.75rem;
}

.settings-form {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.settings-form .settings-actions {
    justify-content: flex-end;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.settings-table {
    width: 100%;
    border-collapse: collapse;
}

.settings-table th,
.settings-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--light-color);
    text-align: left;
}

.settings-table th {
    background: var(--light-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.settings-table tbody tr:hover {
    background: rgba(73, 171, 124, 0.08);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
}

.permission-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.permission-card {
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    background: var(--white);
    box-shadow: var(--box-shadow);
}

.permission-card h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.permission-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.permission-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.95rem;
}

.permission-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

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

.role-slug {
    color: rgba(44, 62, 80, 0.7);
    margin-top: 0.25rem;
}

/* Statisztika kártyák */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.stat-card h3 {
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Értesítések */
#notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 12050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: var(--white);
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    background-color: var(--primary-color);
}

.notification-error {
    background-color: var(--danger-color);
}

.notification-warning {
    background-color: #ff9800;
    color: white;
}

.notification-info {
    background-color: var(--info-color);
}

.notification.fade-out {
    animation: fadeOut 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    font-weight: 500;
    min-width: 300px;
    max-width: 500px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-out;
}

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

.toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-success {
    background-color: #10b981;
}

.toast-error {
    background-color: #ef4444;
}

.toast-warning {
    background-color: #f59e0b;
}

.toast-info {
    background-color: #3b82f6;
}

.toast-icon {
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

/* Betöltés jelző */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Gombok */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

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

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

.btn-secondary {
    background-color: #95a5a6;
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #4caf50;
    color: var(--white);
}

.btn-success:hover {
    background-color: #45a049;
}

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

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

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
}

/* Szekció fejléc */
.section-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0;
}

/* Page header (for dynamically generated pages like katalógus) */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--dark-color);
}

.page-actions {
    display: flex;
    gap: 1rem;
}

.page-content {
    padding: 0 2rem;
}

/* Szűrők */
.filters-bar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
}

/* Ügyfél táblázat */
.customer-table-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.customer-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: auto;
}

.customer-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.customer-table th {
    padding: 0.875rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specific column widths for customer table */
.customer-table th:nth-child(1) {
    width: 40px;
}

/* Checkbox */
.customer-table th:nth-child(2) {
    width: 18%;
}

/* Név */
.customer-table th:nth-child(3) {
    width: 12%;
}

/* Típus */
.customer-table th:nth-child(4) {
    width: 22%;
}

/* Email */
.customer-table th:nth-child(5) {
    width: 13%;
}

/* Telefon */
.customer-table th:nth-child(6) {
    width: 13%;
}

/* Település */
.customer-table th:nth-child(7) {
    width: 10%;
}

/* Státusz */
.customer-table th:nth-child(8) {
    width: 12%;
}

/* Létrehozva */

.customer-table tbody tr {
    border-bottom: 1px solid var(--light-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.customer-table tbody tr:hover {
    background-color: #f8f9fa;
}

.customer-table tbody tr.selected {
    background-color: #e8f5e9 !important;
}

.customer-table tbody tr.selected:hover {
    background-color: #c8e6c9 !important;
}

.customer-table input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Bulk actions bar */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

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

.customer-table td {
    padding: 0.875rem;
    color: var(--dark-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Értékesítés táblák: képernyőszélességre igazítás vízszintes görgetés nélkül */
.customer-table.ertekesites-list-table,
.customer-table.ertekesites-products-table,
.customer-table.ertekesites-edit-items-table {
    min-width: 0;
    table-layout: fixed;
}

.customer-table.ertekesites-list-table th,
.customer-table.ertekesites-list-table td,
.customer-table.ertekesites-products-table th,
.customer-table.ertekesites-products-table td,
.customer-table.ertekesites-edit-items-table th,
.customer-table.ertekesites-edit-items-table td {
    padding: 0.5rem 0.35rem;
    font-size: 0.8rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Keep sales list rows compact even when other global styles are present */
.customer-table.ertekesites-list-table tbody tr {
    height: auto;
    min-height: 0;
}

.customer-table.ertekesites-list-table td {
    vertical-align: middle;
    line-height: 1.15;
}

/* Match projects list density: keep customer name on one line */
.customer-table.ertekesites-list-table td:nth-child(2) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-table.ertekesites-list-table td:nth-child(1),
.customer-table.ertekesites-list-table td:nth-child(3),
.customer-table.ertekesites-list-table td:nth-child(4),
.customer-table.ertekesites-list-table td:nth-child(8) {
    white-space: nowrap;
}

.customer-table.ertekesites-list-table td:nth-child(5),
.customer-table.ertekesites-list-table td:nth-child(6),
.customer-table.ertekesites-list-table td:nth-child(7) {
    white-space: nowrap;
}

.ertekesites-list-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.customer-table.ertekesites-list-table th:first-child,
.customer-table.ertekesites-list-table td:first-child {
    width: 72px;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

.customer-table.ertekesites-products-table th:nth-child(1),
.customer-table.ertekesites-edit-items-table th:nth-child(1) {
    width: 10%;
}

.customer-table.ertekesites-products-table th:nth-child(2),
.customer-table.ertekesites-edit-items-table th:nth-child(2) {
    width: 18%;
}

.customer-table.ertekesites-products-table th:nth-child(3),
.customer-table.ertekesites-edit-items-table th:nth-child(3) {
    width: 11%;
}

.customer-table.ertekesites-products-table th:nth-child(4),
.customer-table.ertekesites-edit-items-table th:nth-child(4) {
    width: 7%;
}

.customer-table.ertekesites-products-table th:nth-child(5),
.customer-table.ertekesites-edit-items-table th:nth-child(5),
.customer-table.ertekesites-products-table th:nth-child(6),
.customer-table.ertekesites-edit-items-table th:nth-child(6) {
    width: 9%;
}

.customer-table.ertekesites-products-table th:nth-child(7),
.customer-table.ertekesites-edit-items-table th:nth-child(7),
.customer-table.ertekesites-products-table th:nth-child(8),
.customer-table.ertekesites-edit-items-table th:nth-child(8) {
    width: 11%;
}

.customer-table.ertekesites-products-table th:nth-child(9) {
    width: 14%;
}

.customer-table.ertekesites-edit-items-table th:last-child {
    width: 8%;
}

/* Projektek lista: kompakt oszlopok, hogy kiférjen a képernyőre */
.customer-table.projects-list-table {
    min-width: 0;
    table-layout: fixed;
}

.customer-table.projects-list-table th,
.customer-table.projects-list-table td {
    padding: 0.6rem 0.45rem;
    font-size: 0.82rem;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

.customer-table.projects-list-table th:nth-child(1) {
    width: 6%;
}

.customer-table.projects-list-table th:nth-child(2) {
    width: 16%;
}

.customer-table.projects-list-table th:nth-child(3) {
    width: 9%;
}

.customer-table.projects-list-table th:nth-child(4) {
    width: 17%;
}

.customer-table.projects-list-table th:nth-child(5) {
    width: 10%;
}

.customer-table.projects-list-table th:nth-child(6) {
    width: 9%;
}

.customer-table.projects-list-table th:nth-child(7) {
    width: 11%;
}

.customer-table.projects-list-table th:nth-child(8) {
    width: 16%;
}

.customer-table.projects-list-table td:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-table.projects-list-table.projects-list-table--with-palyazati th:nth-child(2) {
    width: 13%;
}

.customer-table.projects-list-table.projects-list-table--with-palyazati th:nth-child(3) {
    width: 8%;
}

.customer-table.projects-list-table.projects-list-table--with-palyazati th:nth-child(4) {
    width: 14%;
}

.customer-table.projects-list-table.projects-list-table--with-palyazati th:nth-child(5) {
    width: 14%;
}

.customer-table.projects-list-table.projects-list-table--with-palyazati th:nth-child(6) {
    width: 9%;
}

.customer-table.projects-list-table.projects-list-table--with-palyazati th:nth-child(7) {
    width: 8%;
}

.customer-table.projects-list-table.projects-list-table--with-palyazati th:nth-child(8) {
    width: 10%;
}

.customer-table.projects-list-table.projects-list-table--with-palyazati th:nth-child(9) {
    width: 12%;
}

.customer-table.projects-list-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-table.projects-list-table .status-badge,
.customer-table.projects-list-table .project-status-badge,
.customer-table.projects-list-table .badge {
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.customer-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.customer-type-badge.vallalati {
    background: #3498db;
    color: var(--white);
}

.customer-type-badge.lakossagi {
    background: var(--primary-color);
    color: var(--white);
}

.customer-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.customer-status-badge.active {
    background-color: #27ae60;
    color: var(--white);
}

.customer-status-badge.inactive {
    background-color: #95a5a6;
    color: var(--white);
}

/* Üres állapot */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
    margin-bottom: 2rem;
}

/* Reszponzív design */
@media (max-width: 768px) {

    /* App body - mobilon nem flex */
    .app-body {
        display: block;
    }

    /* Hamburger menü - rejtett alapértelmezésben */
    .sidebar {
        position: fixed !important;
        left: calc(-1 * var(--sidebar-width)) !important;
        top: 60px;
        bottom: 0;
        z-index: 150;
        width: var(--sidebar-width) !important;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
        display: flex !important;
    }

    /* Hamburger menü - megnyitva */
    .app-content.sidebar-open .sidebar {
        left: 0 !important;
    }

    /* Overlay a menü mögött */
    .app-content.sidebar-open::before {
        content: '';
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 140;
    }

    .header-logo {
        height: 30px;
    }

    .user-info {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0.75rem;
    }

    .customer-table-container {
        overflow-x: auto;
    }

    .customer-table {
        font-size: 0.85rem;
    }

    .customer-table th,
    .customer-table td {
        padding: 0.75rem 0.5rem;
    }

    /* Reset column widths on mobile for better scrolling */
    .customer-table th:nth-child(1) {
        width: 40px;
        min-width: 40px;
    }

    .customer-table th:nth-child(2),
    .customer-table th:nth-child(3),
    .customer-table th:nth-child(4),
    .customer-table th:nth-child(5),
    .customer-table th:nth-child(6),
    .customer-table th:nth-child(7),
    .customer-table th:nth-child(8) {
        width: auto;
        min-width: 120px;
    }

    .customer-table.projects-list-table th:nth-child(9) {
        width: auto;
        min-width: 120px;
    }

    .filters-bar {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .detail-title-row-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .detail-title-left {
        width: 100%;
    }

    .detail-actions-inline {
        width: 100%;
        justify-content: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Részletek nézet */
.detail-view {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    overflow: hidden;
}

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

.btn-back {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--light-color);
}

.detail-actions {
    display: flex;
    gap: 1rem;
}

.detail-content {
    text-align: left;
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-color);
}

.detail-avatar-small {
    font-size: 2rem;
    flex-shrink: 0;
}

.detail-title-info {
    flex: 0 1 auto;
    min-width: 0;
}

.detail-title-info h1 {
    color: var(--dark-color);
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-title-info .customer-type-badge {
    display: inline-block;
    width: auto;
}

/* Egyszerű header */
.detail-header-simple {
    margin-bottom: 1rem;
}

.detail-title-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.detail-title-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.detail-avatar {
    font-size: 2rem;
    flex-shrink: 0;
}

.detail-title-text {
    min-width: 0;
}

.detail-title-text h1 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.detail-title-bar-right {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

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

.detail-sections {
    margin-top: 0;
    text-align: left;
}

.detail-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.detail-section h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.detail-item span {
    color: var(--dark-color);
    font-size: 1rem;
}

.notes {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

/* Modal */
.modal,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}

.modal.active,
.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

.modal-content.large {
    max-width: 900px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close,
.btn-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.modal-close:hover,
.btn-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--light-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Teljes oldal form */
.form-page {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.form-page-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-color);
}

.form-page-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--dark-color);
}

.form-page-content {
    max-width: 1000px;
}

.form-page-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Form stílusok */
.form-sections {
    padding: 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.form-actions .btn {
    flex: 0 1 auto;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Pagináció */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pagination-controls .btn {
    min-width: 140px;
}

.pagination-status {
    font-weight: 600;
    color: var(--dark-color);
}

/* Autentikáció */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(73, 171, 124, 0.85), rgba(61, 145, 104, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2000;
}

.login-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.login-form .form-group {
    text-align: left;
}

.btn-block {
    width: 100%;
}

.login-hint {
    margin-top: 1rem;
    color: rgba(44, 62, 80, 0.7);
    font-size: 0.9rem;
}

.is-permission-hidden {
    display: none !important;
}

/* Projekt stílus */
.project-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.project-info-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-info-cards-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.info-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.project-description {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.project-description h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.project-description p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.info-row {
    display: grid;
    grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-color);
}

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

.info-row label {
    font-weight: 600;
    color: var(--dark-color);
}

.info-row p {
    margin: 0;
    color: #666;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Quick edit installation date */
#installationDateDisplay {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

#installationDateDisplay:hover {
    background-color: #f0f0f0;
}

#installationDateDisplay:hover i {
    color: var(--primary-color) !important;
}

.editable-field {
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.editable-field:hover {
    background-color: #f0f0f0;
}

.editable-field:focus {
    outline: 2px solid var(--primary-color);
    background-color: #fff;
}

.customer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.customer-link:hover {
    color: #3a8a63;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
    .project-info-cards-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1400px) {
    .project-detail-view .detail-title-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-detail-view .detail-title-bar-right {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .project-info-cards {
        grid-template-columns: 1fr;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

/* Projekt tabok */
.project-tabs {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--light-color);
    background: #f9f9f9;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    background: #f0f0f0;
    color: var(--dark-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tabs-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Palyazat tab */
.palyazat-root {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.palyazat-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.palyazat-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

.palyazat-summary-card h4 {
    margin: 0 0 0.35rem 0;
    font-size: 0.85rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.palyazat-summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.palyazat-summary-value.warning {
    color: #b45309;
}

.palyazat-summary-value.ok {
    color: #047857;
}

.palyazat-subtabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.palyazat-subtab-btn {
    border: 1px solid #dbe3eb;
    background: #fff;
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.palyazat-subtab-btn.active {
    border-color: #1f7a57;
    color: #1f7a57;
    background: #f1fbf6;
}

.palyazat-subtab-badge {
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
    font-weight: 700;
}

.palyazat-subtab-badge.warning {
    background: #fff3d6;
    color: #92400e;
}

.palyazat-subtab-badge.ok {
    background: #dcfce7;
    color: #166534;
}

.palyazat-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
}

.palyazat-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.palyazat-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.palyazat-section-header p {
    margin: 0.3rem 0 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.palyazat-missing-alert,
.palyazat-ok-alert {
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}

.palyazat-missing-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.palyazat-ok-alert {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.palyazat-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.palyazat-field-groups {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.palyazat-field-group {
    border: 1px solid #d8e1ea;
    border-radius: 12px;
    padding: 0.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.palyazat-field-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.palyazat-field-group-header h4 {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    color: #0f172a;
}

.palyazat-field-group-badge {
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.palyazat-field-group-badge.missing {
    background: #fff3d6;
    color: #92400e;
}

.palyazat-field-group-badge.ok {
    background: #dcfce7;
    color: #166534;
}

.palyazat-field-item {
    border: 1px solid #dbe3eb;
    border-radius: 10px;
    padding: 0.65rem;
    background: #fff;
}

.palyazat-field-item-wide {
    grid-column: 1 / -1;
}

.palyazat-field-item.missing {
    border-color: #fcd34d;
    background: #fffdf3;
}

.palyazat-field-item label {
    display: block;
    font-size: 0.82rem;
    color: #334155;
    margin-bottom: 0.35rem;
}

.palyazat-field-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
}

.palyazat-field-input:focus {
    outline: none;
    border-color: #1f7a57;
    box-shadow: 0 0 0 3px rgba(31, 122, 87, 0.12);
}

.palyazat-field-state {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.palyazat-field-item.missing .palyazat-field-state {
    color: #b45309;
}

.palyazat-doc-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.palyazat-doc-item {
    border: 1px solid #dbe3eb;
    border-radius: 10px;
    padding: 0.65rem;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.palyazat-doc-item.missing {
    border-color: #fcd34d;
    background: #fffdf3;
}

.palyazat-doc-item.uploading {
    border-color: #38bdf8;
    background: #f0f9ff;
}

.palyazat-doc-item.clickable {
    cursor: pointer;
}

.palyazat-doc-item.clickable:hover {
    border-color: #9ca3af;
    background: #f8fafc;
}

.palyazat-doc-main {
    flex: 1;
    min-width: 0;
}

.palyazat-doc-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.palyazat-doc-title-row h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #0f172a;
}

.palyazat-doc-status {
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.palyazat-doc-status.ok {
    background: #dcfce7;
    color: #166534;
}

.palyazat-doc-status.missing {
    background: #fff3d6;
    color: #92400e;
}

.palyazat-doc-meta {
    margin-top: 0.3rem;
    color: #64748b;
    font-size: 0.82rem;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.palyazat-upload-progress {
    margin-top: 0.35rem;
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 600;
}

.palyazat-doc-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.palyazat-owners-editor {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.palyazat-owners-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
}

.palyazat-owners-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.palyazat-owner-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 0.8rem;
    color: #64748b;
    font-size: 0.88rem;
    background: #f8fafc;
}

.palyazat-owner-row {
    border: 1px solid #dbe3eb;
    border-radius: 10px;
    padding: 0.7rem;
    background: #ffffff;
}

.palyazat-owner-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}

.palyazat-owner-row-header h5 {
    margin: 0;
    font-size: 0.88rem;
    color: #1e293b;
}

.palyazat-owner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
}

.palyazat-owner-field label {
    display: block;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 0.35rem;
}

.palyazat-comment-editor {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.9rem;
    background: #f8fafc;
    width: 100%;
    box-sizing: border-box;
}

.palyazat-comment-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.45rem;
}

.palyazat-comment-textarea {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    min-height: 140px;
    line-height: 1.5;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    background: #fff;
}

.palyazat-comment-textarea:focus {
    outline: none;
    border-color: #1f7a57;
    box-shadow: 0 0 0 3px rgba(31, 122, 87, 0.12);
}

.palyazat-comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.55rem;
}

.palyazat-comment-helper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.palyazat-comment-helper {
    color: #64748b;
    font-size: 0.8rem;
}

.palyazat-comment-counter {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.palyazat-comment-item-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.palyazat-comment-editor-inline {
    margin-top: 0.55rem;
}

@media (max-width: 768px) {
    .palyazat-section-header {
        flex-direction: column;
    }

    .palyazat-doc-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .palyazat-owner-row-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Tabs without header wrapper */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--light-color);
    background: #f9f9f9;
    margin-bottom: 1rem;
}

.tab-content {
    background: white;
    overflow: hidden;
}

.project-status-badge,
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Default fallback style for project statuses without a dedicated color class */
.project-status-badge {
    background: #F1F5F9;
    color: #475569;
}

/* Project Status Badges - New Workflow */
.project-status-badge.fogyasztasi_adatra_var {
    background: #F3F4F6;
    color: #6B7280;
}

.project-status-badge.szimulacio {
    background: #EDE9FE;
    color: #8B5CF6;
}

.project-status-badge.indikativ_ajanlat {
    background: #DBEAFE;
    color: #3B82F6;
}

.project-status-badge.helyszini_felmeres {
    background-color: #fef3c7;
    color: #d97706;
}

.project-status-badge.felmerve {
    background-color: #dbeafe;
    color: #1e40af;
}

.project-status-badge.vegso_ajanlat {
    background: #D1FAE5;
    color: #10B981;
}

.project-status-badge.ugyfel_visszajelzesre_var {
    background: #E0F2FE;
    color: #0369A1;
}

.project-status-badge.elozetesen_elfogadva {
    background: #DCFCE7;
    color: #22C55E;
}

.project-status-badge.igazolasi_szakasz {
    background: #CCFBF1;
    color: #0D9488;
}

.project-status-badge.hianypotlasra_var {
    background: #FEE2E2;
    color: #DC2626;
}

.project-status-badge.szerzodeskotes {
    background: #ECFCCB;
    color: #84CC16;
}

.project-status-badge.igenybejelentes {
    background: #FEF3C7;
    color: #F59E0B;
}

.project-status-badge.mgt {
    background: #FFEDD5;
    color: #F97316;
}

.project-status-badge.csatlakozasi_dokumentacio {
    background: #FEE2E2;
    color: #EF4444;
}

.project-status-badge.szolgaltatoi_jovahagyas {
    background: #FCE7F3;
    color: #EC4899;
}

.project-status-badge.rendszer_kivitelezese {
    background: #F3E8FF;
    color: #A855F7;
}

.project-status-badge.keszre_jelentes {
    background: #E0E7FF;
    color: #6366F1;
}

.project-status-badge.csatlakozas_es_uzembehelyezes {
    background: #CCFBF1;
    color: #14B8A6;
}

.project-status-badge.kesz {
    background: #DCFCE7;
    color: #22C55E;
}

.project-status-badge.torolve {
    background: #FEE2E2;
    color: #DC2626;
}

.project-status-badge.lejart_ajanlat {
    background: #FFF7ED;
    color: #C2410C;
}

/* Quote and Contract Status Badges */
.status-badge.nincs {
    background: #f5f5f5;
    color: #757575;
}

.status-badge.kikuldve {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.lejart {
    background: #ffebee;
    color: #d84315;
}

.status-badge.elfogadva,
.status-badge.alairva {
    background: #e8f5e9;
    color: #388e3c;
}

.status-badge.elutasitva,
.status-badge.rejected {
    background: #ffebee;
    color: #c62828;
}

/* Badge variants */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background: #e8f5e9;
    color: #388e3c;
}

.badge-warning {
    background: #fff3e0;
    color: #f57c00;
}

.badge-danger {
    background: #ffebee;
    color: #d32f2f;
}

.badge-info {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-secondary {
    background: #f5f5f5;
    color: #666;
}

.badge-primary {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-orange {
    background: #fff3e0;
    color: #e65100;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .login-card {
        padding: 1.75rem;
    }

    .pagination-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-container {
        flex-direction: column;
    }

    .settings-content {
        width: 100%;
    }

    .permission-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   QUOTE FORMS - Minimalistic Modern Design
   ============================================================================ */

.quote-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.quote-form-container h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

/* Quote header section - minimalistic */
.quote-header-section {
    background-color: white;
    padding: 2rem 2rem 0 2rem;
    border-radius: 12px;
    margin-bottom: 0;
    border: 1px solid #e8e8e8;
}

.quote-total-section {
    background: linear-gradient(135deg, #49ab7c 0%, #3d9168 100%);
    color: white;
    padding: 0 2rem;
    border-radius: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(73, 171, 124, 0.15);
}

.quote-total-section .total-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-total-section .total-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.quote-total-section .total-item {
    text-align: center;
}

.quote-products-section {
    margin: 2rem 0;
}

.quote-products-section>h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

/* Category sections - clean and minimal */
.quote-category-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e8e8e8;
    transition: border-color 0.2s ease;
}

.quote-category-section:hover {
    border-color: #d0d0d0;
}

.quote-category-section h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quote-category-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.quote-category-products {
    margin: 1rem 0;
    min-height: 20px;
}

.quote-category-products:empty::after {
    content: 'Még nincsenek termékek ebben a kategóriában';
    color: #999;
    font-size: 0.875rem;
    font-style: italic;
}

/* Quote items - modern card style */
.quote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.quote-item:hover {
    background-color: #f5f7f9;
    border-color: #e0e0e0;
    transform: translateX(2px);
}

.quote-item-details {
    flex: 1;
}

.quote-item-details strong {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.quote-item-details br+text {
    color: #666;
    font-size: 0.875rem;
}

/* Status badges - minimal and clean */
.quote-status-draft {
    background-color: #f0f0f0;
    color: #666;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.quote-status-sent {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.quote-status-accepted {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Accepted quote row styling */
tr.quote-row-accepted {
    background-color: #f1f8f4 !important;
}

tr.quote-row-accepted:hover {
    background-color: #e8f5e9 !important;
}

.quote-status-marked {
    background-color: #fff3e0;
    color: #e65100;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Marked quote row styling */
tr.quote-row-marked {
    background-color: #fff8e1 !important;
}

tr.quote-row-marked:hover {
    background-color: #ffecb3 !important;
}

.quote-status-rejected {
    background-color: #ffebee;
    color: #c62828;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Bevételezés status badges */
.bevetelez-status-draft {
    background-color: #f0f0f0;
    color: #666;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bevetelez-status-saved {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bevetelez-status-closed {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Additional modal content styles */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Quote form inputs - modern style */
.quote-header-section input,
.quote-header-section select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-header-section input:focus,
.quote-header-section select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(73, 171, 124, 0.1);
}

.quote-header-section label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.5rem;
    display: block;
}

/* Add product button hover effect */
.quote-category-section button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(73, 171, 124, 0.05);
}

/* Empty state for quote products */
.quote-products-section .empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quote-total-section {
        flex-direction: column;
        gap: 1rem;
    }

    .quote-total-section .total-item {
        text-align: left;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   DOCUMENTS SECTION - Minimalistic Modern Design
   ============================================================================ */

.documents-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Upload Section */
.documents-upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.upload-card,
.comment-card {
    background: white;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.upload-card:hover,
.comment-card:hover {
    border-color: var(--primary-color);
}

.upload-icon,
.comment-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-card h3,
.comment-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.upload-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.comment-card textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    resize: vertical;
    font-family: inherit;
}

.comment-card textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(73, 171, 124, 0.1);
}

/* Files Section */
.documents-files-section,
.documents-comments-section {
    margin-bottom: 2rem;
}

.documents-files-section h3,
.documents-comments-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.documents-files-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.documents-comments-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background-color: #3498db;
    border-radius: 2px;
}

/* Document Category Groups */
.document-category-group {
    margin-bottom: 2.5rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.category-badge {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: linear-gradient(135deg, #49ab7c 0%, #3d9268 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.document-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.document-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.document-preview {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.document-preview:hover {
    opacity: 0.9;
}

.document-icon {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.document-info {
    padding: 1.25rem;
}

.document-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-description {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.document-meta {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.25rem 1.25rem;
}

.document-actions .btn {
    flex: 1;
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.document-actions .btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(73, 171, 124, 0.05);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 0.2s ease;
}

.comment-item:hover {
    border-color: #d0d0d0;
}

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

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3d9168 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #999;
}

.comment-text {
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

/* Upload Overlay */
.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.upload-spinner {
    background: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Image Viewer */
.image-viewer {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-viewer img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.image-viewer .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.image-viewer .close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Project Costs Styles */
.costs-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cost-form-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 2rem;
}

.cost-form-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.costs-list-section {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 2rem;
}

.costs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.costs-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.total-cost {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #49ab7c 0%, #3d9268 100%);
    color: white;
    border-radius: 8px;
    font-size: 1.1rem;
}

.total-cost strong {
    font-size: 1.3rem;
}

.costs-table-wrapper {
    overflow-x: auto;
}

.costs-table {
    width: 100%;
    border-collapse: collapse;
}

.costs-table thead {
    background: #f8f9fa;
}

.costs-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e8e8e8;
}

.costs-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.costs-table tbody tr:hover {
    background: #f8f9fa;
}

.category-badge-small {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #555;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.text-muted {
    color: #888;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .documents-upload-section {
        grid-template-columns: 1fr;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .costs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .costs-table-wrapper {
        overflow-x: scroll;
    }

    .costs-table {
        min-width: 800px;
    }
}

/* Status Dropdown - Jira Style */
.status-dropdown {
    position: relative;
    display: inline-block;
}

.btn-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-status:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.status-fogyasztasi_adatra_var {
    background-color: #6B7280;
}

.status-indicator.status-szimulacio {
    background-color: #8B5CF6;
}

.status-indicator.status-indikativ_ajanlat {
    background-color: #3B82F6;
}

.status-indicator.status-helyszini_felmeres {
    background-color: #f59e0b;
}

.status-indicator.status-felmerve {
    background-color: #1e40af;
}

.status-indicator.status-vegso_ajanlat {
    background-color: #10B981;
}

.status-indicator.status-igazolasi_szakasz {
    background-color: #0D9488;
}

.status-indicator.status-hianypotlasra_var {
    background-color: #DC2626;
}

.status-indicator.status-szerzodeskotes {
    background-color: #84CC16;
}

.status-indicator.status-igenybejelentes {
    background-color: #F59E0B;
}

.status-indicator.status-mgt {
    background-color: #F97316;
}

.status-indicator.status-csatlakozasi_dokumentacio {
    background-color: #EF4444;
}

.status-indicator.status-szolgaltatoi_jovahagyas {
    background-color: #EC4899;
}

.status-indicator.status-rendszer_kivitelezese {
    background-color: #A855F7;
}

.status-indicator.status-keszre_jelentes {
    background-color: #6366F1;
}

.status-indicator.status-csatlakozas_es_uzembehelyezes {
    background-color: #14B8A6;
}

.status-indicator.status-kesz {
    background-color: #22C55E;
}

.status-indicator.status-torolve {
    background-color: #DC2626;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: #999;
    transition: transform 0.2s;
}

.btn-status:hover .dropdown-arrow {
    transform: translateY(2px);
}

.status-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.status-dropdown-menu.show {
    display: block;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.status-option:hover {
    background: #f8f9fa;
}

.status-option.active {
    background: #f0f9ff;
    font-weight: 500;
}

.status-option .checkmark {
    margin-left: auto;
    color: #3B82F6;
    font-weight: bold;
}

/* Footer */
.app-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0;
    color: #999;
}

/* Sidebar Footer - Report Issue Button */
.sidebar-footer {
    margin-top: auto;
    padding: 0.75rem 0.6rem;
    border-top: 1px solid #e0e0e0;
    background-color: #f5f5f5;
}

.btn-report-issue {
    display: flex;
    align-items: center;
    gap: 0.0rem;
    width: 100%;
    padding: 0.75rem 0.6rem;
    background-color: transparent;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-report-issue:hover {
    background-color: #e8e8e8;
}

.btn-report-issue .menu-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-report-issue .menu-icon i {
    color: #333;
    font-size: 16px;
    transition: color 0.2s ease;
}

.btn-report-issue:hover .menu-icon i {
    color: #000;
}

.btn-report-issue .menu-text {
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.app-content.sidebar-collapsed .btn-report-issue .menu-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.app-content.sidebar-collapsed .btn-report-issue {
    justify-content: center;
    padding: 0.75rem;
}

/* Issue Report Modal */
.issue-report-modal .modal-content {
    max-width: 700px;
}

/* Issue List View */
.issue-list-header {
    margin-bottom: 1.5rem;
}

.issue-list-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.search-box input:focus {
    outline: none;
    border-color: #49ab7c;
}

.issue-list-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.no-issues {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
}

.no-issues i {
    font-size: 3rem;
    color: #49ab7c;
    margin-bottom: 1rem;
}

.no-issues p {
    margin: 0.5rem 0;
}

.no-issues .text-muted {
    font-size: 0.9rem;
    color: #aaa;
}

.issue-item {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.issue-item:hover {
    background-color: #f5f5f5;
}

.issue-item.expanded {
    background-color: #f9f9f9;
    cursor: default;
}

.issue-item.expanded .issue-item-header,
.issue-item.expanded .issue-item-body {
    cursor: pointer;
}

.issue-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.issue-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    flex: 1;
    transition: color 0.2s ease;
}

.issue-item:hover .issue-title {
    color: #49ab7c;
}

.issue-item.expanded .issue-title {
    color: #49ab7c;
}

.issue-badges {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.issue-item-body {
    margin-bottom: 0.75rem;
}

.issue-description {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.issue-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
}

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

.issue-reporter {
    font-size: 0.85rem;
    color: #666;
}

.issue-reporter i {
    margin-right: 0.25rem;
    color: #49ab7c;
}

.issue-date {
    font-size: 0.85rem;
    color: #999;
}

.issue-date i {
    margin-right: 0.25rem;
}

.issue-actions {
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    position: relative;
}

.issue-actions .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
}

/* Issue Detail (Expanded View) */
.issue-detail {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e0e0e0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.issue-detail-section {
    margin-bottom: 1.5rem;
}

.issue-detail-section h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.issue-detail-section p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.issue-detail-section pre {
    background: #f5f5f5;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    overflow-x: auto;
    margin: 0;
}

.issue-detail-section a {
    color: #49ab7c;
    text-decoration: none;
    word-break: break-all;
}

.issue-detail-section a:hover {
    text-decoration: underline;
}

.issue-screenshot {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.issue-detail-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.text-muted {
    color: #999;
}

.issue-list-footer {
    margin-top: 1rem;
}

.btn-block {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
}

/* Issue Form View */
.form-footer {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.form-footer .btn {
    flex: 1;
}

.issue-report-form .form-group {
    margin-bottom: 1.25rem;
}

.issue-report-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.issue-report-form label .required {
    color: var(--danger-color);
    margin-left: 0.25rem;
}

.issue-report-form input[type="text"],
.issue-report-form textarea,
.issue-report-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.issue-report-form input[type="text"]:focus,
.issue-report-form textarea:focus,
.issue-report-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.issue-report-form textarea {
    min-height: 120px;
    resize: vertical;
}

.issue-report-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.issue-report-form .file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.issue-report-form .file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.issue-report-form .file-upload-area.has-file {
    border-color: var(--primary-color);
    background-color: #e8f5ef;
}

.issue-report-form .file-upload-icon {
    font-size: 2rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.issue-report-form .file-upload-text {
    color: #666;
    font-size: 0.9rem;
}

.issue-report-form .file-upload-filename {
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.issue-report-form input[type="file"] {
    display: none;
}

.issue-report-form .metadata-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #666;
}

.issue-report-form .metadata-info strong {
    color: var(--dark-color);
}

/* Login Logs Styles */
.login-logs-container {
    padding: 1rem;
}

.login-logs-header {
    margin-bottom: 2rem;
}

.login-logs-header h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.login-logs-stats {
    margin-top: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.stat-card.stat-success {
    border-left: 4px solid #4caf50;
}

.stat-card.stat-failed {
    border-left: 4px solid #f44336;
}

.stat-card.stat-rate-limited {
    border-left: 4px solid #ff9800;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
}

.login-logs-filters {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

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

.filter-group label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.filter-group input,
.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.login-logs-table-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow-x: auto;
}

.login-logs-table-container table {
    width: 100%;
    border-collapse: collapse;
}

.login-logs-table-container th {
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid #e0e0e0;
}

.login-logs-table-container td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.login-logs-table-container tr:hover {
    background-color: #f8f9fa;
}

.badge.status-success {
    background-color: #4caf50;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.badge.status-failed {
    background-color: #f44336;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.badge.status-rate-limited {
    background-color: #ff9800;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.login-logs-pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.login-logs-pagination .pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.login-logs-pagination .btn.active {
    background-color: var(--primary-color);
    color: white;
}

.rate-limited-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.rate-limited-section .alert {
    padding: 1rem;
    border-radius: 6px;
    margin: 0;
}

.rate-limited-section .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rate-limited-section .alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.rate-limited-table-container {
    overflow-x: auto;
}

.rate-limited-table-container table {
    width: 100%;
    border-collapse: collapse;
}

.rate-limited-table-container th {
    background-color: #fff3cd;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #856404;
    border-bottom: 2px solid #ffeaa7;
}

.rate-limited-table-container td {
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.rate-limited-table-container tr:hover {
    background-color: #fffbf0;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

/* Rate Limit Alert on Dashboard */
.rate-limit-alert {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ff9800;
    border-left: 6px solid #ff9800;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 0 20px 24px 20px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
    position: relative;
    /* Animation removed from default state - only applied when showing */
}

/* Animation class - only applied when alert is shown */
.rate-limit-alert.show-animation {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.rate-limit-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.rate-limit-alert-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #856404;
    margin: 0;
}

.rate-limit-alert-icon {
    font-size: 1.5rem;
    color: #ff9800;
}

.rate-limit-alert-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #856404;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.rate-limit-alert-close:hover {
    background: rgba(133, 100, 4, 0.1);
    color: #664d03;
}

.rate-limit-alert-content {
    color: #664d03;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.rate-limit-alert-stats {
    display: flex;
    gap: 2rem;
    margin: 0.75rem 0;
    flex-wrap: wrap;
}

.rate-limit-alert-stat {
    display: flex;
    flex-direction: column;
}

.rate-limit-alert-stat-label {
    font-size: 0.85rem;
    color: #856404;
    margin-bottom: 0.25rem;
}

.rate-limit-alert-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff9800;
}

.rate-limit-alert-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.rate-limit-alert-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rate-limit-alert-btn-primary {
    background: #ff9800;
    color: white;
}

.rate-limit-alert-btn-primary:hover {
    background: #f57c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.rate-limit-alert-btn-secondary {
    background: white;
    color: #856404;
    border: 1px solid #ffc107;
}

.rate-limit-alert-btn-secondary:hover {
    background: #fff8e1;
    border-color: #ff9800;
}

/* ============================================================================
   CSV Upload Styles
   ============================================================================ */

.csv-upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.csv-upload-area:hover {
    border-color: #49ab7c;
    background-color: #f0fdf4;
}

.csv-upload-area .upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.csv-upload-area h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.csv-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.csv-preview-header h3 {
    margin: 0;
    color: #333;
}

.csv-stats {
    display: flex;
    gap: 0.75rem;
}

.stat-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    background: #e0e0e0;
    color: #666;
}

.stat-badge.stat-success {
    background: #d4edda;
    color: #155724;
}

.stat-badge.stat-error {
    background: #f8d7da;
    color: #721c24;
}

.csv-preview-table {
    margin-bottom: 1.5rem;
}

.csv-import-options h4 {
    color: #333;
    font-size: 1rem;
}

.csv-import-options label {
    font-size: 0.95rem;
    color: #555;
}

.csv-import-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 2FA Styles */
.modal-lg {
    max-width: 800px;
    width: 90%;
}

.otp-input-group,
.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.otp-digit,
.otp-digit-login {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.otp-digit:focus,
.otp-digit-login:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(73, 171, 124, 0.2);
}

.backup-codes-list ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    padding: 0;
    list-style-position: inside;
}

.backup-codes-list li {
    background: #fff;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-align: center;
}

.backup-codes-list code {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

/* Modern Custom Checkbox */
.custom-checkbox-container {
    display: flex;
    position: relative;
    padding-left: 32px;
    /* Adjusted spacing */
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    color: #333;
    /* Darker text */
    align-items: flex-start;
}

.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    /* Align with top of text */
    left: 0;
    height: 20px;
    /* Slightly smaller */
    width: 20px;
    background-color: #fff;
    border: 2px solid #ced4da;
    /* Bootstrap-like border */
    border-radius: 5px;
    /* Slightly tighter radius */
    transition: all 0.2s ease-in-out;
}

.custom-checkbox-container:hover input~.checkmark {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.custom-checkbox-container input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(73, 171, 124, 0.4);
    /* Softer shadow */
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox-container input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.label-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    margin-top: 1px;
    /* Fine-tune alignment */
}

.sub-text {
    font-size: 0.8rem;
    color: #6c757d;
    /* Bootstrap muted color */
    font-weight: normal;
    margin-top: 2px;
}

/* Menetlevel filter bar */
.travel-filter-bar {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #d6dee8;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.travel-filter-search {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.travel-filter-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7f92;
}

.travel-filter-search input {
    width: 100%;
    height: 44px;
    padding: 0.65rem 2.35rem 0.65rem 2.25rem;
    border: 1px solid #c5d0dc;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.travel-filter-search input:focus {
    outline: none;
    border-color: #49ab7c;
    box-shadow: 0 0 0 3px rgba(73, 171, 124, 0.15);
}

.travel-filter-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #eaf0f5;
    color: #5f7386;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.travel-filter-search-clear:hover {
    background: #d9e4ee;
    color: #314559;
}

.travel-filter-search-clear.is-hidden {
    display: none;
}

.travel-filter-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.travel-filter-date {
    height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.7rem;
    border: 1px solid #c5d0dc;
    border-radius: 12px;
    background: #fff;
    color: #4f6478;
}

.travel-filter-date input {
    border: none;
    background: transparent;
    color: #24384d;
    font-size: 0.95rem;
    min-width: 150px;
    height: 100%;
}

.travel-filter-date input:focus {
    outline: none;
}

.travel-archive-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #c5d0dc;
    background: #fff;
    cursor: pointer;
    user-select: none;
}

.travel-archive-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.travel-archive-toggle-slider {
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #c5d0dc;
    position: relative;
    transition: background-color 0.18s ease;
}

.travel-archive-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
    transition: transform 0.18s ease;
}

.travel-archive-toggle input:checked+.travel-archive-toggle-slider {
    background: #49ab7c;
}

.travel-archive-toggle input:checked+.travel-archive-toggle-slider::after {
    transform: translateX(18px);
}

.travel-archive-toggle-label {
    font-weight: 600;
    color: #314559;
    white-space: nowrap;
}

@media (max-width: 920px) {
    .travel-filter-controls {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }
}

.tracking-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 0.85rem;
}

.tracking-map-panel,
.tracking-telemetry-panel {
    border: 1px solid #d6dee8;
    border-radius: 14px;
    background: #fff;
    padding: 0.7rem;
}

.tracking-map-panel {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.vehicle-tracking-map {
    width: 100%;
    height: 420px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef3f8;
}

.tracking-current-address {
    border: 1px solid #e1e8ef;
    border-radius: 10px;
    background: #f8fbfe;
    padding: 0.6rem 0.7rem;
    min-height: 72px;
}

.tracking-address-label {
    font-size: 0.74rem;
    color: #52687c;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tracking-address-value {
    font-size: 0.95rem;
    color: #1f2f3d;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.tracking-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.tracking-telemetry-card {
    border: 1px solid #e1e8ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    padding: 0.65rem 0.75rem;
    min-height: 72px;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.tracking-telemetry-card:hover {
    border-color: #b9cbe0;
    box-shadow: 0 4px 14px rgba(26, 44, 69, 0.08);
    transform: translateY(-1px);
}

.tracking-telemetry-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f1fb;
    color: #1d4f82;
    flex: 0 0 32px;
    font-size: 0.9rem;
}

.tracking-telemetry-content {
    min-width: 0;
}

.tracking-telemetry-label {
    font-size: 0.74rem;
    color: #5b6f82;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracking-telemetry-value {
    font-size: 1.02rem;
    color: #1f2f3d;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

.tracking-telemetry-empty {
    grid-column: 1 / -1;
    border: 1px dashed #c7d5e3;
    border-radius: 12px;
    background: #f7fbff;
    color: #52687c;
    padding: 0.9rem 1rem;
    font-weight: 600;
}

.tracking-telemetry-tone-success .tracking-telemetry-icon {
    background: #e8f8ef;
    color: #1b7a4a;
}

.tracking-telemetry-tone-warning .tracking-telemetry-icon {
    background: #fff4e6;
    color: #a25a11;
}

.tracking-telemetry-tone-muted .tracking-telemetry-icon {
    background: #eef2f7;
    color: #6d7f91;
}

.tracking-stop-marker-wrap {
    background: transparent !important;
    border: 0 !important;
}

.tracking-stop-pin {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2b6cb0 0%, #1f4f83 100%);
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(12, 28, 46, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tracking-stop-pin span {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.tracking-stop-pin-start {
    background: linear-gradient(180deg, #2f855a 0%, #216342 100%);
}

.tracking-stop-pin-end {
    background: linear-gradient(180deg, #c05621 0%, #9c4221 100%);
}

@media (max-width: 1080px) {
    .tracking-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-tracking-map {
        height: 320px;
    }
}

@media (max-width: 640px) {
    .tracking-telemetry-grid {
        grid-template-columns: 1fr;
    }
}

/* Menetlevel list table fitting fixes */
.travel-documents-container {
    max-width: 100%;
}

.travel-documents-container .travel-entry-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.travel-documents-container .travel-entry-table th,
.travel-documents-container .travel-entry-table td {
    padding: 0.65rem 0.45rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.travel-documents-container .travel-entry-table th {
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}

.travel-documents-container .travel-entry-table th:nth-child(1),
.travel-documents-container .travel-entry-table td:nth-child(1) {
    width: 48px;
}

.travel-documents-container .travel-entry-table th:nth-child(2),
.travel-documents-container .travel-entry-table td:nth-child(2) {
    width: 7%;
}

.travel-documents-container .travel-entry-table th:nth-child(3),
.travel-documents-container .travel-entry-table td:nth-child(3) {
    width: 10%;
}

.travel-documents-container .travel-entry-table th:nth-child(4),
.travel-documents-container .travel-entry-table td:nth-child(4) {
    width: 11%;
}

.travel-documents-container .travel-entry-table th:nth-child(5),
.travel-documents-container .travel-entry-table td:nth-child(5) {
    width: 8%;
}

.travel-documents-container .travel-entry-table th:nth-child(6),
.travel-documents-container .travel-entry-table td:nth-child(6) {
    width: 9%;
}

.travel-documents-container .travel-entry-table th:nth-child(7),
.travel-documents-container .travel-entry-table td:nth-child(7),
.travel-documents-container .travel-entry-table th:nth-child(8),
.travel-documents-container .travel-entry-table td:nth-child(8) {
    width: 9%;
}

.travel-documents-container .travel-entry-table th:nth-child(9),
.travel-documents-container .travel-entry-table td:nth-child(9) {
    width: 8%;
}

.travel-documents-container .travel-entry-table th:nth-child(10),
.travel-documents-container .travel-entry-table td:nth-child(10) {
    width: 12%;
}

.travel-documents-container .travel-entry-table th:nth-child(11),
.travel-documents-container .travel-entry-table td:nth-child(11) {
    width: 135px;
    white-space: nowrap;
}

.travel-documents-container .travel-entry-subtable {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.travel-documents-container .travel-entry-subtable th,
.travel-documents-container .travel-entry-subtable td {
    padding: 0.55rem 0.4rem;
    font-size: 0.84rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.travel-row-menu {
    display: inline-block;
    position: relative;
    margin-left: 4px;
}

.travel-row-menu-trigger {
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.travel-row-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 200px;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    z-index: 80;
    padding: 0.35rem;
}

.travel-row-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    padding: 0.5rem 0.6rem;
    margin: 0;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
}

.travel-row-menu-item:hover:not(:disabled) {
    background: #f1f5f9;
}

.travel-row-menu-item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
