/* ========================================
   MOBILE STYLES - OPTIMALIZÁLT VERZIÓ
   Desktop.css alapján, mobilra optimalizálva
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #f39c12;
    --primary-hover: #e67e22;
    --secondary-color: #3a4a5a;
    --secondary-hover: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --border-color: #e9ecef;
    --text-color: #212529;
    --text-muted: #6c757d;
}

/* ===== MATERIAL SYMBOLS FONT ===== */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    src: url('fonts/MaterialSymbolsOutlined.woff2') format('woff2');
    font-display: swap;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
}

/* Font betöltődött */
.material-symbols-outlined.font-loaded {
    visibility: visible;
    opacity: 1;
}

/* Elrejtjük az ikont amíg a font be nem töltődik */
.material-symbols-outlined:not(.font-loaded) {
    visibility: hidden;
}

/* ===== MOBILE RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== MOBILE CONTAINER ===== */
.container {
    width: 100%;
    padding: 0 15px;
    max-width: 100%;
}

/* ===== MOBILE HEADER ===== */
.top-header {
    background: #3a4a5a;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    margin: 0;
    position: relative;
    z-index: 1000;
    width: 100%;
}

.header-left {
    flex: 1;
    min-width: 0;
}

.header-left .page-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-suffix {
    color: #6C8DAA;
    font-weight: 300;
    margin-left: 2px;
}

/* Mobile menu elements - visible on mobile */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #2c3e50;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #2c3e50;
    z-index: 9999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.mobile-menu-close {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 20px;
    text-align: right;
    align-self: flex-end;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10000;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 60px 0 20px 0;
    flex: 1;
    width: 100%;
    height: 100%;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-nav-item {
    margin: 0;
}

/* Logout szekció elválasztó */
.mobile-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 24px 16px;
    border: none;
}

/* Logout szekció - külön alul */
.mobile-nav-logout-section {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
}

.mobile-nav-logout-section .logout-item {
    margin-bottom: 0;
}

.mobile-nav-logout-section .logout-link {
    color: #e74c3c;
    opacity: 0.9;
}

.mobile-nav-logout-section .logout-link:active {
    background: rgba(231, 76, 60, 0.1);
    opacity: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 20px 30px;
    border-bottom: 1px solid #34495e;
    transition: background 0.3s ease;
    gap: 15px;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: #34495e;
}

.mobile-nav-item.active .mobile-nav-link {
    background: #34495e;
    border-left: 4px solid #f39c12;
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.close-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

/* ===== PWA INSTALL STYLES (MOBILE) ===== */
.pwa-hidden {
    display: none;
}

.pwa-install-menu-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 500;
}

.pwa-install-menu-item:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

@media (max-width: 768px) {
    /* PWA Install Card (Mobile) */
    .pwa-install-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: #667eea;
        animation: pulse-glow 2s ease-in-out infinite;
    }

    .pwa-install-card .dashboard-quick-action-title {
        color: white;
    }

    .pwa-install-card .dashboard-quick-action-icon {
        background: linear-gradient(135deg, #84cc16, #65a30d);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }
    
    .pwa-install-card .dashboard-quick-action-icon img {
        width: 30px;
        height: 30px;
        filter: brightness(0) invert(1);
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .pwa-install-button {
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        color: #667eea;
        border: none;
        padding: 4px 12px;
        border-radius: 16px;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .pwa-install-button img {
        filter: none;
        width: 14px;
        height: 14px;
    }

    /* PWA Instructions Section (Mobile) */
    .pwa-instructions-section {
        margin: 20px 0;
        padding: 0 16px;
    }

    .pwa-info-card {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid #e5e7eb;
    }

    .pwa-info-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 2px solid #f3f4f6;
    }

    .pwa-app-icon {
        width: 100%;
    }

    .pwa-app-info {
        width: 100%;
    }

    .pwa-app-info h3 {
        font-size: 20px;
        font-weight: 700;
        color: #1f2937;
        margin: 0 0 4px 0;
    }

    .pwa-app-info p {
        font-size: 13px;
        color: #6b7280;
        margin: 0 0 8px 0;
    }

    .pwa-app-features {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pwa-feature-badge {
        background: #f3f4f6;
        color: #4b5563;
        padding: 3px 10px;
        border-radius: 10px;
        font-size: 11px;
        font-weight: 500;
    }

    .pwa-description p {
        font-size: 14px;
        color: #374151;
        margin-bottom: 12px;
        line-height: 1.6;
    }

    .pwa-benefits-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .pwa-benefits-list li {
        padding: 6px 0;
        color: #4b5563;
        font-size: 13px;
        line-height: 1.5;
    }

    .pwa-platform-instructions {
        margin: 16px 0;
    }

    .pwa-platform-guide {
        background: #f9fafb;
        border-radius: 10px;
        padding: 16px;
        border-left: 3px solid #667eea;
    }

    .pwa-platform-guide h4 {
        font-size: 16px;
        font-weight: 600;
        color: #1f2937;
        margin: 0 0 12px 0;
        display: flex;
        align-items: center;
    }

    .pwa-platform-guide p {
        font-size: 13px;
        color: #6b7280;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .pwa-steps-list {
        list-style: decimal;
        padding-left: 20px;
        margin: 0;
    }

    .pwa-steps-list li {
        padding: 6px 0;
        color: #374151;
        font-size: 13px;
        line-height: 1.6;
    }

    .pwa-steps-list li strong {
        color: #1f2937;
        font-weight: 600;
    }

    .pwa-install-main-button {
        width: 100%;
        margin-top: 16px;
        padding: 12px 20px;
        font-size: 15px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 25px;
    }

    .pwa-install-main-button img {
        filter: brightness(0) invert(1);
        width: 18px;
        height: 18px;
    }

    .pwa-already-installed {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        background: #f0fdf4;
        border: 2px solid #10b981;
        border-radius: 10px;
        color: #10b981;
        font-weight: 600;
        font-size: 14px;
        margin-top: 16px;
        gap: 8px;
    }

    .pwa-already-installed img {
        filter: none;
        width: 20px;
        height: 20px;
    }
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* Hamburger animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== MOBILE CONTENT WRAPPER ===== */
.content-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.content-wrapper {
    padding: 15px;
    min-height: calc(100vh - 120px);
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.content-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== MOBILE CARDS ===== */
.client-card,
.location-card,
.task-card,
.system-card,
.maintenance-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* ===== MOBILE FORMS ===== */
/* Form stílusok áthelyezve a specifikus szabályokhoz */

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.form-textarea {
    border-radius: 15px;
    min-height: 100px;
    resize: vertical;
}

/* ===== MOBILE BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-warning,
.btn-danger,
.btn-info,
.btn-light,
.btn-dark,
.add-task-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    margin-top: 5px;
    white-space: nowrap;
    width: 100%; /* ✅ Full width on mobile */
}

.btn-primary {
    background: #f39c12;
    color: white;
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #219a52;
}

.btn-success:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-error {
    background: #dc3545;
    color: white;
}

.btn-error:hover {
    background: #c82333;
}

.btn-error:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

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

.btn-info {
    background: #3498db;
    color: white;
}

.btn-info:hover {
    background: #2980b9;
}

.btn-light {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.btn-light:hover {
    background: #e9ecef;
}

.btn-dark {
    background: #2c3e50;
    color: white;
}

.btn-dark:hover {
    background: #1a252f;
}

.add-task-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-height: 40px;
}

.add-task-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    color: white;
    text-decoration: none;
}

.add-task-btn img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

/* Action buttons - MOVED TO @media (max-width: 768px) blocks below to avoid redundancy */

/* ===== MOBILE ICONS ===== */
.icon-16 {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
}

.icon-20 {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.icon-24 {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

/* ===== MOBILE GRID SYSTEMS ===== */
.clients-grid,
.locations-grid,
.tasks-grid,
.systems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* ===== MOBILE SEARCH & FILTERS ===== */
.search-filters {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-filters .form-group {
    margin-bottom: 15px;
}

.search-filters .form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding-top: 10px;
}

.search-filters .form-actions button {
    width: 100%;
    margin: 0;
}

/* ===== MOBILE PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pagination button {
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    font-size: 12px;
}

/* ===== MOBILE MODALS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 9999;
}

.modal-header {
    background: #506980;
    color: white;
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== MOBILE DASHBOARD ===== */
.dashboard-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.dashboard-widget h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.dashboard-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.dashboard-quick-action {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dashboard-quick-action:hover {
    border-color: #f39c12;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}


/* ===== MOBILE SYSTEM DETAILS ===== */
.system-details {
    margin-bottom: 15px;
}

.system-basic-info {
    margin-bottom: 15px;
}

.system-basic-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.system-elements-section {
    margin: 15px 0;
}

.system-elements-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.elements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.element-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #506980;
}

.element-header {
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.element-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.element-details span {
    font-size: 12px;
    color: #666;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.system-meta-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.system-meta-info p {
    margin: 6px 0;
    font-size: 12px;
    color: #999;
    display: block;
}

/* ===== MOBILE NOTIFICATIONS ===== */
/* ===== NOTIFICATION STYLES - MOBILE ===== */
@media (max-width: 768px) {
    .notification-container {
        position: fixed;
        top: 60px; /* Header alatt fix helyen mobilon */
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        max-width: calc(100% - 32px);
        width: calc(100% - 32px);
        pointer-events: none;
        padding: 0 16px;
    }

    .notification-container .notification {
        pointer-events: auto;
    }

    .notification {
        display: flex;
        align-items: center;
        gap: 0;
        padding: 12px 14px;
        border-radius: 12px;
        margin-bottom: 0;
        font-size: 13px;
        font-weight: 500;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
        width: 100%;
        border: none;
        background: white;
        color: #212549;
        position: relative;
    }

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

    .notification.hide {
        opacity: 0;
        transform: translateY(-20px);
    }

    /* Support both .notification-success and .notification.success */
    .notification-error,
    .notification.error {
        background: white !important;
        color: #dc3545 !important; /* Piros szöveg */
    }

    .notification-success,
    .notification.success {
        background: white !important;
        color: #28a745 !important; /* Zöld szöveg */
    }

    .notification-warning,
    .notification.warning {
        background: white !important;
        color: #f59e0b !important; /* Narancssárga szöveg */
        border: none !important;
    }

    .notification.info {
        background: white !important;
        color: #3b82f6 !important; /* Kék szöveg */
    }

    .notification-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px !important;
    }

    .notification-icon img {
        width: 20px;
        height: 20px;
        display: block;
    }

    /* Ikonok színezése */
    .notification-success .notification-icon img,
    .notification.success .notification-icon img {
        filter: brightness(0) saturate(100%) invert(40%) sepia(92%) saturate(1235%) hue-rotate(90deg) brightness(97%) contrast(85%) !important; /* Zöld */
    }

    .notification-error .notification-icon img,
    .notification.error .notification-icon img {
        filter: brightness(0) saturate(100%) invert(27%) sepia(94%) saturate(6362%) hue-rotate(342deg) brightness(91%) contrast(89%) !important; /* Piros */
    }

    .notification-warning .notification-icon img,
    .notification.warning .notification-icon img {
        filter: brightness(0) saturate(100%) invert(65%) sepia(90%) saturate(3080%) hue-rotate(356deg) brightness(101%) contrast(96%) !important; /* Narancssárga */
    }

    .notification.info .notification-icon img {
        filter: brightness(0) saturate(100%) invert(50%) sepia(98%) saturate(2879%) hue-rotate(211deg) brightness(102%) contrast(97%) !important; /* Kék */
    }

    .notification-message {
        flex: 1;
        color: inherit;
        margin-left: 0 !important;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .notification-close {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.7;
        transition: opacity 0.2s;
        margin-left: 8px;
        -webkit-tap-highlight-color: transparent;
    }

    .notification-close:active {
        opacity: 1;
        transform: scale(0.95);
    }

    /* Close gomb ikon - szürke marad */
    .notification-close img {
        width: 18px;
        height: 18px;
        filter: brightness(0) saturate(100%) invert(50%) !important; /* Szürke */
    }

    .notification-content {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 12px;
    }
}


/* ===== MOBILE FOOTER ===== */
.footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    font-size: 12px;
}

/* ===== MOBILE MENU ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-menu-overlay.active {
    animation: fadeIn 0.3s ease;
}

/* ===== MOBILE HEADER SIMPLIFICATION ===== */
@media (max-width: 768px) {
    /* Elrejtjük a felesleges header elemeket mobilon */
    .top-header .header-nav {
        display: none;
    }
    
    .top-header .header-center {
        display: none;
    }

    .top-header .header-right {
display: flex;
        align-items: center;
        gap: 12px;
        margin-right: 8px;
    }
    
    /* Notification icon container - Mobile Optimization */
    .top-header .header-right .notification-icon-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 8px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: opacity 0.2s ease;
    }

    .top-header .header-right .notification-icon-container:active {
        opacity: 0.7;
        transform: scale(0.95);
    }

    /* Notification icon white on mobile */
    .top-header .header-right .notification-icon-container .nav-icon {
        filter: brightness(0) invert(1) !important; /* White icon */
        width: 22px !important;
        height: 22px !important;
        display: block;
    }

    /* Notification badge - Mobile Optimization */
    .top-header .header-right .notification-icon-container .notification-badge {
        position: absolute;
        top: 2px;
        right: 2px;
        background: #dc3545;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        min-width: 18px;
        font-size: 10px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #2c3e50;
        z-index: 10;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        line-height: 1;
        padding: 0;
    }

    /* Notification dropdown - Mobile Optimization */
    .top-header .header-right .notification-icon-container .notification-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        min-width: auto;
        max-width: calc(100vw - 20px);
        background: white;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        z-index: 9999;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .top-header .header-right .notification-icon-container .notification-dropdown > div:first-child {
        padding: 16px;
        border-bottom: 2px solid #e9ecef;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
    }

    .top-header .header-right .notification-icon-container .notification-dropdown > div:first-child h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .top-header .header-right .notification-icon-container .notification-dropdown #inProgressMaintenancesList {
        max-height: calc(100vh - 180px);
        overflow-y: auto;
        padding: 8px;
    }
    
    /* Elrejtjük a user profile-t és logout-ot mobilon, csak a connection status marad */
    .top-header .header-right .user-profile {
display: none;
    }
    
    .top-header .header-right .logout-section {
display: none;
    }
    
    /* Connection status indicator látható és rendezett */
    .top-header .connection-status-indicator {
display: flex;
visibility: visible;
opacity: 1;
    }
    
    /* Header layout újrarendezése mobilon */
    .top-header {
        justify-content: space-between;
        padding: 0 15px;
        display: flex;
        flex-direction: row;
    }
    
    .header-left {
        flex: 1;
        min-width: 0;
        order: 1;
    }
    
    /* Connection status középen (de inkább jobbra a címtől) */
    .top-header .header-right {
        order: 2;
    }
    
    /* Hamburger menü a legjobbra */
    .mobile-menu-toggle {
        order: 3;
        margin-left: auto;
    }
    
    .header-left .page-title {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ===== MOBILE DASHBOARD STYLES ===== */
@media (max-width: 768px) {
    /* Dashboard Content Header */
    .page-dashboard .content-header {
        padding: 16px;
        background: white;
        border-radius: 12px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .page-dashboard .content-title {
        font-size: 22px;
        font-weight: 700;
        margin: 0;
        color: #2c3e50;
    }
    
    .page-dashboard .dashboard-subtitle {
        font-size: 12px;
        display: block;
        color: #7f8c8d;
        margin-top: 4px;
    }
    
    /* Quick Actions Section */
    .page-dashboard .quick-actions-section {
        margin-bottom: 32px;
        padding: 0;
    }
    
    .page-dashboard .section-title {
        font-size: 16px;
        margin-bottom: 16px;
        font-weight: 700;
        color: #2c3e50;
    }
    
    .page-dashboard .dashboard-quick-actions-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 0 8px;
    }
    
    .page-dashboard .dashboard-quick-action-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 12px;
        background: white;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid #e9ecef;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .page-dashboard .dashboard-quick-action-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .page-dashboard .dashboard-quick-action-card:active {
        transform: scale(0.95);
    }
    
    .page-dashboard .dashboard-quick-action-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .page-dashboard .dashboard-quick-action-icon img {
        width: 30px;
        height: 30px;
        filter: brightness(0) invert(1);
    }
    
    .page-dashboard .dashboard-quick-action-title {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
        text-align: center;
        color: #2c3e50;
        margin: 0;
    }
    
    /* Icon gradients */
    .page-dashboard .dashboard-quick-action-icon.systems-icon {
        background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    }
    
    .page-dashboard .dashboard-quick-action-icon.permissions-icon {
        background: linear-gradient(135deg, #06b6d4, #0891b2);
    }
    
    .page-dashboard .dashboard-quick-action-icon.certificates-icon {
        background: linear-gradient(135deg, #eab308, #ca8a04);
    }
    
    .page-dashboard .dashboard-quick-action-icon.form-editor-icon {
        background: linear-gradient(135deg, #14b8a6, #0d9488);
    }
    
    .page-dashboard .dashboard-quick-action-icon.qr-codes-icon {
        background: linear-gradient(135deg, #667eea, #764ba2);
    }
    
    .page-dashboard .dashboard-quick-action-icon.groups-icon {
        background: linear-gradient(135deg, #6366f1, #4f46e5);
    }
    
    .page-dashboard .dashboard-quick-action-icon.documents-icon {
        background: linear-gradient(135deg, #ec4899, #db2777);
    }
    
    .page-dashboard .dashboard-quick-action-icon.add-user-icon {
        background: linear-gradient(135deg, #84cc16, #65a30d);
    }
    
    .page-dashboard .dashboard-quick-action-icon.tasks-icon {
        background: linear-gradient(135deg, #10b981, #059669);
    }
    
    .page-dashboard .dashboard-quick-action-icon.clients-icon {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }
    
    .page-dashboard .dashboard-quick-action-icon.locations-icon {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }
    
    .page-dashboard .dashboard-quick-action-icon.maintenance-icon {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }
    
    .page-dashboard .dashboard-quick-action-icon.system-categories-icon {
        background: linear-gradient(135deg, #f97316, #ea580c);
    }
    
    .page-dashboard .dashboard-quick-action-icon.cleanup-icon {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }
    
    .dashboard-quick-action-icon.pwa-install-icon,
    .page-dashboard .dashboard-quick-action-icon.pwa-install-icon {
        background: linear-gradient(135deg, #84cc16, #65a30d);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .dashboard-quick-action-icon.pwa-install-icon img,
    .page-dashboard .dashboard-quick-action-icon.pwa-install-icon img {
        width: 30px;
        height: 30px;
        filter: brightness(0) invert(1);
        display: block;
        opacity: 1;
        visibility: visible;
    }
    
    /* Statistics Section */
    .page-dashboard .stats-section {
        margin-bottom: 32px;
    }
    
    .page-dashboard .dashboard-stats-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 8px;
    }
    
    .page-dashboard .dashboard-stat-card {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 10px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid #e9ecef;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .page-dashboard .dashboard-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .page-dashboard .dashboard-stat-card:active {
        transform: scale(0.95);
    }
    
    .page-dashboard .stat-icon-wrapper {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
    }
    
    .page-dashboard .stat-icon-wrapper img {
        width: 24px;
        height: 24px;
        filter: brightness(0) invert(0.6);
    }
    
    .page-dashboard .stat-info {
        flex: 1;
    }
    
    .page-dashboard .stat-number {
        font-size: 20px;
        font-weight: 700;
        color: #2c3e50;
        line-height: 1.2;
        margin: 0;
    }
    
    .page-dashboard .stat-label {
        font-size: 12px;
        color: #7f8c8d;
        line-height: 1.2;
        margin: 0;
    }
    
    /* Recent Activity Section */
    .page-dashboard .recent-section {
        margin-bottom: 32px;
    }
    
    .page-dashboard .dashboard-recent-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 8px;
    }
    
    .page-dashboard .dashboard-recent-card {
        padding: 16px;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        background: white;
        border: 1px solid #e9ecef;
    }
    
    .page-dashboard .recent-card-header {
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .page-dashboard .recent-card-header h3 {
        font-size: 15px;
        font-weight: 600;
        color: #2c3e50;
        margin: 0;
    }
    
    .page-dashboard .recent-card-body {
        padding: 0;
    }
    
    .page-dashboard .recent-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .page-dashboard .recent-item:last-child {
        border-bottom: none;
    }
    
    .page-dashboard .recent-item-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
    }
    
    .page-dashboard .recent-item-icon img {
        width: 16px;
        height: 16px;
        filter: brightness(0) invert(0.6);
    }
    
    .page-dashboard .recent-item-content {
        flex: 1;
    }
    
    .page-dashboard .recent-item-title {
        font-size: 13px;
        font-weight: 500;
        color: #2c3e50;
        margin: 0 0 2px 0;
        line-height: 1.3;
    }
    
    .page-dashboard .recent-item-time {
        font-size: 11px;
        color: #7f8c8d;
        margin: 0;
        line-height: 1.2;
    }
    
    /* Activity Items - Dashboard Recent Activity */
    .page-dashboard .activity-item {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f3f5;
        transition: background-color 0.2s ease;
    }
    
    .page-dashboard .activity-item:last-child {
        border-bottom: none;
    }
    
    .page-dashboard .activity-item:hover {
        background-color: #f8f9fa;
    }
    
    .page-dashboard .activity-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
    }
    
    .page-dashboard .activity-icon img {
        width: 16px;
        height: 16px;
        filter: brightness(0) invert(1);
    }
    
    .page-dashboard .activity-icon.status-pending {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }
    
    .page-dashboard .activity-icon.status-completed {
        background: linear-gradient(135deg, #10b981, #059669);
    }
    
    .page-dashboard .activity-icon.status-active {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }
    
    .page-dashboard .activity-icon.status-cancelled {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }
    
    .page-dashboard .activity-content {
        flex: 1;
    }
    
    .page-dashboard .activity-title {
        font-size: 13px;
        font-weight: 500;
        color: #2c3e50;
        margin: 0 0 4px 0;
        line-height: 1.3;
    }
    
    .page-dashboard .activity-details {
        font-size: 11px;
        color: #7f8c8d;
        margin: 0 0 2px 0;
        line-height: 1.2;
    }
    
    .page-dashboard .activity-time {
        font-size: 10px;
        color: #95a5a6;
        margin: 0;
        line-height: 1.2;
    }
}

/* ===== MOBILE TASKS PAGE STYLES ===== */
@media (max-width: 768px) {
    /* Tasks page header mobilos elrendezés */
    .page-tasks .content-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    /* Tasks page content controls mobilos elrendezés */
    .page-tasks .content-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    /* Mobile Content Header - Tasks/Clients/Locations/Maintenance pages */
    .page-tasks .content-header,
    .page-clients .content-header,
    .page-locations .content-header,
    .page-maintenance .content-header,
    .page-maintenance .maintenance-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
        background: white;
        border-radius: 12px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Maintenance page - search and new button full width on mobile */
    .page-maintenance .content-header > div:first-of-type .content-controls,
    .page-maintenance .maintenance-header > div:first-of-type .content-controls {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .page-maintenance .content-header .search-container,
    .page-maintenance .maintenance-header .search-container {
        width: 100% !important;
    }


    .page-tasks .content-title,
    .page-clients .content-title,
    .page-locations .content-title,
    .page-maintenance .content-title {
        font-size: 20px;
        font-weight: 600;
        color: #2c3e50;
        margin: 0;
    }

    /* Hide content title on clients, locations, tasks and maintenance pages mobile */
    .page-clients .content-title,
    .page-locations .content-title,
    .page-tasks .content-title,
    .page-maintenance .content-title {
        display: none;
    }

    /* Hide empty content-header on maintenance form pages mobile */
    .page-maintenance .content-header:has(.header-left .content-title):has(.header-right .back-button) {
        display: none !important;
    }

    /* Fallback: Hide content-header if it only contains header-left and header-right with minimal content */
    .page-maintenance .content-header .header-left:only-child,
    .page-maintenance .content-header:has(.header-left:only-child) {
        display: none !important;
    }

    /* More specific: Hide content-header on maintenance form pages (fire_alarm/add.php, etc.) */
    /* Csak a form oldalakon rejtsük el, ne a listázó oldalon */
    body.page-add_maintenance .content-wrapper .content-header,
    body.page-edit_maintenance .content-wrapper .content-header,
    .page-add_maintenance .content-wrapper .content-header,
    .page-edit_maintenance .content-wrapper .content-header {
        display: none !important;
    }

    /* Hide client avatar on clients and locations pages mobile */
    .page-clients .client-avatar,
    .page-locations .client-avatar {
        display: none;
    }

    /* Client header layout on maintenance page - avatar and status in one row */
    .page-maintenance .client-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 12px;
        border-bottom: 2px solid #f1f3f5;
        flex-wrap: wrap;
    }

    .page-maintenance .client-header .client-avatar {
        display: flex;
        flex-shrink: 0;
        order: 1;
    }

    .page-maintenance .client-header .client-info {
        flex: 1;
        min-width: 0;
        order: 2;
    }

    .page-maintenance .client-header .client-status {
        flex-shrink: 0;
        order: 3;
        margin-left: auto;
    }

    /* Mobile Content Controls - Tasks/Clients/Locations/Maintenance pages (összevonva) */
    /* Removed duplicate/conflicting styles - using default flex layout */

    /* ===== MOBILOS TASK CARD STÍLUSOK ===== */
    .task-card-new {
        background: white;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-left: 4px solid #e9ecef;
        transition: all 0.3s ease;
    }

    .task-card-new:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
    }

    /* Border colors based on work_type */
    .task-card-new.border-blue {
        border-left-color: #007bff;
    }

    .task-card-new.border-red {
        border-left-color: #dc3545;
    }

    .task-card-new.border-yellow {
        border-left-color: #ffc107;
    }

    .task-card-new.border-orange {
        border-left-color: #fd7e14;
    }

    .task-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
        gap: 12px;
    }
    
    .task-card-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0;
        flex: 1;
        line-height: 1.4;
    }

    .task-card-status {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .task-card-status.pending {
        background: #fff3cd;
        color: #856404;
        border: 1px solid #ffeaa7;
    }

    .task-card-status.in-progress {
        background: #cce5ff;
        color: #004085;
        border: 1px solid #99d6ff;
    }

    .task-card-status.completed {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .task-card-status.cancelled {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .task-card-content {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .task-card-info {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .task-card-info-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: #666;
    }

    .task-card-info-icon {
        width: 16px;
        height: 16px;
        opacity: 0.7;
        flex-shrink: 0;
    }

    .task-card-info-text {
        flex: 1;
        min-width: 0;
    }

    .task-card-actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f1f3f5;
    }

    .task-card-action-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 6px;
        color: #495057;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.2s ease;
        flex: 1;
        justify-content: center;
    }

    .task-card-action-btn:hover {
        background: #e9ecef;
        color: #212529;
        transform: translateY(-1px);
    }

    .task-card-action-btn.primary {
        background: #506980;
        color: white;
        border-color: #506980;
    }

    .task-card-action-btn.primary:hover {
        background: #3d5266;
        border-color: #3d5266;
    }

    /* ===== FELADATOK SZŰRŐ GOMBOK MOBILOS ===== */
    
    /* Szűrő konténer mobilon */
    /* Task Status Cards - Mobile */
    .task-status-cards {
        display: flex;
        gap: 12px;
        margin-bottom: 16px;
        flex-wrap: wrap;
    }

    .status-card-item {
        flex: 1;
        min-width: calc(50% - 6px);
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        padding: 12px 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .status-card-label {
        font-size: 12px;
        color: #6c757d;
        font-weight: 500;
    }

    .status-card-count {
        font-size: 20px;
        font-weight: 700;
        color: #506980;
    }

    .task-filters {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        background: white;
        border-radius: 12px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .page-tasks .task-filters {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        background: white;
        border-radius: 12px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Szűrő gombok csoport mobilon */
    .filter-group {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }
    
    .page-tasks .filter-group {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }

    /* Szűrő gombok mobilon */
    .filter-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        padding: 10px 14px;
        background: white;
        border: 2px solid #e9ecef;
        border-radius: 25px;
        color: #6c757d;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .page-tasks .filter-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 14px;
        background: white;
        border: 2px solid #e9ecef;
        border-radius: 25px;
        color: #495057;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .page-tasks .filter-btn:hover,
    .page-tasks .filter-btn:active {
        background: #f8f9fa;
        transform: translateY(-1px);
    }

    .page-tasks .filter-btn.active {
        background: #3a4a5a;
        color: white;
        border-color: #3a4a5a;
    }

    /* Szűrő ikonok mobilon */
    .page-tasks .filter-icon {
        width: 16px;
        height: 16px;
        opacity: 0.8;
        flex-shrink: 0;
    }

    .page-tasks .filter-btn.active .filter-icon {
        filter: brightness(0) invert(1);
        opacity: 1;
    }

    /* Keresés mező mobilon */
    .page-tasks .filter-search {
        position: relative;
        width: 100%;
        min-width: auto;
    }

    .page-tasks .filter-search-input {
        width: 100%;
        padding: 12px 44px 12px 16px;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        font-size: 16px;
        background: white;
        transition: all 0.2s ease;
    }

    .page-tasks .filter-search-input:focus {
        border-color: #3a4a5a;
        background: white;
        outline: none;
        box-shadow: 0 0 0 3px rgba(80, 105, 128, 0.1);
    }

    /* Keresés ikon mobilon */
    .page-tasks .filter-search-icon {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        opacity: 0.6;
        pointer-events: none;
    }

    /* ===== NAPTÁR MOBILOS STÍLUSOK ===== */
    
    /* Naptár konténer mobilon */
    .page-tasks .calendar-container {
        padding: 16px;
        background: transparent;
        box-shadow: none;
    }

    /* Naptár vezérlők mobilon */
    .page-tasks .calendar-controls {
        background: white;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Navigáció sor mobilon */
    .page-tasks .calendar-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    /* Naptár cím mobilon */
    .page-tasks .calendar-title {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        color: #333;
        text-align: center;
    }

    /* Navigációs gombok mobilon */
    .page-tasks .calendar-nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #506980;
        border: none;
        border-radius: 8px;
        color: white;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .page-tasks .calendar-nav-btn:hover,
    .page-tasks .calendar-nav-btn:active {
        background: #3d5266;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(80, 105, 128, 0.3);
    }

    .page-tasks .calendar-nav-btn img {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }

    /* Ma gomb mobilon */
    .page-tasks .calendar-today-btn {
        background: #f39c12;
        color: white;
        border: none;
        border-radius: 25px;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .page-tasks .calendar-today-btn:hover,
    .page-tasks .calendar-today-btn:active {
        background: #e67e22;
        transform: translateY(-1px);
    }

    /* Nézet váltó gombok mobilon */
    .page-tasks .calendar-view-toggle {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        background: #f8f9fa;
        padding: 6px;
        border-radius: 8px;
        margin: 12px 0;
        justify-content: center;
    }
    
    .page-tasks .view-toggle-btn {
        font-size: 13px;
        padding: 8px 16px;
        min-height: 40px;
        flex: 1;
        min-width: calc(33.333% - 4px);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 25px;
        font-weight: 500;
        -webkit-tap-highlight-color: transparent;
    }
    
    .page-tasks .view-toggle-btn.active {
        background: #506980 !important;
        color: white !important;
        font-weight: 600;
    }
    
    .page-tasks .view-toggle-btn:active {
        transform: scale(0.98);
    }

    /* Hét napjainak fejléceit elrejtjük mobilon */
    .page-tasks .calendar-header-row {
        display: none;
    }

    /* Naptár grid átállítása vertikális layoutra */
    .page-tasks .calendar-grid {
        background: transparent;
        border: none;
        border-radius: 0;
        overflow: visible;
        margin-top: 12px;
    }
    
    /* Calendar days grid - mobilon vertikális layout (nem 7 oszlop) */
    .page-tasks .calendar-days-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        background: transparent !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
    }
    
    .page-tasks .calendar-days-grid.two-week {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        background: transparent !important;
    }

    /* Calendar days - vertikális layout */
    .page-tasks .calendar-days {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Calendar day - vertikális layout */
    .page-tasks .calendar-day {
        background: white;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #e9ecef;
    }

    /* Calendar day header */
    .page-tasks .calendar-day-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid #f1f3f5;
    }

    .page-tasks .calendar-day-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0;
    }

    .page-tasks .calendar-day-date {
        font-size: 14px;
        color: #666;
        margin: 0;
    }

    /* Calendar day tasks */
    .page-tasks .calendar-day-tasks {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    /* Calendar controls mobilon */
    .page-tasks .calendar-controls {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        background: white;
        border-radius: 12px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .page-tasks .calendar-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        order: 2;
    }
    
    .page-tasks .calendar-title {
        font-size: 18px;
        font-weight: 600;
        text-align: center;
        margin: 0;
        order: 1;
        color: #2c3e50;
    }
    
    .page-tasks .calendar-nav-btn,
    .page-tasks .calendar-today-btn {
        min-height: 40px;
        min-width: 40px;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 25px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .page-tasks .calendar-view-toggle {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }

    /* Filtered task styles - Mobile only */
    .task-card-new.filtered-out,
    .task-card.filtered-out {
        display: none;
        visibility: hidden;
        opacity: 0;
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .task-card-new:not(.filtered-out),
    .task-card:not(.filtered-out) {
        display: block;
        visibility: visible;
        opacity: 1;
        height: auto;
        margin: 8px 0;
    }
}

/* ===== MOBILE MAINTENANCE PAGE STYLES ===== */
@media (max-width: 768px) {
    /* .maintenance-header - Moved to common header styles above */
    
    .maintenance-title {
        display: none; /* Hide on mobile, same as content-title */
    }

    .maintenance-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 16px;
    }

    .maintenance-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-left: 4px solid #e9ecef;
        transition: transform 0.2s ease;
    }

    .maintenance-card:active {
        transform: scale(0.98);
    }

    .maintenance-card.status-pending {
        border-left-color: #f39c12;
    }

    .maintenance-card.status-completed {
        border-left-color: #27ae60;
    }

    .maintenance-card.status-overdue {
        border-left-color: #e74c3c;
    }

    .maintenance-header-card {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }

    .maintenance-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #3498db;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: 600;
        color: white;
        text-transform: uppercase;
        flex-shrink: 0;
    }

    .maintenance-info {
        flex: 1;
        min-width: 0;
    }

    .maintenance-client-name {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0 0 4px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .maintenance-system-type {
        font-size: 14px;
        color: #666;
        margin: 0;
    }

    .maintenance-status {
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
    }

    .maintenance-status.pending {
        background: #fff3cd;
        color: #856404;
    }

    .maintenance-status.completed {
        background: #d5f4e6;
        color: #27ae60;
    }

    .maintenance-status.overdue {
        background: #f8d7da;
        color: #721c24;
    }

    .maintenance-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }

    .maintenance-actions {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
    }

    /* Client actions buttons - align to right on mobile for easier access */
    .client-card .client-actions,
    .page-maintenance .client-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f1f3f5;
    }

    /* ===== MOBILE MAINTENANCE FORM STYLES (Időszakos karbantartási form) ===== */
    /* Maintenance form question items */
    .page-maintenance .maintenance-question-item {
        margin-bottom: 16px;
        padding: 16px;
        background: #f8f9fa;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        border: 2px solid #dc3545;
    }

    .page-maintenance .maintenance-question-text {
        flex: 1;
        min-width: 200px;
        font-weight: 500;
    }

    /* State buttons align to right on mobile */
    .page-maintenance .maintenance-question-item .maintenance-state-button,
    .page-maintenance .maintenance-question-item .yearly-state-btn,
    .page-maintenance .maintenance-question-item .quarterly-state-btn,
    .page-maintenance .maintenance-question-item .daily-state-btn {
        align-self: flex-end;
        margin-left: 0;
    }

    /* Maintenance form state buttons exactly like desktop */
    .page-maintenance .maintenance-state-button,
    .page-maintenance .yearly-state-btn,
    .page-maintenance .quarterly-state-btn,
    .page-maintenance .daily-state-btn {
        background-color: #28a745;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        min-width: 120px;
        font-weight: 500;
        min-height: auto;
        font-size: inherit;
    }

    .page-maintenance .maintenance-datetime-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        margin: 16px 0;
    }

    .page-maintenance .maintenance-notes-section {
        margin: 20px 0;
    }

    .page-maintenance .maintenance-image-upload {
        margin-top: 20px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 16px;
        border: 2px dashed #e74c3c;
    }

    /* Maintenance form actions (buttons row) */
    .page-maintenance .form-actions {
        width: 100%;
        margin-top: 20px;
        padding: 0;
    }

    .page-maintenance .form-actions-right {
        justify-content: center;
    }

    .page-maintenance .form-actions button {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        border-radius: 20px;
        min-height: 52px;
    }

    /* Maintenance form final submit button */
    .page-maintenance .maintenance-final-submit {
        width: 100%;
        padding: 18px;
        font-size: 18px;
        font-weight: 700;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        min-height: 60px;
    }

    /* Dynamic state colors - same as desktop */
    .page-maintenance .maintenance-final-submit[data-state="megfelelt"] {
        background-color: #28a745;
        color: white;
    }

    .page-maintenance .maintenance-final-submit[data-state="nem-megfelelt"] {
        background-color: #dc3545;
        color: white;
    }

    /* Maintenance form images grid exactly like desktop */
    .page-maintenance .maintenance-images-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 20px;
    }

    /* Maintenance form specific elements */
    .page-maintenance .maintenance-yearly-title {
        margin: 16px 0;
        padding: 14px;
        background: #e74c3c;
        color: white;
        text-align: center;
        border-radius: 16px;
        font-size: 16px;
        font-weight: 600;
    }

    .page-maintenance .maintenance-yearly-questions {
        margin: 16px 0;
    }

    .page-maintenance .maintenance-datetime-label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #e74c3c;
        font-size: 14px;
    }

    .page-maintenance .maintenance-notes-label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        font-size: 14px;
    }

    .page-maintenance .maintenance-notes-label-spacing {
        display: block;
        margin-bottom: 8px;
        margin-top: 16px;
        font-weight: 600;
        font-size: 14px;
    }

    .page-maintenance .maintenance-image-upload h4 {
        color: #e74c3c;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        font-size: 16px;
        gap: 8px;
    }

    .page-maintenance .maintenance-image-upload-info {
        margin-bottom: 12px;
    }

    .page-maintenance .maintenance-image-upload-help {
        color: #666;
        display: block;
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.5;
    }

    .page-maintenance .maintenance-image-preview {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
        margin-top: 12px;
    }

    .page-maintenance .maintenance-question-item input[type="text"] {
        margin-top: 10px;
        width: 100%;
        padding: 12px;
        border-radius: 16px;
        border: 2px solid #e9ecef;
        font-size: 14px;
        min-height: 44px;
    }

    .page-maintenance .maintenance-state-button {
        font-weight: 600;
        text-align: center;
        letter-spacing: 0.3px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }

    .page-maintenance .maintenance-state-button:active {
        transform: scale(0.98);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    }

    .page-maintenance .maintenance-final-submit:active {
        transform: scale(0.97);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .page-maintenance .required {
        color: #ef4444;
        font-weight: 700;
        margin-left: 4px;
    }
}

/* ===== MOBILE BUTTON STYLES ===== */
@media (max-width: 768px) {
    /* Alap gomb stílusok - full width + színek és hover effektek */
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-error,
    .btn-warning,
    .btn-danger,
    .btn-info {
        width: 100%; /* ✅ Minden gomb full width mobilon */
    }
    
    /* Kivétel: form-row-ban lévő gombok egymás alatt - minden gomb külön sorban */
    .form-row .btn-primary,
    .form-row .btn-secondary,
    .form-row .btn-success,
    .form-row .btn-error,
    .form-row .btn-warning,
    .form-row .btn-danger,
    .form-row .btn-info {
        width: 100% !important;
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #f39c12, #e67e22);
    }
    .btn-primary:hover {
        background: linear-gradient(135deg, #e67e22, #d35400);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    }

    .btn-secondary {
        background: #3a4a5a;
    }
    .btn-secondary:hover {
        background: #2c3e50;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(58, 74, 90, 0.3);
    }

    .btn-danger {
        background: #dc3545;
    }
    .btn-danger:hover {
        background: #c82333;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    }

    .btn-warning {
        background: var(--primary-color);
        border: 2px solid var(--primary-color);
    }
    .btn-warning:hover {
        background: var(--primary-hover);
        border-color: var(--primary-hover);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    }
    .btn-warning:disabled {
        background: #e9ecef;
        color: #6c757d;
        border-color: #e9ecef;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    /* Small Button */
    .btn-sm {
        padding: 6px 16px;
        font-size: 13px;
        height: 32px;
        min-height: 32px;
    }

    /* Add Task Button - csak width override mobilon */
    .add-task-btn {
        width: 100%;
    }

    /* Filter Button */
    .btn-filter {
        background: #506980;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 25px;
        font-size: 14px;
        cursor: pointer;
        margin-right: 8px;
        margin-bottom: 8px;
        transition: all 0.2s ease;
    }

    .btn-filter:hover {
        background: #3d5266;
        transform: translateY(-1px);
    }

    /* Action Button - Specific selector to override generic button styles */
    button.btn-action,
    a.btn-action,
    span.btn-action {
        background: #506980;
        color: white;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 8px; /* CRITICAL: Rounded rectangle, NOT circle */
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 2px;
        min-width: 40px;
        max-width: 40px;
        min-height: 40px; /* Override generic button min-height */
        font-size: 0; /* Remove text size for icon-only buttons */
    }

    button.btn-action:hover,
    button.btn-action:active,
    a.btn-action:hover,
    a.btn-action:active,
    span.btn-action:hover,
    span.btn-action:active {
        background: #3d5266;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(80, 105, 128, 0.3);
    }

    /* Ensure delete button uses same style as other action buttons */
    button.btn-action.btn-delete,
    a.btn-action.btn-delete,
    span.btn-action.btn-delete {
        background: #506980; /* Override any global .btn-delete styles */
        border-radius: 8px; /* CRITICAL: Ensure rounded rectangle, NOT circle */
    }

    button.btn-action.btn-delete:hover,
    button.btn-action.btn-delete:active,
    a.btn-action.btn-delete:hover,
    a.btn-action.btn-delete:active,
    span.btn-action.btn-delete:hover,
    span.btn-action.btn-delete:active {
        background: #3d5266;
    }

    button.btn-action img,
    a.btn-action img,
    span.btn-action img,
    button.btn-edit img,
    a.btn-edit img,
    span.btn-edit img,
    button.btn-view img,
    a.btn-view img,
    button.btn-delete img,
    a.btn-delete img,
    button.btn-print img,
    a.btn-print img,
    button.btn-qr img,
    a.btn-qr img,
    button.btn-images img,
    a.btn-images img {
        filter: brightness(0) invert(1);
        width: 16px;
        height: 16px;
        display: block;
    }
    
    /* Client Avatar - kisebb mobilon */
    .client-avatar {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .client-avatar img {
        width: 18px;
        height: 18px;
    }
    
    .client-avatar .material-symbols-outlined {
        font-size: 20px;
        color: white;
        display: inline-block;
        width: auto;
        height: auto;
    }
    
    /* System category based avatar colors */
    .client-avatar[data-system-category="1"] {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }
    
    .client-avatar[data-system-category="2"] {
        background: linear-gradient(135deg, #6b7280, #4b5563);
    }
    
    .client-avatar[data-system-category="3"] {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }
    
    .client-avatar[data-system-category="4"] {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }
    
    .client-avatar[data-system-category="5"] {
        background: linear-gradient(135deg, #0ea5e9, #0284c7);
    }
    
    .client-avatar[data-system-category="6"] {
        background: linear-gradient(135deg, #06b6d4, #0891b2);
    }
    
    .client-avatar[data-system-category="7"] {
        background: linear-gradient(135deg, #a855f7, #9333ea);
    }
    
    .client-avatar[data-system-category="8"] {
        background: linear-gradient(135deg, #10b981, #059669);
    }
    
    .client-avatar[data-system-category="9"] {
        background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    }
    
    .client-avatar[data-system-category="10"] {
        background: linear-gradient(135deg, #06b6d4, #0891b2);
    }
    
    .client-avatar[data-system-category="11"] {
        background: linear-gradient(135deg, #eab308, #ca8a04);
    }
    
    /* Mobile View Toggle */
    .mobile-view-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-view-btn {
        background: #506980;
        color: white;
        border: 2px solid #506980;
        padding: 8px 12px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
    }
    
    .mobile-view-btn:hover {
        background: #3d5266;
        border-color: #3d5266;
    }
    
    .mobile-view-btn img {
        width: 18px;
        height: 18px;
        filter: brightness(0) invert(1);
    }
    
    .mobile-view-label {
        font-size: 13px;
        font-weight: 500;
        color: #2c3e50;
    }
    
    /* Pagination - mobilos verzió */
    .pagination-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 12px 8px;
        margin: 12px 0;
    }
    
    .pagination-info {
        display: none; /* Számozás elrejtve mobilon */
    }
    
    .pagination-left,
    .pagination-right {
        display: flex;
        gap: 6px;
    }
    
    .pagination-left .btn-secondary,
    .pagination-right .btn-secondary,
    .pagination-wrapper .btn-secondary {
        min-width: 40px;
        width: 40px;
        height: 40px;
        padding: 0;
        margin-top: 0;
        border-radius: 8px;
    }
    
    .pagination-left .btn-secondary img,
    .pagination-right .btn-secondary img,
    .pagination-wrapper .btn-secondary img {
        width: 16px;
        height: 16px;
        filter: brightness(0) invert(1);
    }

    /* Disabled Button State */
    .btn-secondary.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

    .btn-secondary.disabled:hover {
        transform: none;
        box-shadow: none;
    }

    /* ===== MOBILE FORM STYLES ===== */
    
    /* Form Elements - egységes kerekített stílusok */
    /* Általános form stílusok eltávolítva - specifikus szabályok használata */

    /* Select és textarea specifikus tulajdonságok */
    .form-select,
    select {
        cursor: pointer;
    }

    .form-textarea,
    textarea {
        resize: vertical;
        min-height: 80px;
    }

    /* Focus állapot */
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus,
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    input[type="number"]:focus,
    input[type="date"]:focus,
    input[type="password"]:focus,
    textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        background: transparent;
        box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    }

    /* Disabled állapot */
    .form-input:disabled,
    .form-select:disabled,
    .form-textarea:disabled,
    input[type="text"]:disabled,
    input[type="email"]:disabled,
    input[type="tel"]:disabled,
    input[type="number"]:disabled,
    input[type="date"]:disabled,
    input[type="password"]:disabled,
    textarea:disabled {
        background: #e9ecef;
        color: #6c757d;
        cursor: not-allowed;
    }

    /* ===== MOBILE SYSTEM SELECTOR STYLES ===== */
    
    /* System Selector - alapértelmezetten rejtve */
    .system-selector {
        display: none;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 20px;
        margin: 15px 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .system-selector > div {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .system-selector .system-selector-message {
        margin-bottom: 15px;
        color: #495057;
        font-size: 14px;
        line-height: 1.4;
        width: 100%;
    }

    .system-selector .form-select {
        width: 100% !important;
        min-width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 10px 16px;
        border: 1px solid #2196F3;
        background: transparent;
        color: #333;
        font-size: 14px;
        border-radius: 25px;
        margin-bottom: 15px;
    }

    .system-selector .form-select:focus {
        outline: none;
        border-color: #1976D2;
        box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    }

    .system-selector > div > div:last-child {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
    }

    /* ===== MOBILE SEARCH ICON STYLES ===== */
    
    /* Header search icon */
    .header-center .search-icon {
        width: 18px;
        height: 18px;
        margin-left: 16px;
        margin-right: 8px;
        filter: brightness(0) invert(1);
    }

    /* Content search icons */
    .content-header .search-icon,
    .content-controls .search-icon,
    .task-filters .search-icon {
        width: 18px;
        height: 18px;
        opacity: 0.6;
        flex-shrink: 0;
        filter: brightness(0.3);
    }

    /* Filter search icon */
    .filter-search-icon {
        width: 16px;
        height: 16px;
        opacity: 0.6;
        margin-left: 8px;
        flex-shrink: 0;
    }

    /* ===== MOBILE SEARCH CONTAINER STYLES ===== */
    
    /* Content Search - Common styles */
    .content-header .search-container,
    .content-controls .search-container,
    .task-filters .search-container {
        display: flex;
        align-items: center;
        gap: 10px;
        background: white;
        border: 2px solid #e9ecef;
        border-radius: 25px;
        padding: 0px 10px;
        height: 40px;
        min-height: 40px;
        width: 100%;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }

    .content-header .search-container:focus-within,
    .content-controls .search-container:focus-within,
    .task-filters .search-container:focus-within {
        border-color: #506980;
        box-shadow: 0 0 0 3px rgba(80, 105, 128, 0.1);
    }

    .content-header .search-input,
    .content-controls .search-input,
    .task-filters .search-input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 14px;
        color: #333;
        outline: none;
        height: 100%;
        padding: 0;
        width: auto;
        border-radius: 0;
        box-sizing: border-box;
    }

    .content-header .search-input::placeholder,
    .content-controls .search-input::placeholder,
    .task-filters .search-input::placeholder {
        color: #9ca3af;
    }

    /* ===== MOBILE SEARCH CLEAR BUTTON STYLES ===== */
    
    .content-header .search-clear-btn,
    .content-controls .search-clear-btn,
    .task-filters .search-clear-btn {
        background: none;
        border: none;
        padding: 3px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.5;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .content-header .search-clear-btn:hover,
    .content-controls .search-clear-btn:hover,
    .task-filters .search-clear-btn:hover {
        opacity: 1;
    }

    .content-header .search-clear-btn img,
    .content-controls .search-clear-btn img,
    .task-filters .search-clear-btn img {
        width: 14px;
        height: 14px;
        filter: brightness(0.3);
    }

    /* ===== MOBILE DROPDOWN STYLES ===== */
    
    /* Dropdown mezők lekerekített stílussal - egyesített */
    .maintenance-filters select,
    .task-filters select,
    .content-controls select,
    .filter-group select,
    .page-maintenance select,
    .maintenance-filters .form-select,
    .view-selector select,
    .view-dropdown,
    select {
        width: 100%;
        padding: 0px 10px;
        border: 2px solid #e9ecef;
        border-radius: 25px;
        font-size: 16px;
        font-family: inherit;
        background: transparent;
        color: #333;
        transition: all 0.3s ease;
        box-sizing: border-box;
        cursor: pointer;
        text-overflow: ellipsis;
        white-space: nowrap;
        height: 40px;
        min-height: 40px;
    }

    .maintenance-filters select:focus,
    .task-filters select:focus,
    .content-controls select:focus,
    .filter-group select:focus,
    .page-maintenance select:focus,
    .maintenance-filters .form-select:focus,
    .view-selector select:focus,
    .view-dropdown:focus,
    select:focus {
        outline: none;
        border-color: var(--primary-color);
        background: transparent;
        box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    }

    /* View selector container stílusok - hide on all pages mobile */
    .content-header .view-selector,
    .content-controls .view-selector,
    .page-maintenance .content-controls .view-selector,
    .page-clients .content-header .view-selector,
    .page-locations .content-header .view-selector,
    .page-tasks .content-header .view-selector {
        display: none;
    }
    
    /* Hide add-task-btn in content-controls on mobile (desktop only) */
    .page-maintenance .content-header .content-controls .add-task-btn,
    .page-maintenance .maintenance-header .content-controls .add-task-btn {
        display: none !important;
    }
    
    /* Hide mobile-add-button on desktop */
    .mobile-add-button {
        display: none;
    }
    
    /* Show mobile-add-button on mobile - content-header-en belül */
    .page-maintenance .content-header .mobile-add-button,
    .page-maintenance .maintenance-header .mobile-add-button {
        display: block !important;
        width: 100%;
        margin-top: 12px;
    }
    
    .page-maintenance .mobile-add-button .add-task-btn {
        display: flex !important;
        width: 100% !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        background: linear-gradient(135deg, #f39c12, #e67e22);
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .page-maintenance .mobile-add-button .add-task-btn:hover {
        background: linear-gradient(135deg, #e67e22, #d35400);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    }
    
    .page-maintenance .mobile-add-button .add-task-btn img {
        filter: brightness(0) invert(1);
        width: 18px;
        height: 18px;
    }

    /* Hide export/import controls on maintenance page mobile - SPECIFIC SELECTOR */
    .page-maintenance .content-header > .content-controls:last-of-type,
    .page-maintenance .maintenance-header > .content-controls:last-of-type {
        display: none !important;
    }

    .content-header .view-selector span,
    .content-controls .view-selector span,
    .page-maintenance .content-controls .view-selector span {
        display: none;
    }
    
    /* Delete confirm row - mobilon megjelenítés engedélyezve JavaScript számára */
    .delete-confirm-row {
        display: none; /* Alapértelmezetten elrejtve, JavaScript-el megjelenítendő */
        margin-top: 12px;
        padding: 12px;
        background: #fff3cd;
        border: 2px solid #ffc107;
        border-radius: 8px;
    }
    
    .delete-confirm-message {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        font-size: 13px;
        color: #856404;
    }
    
    .delete-confirm-message img {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .delete-confirm-actions {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
    }
    
    .delete-confirm-actions .btn-sm {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 36px;
        margin-top: 0;
    }

    /* ===== MOBILE ADD MAINTENANCE FORM STYLES ===== */
    
    /* Form mezők egységes magasság és stílus */
    .page-add-maintenance .form-input,
    .page-add-maintenance .form-select,
    .page-add-maintenance .form-textarea,
    .page-add-maintenance input[type="text"],
    .page-add-maintenance input[type="email"],
    .page-add-maintenance input[type="tel"],
    .page-add-maintenance input[type="number"],
    .page-add-maintenance input[type="date"],
    .page-add-maintenance input[type="password"],
    .page-add-maintenance textarea,
    .page-add-maintenance select,
    .page-add-maintenance #locationInput,
    .page-add-maintenance #addressSelect {
        width: 100%;
        padding: 0px 10px;
        border: 2px solid #e9ecef;
        border-radius: 25px;
        font-size: 16px;
        font-family: inherit;
        background: transparent;
        color: #333;
        transition: all 0.3s ease;
        box-sizing: border-box;
        height: 40px;
        min-height: 40px;
    }

    .page-add-maintenance .form-textarea,
    .page-add-maintenance textarea {
        height: auto;
        min-height: 80px;
        padding: 8px 10px;
        resize: vertical;
    }

    .page-add-maintenance .form-input:focus,
    .page-add-maintenance .form-select:focus,
    .page-add-maintenance .form-textarea:focus,
    .page-add-maintenance input[type="text"]:focus,
    .page-add-maintenance input[type="email"]:focus,
    .page-add-maintenance input[type="tel"]:focus,
    .page-add-maintenance input[type="number"]:focus,
    .page-add-maintenance input[type="date"]:focus,
    .page-add-maintenance input[type="password"]:focus,
    .page-add-maintenance textarea:focus,
    .page-add-maintenance select:focus,
    .page-add-maintenance #locationInput:focus,
    .page-add-maintenance #addressSelect:focus {
        outline: none;
        border-color: var(--primary-color);
        background: transparent;
        box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    }

    .page-add-maintenance .form-input:disabled,
    .page-add-maintenance .form-select:disabled,
    .page-add-maintenance .form-textarea:disabled,
    .page-add-maintenance input[type="text"]:disabled,
    .page-add-maintenance input[type="email"]:disabled,
    .page-add-maintenance input[type="tel"]:disabled,
    .page-add-maintenance input[type="number"]:disabled,
    .page-add-maintenance input[type="date"]:disabled,
    .page-add-maintenance input[type="password"]:disabled,
    .page-add-maintenance textarea:disabled,
    .page-add-maintenance select:disabled,
    .page-add-maintenance #locationInput:disabled,
    .page-add-maintenance #addressSelect:disabled {
        background: #e9ecef;
        color: #6c757d;
        cursor: not-allowed;
    }

    /* ===== SPECIFIKUS MEZŐK STÍLUSAI - NAGY SPECIFICITÁS ===== */
    
    /* Location input mező - pontos HTML struktúra alapján */
    .page-add-maintenance .form-group .location-search-container input#locationInput,
    .page-add-maintenance .form-group .location-search-container input[name="selected_location"],
    .page-add-maintenance .location-search-container input#locationInput,
    .page-add-maintenance .location-search-container input[name="selected_location"] {
        width: 100%;
        padding: 0px 10px;
        border: 2px solid #e9ecef;
        border-radius: 25px;
        font-size: 16px;
        font-family: inherit;
        background: transparent;
        color: #333;
        transition: all 0.3s ease;
        box-sizing: border-box;
        height: 40px;
        min-height: 40px;
        margin: 0;
        line-height: 1.4;
    }

    .page-add-maintenance .form-group .location-search-container input#locationInput:focus,
    .page-add-maintenance .form-group .location-search-container input[name="selected_location"]:focus,
    .page-add-maintenance .location-search-container input#locationInput:focus,
    .page-add-maintenance .location-search-container input[name="selected_location"]:focus {
        outline: none;
        border-color: var(--primary-color);
        background: transparent;
        box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    }

    /* Address select mező - ultra specifikus selector */
    .page-add-maintenance .form-group select#addressSelect.form-select,
    .page-add-maintenance .form-group select[name="selected_address"].form-select {
        width: 100%;
        padding: 0px 10px;
        border: 2px solid #e9ecef;
        border-radius: 25px;
        font-size: 16px;
        font-family: inherit;
        background: transparent;
        color: #333;
        transition: all 0.3s ease;
        box-sizing: border-box;
        height: 40px;
        min-height: 40px;
        cursor: pointer;
    }

    .page-add-maintenance .form-group select#addressSelect.form-select:focus,
    .page-add-maintenance .form-group select[name="selected_address"].form-select:focus {
        outline: none;
        border-color: var(--primary-color);
        background: transparent;
        box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    }

    .page-add-maintenance .form-group select#addressSelect.form-select:disabled,
    .page-add-maintenance .form-group select[name="selected_address"].form-select:disabled {
        background: #e9ecef;
        color: #6c757d;
        cursor: not-allowed;
    }

    /* ===== ULTRA SPECIFIKUS MOBILE STÍLUSOK ===== */
    
    /* LocationInput mező - minden lehetséges módon */
    .page-add-maintenance input#locationInput,
    .page-add-maintenance input[name="selected_location"],
    .page-add-maintenance .form-input#locationInput,
    .page-add-maintenance .form-input[name="selected_location"],
    .page-add-maintenance input[type="text"]#locationInput,
    .page-add-maintenance input[type="text"][name="selected_location"] {
        width: 100%;
        padding: 0px 10px;
        border: 2px solid #e9ecef;
        border-radius: 25px;
        font-size: 16px;
        font-family: inherit;
        background: transparent;
        color: #333;
        transition: all 0.3s ease;
        box-sizing: border-box;
        height: 40px;
        min-height: 40px;
        margin: 0;
        line-height: 1.4;
    }

    .page-add-maintenance input#locationInput:focus,
    .page-add-maintenance input[name="selected_location"]:focus,
    .page-add-maintenance .form-input#locationInput:focus,
    .page-add-maintenance .form-input[name="selected_location"]:focus,
    .page-add-maintenance input[type="text"]#locationInput:focus,
    .page-add-maintenance input[type="text"][name="selected_location"]:focus {
        outline: none;
        border-color: var(--primary-color);
        background: transparent;
        box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    }

    /* AddressSelect mező - minden lehetséges módon */
    .page-add-maintenance select#addressSelect,
    .page-add-maintenance select[name="selected_address"],
    .page-add-maintenance .form-select#addressSelect,
    .page-add-maintenance .form-select[name="selected_address"] {
        width: 100%;
        padding: 0px 10px;
        border: 2px solid #e9ecef;
        border-radius: 25px;
        font-size: 16px;
        font-family: inherit;
        background: transparent;
        color: #333;
        transition: all 0.3s ease;
        box-sizing: border-box;
        height: 40px;
        min-height: 40px;
        cursor: pointer;
    }

    .page-add-maintenance select#addressSelect:focus,
    .page-add-maintenance select[name="selected_address"]:focus,
    .page-add-maintenance .form-select#addressSelect:focus,
    .page-add-maintenance .form-select[name="selected_address"]:focus {
        outline: none;
        border-color: var(--primary-color);
        background: transparent;
        box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    }

    .page-add-maintenance select#addressSelect:disabled,
    .page-add-maintenance select[name="selected_address"]:disabled,
    .page-add-maintenance .form-select#addressSelect:disabled,
    .page-add-maintenance .form-select[name="selected_address"]:disabled {
        background: #e9ecef;
        color: #6c757d;
        cursor: not-allowed;
    }


    /* ===== MOBILE BUTTON WIDTH STYLES ===== */
    
    /* Gombok 100% szélességűek mobilon */
    .maintenance-filters .btn-primary,
    .maintenance-filters .btn-secondary,
    .maintenance-filters .add-task-btn,
    .task-filters .btn-primary,
    .task-filters .btn-secondary,
    .task-filters .add-task-btn,
    .content-controls .btn-primary,
    .content-controls .btn-secondary,
    .content-controls .add-task-btn {
        width: 100%;
        height: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* ===== MOBILE BACK TO TOP BUTTON ===== */
@media (max-width: 768px) {
    .back-to-top-btn {
        display: none !important;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        background: #506980;
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(80, 105, 128, 0.3);
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .back-to-top-btn:hover {
        background: #3d5266;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(80, 105, 128, 0.4);
    }
    
    .back-to-top-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(80, 105, 128, 0.3);
    }
    
    .back-to-top-btn img {
        width: 18px;
        height: 18px;
        filter: brightness(0) invert(1);
        transition: transform 0.3s ease;
    }
    
    .back-to-top-btn:hover img {
        transform: translateY(-1px);
    }
}

/* ===== MOBILE RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .content-wrapper {
        padding: 10px;
    }
    
    .client-card,
    .location-card,
    .task-card,
    .system-card,
    .maintenance-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .dashboard-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .search-filters .form-actions {
        flex-direction: column;
    }
    
    .pagination {
        gap: 3px;
    }
    
    .pagination button {
        min-width: 35px;
        height: 35px;
        padding: 6px 8px;
        font-size: 11px;
    }
    
    /* Kisebb képernyőkön még kompaktabb header */
    .top-header {
        padding: 0 10px;
        height: 56px;
        min-height: 56px;
    }
    
    .header-left .page-title {
        font-size: 16px;
    }
    
    
    .hamburger-line {
        width: 18px;
        height: 2px;
    }
}

@media (max-width: 360px) {
    .header-left .page-title {
        font-size: 14px;
    }
    
    .modal-content {
        padding: 15px;
        margin: 10px;
    }
    
    .modal-header {
        padding: 12px 15px;
        margin: -15px -15px 15px -15px;
    }
}

/* ===== MOBILE UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }

.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }

.hidden { display: none; }
.visible { display: block; }

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

.w-full { width: 100%; }
.h-full { height: 100%; }

/* ===== MOBILE ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

/* Form Select - Mobile */
select.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: transparent;
    color: #495057;
    font-size: 15px;
    min-height: 48px;
    transition: all 0.3s ease;
}

select.form-select:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

/* Searchable Select Dropdown Styles - Mobile */
.searchable-select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    transition: margin-bottom 0.3s ease;
}

.searchable-select-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 52px;
    width: 100%;
}

.searchable-select-display:active {
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.searchable-select-display.has-value {
    border-color: #ff9800;
}

.searchable-select-placeholder {
    color: #666;
    font-size: 15px;
    flex: 1;
}

.searchable-select-display.has-value .searchable-select-placeholder {
    color: #333;
    font-weight: 500;
}

.searchable-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff !important; /* White background for mobile */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 40vh;
    overflow: hidden;
    display: none;
}

.searchable-select-search {
    padding: 16px;
    border-bottom: 1px solid #eee;
    background: #ffffff !important; /* White background for mobile */
}

.searchable-select-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: transparent;
}

.searchable-select-search input:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.searchable-select-options {
    max-height: calc(40vh - 60px);
    overflow-y: auto;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
    background: #ffffff !important; /* White background for mobile */
}

.searchable-select-option {
    padding: 14px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.searchable-select-option:last-child {
    border-bottom: none;
}

.searchable-select-option:active {
    background: #e0e7ff;
    color: #4a5ff7;
}

/* Scrollbar styling for options (mobile webkit) */
.searchable-select-options::-webkit-scrollbar {
    width: 6px;
}

.searchable-select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.searchable-select-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* ========================================
   MOBILE OFFLINE SUPPORT & CONNECTION STATUS
   ======================================== */

@media (max-width: 768px) {
    /* Connection Status Indicator in Header - Mobile */
    .connection-status-indicator {
display: flex;
        align-items: center;
gap: 6px;
        margin-right: 4px;
    }

    .status-link {
        display: flex;
        align-items: center;
gap: 6px;
        text-decoration: none;
        cursor: pointer;
    }

    .status-dot {
width: 14px;
height: 14px;
border-radius: 50%;
        flex-shrink: 0;
border: 2px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .status-dot.online {
background-color: #10b981;
    }
    
    .status-dot.offline {
background-color: #f59e0b;
    }
    
    .status-dot.force-offline {
background-color: #ef4444;
    }

    .status-badge {
background: #ff6b6b;
color: white;
font-size: 11px;
font-weight: 700;
padding: 2px 6px;
border-radius: 10px;
min-width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        flex-shrink: 0;
    }

    .connection-status-bar.offline {
        background: #fee2e2;
        border: 2px solid #ef4444;
        color: #991b1b;
    }

    .connection-status-bar.online {
        background: #d1fae5;
        border: 2px solid #10b981;
        color: #065f46;
    }

    .status-icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .status-text {
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
        min-width: 0;
        color: #ffffff;
    }

    .pending-count {
        display: block;
        font-size: 10px;
        margin-left: 2px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .pending-count.hidden {
display: none;
    }

    .btn-sync {
display: flex ; /* Látható ha nincs hidden osztály */
        margin-left: 4px;
        padding: 4px 8px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 12px;
        cursor: pointer;
        min-width: 28px;
        min-height: 28px;
        align-items: center;
        justify-content: center;
    }

    .btn-sync.hidden {
display: none;
    }

    .btn-sync:active {
        transform: scale(0.95);
    }

    .btn-sync:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .btn-sync img {
width: 14px;
height: 14px;
        filter: brightness(0) invert(1);
    }

    /* Offline Mode Button - Mobile */
    .btn-offline-mode {
        width: 100%;
        padding: 14px 20px;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: white;
        border: none;
        border-radius: 20px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        min-height: 48px;
    }

    .btn-offline-mode:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }

    .btn-offline-mode:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-offline-mode img {
        filter: brightness(0) invert(1);
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }

    .offline-help {
        display: block;
        margin-top: 10px;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.5;
        text-align: center;
        padding: 0 10px;
    }

    /* Offline Active Banner - Mobile */
    .offline-active-banner {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        border-radius: 20px;
        padding: 16px;
        margin-bottom: 20px;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

    .offline-active-content {
        display: flex;
        align-items: flex-start;
        color: white;
        gap: 12px;
    }

    .offline-active-content img {
        filter: brightness(0) invert(1);
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        margin-top: 2px;
    }

    .offline-active-content div {
        flex: 1;
    }

    .offline-active-content strong {
        display: block;
        font-size: 16px;
        margin-bottom: 4px;
    }

    .offline-active-content p {
        font-size: 13px;
        line-height: 1.4;
        margin: 0;
        opacity: 0.95;
    }

    /* Form Offline Indicator - Mobile */
    .form-offline-indicator {
        display: none;
        background: #fef3c7;
        border: 2px solid #f59e0b;
        border-radius: 20px;
        padding: 12px 16px;
        margin-bottom: 16px;
        color: #92400e;
        font-size: 13px;
        font-weight: 500;
    }

    .form-offline-indicator.active {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .form-offline-indicator img {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Sync Status Badge - Mobile */
    .sync-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 16px;
        font-size: 11px;
        font-weight: 600;
    }

    .sync-status-badge.pending {
        background: #fef3c7;
        color: #92400e;
    }

    .sync-status-badge.synced {
        background: #d1fae5;
        color: #065f46;
    }

    .sync-status-badge.failed {
        background: #fee2e2;
        color: #991b1b;
    }

    /* Add Maintenance Form - Mobile Optimization */
    .page-add_maintenance .content-wrapper {
        padding: 10px;
        max-width: 100%;
        width: 100%;
    }

    .page-add_maintenance .profile-container {
        padding: 12px;
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    .page-add_maintenance .client-card {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 20px;
    }

    /* Form Rows - Mobile Stack */
    .page-add_maintenance .form-row {
        margin-bottom: 16px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .page-add_maintenance .form-group {
        width: 100%;
        margin-bottom: 16px;
    }

    .page-add_maintenance .form-group.full-width {
        width: 100%;
        grid-column: 1 / -1;
    }

    /* Form Labels - Mobile */
    .page-add_maintenance .form-label {
        font-size: 14px;
        margin-bottom: 8px;
        font-weight: 600;
        display: block;
        width: 100%;
    }

    /* Form Inputs - Mobile Touch-Friendly */
    .page-add_maintenance .form-input,
    .page-add_maintenance .form-select,
    .page-add_maintenance .form-textarea,
    .page-add_maintenance input[type="text"],
    .page-add_maintenance input[type="date"],
    .page-add_maintenance input[type="datetime-local"],
    .page-add_maintenance select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 16px; /* Reduced vertical padding to prevent text overflow */
        border-radius: 20px;
        width: 100%;
        min-height: 48px; /* Touch-friendly */
        border: 2px solid #e9ecef;
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .page-add_maintenance .form-textarea {
        min-height: 100px;
        padding: 14px 16px;
    }

    /* System Registration Button - Mobile */
    .page-add_maintenance .system-registration-btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        min-height: 56px;
        border-radius: 20px;
        margin-bottom: 16px;
    }

    /* Start Button - Mobile */
    .page-add_maintenance .btn-primary,
    .page-add_maintenance .form-actions button {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        border-radius: 20px;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .page-add_maintenance .maintenance-final-submit {
        width: 100%;
        padding: 16px;
        font-size: 18px;
        font-weight: 600;
        border-radius: 20px;
        min-height: 56px;
        margin-top: 20px;
    }

    /* Form Actions - Mobile */
    .page-add_maintenance .form-actions {
        width: 100%;
        margin-top: 20px;
        padding: 0;
    }

    .page-add_maintenance .form-actions-right {
        justify-content: center;
    }

    /* Maintenance DateTime Grid - Mobile Stack */
    .page-add_maintenance .maintenance-datetime-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .page-add_maintenance .maintenance-datetime-grid > div {
        width: 100%;
    }

    /* Maintenance Questions - Mobile */
    .page-add_maintenance .maintenance-question-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 16px;
        gap: 12px;
        background: white;
        border: 2px solid #e74c3c;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    /* Maintenance State Buttons - EXACT COPY FROM DESKTOP! */
    .page-add_maintenance .maintenance-state-button {
        /* ✅ UGYANAZ mint asztali verzió */
background-color: #28a745 ; /* Zöld - Megfelelt */
color: white;
border: 2px solid #28a745;
padding: 10px 24px;
border-radius: 25px ; /* Pill shape mint asztalon */
cursor: pointer;
font-weight: 600;
font-size: 14px;
transition: all 0.3s ease;
min-width: auto;
width: auto ; /* Auto width mint asztalon */
align-self: flex-end ; /* ✅ Jobbra igazítva */
text-align: center;
    }
    
    /* State: Nem felelt meg - PIROS */
    .page-add_maintenance .maintenance-state-button[data-state="nem-megfelelt"] {
background-color: #dc3545;
border-color: #dc3545;
color: white;
    }
    
    /* State: Nem releváns - SZÜRKE */
    .page-add_maintenance .maintenance-state-button[data-state="nem-relevans"],
    .page-edit_maintenance .maintenance-state-button[data-state="nem-relevans"] {
background-color: #6c757d;
border-color: #6c757d;
color: white;
    }
    
    /* Hover/Active effects */
    .page-add_maintenance .maintenance-state-button:active {
transform: scale(0.95);
opacity: 0.9;
    }

    /* Maintenance Notes Section - Mobile */
    .page-add_maintenance .maintenance-notes-section {
margin-top: 20px;
    }

    /* Image Upload - Mobile */
    .page-add_maintenance .maintenance-image-upload input[type="file"] {
font-size: 14px;
padding: 12px;
min-height: 48px;
    }

    /* Summary Collapsible - Mobile */
    .page-add_maintenance .maintenance-summary-collapsible,
    .page-edit_maintenance .maintenance-summary-collapsible {
border-radius: 20px;
margin-bottom: 20px;
    }

    .page-add_maintenance .summary-header,
    .page-edit_maintenance .summary-header {
padding: 14px 16px;
border-radius: 20px 20px 0 0;
    }

    .page-add_maintenance .summary-content,
    .page-edit_maintenance .summary-content {
padding: 16px;
    }

    /* Help Text - Mobile */
    .page-add_maintenance .form-help,
    .page-add_maintenance small {
font-size: 13px;
line-height: 1.4;
display: block;
margin-top: 8px;
padding: 0 4px;
    }

    /* Content Header - Mobile */
    .page-add_maintenance .content-header {
padding: 12px;
flex-direction: column;
align-items: stretch;
gap: 12px;
    }

    .page-add_maintenance .content-title {
font-size: 20px;
margin: 0;
    }

    /* Back Button - Mobile (HIDDEN) */
    .page-add_maintenance .btn-secondary {
display: none ; /* ✅ Vissza gomb elrejtve mobilon */
    }
    
    .page-add_maintenance .back-btn {
display: none ; /* ✅ Vissza gomb elrejtve mobilon */
    }
    
    .page-add_maintenance .back-button {
display: none ; /* ✅ Vissza gomb elrejtve mobilon */
    }
}

/* ========================================
   MOBILE GENERAL FORM OPTIMIZATIONS
   ======================================== */

@media (max-width: 768px) {
    /* Connection Status Bar - Mobile Fix */
    .connection-status-bar {
        position: fixed;
        top: 60px;
        right: 10px;
        z-index: 99999;
    }

    /* General Form Styles - Mobile */
    .profile-container {
margin: 0;
    }

    /* Maintenance Pages (add and edit) - Desktop-like styling on mobile */
    /* Use both possible class names for compatibility */
    body.page-edit_maintenance .profile-container,
    body.page-add_maintenance .profile-container,
    .page-edit_maintenance .profile-container,
    .page-add_maintenance .profile-container {
        max-width: 800px;
        margin: 0 auto;
    }

    /* Hide entire content-header on edit_maintenance and add_maintenance pages on mobile */
    body.page-edit_maintenance .content-header,
    body.page-add_maintenance .content-header,
    .page-edit_maintenance .content-header,
    .page-add_maintenance .content-header {
        display: none;
    }

    body.page-edit_maintenance .system-selector-top,
    body.page-add_maintenance .system-selector-top,
    .page-edit_maintenance .system-selector-top,
    .page-add_maintenance .system-selector-top {
        max-width: 800px;
        margin: 20px auto;
    }

    body.page-edit_maintenance .profile-form,
    body.page-add_maintenance .profile-form,
    .page-edit_maintenance .profile-form,
    .page-add_maintenance .profile-form {
        width: 100%;
        max-width: 100%;
    }

    /* Maintenance Pages (add and edit) - Buttons exactly like desktop */
    body.page-edit_maintenance .btn-primary,
    body.page-add_maintenance .btn-primary,
    .page-edit_maintenance .btn-primary,
    .page-add_maintenance .btn-primary {
        background: linear-gradient(135deg, #f39c12, #e67e22);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: auto;
        min-width: auto;
        min-height: auto;
    }

    body.page-edit_maintenance .btn-primary:hover,
    body.page-add_maintenance .btn-primary:hover,
    .page-edit_maintenance .btn-primary:hover,
    .page-add_maintenance .btn-primary:hover {
        background: linear-gradient(135deg, #e67e22, #d35400);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    }

    body.page-edit_maintenance .btn-primary img,
    body.page-add_maintenance .btn-primary img,
    .page-edit_maintenance .btn-primary img,
    .page-add_maintenance .btn-primary img {
        filter: brightness(0) invert(1);
        width: 16px;
        height: 16px;
    }

    body.page-edit_maintenance .btn-secondary,
    body.page-add_maintenance .btn-secondary,
    .page-edit_maintenance .btn-secondary,
    .page-add_maintenance .btn-secondary {
        background: #3a4a5a;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: auto;
        min-width: auto;
        min-height: auto;
    }

    body.page-edit_maintenance .btn-secondary:hover,
    body.page-add_maintenance .btn-secondary:hover,
    .page-edit_maintenance .btn-secondary:hover,
    .page-add_maintenance .btn-secondary:hover {
        background: #2c3e50;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(58, 74, 90, 0.3);
    }

    body.page-edit_maintenance .btn-secondary img,
    body.page-add_maintenance .btn-secondary img,
    .page-edit_maintenance .btn-secondary img,
    .page-add_maintenance .btn-secondary img {
        filter: brightness(0) invert(1);
        width: 16px;
        height: 16px;
    }

    body.page-edit_maintenance .btn-success,
    body.page-edit_maintenance .btn-error,
    body.page-edit_maintenance .btn-danger,
    body.page-add_maintenance .btn-success,
    body.page-add_maintenance .btn-error,
    body.page-add_maintenance .btn-danger,
    .page-edit_maintenance .btn-success,
    .page-edit_maintenance .btn-error,
    .page-edit_maintenance .btn-danger,
    .page-add_maintenance .btn-success,
    .page-add_maintenance .btn-error,
    .page-add_maintenance .btn-danger {
        width: auto;
        min-width: auto;
        min-height: auto;
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 25px;
    }

    /* Maintenance Pages (add and edit) - Form inputs exactly like desktop */
    body.page-edit_maintenance .form-input,
    body.page-edit_maintenance .form-select,
    body.page-edit_maintenance .form-textarea,
    body.page-edit_maintenance input[type="text"],
    body.page-edit_maintenance input[type="date"],
    body.page-edit_maintenance input[type="datetime-local"],
    body.page-edit_maintenance input[type="email"],
    body.page-edit_maintenance input[type="tel"],
    body.page-edit_maintenance input[type="number"],
    body.page-edit_maintenance input[type="password"],
    body.page-edit_maintenance select,
    body.page-edit_maintenance textarea,
    body.page-add_maintenance .form-input,
    body.page-add_maintenance .form-select,
    body.page-add_maintenance .form-textarea,
    body.page-add_maintenance input[type="text"],
    body.page-add_maintenance input[type="date"],
    body.page-add_maintenance input[type="datetime-local"],
    body.page-add_maintenance input[type="email"],
    body.page-add_maintenance input[type="tel"],
    body.page-add_maintenance input[type="number"],
    body.page-add_maintenance input[type="password"],
    body.page-add_maintenance select,
    body.page-add_maintenance textarea,
    .page-edit_maintenance .form-input,
    .page-edit_maintenance .form-select,
    .page-edit_maintenance .form-textarea,
    .page-edit_maintenance input[type="text"],
    .page-edit_maintenance input[type="date"],
    .page-edit_maintenance input[type="datetime-local"],
    .page-edit_maintenance input[type="email"],
    .page-edit_maintenance input[type="tel"],
    .page-edit_maintenance input[type="number"],
    .page-edit_maintenance input[type="password"],
    .page-edit_maintenance select,
    .page-edit_maintenance textarea,
    .page-add_maintenance .form-input,
    .page-add_maintenance .form-select,
    .page-add_maintenance .form-textarea,
    .page-add_maintenance input[type="text"],
    .page-add_maintenance input[type="date"],
    .page-add_maintenance input[type="datetime-local"],
    .page-add_maintenance input[type="email"],
    .page-add_maintenance input[type="tel"],
    .page-add_maintenance input[type="number"],
    .page-add_maintenance input[type="password"],
    .page-add_maintenance select,
    .page-add_maintenance textarea {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #e9ecef;
        border-radius: 25px;
        background: #ffffff;
        color: #495057;
        font-size: 14px;
        min-height: 44px;
        box-sizing: border-box;
        transition: all 0.3s ease;
    }

    body.page-edit_maintenance .form-input:focus,
    body.page-edit_maintenance .form-select:focus,
    body.page-edit_maintenance .form-textarea:focus,
    body.page-edit_maintenance input[type="text"]:focus,
    body.page-edit_maintenance input[type="date"]:focus,
    body.page-edit_maintenance input[type="datetime-local"]:focus,
    body.page-edit_maintenance select:focus,
    body.page-edit_maintenance textarea:focus,
    body.page-add_maintenance .form-input:focus,
    body.page-add_maintenance .form-select:focus,
    body.page-add_maintenance .form-textarea:focus,
    body.page-add_maintenance input[type="text"]:focus,
    body.page-add_maintenance input[type="date"]:focus,
    body.page-add_maintenance input[type="datetime-local"]:focus,
    body.page-add_maintenance select:focus,
    body.page-add_maintenance textarea:focus,
    .page-edit_maintenance .form-input:focus,
    .page-edit_maintenance .form-select:focus,
    .page-edit_maintenance .form-textarea:focus,
    .page-edit_maintenance input[type="text"]:focus,
    .page-edit_maintenance input[type="date"]:focus,
    .page-edit_maintenance input[type="datetime-local"]:focus,
    .page-edit_maintenance select:focus,
    .page-edit_maintenance textarea:focus,
    .page-add_maintenance .form-input:focus,
    .page-add_maintenance .form-select:focus,
    .page-add_maintenance .form-textarea:focus,
    .page-add_maintenance input[type="text"]:focus,
    .page-add_maintenance input[type="date"]:focus,
    .page-add_maintenance input[type="datetime-local"]:focus,
    .page-add_maintenance select:focus,
    .page-add_maintenance textarea:focus {
        outline: none;
        border-color: #ff9800;
        box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
        background: #ffffff;
    }

    body.page-edit_maintenance textarea.form-textarea,
    body.page-add_maintenance textarea.form-textarea,
    .page-edit_maintenance textarea.form-textarea,
    .page-add_maintenance textarea.form-textarea {
        min-height: 100px;
        resize: vertical;
    }

    body.page-edit_maintenance select.form-select,
    body.page-add_maintenance select.form-select,
    .page-edit_maintenance select.form-select,
    .page-add_maintenance select.form-select {
        padding: 10px 15px;
        border: 1px solid #ddd;
        background: transparent;
        cursor: pointer;
    }

    body.page-edit_maintenance select.form-select:hover,
    body.page-add_maintenance select.form-select:hover,
    .page-edit_maintenance select.form-select:hover,
    .page-add_maintenance select.form-select:hover {
        border-color: #ff9800;
    }

    /* Maintenance Pages (add and edit) - Form rows can be side by side on larger mobile screens */
    body.page-edit_maintenance .form-row,
    body.page-add_maintenance .form-row,
    .page-edit_maintenance .form-row,
    .page-add_maintenance .form-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    body.page-edit_maintenance .form-group,
    body.page-add_maintenance .form-group,
    .page-edit_maintenance .form-group,
    .page-add_maintenance .form-group {
        flex: 1;
        min-width: 200px;
    }

    body.page-edit_maintenance .form-group.full-width,
    body.page-add_maintenance .form-group.full-width,
    .page-edit_maintenance .form-group.full-width,
    .page-add_maintenance .form-group.full-width {
        width: 100%;
        flex: 1 1 100%;
    }

    /* Maintenance Pages (add and edit) - Content wrapper padding */
    body.page-edit_maintenance .content-wrapper,
    body.page-add_maintenance .content-wrapper,
    .page-edit_maintenance .content-wrapper,
    .page-add_maintenance .content-wrapper {
        padding: 20px;
    }

    /* Maintenance Pages (add and edit) - Content header */
    body.page-edit_maintenance .content-header,
    body.page-add_maintenance .content-header,
    .page-edit_maintenance .content-header,
    .page-add_maintenance .content-header {
        padding: 16px 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    body.page-edit_maintenance .content-title,
    body.page-add_maintenance .content-title,
    .page-edit_maintenance .content-title,
    .page-add_maintenance .content-title {
        font-size: 24px;
        width: auto;
    }

    /* Maintenance Pages (add and edit) - Back button visible */
    body.page-edit_maintenance .back-button,
    body.page-add_maintenance .back-button,
    .page-edit_maintenance .back-button,
    .page-add_maintenance .back-button {
        display: flex !important;
    }

    /* Maintenance Pages (add and edit) - Maintenance form elements (same as desktop) */
    body.page-edit_maintenance .maintenance-yearly-title,
    body.page-add_maintenance .maintenance-yearly-title,
    .page-edit_maintenance .maintenance-yearly-title,
    .page-add_maintenance .maintenance-yearly-title {
        margin: 20px 0;
        padding: 16px;
        background: #e74c3c;
        color: white;
        text-align: center;
        border-radius: 16px;
        font-size: 18px;
        font-weight: 600;
    }

    body.page-edit_maintenance .maintenance-question-item,
    body.page-add_maintenance .maintenance-question-item,
    .page-edit_maintenance .maintenance-question-item,
    .page-add_maintenance .maintenance-question-item {
        margin-bottom: 16px;
        padding: 16px;
        background: #f8f9fa;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        border: 2px solid #dc3545;
    }

    body.page-edit_maintenance .maintenance-question-text,
    body.page-add_maintenance .maintenance-question-text,
    .page-edit_maintenance .maintenance-question-text,
    .page-add_maintenance .maintenance-question-text {
        flex: 1;
        min-width: 200px;
        font-weight: 500;
    }

    /* State buttons align to right on mobile */
    body.page-edit_maintenance .maintenance-question-item .maintenance-state-button,
    body.page-edit_maintenance .maintenance-question-item .yearly-state-btn,
    body.page-edit_maintenance .maintenance-question-item .quarterly-state-btn,
    body.page-edit_maintenance .maintenance-question-item .daily-state-btn,
    body.page-add_maintenance .maintenance-question-item .maintenance-state-button,
    body.page-add_maintenance .maintenance-question-item .yearly-state-btn,
    body.page-add_maintenance .maintenance-question-item .quarterly-state-btn,
    body.page-add_maintenance .maintenance-question-item .daily-state-btn,
    .page-edit_maintenance .maintenance-question-item .maintenance-state-button,
    .page-edit_maintenance .maintenance-question-item .yearly-state-btn,
    .page-edit_maintenance .maintenance-question-item .quarterly-state-btn,
    .page-edit_maintenance .maintenance-question-item .daily-state-btn,
    .page-add_maintenance .maintenance-question-item .maintenance-state-button,
    .page-add_maintenance .maintenance-question-item .yearly-state-btn,
    .page-add_maintenance .maintenance-question-item .quarterly-state-btn,
    .page-add_maintenance .maintenance-question-item .daily-state-btn {
        align-self: flex-end;
        margin-left: 0;
    }

    /* Maintenance Pages (add and edit) - State buttons exactly like desktop */
    body.page-edit_maintenance .maintenance-state-button,
    body.page-edit_maintenance .yearly-state-btn,
    body.page-edit_maintenance .quarterly-state-btn,
    body.page-edit_maintenance .daily-state-btn,
    body.page-add_maintenance .maintenance-state-button,
    body.page-add_maintenance .yearly-state-btn,
    body.page-add_maintenance .quarterly-state-btn,
    body.page-add_maintenance .daily-state-btn,
    .page-edit_maintenance .maintenance-state-button,
    .page-edit_maintenance .yearly-state-btn,
    .page-edit_maintenance .quarterly-state-btn,
    .page-edit_maintenance .daily-state-btn,
    .page-add_maintenance .maintenance-state-button,
    .page-add_maintenance .yearly-state-btn,
    .page-add_maintenance .quarterly-state-btn,
    .page-add_maintenance .daily-state-btn {
        background-color: #28a745;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        min-width: 120px;
        font-weight: 500;
        min-height: auto;
        font-size: inherit;
    }

    body.page-edit_maintenance .maintenance-datetime-grid,
    body.page-add_maintenance .maintenance-datetime-grid,
    .page-edit_maintenance .maintenance-datetime-grid,
    .page-add_maintenance .maintenance-datetime-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        margin: 16px 0;
    }

    body.page-edit_maintenance .maintenance-notes-section,
    body.page-add_maintenance .maintenance-notes-section,
    .page-edit_maintenance .maintenance-notes-section,
    .page-add_maintenance .maintenance-notes-section {
        margin: 20px 0;
    }

    body.page-edit_maintenance .maintenance-image-upload,
    body.page-add_maintenance .maintenance-image-upload,
    .page-edit_maintenance .maintenance-image-upload,
    .page-add_maintenance .maintenance-image-upload {
        margin-top: 20px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 16px;
        border: 2px dashed #e74c3c;
    }

    /* Maintenance Pages (add and edit) - Form actions (buttons row) */
    body.page-edit_maintenance .form-actions,
    body.page-add_maintenance .form-actions,
    .page-edit_maintenance .form-actions,
    .page-add_maintenance .form-actions {
        width: 100%;
        margin-top: 20px;
        padding: 0;
    }

    body.page-edit_maintenance .form-actions-right,
    body.page-add_maintenance .form-actions-right,
    .page-edit_maintenance .form-actions-right,
    .page-add_maintenance .form-actions-right {
        justify-content: center;
    }

    body.page-edit_maintenance .form-actions button,
    body.page-add_maintenance .form-actions button,
    .page-edit_maintenance .form-actions button,
    .page-add_maintenance .form-actions button {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        border-radius: 20px;
        min-height: 52px;
    }

    /* Maintenance Pages (add and edit) - Final submit button */
    body.page-edit_maintenance .maintenance-final-submit,
    body.page-add_maintenance .maintenance-final-submit,
    .page-edit_maintenance .maintenance-final-submit,
    .page-add_maintenance .maintenance-final-submit {
        width: 100%;
        padding: 18px;
        font-size: 18px;
        font-weight: 700;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        min-height: 60px;
    }

    /* Dynamic state colors - same as desktop */
    body.page-edit_maintenance .maintenance-final-submit[data-state="megfelelt"],
    body.page-add_maintenance .maintenance-final-submit[data-state="megfelelt"],
    .page-edit_maintenance .maintenance-final-submit[data-state="megfelelt"],
    .page-add_maintenance .maintenance-final-submit[data-state="megfelelt"] {
        background-color: #28a745;
        color: white;
    }

    body.page-edit_maintenance .maintenance-final-submit[data-state="nem-megfelelt"],
    body.page-add_maintenance .maintenance-final-submit[data-state="nem-megfelelt"],
    .page-edit_maintenance .maintenance-final-submit[data-state="nem-megfelelt"],
    .page-add_maintenance .maintenance-final-submit[data-state="nem-megfelelt"] {
        background-color: #dc3545;
        color: white;
    }

    /* Maintenance Pages (add and edit) - Images grid exactly like desktop */
    body.page-edit_maintenance .maintenance-images-grid,
    body.page-add_maintenance .maintenance-images-grid,
    .page-edit_maintenance .maintenance-images-grid,
    .page-add_maintenance .maintenance-images-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 20px;
    }

    body.page-edit_maintenance .image-item,
    .page-edit_maintenance .image-item {
        position: relative;
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
        cursor: pointer;
    }

    body.page-edit_maintenance .image-item:hover,
    .page-edit_maintenance .image-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    body.page-edit_maintenance .image-item-wrapper,
    .page-edit_maintenance .image-item-wrapper {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
    }

    body.page-edit_maintenance .image-item img,
    .page-edit_maintenance .image-item img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    body.page-edit_maintenance .image-item:hover img,
    .page-edit_maintenance .image-item:hover img {
        transform: scale(1.05);
    }

    body.page-edit_maintenance .image-item-overlay,
    .page-edit_maintenance .image-item-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    body.page-edit_maintenance .image-item:hover .image-item-overlay,
    .page-edit_maintenance .image-item:hover .image-item-overlay {
        opacity: 1;
    }

    body.page-edit_maintenance .image-action-btn,
    .page-edit_maintenance .image-action-btn {
        background: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    body.page-edit_maintenance .image-action-btn:hover,
    .page-edit_maintenance .image-action-btn:hover {
        background: white;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    body.page-edit_maintenance .image-action-btn img,
    .page-edit_maintenance .image-action-btn img {
        width: 18px;
        height: 18px;
        margin: 0;
        transform: none;
    }

    body.page-edit_maintenance .image-action-btn.delete-btn,
    .page-edit_maintenance .image-action-btn.delete-btn {
        background: rgba(220, 53, 69, 0.9);
    }

    body.page-edit_maintenance .image-action-btn.delete-btn:hover,
    .page-edit_maintenance .image-action-btn.delete-btn:hover {
        background: rgba(220, 53, 69, 1);
    }

    body.page-edit_maintenance .image-action-btn.delete-btn img,
    .page-edit_maintenance .image-action-btn.delete-btn img {
        filter: brightness(0) invert(1);
    }

    body.page-edit_maintenance .image-item-info,
    .page-edit_maintenance .image-item-info {
        padding: 10px;
        background: white;
    }

    body.page-edit_maintenance .image-item-name,
    .page-edit_maintenance .image-item-name {
        font-size: 12px;
        color: #495057;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.page-edit_maintenance .image-item-date,
    .page-edit_maintenance .image-item-date {
        font-size: 11px;
        color: #6c757d;
        margin-top: 4px;
    }

    /* Edit Maintenance - Icon sizes exactly like desktop */
    body.page-edit_maintenance .icon-16,
    body.page-edit_maintenance img.icon-16,
    .page-edit_maintenance .icon-16,
    .page-edit_maintenance img.icon-16 {
        width: 16px !important;
        height: 16px !important;
        max-width: 16px !important;
        max-height: 16px !important;
        vertical-align: middle;
        margin-right: 4px;
    }

    .profile-form {
width: 100%;
max-width: 100%;
    }

    /* Form Inputs Global - Mobile */
    .form-input,
    .form-select,
    .form-textarea,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
font-size: 16px ; /* Prevents iOS zoom */
padding: 10px 16px ; /* Reduced vertical padding to prevent text overflow */
border-radius: 20px;
min-height: 48px ; /* Touch-friendly */
width: 100%;
box-sizing: border-box;
    }

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

    /* Buttons - Mobile */
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-error,
    .btn-danger,
    button[type="submit"],
    button[type="button"]:not(.nav-icon) {
min-height: 48px;
padding: 14px 20px;
font-size: 16px;
border-radius: 25px;
font-weight: bold;
    }

    /* Content Wrapper - Mobile */
    .content-wrapper {
padding: 10px;
    }

    /* Client Card - Mobile */
    .client-card {
padding: 16px;
margin-bottom: 16px;
border-radius: 20px;
    }

    /* Content Header - Mobile */
    .content-header {
padding: 12px 10px;
flex-wrap: wrap;
gap: 12px;
    }

    .content-title {
font-size: 20px;
width: 100%;
    }

    /* Search Input - Mobile */
    .search-input {
font-size: 16px;
padding: 12px 16px;
min-height: 48px;
border-radius: 20px;
    }

    /* Dropdowns - Mobile */
    .view-dropdown,
    .view-selector select {
font-size: 16px;
padding: 12px 16px;
min-height: 48px;
border-radius: 20px;
    }

    /* Form Groups - Mobile Stack */
    .form-row {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .form-group {
width: 100%;
margin-bottom: 12px;
    }

    /* Labels - Mobile */
    .form-label {
font-size: 14px;
font-weight: 600;
margin-bottom: 8px;
display: block;
    }

    /* Required Star - Mobile */
    .required {
        color: #ef4444;
        margin-left: 4px;
    }

    /* Back Button - Mobile (HIDDEN) */
    .back-button {
        display: none !important;
    }
    
    .back-button img {
width: 20px;
height: 20px;
        filter: brightness(0) invert(1);
    }
    
    .back-btn {
padding: 10px 16px;
min-height: 44px;
font-size: 14px;
border-radius: 20px;
    }

    /* Icons - Mobile Size Reduction */
    .maintenance-icon-16,
    .maintenance-icon-20,
    .maintenance-icon-24,
    img.maintenance-icon-16,
    img.maintenance-icon-20,
    img.maintenance-icon-24 {
max-width: 16px;
max-height: 16px;
width: 16px;
height: 16px;
    }

    /* Button Icons - Mobile */
    .btn-primary img {
        filter: brightness(0) invert(1); /* Make icons white */
        width: 16px;
        height: 16px;
        max-width: 16px;
        max-height: 16px;
    }

    .btn-secondary img,
    .btn-success img,
    .btn-error img,
    .btn-danger img,
    button img,
    .form-actions button img {
        width: 16px;
        height: 16px;
        max-width: 16px;
        max-height: 16px;
    }

    /* Offline Button Icon - Mobile */
    .btn-offline-mode img {
width: 16px;
height: 16px;
margin-right: 8px;
    }

    /* Summary Chevron Icon - Mobile */
    #summaryChevron,
    .summary-header img,
    .maintenance-summary-collapsible img {
width: 18px;
height: 18px;
    }

    /* Camera Icons - Mobile */
    .maintenance-image-upload img,
    .maintenance-image-upload .maintenance-icon-20 {
width: 16px;
height: 16px;
    }

    /* Nav Icons - Mobile (already small but make sure) */
    .nav-icon,
    .header-nav img {
width: 18px;
height: 18px;
    }

    /* Search Icon - Mobile */
    .search-icon {
width: 16px;
height: 16px;
    }

    /* Status Icons - Mobile */
    .status-icon,
    .connection-status-bar img {
width: 14px;
height: 14px;
    }

    /* Offline Active Banner Icon - Mobile */
    .offline-active-content img {
width: 20px;
height: 20px;
    }

    /* Form Help Icons - Mobile */
    .form-help img,
    .offline-help img {
width: 14px;
height: 14px;
    }

    /* Eva Icons in Forms - Mobile */
    .page-add_maintenance img[src*="eva-icons"] {
max-width: 16px;
max-height: 16px;
    }

    /* All Icons in Add Maintenance - Mobile */
    .page-add_maintenance img {
max-width: 18px;
max-height: 18px;
    }

    /* System Registration Button Icon - Mobile */
    .system-registration-btn img {
width: 18px;
height: 18px;
    }

    /* Content Header Icons - Mobile */
    .content-header img,
    .content-controls img {
width: 16px;
height: 16px;
    }

    /* ========================================
       MAINTENANCE FORM SPECIFIC ELEMENTS - Mobile
       Teljesen megegyezik az asztali verzióval
       ======================================== */
    
    /* Maintenance Title - Mobile */
    .page-add_maintenance .maintenance-yearly-title {
margin: 16px 0;
padding: 14px;
background: #e74c3c;
color: white;
text-align: center;
border-radius: 16px;
font-size: 16px;
font-weight: 600;
    }
    
    /* Maintenance Questions Container - Mobile */
    .page-add_maintenance .maintenance-yearly-questions {
margin: 16px 0;
    }
    
    /* DateTime Labels - Mobile */
    .page-add_maintenance .maintenance-datetime-label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #e74c3c;
font-size: 14px;
    }
    
    /* Notes Labels - Mobile */
    .page-add_maintenance .maintenance-notes-label {
display: block;
margin-bottom: 8px;
font-weight: 600;
font-size: 14px;
    }
    
    .page-add_maintenance .maintenance-notes-label-spacing {
display: block;
margin-bottom: 8px;
margin-top: 16px;
font-weight: 600;
font-size: 14px;
    }
    
    /* Image Upload Section - Mobile */
    .page-add_maintenance .maintenance-image-upload {
margin-top: 20px;
padding: 16px;
background: #f8f9fa;
border-radius: 16px;
border: 2px dashed #e74c3c;
    }
    
    .page-add_maintenance .maintenance-image-upload h4 {
color: #e74c3c;
margin-bottom: 12px;
display: flex;
align-items: center;
font-size: 16px;
gap: 8px;
    }
    
    .page-add_maintenance .maintenance-image-upload-info {
margin-bottom: 12px;
    }
    
    .page-add_maintenance .maintenance-image-upload-help {
color: #666;
display: block;
margin-top: 8px;
font-size: 13px;
line-height: 1.5;
    }
    
    /* Image Preview Grid - Mobile */
    .page-add_maintenance .maintenance-image-preview {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 10px;
margin-top: 12px;
    }
    
    /* Offline Mode Button - Mobile */
    .page-add_maintenance .btn-offline-mode {
width: 100%;
padding: 16px 20px;
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: white;
border: none;
border-radius: 20px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
min-height: 52px;
    }
    
    .page-add_maintenance .btn-offline-mode:active {
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
transform: scale(0.98);
    }
    
    .page-add_maintenance .btn-offline-mode img {
filter: brightness(0) invert(1);
width: 20px;
height: 20px;
    }
    
    .page-add_maintenance .offline-help {
display: block;
margin-top: 10px;
color: #6b7280;
font-size: 13px;
line-height: 1.5;
text-align: center;
padding: 0 8px;
    }
    
    /* Offline Active Banner - Mobile */
    .page-add_maintenance .offline-active-banner {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
border-radius: 20px;
padding: 16px;
margin-bottom: 20px;
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    
    .page-add_maintenance .offline-active-content {
display: flex;
align-items: center;
gap: 12px;
    }
    
    .page-add_maintenance .offline-active-content img {
width: 24px;
height: 24px;
flex-shrink: 0;
filter: brightness(0) invert(1);
    }
    
    .page-add_maintenance .offline-active-content strong {
color: white;
display: block;
margin-bottom: 4px;
font-size: 15px;
    }
    
    .page-add_maintenance .offline-active-content p {
color: rgba(255, 255, 255, 0.9);
margin: 0;
font-size: 13px;
line-height: 1.4;
    }
    
    /* Question Item Repair Note Input - Mobile */
    .page-add_maintenance .maintenance-question-item input[type="text"] {
margin-top: 10px;
width: 100%;
padding: 12px;
border-radius: 16px;
border: 2px solid #e9ecef;
font-size: 14px;
min-height: 44px;
    }
    
    /* Maintenance Question Text - Mobile (SAME AS DESKTOP!) */
    .page-add_maintenance .maintenance-question-text {
flex: 1;
font-weight: 500;
font-size: 14px;
line-height: 1.5;
margin-bottom: 0 ; /* ✅ Nincs margin, mert egy sorban van */
color: #2c3e50;
    }
    
    /* Maintenance Icons - Mobile (already defined above but ensure consistency) */
    .page-add_maintenance .maintenance-icon-16 {
width: 16px;
height: 16px;
vertical-align: middle;
margin-right: 4px;
    }
    
    .page-add_maintenance .maintenance-icon-20 {
width: 20px;
height: 20px;
margin-right: 6px;
vertical-align: middle;
    }
    
    .page-add_maintenance .maintenance-icon-24 {
width: 24px;
height: 24px;
transition: transform 0.3s;
    }
    
    /* Form Offline Indicator - Mobile */
    .page-add_maintenance .form-offline-indicator {
display: none;
background: #fef3c7;
border: 2px solid #f59e0b;
border-radius: 16px;
padding: 12px 14px;
margin-bottom: 16px;
font-size: 14px;
    }
    
    .page-add_maintenance .form-offline-indicator.active {
display: flex;
align-items: center;
gap: 10px;
    }
    
    .page-add_maintenance .form-offline-indicator img {
width: 18px;
height: 18px;
flex-shrink: 0;
    }
    
    /* Maintenance State Button Text - Mobile */
    .page-add_maintenance .maintenance-state-button {
font-weight: 600;
text-align: center;
letter-spacing: 0.3px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease;
    }
    
    .page-add_maintenance .maintenance-state-button:active {
transform: scale(0.98);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    }
    
    /* System Registration Button - Mobile Full Match */
    .page-add_maintenance .system-registration-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
color: white;
font-weight: 600;
box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
transition: all 0.3s ease;
    }
    
    .page-add_maintenance .system-registration-btn img {
        filter: brightness(0) invert(1);
    }
    
    .page-add_maintenance .system-registration-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
background: #e5e7eb;
color: #9ca3af;
box-shadow: none;
    }
    
    .page-add_maintenance .system-registration-btn:active:not(:disabled) {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
transform: scale(0.98);
    }
    
    /* Maintenance Notes Section - Mobile */
    .page-add_maintenance .maintenance-notes-section {
margin-top: 20px;
padding: 16px;
background: #f8f9fa;
border-radius: 16px;
border: 1px solid #e9ecef;
    }
    
    /* Final Submit Button States - Mobile */
    .page-add_maintenance .maintenance-final-submit {
width: 100%;
padding: 18px;
font-size: 18px;
font-weight: 700;
border: none;
border-radius: 20px;
cursor: pointer;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 0.5px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
min-height: 60px;
    }
    
    /* Final Submit States - Same as Desktop */
    .page-add_maintenance .maintenance-final-submit[data-state="megfelelt"] {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: white;
    }
    
    .page-add_maintenance .maintenance-final-submit[data-state="nem-megfelelt"] {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: white;
    }
    
    .page-add_maintenance .maintenance-final-submit:active {
transform: scale(0.97);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    /* Required Field Indicator - Mobile */
    .page-add_maintenance .required {
color: #ef4444;
font-weight: 700;
margin-left: 4px;
    }
    
/* Hidden elements by default (same as desktop) - NO so JS inline styles can override */
    #detailedFormSection {
        display: none;
    }

    #systemSelectionRow {
        display: none;
    }

    #summarySystemRow {
        display: none;
    }

    /* Offline Active Banner - Hidden by default, but JS can override */
    .offline-active-banner {
        display: none;
    }

    /* Offline Mode Row - Hidden by default, but JS can override */
    #offlineModeRow {
        display: none;
    }
    
    /* Force hide offline elements if no system selected (JavaScript will override when needed) */
    #offlineModeRow[style*="display: none"],
    #offlineModeRow:not([style*="display: block"]):not([style*="display:flex"]) {
display: none;
    }
    
    .offline-active-banner[style*="display: none"],
    .offline-active-banner:not([style*="display: block"]):not([style*="display:flex"]) {
display: none;
    }
    
    /* ===== WEEK TIMELINE VIEW STYLES (MOBILE) ===== */
    .page-tasks .week-timeline-view {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .page-tasks .week-timeline-container {
        min-height: 500px;
        min-width: 800px;
    }
    
    .page-tasks .timeline-time-column {
        width: 60px;
    }
    
    .page-tasks .timeline-time-slot {
        font-size: 10px;
        height: 50px;
    }
    
    .page-tasks .timeline-day-column {
        min-width: 120px;
    }
    
    .page-tasks .timeline-day-header {
        height: 50px;
    }
    
    .page-tasks .timeline-day-name {
        font-size: 11px;
    }
    
    .page-tasks .timeline-day-date {
        font-size: 10px;
    }
    
    .page-tasks .timeline-day-grid {
        min-height: 650px;
    }
    
    .page-tasks .timeline-hour-slot {
        height: 50px;
    }
    
    .page-tasks .timeline-task {
        padding: 3px 4px;
    }
    
    .page-tasks .timeline-task-time {
        font-size: 9px;
    }
    
    .page-tasks .timeline-task-title {
        font-size: 10px;
        -webkit-line-clamp: 1;
    }
    
    /* ===== MOBILE WEEK TIMELINE - SWIPEABLE SINGLE DAY VIEW ===== */
    .page-tasks .week-timeline-mobile-container {
        display: block;
        position: relative;
        width: 100%;
        overflow: hidden;
        background: white;
        border-radius: 12px;
    }
    
    .page-tasks .week-timeline-mobile-slides {
        display: flex;
        width: 500%; /* 5 days = 500% */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        touch-action: pan-x pan-y pinch-zoom;
        overflow: hidden;
    }
    
    .page-tasks .week-timeline-mobile-container {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .page-tasks .week-timeline-mobile-slide {
        width: 20%; /* Each slide is 20% of container (1/5) */
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        background: white;
        padding: 12px;
        box-sizing: border-box;
    }
    
    .page-tasks .week-timeline-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 2px solid #e9ecef;
        margin-bottom: 12px;
    }
    
    .page-tasks .week-timeline-mobile-header.today {
        border-bottom-color: #506980;
    }
    
    .page-tasks .week-timeline-mobile-day-name {
        font-size: 18px;
        font-weight: 600;
        color: #2c3e50;
    }
    
    .page-tasks .week-timeline-mobile-day-date {
        font-size: 16px;
        font-weight: 500;
        color: #6c757d;
    }
    
    .page-tasks .week-timeline-mobile-header.today .week-timeline-mobile-day-name,
    .page-tasks .week-timeline-mobile-header.today .week-timeline-mobile-day-date {
        color: #506980;
    }
    
    .page-tasks .week-timeline-mobile-slide {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .page-tasks .week-timeline-mobile-time-column {
        position: absolute;
        left: 12px;
        top: 0;
        width: 60px;
        background: white;
        z-index: 10;
        padding-top: 0;
        margin-top: 0;
        height: 780px; /* Match the day-grid height exactly */
    }
    
    .page-tasks .week-timeline-mobile-time-slot {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0;
        padding-right: 8px;
        margin: 0;
        font-size: 12px;
        color: #6c757d;
        font-weight: 500;
        border-bottom: 1px solid #f1f3f5;
        box-sizing: border-box;
        line-height: 60px;
    }
    
    .page-tasks .week-timeline-mobile-time-slot:last-child {
        border-bottom: none;
    }
    
    .page-tasks .week-timeline-mobile-day-grid {
        position: relative;
        margin-left: 70px;
        height: 780px; /* 13 hours * 60px - exact height, not min-height */
        background: #f8f9fa;
        border-radius: 4px;
        border: 1px solid #e9ecef;
        padding: 0;
        margin-top: 0;
    }
    
    .page-tasks .week-timeline-mobile-hour-slot {
        height: 60px;
        border-bottom: 1px solid #e9ecef;
        position: relative;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    .page-tasks .week-timeline-mobile-hour-slot:last-child {
        border-bottom: none;
    }
    
    .page-tasks .week-timeline-mobile-task {
        position: absolute;
        left: 4px;
        right: 4px;
        border-radius: 4px;
        padding: 6px 8px;
        cursor: pointer;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
        z-index: 20;
        color: white;
        font-size: 11px;
        line-height: 1.3;
    }
    
    .page-tasks .week-timeline-mobile-task:active {
        transform: scale(0.98);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    
    .page-tasks .week-timeline-mobile-task-time {
        font-size: 10px;
        font-weight: 600;
        opacity: 0.9;
        margin-bottom: 2px;
    }
    
    .page-tasks .week-timeline-mobile-task-title {
        font-size: 11px;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Hide desktop week timeline on mobile */
    .page-tasks .week-timeline-container {
        display: none !important;
    }
    
    /* Show mobile timeline on mobile */
    .page-tasks .week-timeline-mobile-container {
        display: block;
    }
}

/* ===== SYNC QUEUE PAGE - MOBILE STYLES ===== */
@media (max-width: 768px) {
    .page-sync_queue .content-wrapper {
        padding: 10px;
        max-width: 100%;
        width: 100%;
    }

    .page-sync_queue .content-main {
        padding: 12px;
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    /* Content Header - Mobile Stack */
    .page-sync_queue .content-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }

    .page-sync_queue .header-title-wrapper {
        width: 100%;
    }

    .page-sync_queue .content-title {
        font-size: 20px;
        margin-bottom: 0;
    }

    /* Content Controls - Mobile Stack */
    .page-sync_queue .content-controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .page-sync_queue .content-controls .btn-primary,
    .page-sync_queue .content-controls .btn-secondary,
    .page-sync_queue .content-controls .btn-success,
    .page-sync_queue .content-controls .btn-error {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .page-sync_queue .content-controls .back-button {
        display: none;
    }

    /* Info Box - Mobile */
    .page-sync_queue .info-box {
        padding: 14px 16px;
        border-radius: 16px;
        margin-bottom: 16px;
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .page-sync_queue .info-box img {
        width: 20px;
        height: 20px;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .page-sync_queue .info-box > div {
        width: 100%;
    }

    .page-sync_queue .info-box strong {
        display: block;
        margin-bottom: 4px;
    }

    /* Progress Container - Mobile */
    .page-sync_queue .progress-container {
        margin-bottom: 16px;
        padding: 0;
    }

    .page-sync_queue .progress-bar {
        height: 32px;
        border-radius: 16px;
    }

    .page-sync_queue .progress-fill {
        border-radius: 16px;
    }

    .page-sync_queue #progressText {
        font-size: 13px;
        margin-top: 8px;
    }

    /* Clients Grid - Mobile Single Column */
    .page-sync_queue .clients-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 16px;
        grid-template-columns: 1fr;
    }

    /* Client Card - Mobile Optimized */
    .page-sync_queue .client-card {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .page-sync_queue .client-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }

    .page-sync_queue .client-avatar {
        width: 48px;
        height: 48px;
        min-width: 48px;
        flex-shrink: 0;
    }

    .page-sync_queue .client-avatar img {
        width: 24px;
        height: 24px;
    }

    .page-sync_queue .client-info {
        flex: 1;
        min-width: 0;
    }

    .page-sync_queue .client-name {
        font-size: 16px;
        margin-bottom: 4px;
        word-wrap: break-word;
    }

    .page-sync_queue .client-type {
        font-size: 13px;
        margin-bottom: 6px;
        word-wrap: break-word;
    }

    /* Sync Status Badge - Mobile */
    .page-sync_queue .sync-status-badge {
        font-size: 11px;
        padding: 4px 10px;
        margin-top: 6px;
        display: inline-block;
    }

    /* Client Details - Mobile */
    .page-sync_queue .client-details {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e9ecef;
    }

    .page-sync_queue .detail-row {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 10px;
        padding: 8px 0;
    }

    .page-sync_queue .detail-label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 600;
        color: #64748b;
    }

    .page-sync_queue .detail-label img {
        width: 16px;
        height: 16px;
    }

    .page-sync_queue .detail-value {
        font-size: 14px;
        color: #1e293b;
        padding-left: 22px;
        word-wrap: break-word;
    }

    /* Client Actions - Mobile */
    .page-sync_queue .client-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e9ecef;
    }

    .page-sync_queue .btn-action {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        border-radius: 12px;
    }

    .page-sync_queue .btn-action img {
        width: 20px;
        height: 20px;
    }

    /* Loading Spinner - Mobile */
    .page-sync_queue .loading-spinner {
        padding: 40px 20px;
    }

    .page-sync_queue .spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .page-sync_queue .loading-spinner p {
        font-size: 14px;
        margin-top: 12px;
    }

    /* Empty State - Mobile */
    .page-sync_queue .empty-state {
        padding: 40px 20px;
    }

    .page-sync_queue .empty-state img {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .page-sync_queue .empty-state h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .page-sync_queue .empty-state p {
        font-size: 14px;
    }

    /* Empty State Container - Maintenance Page - Mobile */
    .clients-grid .empty-state-container {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 300px;
        padding: 40px 15px;
        width: 100%;
    }

    .empty-state-container {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 300px;
        padding: 40px 15px;
        width: 100%;
    }

    .empty-state-content {
        text-align: center;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .empty-state-content .empty-state-icon {
        width: 56px;
        height: 56px;
        opacity: 0.4;
        margin: 0 auto 16px;
        display: block;
        filter: grayscale(100%);
    }

    .empty-state-content .empty-state-title {
        margin: 0 0 10px 0;
        font-size: 16px;
        font-weight: 500;
        color: #9ca3af;
        line-height: 1.4;
    }

    .empty-state-content .empty-state-description {
        margin: 0;
        font-size: 13px;
        color: #9ca3af;
        line-height: 1.6;
    }

    /* ===== TASKS PAGE MOBILE STYLES ===== */
    /* Task card header right alignment */
    .task-card-header-right {
        margin-left: auto; /* Push toggle button to the right */
    }

    /* Task toggle button styling for mobile */
    .task-toggle-btn {
        background: transparent;
        border: none;
        padding: 6px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .task-toggle-btn:hover,
    .task-toggle-btn:active {
        background: #f8f9fa;
        transform: scale(1.05);
    }

    .task-toggle-icon {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
        filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
        display: block;
    }

    .task-toggle-icon.rotated {
        transform: rotate(180deg);
    }

    /* Task card content collapse animation for mobile */
    .task-card-content {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .task-card-content.expanded {
        max-height: 2000px; /* Large enough to accommodate content */
        padding: 12px 0;
    }

    /* Task actions button styling for mobile - ensure delete button matches others */
    /* Higher specificity selectors to override generic button styles */
    .task-card-new .task-card-actions button.btn-action.btn-delete,
    .task-card-new .task-card-actions button.btn-action,
    .task-card-new .task-card-actions a.btn-action.btn-delete,
    .task-card-new .task-card-actions a.btn-action,
    .task-actions button.btn-action.btn-delete,
    .task-actions button.btn-action,
    .task-actions a.btn-action.btn-delete,
    .task-actions a.btn-action,
    .task-card-new .task-actions button.btn-action.btn-delete,
    .task-card-new .task-actions button.btn-action,
    .task-card-new .task-actions a.btn-action.btn-delete,
    .task-card-new .task-actions a.btn-action {
        background: #506980; /* Override any .btn-delete red background */
        color: white;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 8px; /* CRITICAL: Ensure rounded rectangle, NOT circle */
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        max-width: 40px;
        min-height: 40px; /* Override generic button min-height */
        font-size: 0; /* Remove text size for icon-only buttons */
    }

    .task-card-new .task-card-actions button.btn-action.btn-delete:hover,
    .task-card-new .task-card-actions button.btn-action.btn-delete:active,
    .task-card-new .task-card-actions button.btn-action:hover,
    .task-card-new .task-card-actions button.btn-action:active,
    .task-card-new .task-card-actions a.btn-action.btn-delete:hover,
    .task-card-new .task-card-actions a.btn-action.btn-delete:active,
    .task-card-new .task-card-actions a.btn-action:hover,
    .task-card-new .task-card-actions a.btn-action:active,
    .task-actions button.btn-action.btn-delete:hover,
    .task-actions button.btn-action.btn-delete:active,
    .task-actions button.btn-action:hover,
    .task-actions button.btn-action:active,
    .task-actions a.btn-action.btn-delete:hover,
    .task-actions a.btn-action.btn-delete:active,
    .task-actions a.btn-action:hover,
    .task-actions a.btn-action:active,
    .task-card-new .task-actions button.btn-action.btn-delete:hover,
    .task-card-new .task-actions button.btn-action.btn-delete:active,
    .task-card-new .task-actions button.btn-action:hover,
    .task-card-new .task-actions button.btn-action:active,
    .task-card-new .task-actions a.btn-action.btn-delete:hover,
    .task-card-new .task-actions a.btn-action.btn-delete:active,
    .task-card-new .task-actions a.btn-action:hover,
    .task-card-new .task-actions a.btn-action:active {
        background: #3d5266;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(80, 105, 128, 0.3);
    }

    .task-card-new .task-card-actions button.btn-action.btn-delete img,
    .task-card-new .task-card-actions button.btn-action img,
    .task-card-new .task-card-actions a.btn-action.btn-delete img,
    .task-card-new .task-card-actions a.btn-action img,
    .task-actions button.btn-action.btn-delete img,
    .task-actions button.btn-action img,
    .task-actions a.btn-action.btn-delete img,
    .task-actions a.btn-action img,
    .task-card-new .task-actions button.btn-action.btn-delete img,
    .task-card-new .task-actions button.btn-action img,
    .task-card-new .task-actions a.btn-action.btn-delete img,
    .task-card-new .task-actions a.btn-action img {
        filter: brightness(0) invert(1);
        width: 16px;
        height: 16px;
        display: block;
    }

    /* ===== COLUMN HEADER STYLES - MOBILE ===== */
    .column-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding: 14px 18px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 12px;
        border: 1px solid #e9ecef;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease;
    }

    .column-header:active {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

    .column-stats {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .stat-circle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 13px;
        font-weight: 700;
        color: white;
        min-width: 32px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .stat-circle.stat-total {
        background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
        border: 2px solid #495057;
    }

    .stat-circle.stat-high {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        border: 2px solid #bd2130;
    }

    .stat-circle.stat-medium {
        background: linear-gradient(135deg, #fd7e14 0%, #e8650e 100%);
        border: 2px solid #d9530e;
    }

    .stat-circle.stat-low {
        background: linear-gradient(135deg, #28a745 0%, #218838 100%);
        border: 2px solid #1e7e34;
    }

    .stat-circle:active {
        transform: scale(1.15);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    }

    .stat-circle.filter-active {
        transform: scale(1.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
        }
        50% {
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
        }
    }

    .column-title {
        font-size: 20px;
        font-weight: 700;
        color: #2c3e50;
        margin: 0;
        letter-spacing: -0.3px;
    }

    /* ===== CLIENT STATUS BADGE STYLES - MOBILE (from desktop) ===== */
    .client-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .client-status:active {
        transform: translateY(-1px) scale(1.1);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    }

    .client-status img {
        width: 16px;
        height: 16px;
        display: block;
        filter: brightness(0) invert(1); /* Make icons white */
    }

    /* Megfelelő - Zöld */
    .client-status.status-megfelelő,
    .client-status.status-megfelelt {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .client-status.status-megfelelő:active,
    .client-status.status-megfelelt:active {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4);
    }

    /* Nem felelt meg - Piros */
    .client-status.status-nem_felelt_meg,
    .client-status.status-nem_felelt {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

    .client-status.status-nem_felelt_meg:active,
    .client-status.status-nem_felelt:active {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4);
    }

    /* Részben megfelelő - Narancssárga */
    .client-status.status-részben_megfelelő,
    .client-status.status-részben {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        border: 2px solid #b45309;
    }

    .client-status.status-részben_megfelelő:active,
    .client-status.status-részben:active {
        background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
        box-shadow: 0 3px 8px rgba(245, 158, 11, 0.4);
    }

    /* ===== PERMISSIONS PAGE - MOBILE STYLES ===== */
    /* Hide content title on permissions page mobile */
    .page-permissions .content-title {
        display: none;
    }

    /* Card icon - smaller on mobile */
    .page-permissions .card-icon {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }

    /* Permissions tabs - mobile layout */
    .page-permissions .permissions-tabs {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }

    .page-permissions .permissions-tabs .btn-secondary {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        justify-content: flex-start;
        border-radius: 25px;
    }

    .page-permissions .permissions-tabs .btn-secondary img {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Active tab icons should be white - all active buttons */
    .page-permissions .permissions-tabs .btn-secondary.active img,
    .page-permissions .btn-secondary.active img {
        filter: brightness(0) invert(1);
    }

    /* Empty state icon - smaller on mobile */
    .page-permissions .empty-state .empty-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 16px;
    }

    .page-permissions .empty-state .empty-icon img {
        width: 24px;
        height: 24px;
    }

    /* Assignments grid - mobile single column */
    .page-permissions .assignments-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
    }

    /* Assignment card - mobile optimized */
    .page-permissions .assignment-card {
        padding: 14px;
        border-radius: 12px;
    }

    /* Assignment header icons - smaller */
    .page-permissions .assignment-location img,
    .page-permissions .assignment-count img {
        width: 16px;
        height: 16px;
    }

    /* Assignment details icons - smaller */
    .page-permissions .assignment-user img,
    .page-permissions .assignment-category img,
    .page-permissions .assignment-summary img {
        width: 16px;
        height: 16px;
    }

    /* Assignment footer button - consistent with other action buttons */
    .page-permissions .assignment-footer .btn-action.btn-delete {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 8px;
    }

    .page-permissions .assignment-footer .btn-action.btn-delete img {
        width: 16px;
        height: 16px;
    }

    /* Card arrow - smaller on mobile */
    .page-permissions .card-arrow {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
        filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
        flex-shrink: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* Card header - ensure clickable on mobile */
    .page-permissions .card-header {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px;
    }

    .page-permissions .card-header:active {
        background: #f8f9fa;
        opacity: 0.9;
    }

    /* Card content collapsed/expanded states */
    .page-permissions .card-content.collapsed {
        display: none;
    }

    .page-permissions .card-content:not(.collapsed) {
        display: block;
    }

    /* Card title and actions layout on mobile */
    .page-permissions .card-header .card-title {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .page-permissions .card-header .card-actions {
        flex-shrink: 0;
        order: 2;
    }

    .page-permissions .card-header .card-arrow {
        order: 3;
        margin-left: auto;
    }

    /* ===== VIEW TASK PAGE - MOBILE STYLES ===== */
    /* Hide content title on mobile */
    .page-view_task .content-title {
        display: none;
    }

    /* Section icons - smaller on mobile */
    .page-view_task .detail-section .section-icon {
        width: 18px;
        height: 18px;
        margin-right: 6px;
        flex-shrink: 0;
    }

    /* Detail section h4 - optimized for mobile */
    .page-view_task .detail-section h4 {
        font-size: 16px;
        margin-bottom: 12px;
        gap: 8px;
    }

    /* Task details grid - single column on mobile */
    .page-view_task .task-details-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Detail section - mobile optimized (maintain card style) */
    .page-view_task .detail-section {
        background: white;
        border-radius: 12px;
        padding: 16px;
        border: 1px solid #e9ecef;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: relative;
        overflow: hidden;
    }

    .page-view_task .detail-section:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(80, 105, 128, 0.15);
        border-color: #506980;
    }

    /* Detail rows - mobile spacing */
    .page-view_task .detail-row {
        padding: 8px 0;
        flex-direction: column;
        gap: 4px;
    }

    /* Detail label - mobile */
    .page-view_task .detail-label {
        min-width: auto;
        font-weight: 600;
        color: #6c757d;
        font-size: 13px;
    }

    /* Detail value - mobile */
    .page-view_task .detail-value {
        font-size: 15px;
        color: #2c3e50;
        word-wrap: break-word;
    }

    /* Back button and edit button - mobile optimized */
    .page-view_task .back-button {
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .page-view_task .back-button img {
        width: 18px;
        height: 18px;
    }

    .page-view_task .btn-primary {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 40px;
    }

    .page-view_task .btn-primary img {
        filter: brightness(0) invert(1); /* Make icons white */
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }

    /* Content header - mobile layout */
    .page-view_task .content-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .page-view_task .header-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* ===== ADD CLIENT PAGE - MOBILE STYLES ===== */
    /* Hide content title on mobile */
    .page-add_client .content-title {
        display: none;
    }

    /* Form inputs - ensure 25px border-radius on mobile */
    .page-add_client .form-input,
    .page-add_client input[type="text"],
    .page-add_client input[type="email"],
    .page-add_client input[type="tel"],
    .page-add_client input[type="number"] {
        border-radius: 25px !important;
        padding: 12px 18px;
        font-size: 16px;
        min-height: 44px;
        border: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
    }

    /* Form select - ensure 25px border-radius on mobile */
    .page-add_client .form-select,
    .page-add_client select {
        border-radius: 25px !important;
        padding: 12px 18px;
        font-size: 16px;
        min-height: 44px;
        border: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 18px center;
        padding-right: 45px;
    }

    /* Form textarea - ensure 25px border-radius on mobile */
    .page-add_client .form-textarea,
    .page-add_client textarea,
    .page-add_client .form-input[rows],
    .page-add_client textarea.form-input {
        border-radius: 25px !important;
        padding: 12px 18px;
        font-size: 16px;
        min-height: 100px;
        border: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
        resize: vertical;
    }

    /* Form sections - mobile spacing */
    .page-add_client .form-section {
        margin-bottom: 24px;
        padding-bottom: 20px;
        border-bottom: 1px solid #e9ecef;
    }

    .page-add_client .form-section:last-of-type {
        border-bottom: none;
    }

    /* Form group - mobile spacing */
    .page-add_client .form-group {
        margin-bottom: 18px;
    }

    .page-add_client .form-group:last-child {
        margin-bottom: 0;
    }

    /* Form label - mobile */
    .page-add_client .form-label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        font-size: 14px;
        color: #2c3e50;
    }

    .page-add_client .form-label .required {
        color: #ef4444;
        margin-left: 2px;
    }

    /* Section title - mobile */
    .page-add_client .section-title {
        font-size: 18px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 16px;
        padding-bottom: 8px;
        border-bottom: 2px solid #f1f3f5;
    }

    /* Form actions - mobile layout */
    .page-add_client .form-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
        padding-top: 20px;
        border-top: 2px solid #f1f3f5;
        position: sticky;
        bottom: 0;
        background: white;
        padding-bottom: 20px;
        margin-bottom: -20px;
    }

    /* Form buttons - full width on mobile */
    .page-add_client .form-actions .btn-primary {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* Hide "Mégse" button on mobile */
    .page-add_client .form-actions .btn-secondary {
        display: none;
    }

    /* Form button icons - white */
    .page-add_client .form-actions .btn-primary img {
        filter: brightness(0) invert(1);
        width: 18px;
        height: 18px;
    }

    /* Profile container - mobile padding */
    .page-add_client .profile-container {
        padding: 16px 0;
    }

    /* Content header - mobile layout */
    .page-add_client .content-header {
        margin-bottom: 20px;
    }

    /* Back button - mobile */
    .page-add_client .back-button {
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .page-add_client .back-button img {
        width: 18px;
        height: 18px;
    }

    /* ===== ADD LOCATION PAGE - MOBILE STYLES ===== */
    /* Hide content title on mobile */
    .page-add_location .content-title {
        display: none;
    }

    /* Form inputs - ensure 25px border-radius on mobile */
    .page-add_location .form-input,
    .page-add_location input[type="text"],
    .page-add_location input[type="email"],
    .page-add_location input[type="tel"],
    .page-add_location input[type="number"] {
        border-radius: 25px !important;
        padding: 12px 18px;
        font-size: 16px;
        min-height: 44px;
        border: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
    }

    /* Form select - ensure 25px border-radius on mobile */
    .page-add_location .form-select,
    .page-add_location select {
        border-radius: 25px !important;
        padding: 12px 18px;
        font-size: 16px;
        min-height: 44px;
        border: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 18px center;
        padding-right: 45px;
    }

    /* Form textarea - ensure 25px border-radius on mobile */
    .page-add_location .form-textarea,
    .page-add_location textarea,
    .page-add_location .form-input[rows],
    .page-add_location textarea.form-input {
        border-radius: 25px !important;
        padding: 12px 18px;
        font-size: 16px;
        min-height: 100px;
        border: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
        resize: vertical;
    }

    /* Form sections - mobile spacing */
    .page-add_location .form-section {
        margin-bottom: 24px;
        padding-bottom: 20px;
        border-bottom: 1px solid #e9ecef;
    }

    .page-add_location .form-section:last-of-type {
        border-bottom: none;
    }

    /* Form group - mobile spacing */
    .page-add_location .form-group {
        margin-bottom: 18px;
    }

    .page-add_location .form-group:last-child {
        margin-bottom: 0;
    }

    /* Form label - mobile */
    .page-add_location .form-label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        font-size: 14px;
        color: #2c3e50;
    }

    .page-add_location .form-label .required {
        color: #ef4444;
        margin-left: 2px;
    }

    /* Section title - mobile */
    .page-add_location .section-title {
        font-size: 18px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 16px;
        padding-bottom: 8px;
        border-bottom: 2px solid #f1f3f5;
    }

    /* Form actions - mobile layout */
    .page-add_location .form-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
        padding-top: 20px;
        border-top: 2px solid #f1f3f5;
        position: sticky;
        bottom: 0;
        background: white;
        padding-bottom: 20px;
        margin-bottom: -20px;
    }

    /* Form buttons - full width on mobile */
    .page-add_location .form-actions .btn-primary {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* Hide "Mégse" button on mobile */
    .page-add_location .form-actions .btn-secondary {
        display: none;
    }

    /* Form button icons - white */
    .page-add_location .form-actions .btn-primary img {
        filter: brightness(0) invert(1);
        width: 18px;
        height: 18px;
    }

    /* Profile container - mobile padding */
    .page-add_location .profile-container {
        padding: 16px 0;
    }

    /* Content header - mobile layout */
    .page-add_location .content-header {
        margin-bottom: 20px;
    }

    /* Back button - mobile */
    .page-add_location .back-button {
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .page-add_location .back-button img {
        width: 18px;
        height: 18px;
    }

    /* ===== SYSTEMS PAGE - MOBILE STYLES ===== */
    /* Hide content title on mobile */
    .page-systems .content-title {
        display: none;
    }

    /* Search filters - mobile layout */
    .page-systems .search-filters {
        margin-bottom: 20px;
    }

    .page-systems .search-filters .form-group {
        margin-bottom: 16px;
    }

    .page-systems .search-filters label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        font-size: 14px;
        color: #2c3e50;
    }

    /* Form inputs - ensure 25px border-radius on mobile */
    .page-systems .search-filters .form-input,
    .page-systems .search-filters input[type="text"] {
        border-radius: 25px !important;
        padding: 12px 18px;
        font-size: 16px;
        min-height: 44px;
        border: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
    }

    /* Dropdown container - mobile */
    .page-systems .dropdown-container {
        position: relative;
        width: 100%;
    }

    .page-systems .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        max-height: 250px;
        overflow-y: auto;
        z-index: 1000;
        margin-top: 4px;
    }

    .page-systems .dropdown-item {
        padding: 12px 18px;
        cursor: pointer;
        transition: background 0.2s ease;
        font-size: 15px;
        color: #2c3e50;
    }

    .page-systems .dropdown-item:hover,
    .page-systems .dropdown-item:active {
        background: #f8f9fa;
    }

    /* Form actions - mobile layout */
    .page-systems .search-filters .form-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    /* Form buttons - full width on mobile */
    .page-systems .search-filters .form-actions .add-task-btn,
    .page-systems .search-filters .form-actions .btn-secondary {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* Form button icons - white */
    .page-systems .search-filters .form-actions .add-task-btn img,
    .page-systems .search-filters .form-actions .btn-secondary img {
        filter: brightness(0) invert(1);
        width: 18px;
        height: 18px;
    }

    /* Profile cards - mobile */
    .page-systems .profile-card {
        margin-bottom: 16px;
        background: white;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        overflow: hidden;
    }

    /* Card header - mobile */
    .page-systems .card-header {
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .page-systems .card-header:active {
        background: #f8f9fa;
        opacity: 0.9;
    }

    /* Card title - mobile */
    .page-systems .card-title {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .page-systems .card-icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Card arrow - mobile */
    .page-systems .card-arrow {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
        filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
        flex-shrink: 0;
    }

    /* Card content collapsed/expanded states */
    .page-systems .card-content.collapsed {
        display: none;
    }

    .page-systems .card-content:not(.collapsed) {
        display: block;
        padding: 16px;
    }

    /* Assignments grid - mobile single column */
    .page-systems .assignments-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Assignment card - mobile optimized */
    .page-systems .assignment-card {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 14px;
        border: 1px solid #e9ecef;
    }

    /* Assignment header icons - smaller */
    .page-systems .assignment-header .assignment-location img,
    .page-systems .assignment-count img {
        width: 16px;
        height: 16px;
    }

    /* Assignment details icons - smaller */
    .page-systems .assignment-category img,
    .page-systems .assignment-summary img {
        width: 16px;
        height: 16px;
    }

    /* Assignment footer - mobile layout: summary on first row, buttons on second row */
    .page-systems .assignment-footer {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 12px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e9ecef;
        align-items: flex-start;
    }

    /* Assignment summary - first row (full width) */
    .page-systems .assignment-footer .assignment-summary {
        width: 100%;
        margin-right: 0;
        padding-bottom: 0;
        order: 1;
        flex-basis: 100%;
    }

    /* Action buttons - second row, in a horizontal row */
    .page-systems .assignment-footer > button.btn-action {
        order: 2;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .page-systems .assignment-footer .btn-action img {
        width: 16px;
        height: 16px;
    }

    /* Count badge - mobile */
    .page-systems .count-badge {
        font-size: 13px;
        padding: 4px 10px;
        border-radius: 12px;
    }

    /* Empty state - mobile */
    .page-systems .empty-state {
        text-align: center;
        padding: 40px 20px;
    }

    .page-systems .empty-state img {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
        filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
    }

    /* Add task button in header - mobile */
    .page-systems .content-controls .add-task-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
        border-radius: 25px;
    }

    .page-systems .content-controls .add-task-btn img {
        filter: brightness(0) invert(1);
        width: 16px;
        height: 16px;
    }

    /* Content header - mobile layout */
    .page-systems .content-header {
        margin-bottom: 20px;
    }

    /* Element cards - mobile */
    .page-systems .element-card {
        background: white;
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 8px;
        border: 1px solid #e9ecef;
    }

    .page-systems .element-header {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 6px;
        color: #2c3e50;
    }

    .page-systems .element-details {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 13px;
        color: #6c757d;
    }

    .page-systems .element-details span {
        padding: 2px 0;
    }

    /* Delete confirmation - mobile optimized */
    .page-systems .delete-confirmation {
        display: none !important; /* Hidden by default */
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin-top: 12px;
        background: #fff3cd;
        border: 2px solid #ffc107;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
        z-index: 10;
        animation: slideDown 0.3s ease;
    }

    .page-systems .delete-confirmation[style*="display: block"] {
        display: block !important;
    }

    .page-systems .delete-confirmation-content {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        flex-direction: column;
    }

    .page-systems .delete-confirmation-content img {
        width: 20px;
        height: 20px;
        filter: brightness(0) saturate(100%) invert(47%) sepia(81%) saturate(1481%) hue-rotate(2deg) brightness(95%) contrast(95%);
        flex-shrink: 0;
        margin-top: 2px;
    }

    .page-systems .delete-confirmation-content span {
        font-weight: 600;
        font-size: 15px;
        color: #856404;
        line-height: 1.4;
        flex: 1;
    }

    .page-systems .delete-confirmation-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    /* Delete confirmation buttons - full width on mobile */
    .page-systems .delete-confirmation-actions .btn-secondary,
    .page-systems .delete-confirmation-actions .btn-error {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-weight: 600;
    }

    /* Secondary button (Mégse) - gray */
    .page-systems .delete-confirmation-actions .btn-secondary {
        background: #6c757d;
        color: white;
        border: none;
    }

    .page-systems .delete-confirmation-actions .btn-secondary:active {
        background: #5a6268;
        transform: translateY(-1px);
    }

    /* Error button (Igen, törlöm) - red */
    .page-systems .delete-confirmation-actions .btn-error {
        background: #dc3545;
        color: white;
        border: none;
    }

    .page-systems .delete-confirmation-actions .btn-error:active {
        background: #c82333;
        transform: translateY(-1px);
    }

    /* Button icons - white */
    .page-systems .delete-confirmation-actions .btn-secondary img,
    .page-systems .delete-confirmation-actions .btn-error img {
        filter: brightness(0) invert(1);
        width: 18px;
        height: 18px;
    }

    /* Assignment card - ensure relative positioning for delete confirmation */
    .page-systems .assignment-card {
        position: relative;
    }

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

    /* ===== SYSTEM ADD SELECT PAGE - MOBILE STYLES ===== */
    /* Hide content title and back button on mobile */
    .page-system_add_select .content-title,
    .page-system_add_select .content-controls .btn-secondary {
        display: none;
    }

    /* Content header - mobile layout */
    .page-system_add_select .content-header {
        margin-bottom: 20px;
    }

    /* ===== SYSTEM RECORD PAGE - MOBILE STYLES ===== */
    /* Hide content title on mobile */
    .page-system_record .content-title {
        display: none;
    }

    /* Ensure info-card has proper card styling */
    .page-system_record .info-card {
        background: white !important;
        border-radius: 12px !important;
        padding: 0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid #e9ecef !important;
        margin-bottom: 24px !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }

    .page-system_record .info-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
        transform: translateY(-2px) !important;
    }

    .page-system_record .info-card-header {
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
        border-bottom: 2px solid #f1f3f5 !important;
        padding: 20px 24px !important;
    }

    .page-system_record .info-card-header h3 {
        margin: 0 !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        color: #2c3e50 !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .page-system_record .info-card-header h3 img {
        width: 20px !important;
        height: 20px !important;
        opacity: 0.8 !important;
    }

    .page-system_record .info-card-content {
        padding: 20px 24px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .page-system_record .info-card-content .detail-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 6px 0 !important;
        border-bottom: 1px solid #f8f9fa !important;
    }

    .page-system_record .info-card-content .detail-row:last-child {
        border-bottom: none !important;
    }

    .page-system_record .info-card-content .detail-label {
        font-size: 13px !important;
        color: #6c757d !important;
        font-weight: 500 !important;
    }

    .page-system_record .info-card-content .detail-value {
        font-size: 13px !important;
        color: #2c3e50 !important;
        font-weight: 600 !important;
    }

    /* Ensure systems-container-card has proper card styling */
    .page-system_record .systems-container-card {
        background: white !important;
        border-radius: 12px !important;
        padding: 0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid #e9ecef !important;
        margin-bottom: 24px !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }

    .page-system_record .systems-container-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    }

    .page-system_record .systems-container-header {
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
        border-bottom: 2px solid #f1f3f5 !important;
        padding: 20px 24px !important;
    }

    .page-system_record .systems-container-header h3 {
        margin: 0 !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        color: #2c3e50 !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .page-system_record .systems-container-header h3 img {
        width: 20px !important;
        height: 20px !important;
        opacity: 0.8 !important;
    }

    .page-system_record .systems-list-container {
        padding: 20px 24px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .page-system_record .empty-systems-message {
        text-align: center !important;
        padding: 40px 20px !important;
        color: #6c757d !important;
        font-size: 14px !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        border: 2px dashed #dee2e6 !important;
    }

    /* Form inputs - ensure 25px border-radius and default mobile styling */
    .page-system_record .form-input,
    .page-system_record input[type="text"],
    .page-system_record input[type="email"],
    .page-system_record input[type="tel"],
    .page-system_record input[type="number"],
    .page-system_record input[type="date"] {
        border-radius: 25px !important;
        padding: 12px 18px !important;
        font-size: 16px !important;
        min-height: 44px !important;
        border: 1px solid #ddd !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Form select - ensure 25px border-radius on mobile */
    .page-system_record .form-select,
    .page-system_record select {
        border-radius: 25px !important;
        padding: 12px 18px !important;
        font-size: 16px !important;
        min-height: 44px !important;
        border: 1px solid #ddd !important;
        width: 100% !important;
        box-sizing: border-box !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 18px center;
        padding-right: 45px !important;
    }

    /* Form textarea - ensure 25px border-radius on mobile */
    .page-system_record .form-textarea,
    .page-system_record textarea,
    .page-system_record .form-input[rows],
    .page-system_record textarea.form-input {
        border-radius: 25px !important;
        padding: 12px 18px !important;
        font-size: 16px !important;
        min-height: 100px !important;
        border: 1px solid #ddd !important;
        width: 100% !important;
        box-sizing: border-box !important;
        resize: vertical;
    }

    /* Button icons - white on mobile */
    .page-system_record .btn-secondary img {
        filter: brightness(0) invert(1) !important;
        width: 20px !important;
        height: 20px !important;
    }

    /* ===== CERTIFICATES PAGE - MOBILE STYLES ===== */
    /* Hide content title on mobile */
    .page-certificates .content-title {
        display: none;
    }

    /* Content header - mobile layout */
    .page-certificates .content-header {
        margin-bottom: 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Content controls - mobile layout */
    .page-certificates .content-controls {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    /* View selector - mobile */
    .page-certificates .view-selector {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .page-certificates .view-selector span {
        font-size: 14px;
        font-weight: 600;
        color: #2c3e50;
    }

    .page-certificates .view-dropdown {
        flex: 1;
        border-radius: 25px !important;
        padding: 12px 18px !important;
        font-size: 16px !important;
        min-height: 44px !important;
        border: 1px solid #ddd !important;
        box-sizing: border-box !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 18px center;
        padding-right: 45px !important;
    }

    /* Add button - mobile */
    .page-certificates .add-task-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .page-certificates .add-task-btn img {
        filter: brightness(0) invert(1);
        width: 18px;
        height: 18px;
    }

    /* Hide table view on mobile - only show grid */
    .page-certificates .certificates-table-container {
        display: none !important;
    }

    /* Grid view - mobile layout */
    .page-certificates .clients-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    /* Client card - mobile */
    .page-certificates .client-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        border: 1px solid #e9ecef;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: relative;
        overflow: hidden;
    }

    .page-certificates .client-card:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(80, 105, 128, 0.15);
        border-color: #506980;
    }

    /* Client header - mobile */
    .page-certificates .client-header {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    /* Hide client avatar on mobile */
    .page-certificates .client-avatar {
        display: none;
    }

    /* Client info - mobile */
    .page-certificates .client-info {
        flex: 1;
        min-width: 0;
    }

    .page-certificates .client-name {
        font-size: 18px;
        font-weight: 600;
        color: #2c3e50;
        margin: 0 0 4px 0;
        word-wrap: break-word;
    }

    .page-certificates .client-type {
        font-size: 14px;
        color: #6c757d;
        margin: 0;
    }

    /* Client details - mobile */
    .page-certificates .client-details {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid #f1f3f5;
    }

    .page-certificates .detail-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .page-certificates .detail-label {
        font-size: 13px;
        color: #6c757d;
        font-weight: 500;
    }

    .page-certificates .detail-value {
        font-size: 15px;
        color: #2c3e50;
        font-weight: 600;
        word-wrap: break-word;
    }

    /* Status badge - mobile */
    .page-certificates .status-badge {
        padding: 0px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        display: inline-block;
        text-transform: none;
    }

    /* Status badge types - mobile */
    .page-certificates .status-badge.status-valid {
        background: #10b981;
        color: white;
    }

    .page-certificates .status-badge.status-expired {
        background: #ef4444;
        color: white;
    }

    .page-certificates .status-badge.status-warning {
        background: #f59e0b;
        color: white;
    }

    .page-certificates .status-badge.status-info {
        background: #3b82f6;
        color: white;
    }

    /* Ensure header status-badge doesn't get certificates styles */
    #status-badge {
        padding: 2px 6px !important;
        border-radius: 10px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        min-width: 18px !important;
        height: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
        flex-shrink: 0 !important;
    }

    /* Client actions - mobile */
    .page-certificates .client-actions {
        display: flex;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid #f1f3f5;
        justify-content: flex-end;
    }

    /* Default button styles - same as other pages */
    .page-certificates .btn-action,
    .page-certificates button.btn-action,
    .page-certificates a.btn-action {
        background: #506980;
        color: white;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .page-certificates .btn-action:hover,
    .page-certificates .btn-action:active,
    .page-certificates button.btn-action:hover,
    .page-certificates button.btn-action:active,
    .page-certificates a.btn-action:hover,
    .page-certificates a.btn-action:active {
        background: #3d5266;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(80, 105, 128, 0.3);
    }

    /* Delete button - same style as other action buttons */
    .page-certificates .btn-action.btn-delete,
    .page-certificates button.btn-action.btn-delete,
    .page-certificates a.btn-action.btn-delete {
        background: #506980;
        border-radius: 8px;
    }

    .page-certificates .btn-action.btn-delete:hover,
    .page-certificates .btn-action.btn-delete:active,
    .page-certificates button.btn-action.btn-delete:hover,
    .page-certificates button.btn-action.btn-delete:active,
    .page-certificates a.btn-action.btn-delete:hover,
    .page-certificates a.btn-action.btn-delete:active {
        background: #3d5266;
    }

    /* All button icons - white */
    .page-certificates .btn-action img,
    .page-certificates .btn-edit img,
    .page-certificates .btn-delete img,
    .page-certificates button.btn-action img,
    .page-certificates button.btn-edit img,
    .page-certificates button.btn-delete img,
    .page-certificates a.btn-action img {
        filter: brightness(0) invert(1);
        width: 16px;
        height: 16px;
        display: block;
    }

    /* Empty state - mobile */
    .page-certificates .empty-message {
        text-align: center;
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .page-certificates .empty-icon {
        width: 48px;
        height: 48px;
        filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
    }

    .page-certificates .empty-message p {
        font-size: 14px;
        color: #6c757d;
        margin: 0;
    }

    .page-certificates .empty-message .btn-primary {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .page-certificates .empty-message .btn-primary img {
        filter: brightness(0) invert(1);
        width: 18px;
        height: 18px;
    }
}

/* QR SCANNER STÍLUSAI - MOBIL */
.scanner-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 16px auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    display: none;
}

.scanner-container.active {
    display: block;
}

#qr-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Scanning Frame - Célzó keret */
.scanner-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 3px solid #10b981;
    border-radius: 12px;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    animation: scanner-pulse 2s ease-in-out infinite;
}

.scanner-frame::before,
.scanner-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #10b981;
}

/* Bal felső sarok */
.scanner-frame::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 12px;
}

/* Jobb alsó sarok */
.scanner-frame::after {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 12px;
}

/* Animáció a scanning frame-hez */
@keyframes scanner-pulse {
    0%, 100% {
        opacity: 1;
        border-color: #10b981;
    }
    50% {
        opacity: 0.7;
        border-color: #34d399;
    }
}

/* Scanning line animáció */
.scanner-line {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: linear-gradient(to bottom, transparent, #10b981, transparent);
    animation: scanner-line-scan 2s linear infinite;
    z-index: 11;
}

@keyframes scanner-line-scan {
    0% {
        top: 15%;
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        top: 85%;
        opacity: 1;
    }
}

#qr-canvas {
    display: none !important;
    visibility: hidden;
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 0;
    height: 0;
}

.scanner-status-text {
    display: none;
    text-align: center;
    padding: 12px 16px;
    margin: 12px auto 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
    width: 100%;
}

.scanner-status-text.info {
    display: block;
    color: #64748b;
    background: #f1f3f5;
    border: 1px solid #e2e8f0;
}

.scanner-status-text.success {
    display: block;
    color: #10b981;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
}

.scanner-status-text.error {
    display: block;
    color: #ef4444;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

/* QR Hozzárendelési információk */
.qr-assignments-info {
    margin: 12px 0;
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.qr-assignments-info.empty {
    border: none;
    padding: 4px 0;
}

.qr-assignment-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    margin-bottom: 6px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #506980;
}

.qr-assignment-item:last-child {
    margin-bottom: 0;
}

.qr-assignment-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qr-assignment-details strong {
    font-size: 13px;
    color: #506980;
    font-weight: 600;
}

.qr-assignment-details span {
    font-size: 12px;
    color: #64748b;
}

.qr-assignment-details small {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
}

.qr-assignment-system {
    font-size: 12px;
    color: #506980;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.qr-assignment-category {
    font-size: 11px;
    color: #64748b;
    font-weight: normal;
    font-style: italic;
}

/* Alert üzenetek - kompakt megjelenés */
.alert-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    margin: 12px auto 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.alert-success-message {
    color: #10b981;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
}

.alert-error-message {
    color: #ef4444;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.alert-info-message {
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #93c5fd;
}