/* Taskering CRM - Vlastní styly (Bootstrap styly jsou v bootstrap.css) */

html {
    font-size: 94%;
}

/* Globální font nastavení */
body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== JEDNOTNÝ DESIGN SYSTÉM - Karty ===== */
/* VŠECHNY karty používají tyto styly - NEPŘEPISOVAT na stránkách! */

.card {
    border: none;
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

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

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

.card-header {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg) !important;
    padding: 0.75rem 1.5rem;
}

.card-title {
    margin-bottom: 0.5rem;
    font-size: calc(1.25rem * var(--scale-factor));
    font-weight: 600;
}

.card-text {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

/* Karty s bílým textem - card-text musí být také bílý */
.card.text-white .card-text,
.card.bg-primary.text-white .card-text,
.card.bg-success.text-white .card-text,
.card.bg-info.text-white .card-text,
.card.bg-warning.text-white .card-text,
.card.bg-danger.text-white .card-text,
.card.bg-dark.text-white .card-text {
    color: white;
}

.btn {
    padding: calc(0.375rem * var(--scale-factor)) calc(0.75rem * var(--scale-factor));
    font-size: calc(1rem * var(--scale-factor));
}

.form-control, .form-select {
    padding: calc(0.375rem * var(--scale-factor)) calc(0.75rem * var(--scale-factor));
    font-size: calc(1rem * var(--scale-factor));
    border-radius: 8px;
}

/* Moderní form-select styl */
.form-select.border-0.bg-light {
    border: none !important;
    background-color: #f8fafc !important;
    font-weight: 600;
}

.form-select.border-0.bg-light:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    background-color: white !important;
}

/* Konzistentní styl tabulek v celé aplikaci */
.table {
    font-size: 0.875rem;
    --bs-table-hover-bg: rgba(0, 0, 0, 0.025);
    --bs-table-striped-bg: transparent;
}

.table > :not(caption) > * > * {
    padding: 0.6rem 0.75rem;
    border-color: #f3f4f6;
}

.table > thead > * > * {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb !important;
    background: transparent;
    white-space: nowrap;
    vertical-align: bottom;
}

.table > tbody > tr:hover > * {
    background-color: var(--bs-table-hover-bg);
}

.nav-link {
    padding: calc(0.5rem * var(--scale-factor)) calc(1rem * var(--scale-factor));
    font-size: calc(1rem * var(--scale-factor));
}

.nav-item .badge  {
    font-size: calc(0.75em * var(--scale-factor));
    padding: 0.35em 0.65em;
    border-radius: 50rem;
    font-weight: 500;
    min-width: 1.5em;
    min-height: 1.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.badge  {
    font-size: calc(0.75em * var(--scale-factor));
    padding: 0.35em 0.65em;
    border-radius: 4px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

h1, .h1 { 
    font-size: calc(2rem * var(--scale-factor)); 
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

h2, .h2 { 
    font-size: calc(1.6rem * var(--scale-factor)); 
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

h3, .h3 { 
    font-size: calc(1.4rem * var(--scale-factor)); 
    margin-bottom: 0.55rem;
    line-height: 1.4;
}

h4, .h4 { 
    font-size: calc(1.2rem * var(--scale-factor)); 
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

h5, .h5 { 
    font-size: calc(1rem * var(--scale-factor)); 
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

h6, .h6 { 
    font-size: calc(0.8rem * var(--scale-factor)); 
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

/* Vlastní CSS proměnné pro Taskering */
:root {
    /* Vlastní barvy pro Taskering */
    --taskering-primary: #667eea;
    --taskering-secondary: #764ba2;
    --taskering-accent: #f093fb;
    --taskering-success: #4facfe;
    --taskering-warning: #43e97b;
    --taskering-danger: #fa709a;
    --taskering-info: #a8edea;
    --taskering-light: #f8f9fa;
    --taskering-dark: #2c3e50;
    
    /* Gradienty */
    --taskering-gradient-primary: linear-gradient(135deg, var(--taskering-primary) 0%, var(--taskering-secondary) 100%);
    --taskering-gradient-secondary: linear-gradient(135deg, var(--taskering-accent) 0%, var(--taskering-danger) 100%);
    --taskering-gradient-success: linear-gradient(135deg, var(--taskering-success) 0%, var(--taskering-warning) 100%);
    
    /* Vlastní stíny */
    --ts-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    
    /* Design - stíny a efekty */
    --card-shadow: 0 1px 4px rgb(0 0 0 / 0.07);
    --card-shadow-hover: 0 3px 10px rgb(0 0 0 / 0.10);
    --transition: all 0.2s ease;
    --border-radius-lg: 10px;

    --scale-factor: 1;
}

/* Styly pro hlavní stránku s přihlašovacím formulářem */
.home-login-layout {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.home-login-layout .login-form-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.home-login-layout .image-container {
    position: relative;
    overflow: hidden;
}

.home-login-layout .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-login-layout .image-container:hover img {
    transform: scale(1.05);
}

.home-login-layout .login-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.home-login-layout .login-form h1 {
    background: var(--taskering-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 2rem;
}

.home-login-layout .form-control {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.home-login-layout .form-control:focus {
    border-color: var(--taskering-primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.home-login-layout .btn-primary {
    background: var(--taskering-gradient-primary);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.home-login-layout .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* Dashboard layout */
.dashboard-layout {
    min-height: 100vh;
    background: #f8f9fa;
}

/* Sidebar - Desktop */
.sidebar {
    background: #f8f9fa;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: calc(280px * var(--scale-factor));
    z-index: 1000;
    transition: all 0.3s ease;
    /* Používá Bootstrap: d-flex, flex-column, overflow-hidden */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 0;
    transform: translateX(0);
}

/* Collapsed sidebar - jen ikonky (40px) */
.sidebar.collapsed {
    width: calc(50px * var(--scale-factor));
    background: #f8f9fa;
}

.sidebar.collapsed .sidebar-close-btn {
    display: flex !important;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10002;
    width: 28px;
    height: 28px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-close-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .sidebar-quick-actions,
.sidebar.collapsed .sidebar-divider,
.sidebar.collapsed .user-details,
.sidebar.collapsed .user-actions {
    display: none;
}

.sidebar.hidden .sidebar-title,
.sidebar.hidden .nav-text,
.sidebar.hidden .sidebar-quick-actions,
.sidebar.hidden .sidebar-divider,
.sidebar.hidden .user-details,
.sidebar.hidden .user-actions,
.sidebar.hidden .sidebar-header {
    display: none !important;
}

.sidebar.collapsed .sidebar-user {
    padding: calc(0.5rem * 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar.collapsed .user-info {
    justify-content: center;
}

.sidebar.collapsed .sidebar-header {
    padding: calc(1rem * 0.9) calc(0.5rem * 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar.collapsed .sidebar-toggle {
    margin: 0;
    padding: 0;
}

.sidebar.collapsed .nav-link {
    padding: calc(0.5rem * 0.9) calc(0.625rem * 0.9);
    margin: calc(0.25rem * 0.9) calc(0.5rem * 0.9);
    justify-content: center;
}

.sidebar.collapsed .nav-icon {
    margin: 0 !important;
}

/* Hidden sidebar - úplně skrytý pomocí transform */
.sidebar.hidden {
    transform: translateX(-100%) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    border-right: none !important;
}

.sidebar-toggle {
    color: rgba(57, 55, 55, 0.8);
    border: none;
    background: transparent;
    padding: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    position: relative;
}

.sidebar-toggle:hover {
    color: rgb(20, 12, 69);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

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

.sidebar.collapsed .sidebar-toggle img,
.sidebar.hidden .sidebar-toggle img {
    transform: rotate(180deg);
}

.nav-icon {
    margin-right: calc(0.75rem * 0.9);
    flex-shrink: 0;
}

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

/* Tooltip pro skrytý sidebar */
.sidebar-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: calc(0.5rem * 0.9) calc(0.75rem * 0.9);
    border-radius: calc(4px * 0.9);
    font-size: calc(0.875rem * 0.9);
    white-space: nowrap;
    z-index: 10001;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.9);
}

/* Tooltip pro mobilní menu */
@media (max-width: 992px) {
    .sidebar-tooltip {
        z-index: 10002;
    }
}

/* Desktop - sidebar je vždy viditelný (pokud není hidden) */
@media (min-width: 993px) {
    .sidebar:not(.hidden) {
        position: fixed;
        transform: translateX(0);
    }
    
    .sidebar.hidden {
        transform: translateX(-100%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

.sidebar-header {
    padding: calc(3rem * 0.9) calc(1.5rem * 0.9) calc(1rem * 0.9) calc(1.5rem * 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    font-size: calc(1.5rem * 0.9);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: calc(0.75rem * 0.9);
}

.sidebar-brand:hover {
    text-decoration: none;
}

.sidebar-nav {
    padding: calc(1rem * 0.9) 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Custom scrollbar pro webkit prohlížeče */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.sidebar-nav .nav-link {
    color: rgba(57, 55, 55, 0.8);
    padding: calc(0.5rem * 0.9) calc(1rem * 0.9);
    margin: calc(0.25rem * 0.9) calc(1rem * 0.9);
    border-radius: calc(12px * 0.9);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: calc(0.75rem * 0.9);
    font-weight: 500;
    font-size: calc(1rem * 0.9);
}

.sidebar-nav .nav-link:hover {
    color: rgb(20, 12, 69);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active {
    background: rgba(13, 110, 253, 0.18);
    color: rgb(20, 12, 69);
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.25);
}

.sidebar-nav .nav-link img {
    width: calc(20px * var(--scale-factor));
    height: calc(20px * var(--scale-factor));
    opacity: 0.8;
}

.sidebar-nav .nav-link:hover img,
.sidebar-nav .nav-link.active img {
    opacity: 1;
}

/* Sidebar uživatel */
.sidebar-user {
    margin-top: auto;
    padding: calc(1.5rem * var(--scale-factor));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.user-avatar {
    width: calc(48px * var(--scale-factor));
    height: calc(48px * var(--scale-factor));
    border-radius: 50%;
    background: linear-gradient(135deg, var(--taskering-primary), var(--taskering-secondary));
    box-shadow: 0 calc(4px * var(--scale-factor)) calc(12px * var(--scale-factor)) rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.user-status-indicator {
    position: absolute;
    bottom: calc(2px * var(--scale-factor));
    right: calc(2px * var(--scale-factor));
    width: calc(12px * var(--scale-factor));
    height: calc(12px * var(--scale-factor));
    background: #28a745;
    border: calc(2px * var(--scale-factor)) solid #fff;
    border-radius: 50%;
    box-shadow: 0 calc(2px * var(--scale-factor)) calc(4px * var(--scale-factor)) rgba(0, 0, 0, 0.2);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: calc(1rem * var(--scale-factor));
    color: var(--taskering-dark);
    margin-bottom: calc(0.25rem * var(--scale-factor));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: calc(0.875rem * var(--scale-factor));
    color: var(--taskering-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: calc(0.5px * var(--scale-factor));
    margin-bottom: calc(0.25rem * var(--scale-factor));
}

.user-email {
    font-size: calc(0.75rem * var(--scale-factor));
    color: rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.user-profile-btn,
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(36px * var(--scale-factor));
    height: calc(36px * var(--scale-factor));
    border-radius: calc(8px * var(--scale-factor));
    background: rgba(255, 255, 255, 0.1);
    border: calc(1px * var(--scale-factor)) solid rgba(255, 255, 255, 0.2);
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-profile-btn:hover,
.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--taskering-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-profile-btn img,
.logout-btn img {
    width: calc(16px * var(--scale-factor));
    height: calc(16px * var(--scale-factor));
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.user-profile-btn:hover img,
.logout-btn:hover img {
    opacity: 1;
}

/* Globální vyhledávání */
.global-search {
    position: relative;
}

.global-search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 450px;
    max-height: 500px;
    overflow-y: auto;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    margin-top: 0.25rem;
    animation: slideDown 0.2s ease-out;
}

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

.global-search-results .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.global-search-results .list-group-item:first-child {
    border-top: none;
}

.global-search-results .list-group-item:last-child {
    border-bottom: none;
}

.global-search-results .list-group-item:hover {
    background-color: #f8f9fa;
}

/* Instant Search Results - nové styly */
.instant-search-results {
    padding: 0.5rem 0;
}

.search-category {
    margin-bottom: 0.5rem;
}

.search-category:last-child {
    margin-bottom: 0;
}

.search-category-header {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.search-category-items {
    display: flex;
    flex-direction: column;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

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

.search-result-item:hover {
    background-color: #e7f3ff;
    color: inherit;
}

.search-result-item.selected {
    background-color: #007bff;
    color: white;
}

.search-result-item.selected .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.search-result-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.search-result-item .text-muted {
    font-size: 0.85rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Loading state */
.global-search-results .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    background: none;
    border: none;
    color: #2c3e50;
    font-size: calc(1.2rem * var(--scale-factor));
    cursor: pointer;
    padding: calc(0.5rem * var(--scale-factor));
    border-radius: calc(4px * var(--scale-factor));
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #1a252f;
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* Responsivní design */
@media (max-width: 992px) {
    /* Sidebar mobile/tablet - stále viditelný v collapsed módu (ikonky) */
    /* RESET všech možných hodnot, které by mohly sidebar posouvat */
    .sidebar,
    .sidebar.collapsed,
    .sidebar.hidden,
    #sidebar {
        box-sizing: border-box !important;
        transform: translateX(0) !important;
        transition: transform 0.3s ease;
        z-index: 1000;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        height: 100vh !important;
        width: 45px !important;
        max-width: 45px !important;
        min-width: 45px !important;
        background: #f8f9fa !important;
        box-shadow: 0.125rem 0 0.625rem rgba(0, 0, 0, 0.1) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        border-right: 1px solid #dee2e6 !important;
        border-left: none !important;
        border-top: none !important;
        border-bottom: none !important;
        margin: 0 !important;
        padding: 0 !important;
        inset: 0 auto auto 0 !important;
    }
    
    
    /* Na mobilu použít vždy collapsed styling - pouze ikony */
    .sidebar .sidebar-title,
    .sidebar .nav-text,
    .sidebar .sidebar-quick-actions,
    .sidebar .sidebar-divider,
    .sidebar .user-details,
    .sidebar .user-actions {
        display: none !important;
    }
    
    /* IKONY MUSÍ BÝT VIDITELNÉ! */
    .sidebar .nav-icon {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        width: 24px !important;
        height: 24px !important;
    }
    
    
    .sidebar .sidebar-user {
        padding: calc(0.5rem * 0.9);
    }
    
    .sidebar .sidebar-header {
        padding: calc(0.5rem * 0.9) !important;
    }
    
    /* Zmenšit padding u navigace na mobilu, aby ikonky byly výš */
    .sidebar .sidebar-nav {
        padding-top: calc(0.5rem * 0.9) !important;
    }
    
    .sidebar .nav-link {
        padding: calc(0.5rem * 0.9) calc(0.625rem * 0.9) !important;
        margin: calc(0.25rem * 0.9) calc(0.5rem * 0.9) !important;
    }
    
    /* Zajistit, že ikony v nav-link jsou viditelné */
    .sidebar .nav-link img,
    .sidebar .nav-link .nav-icon {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Tlačítko X (admin-sidebar-toggle) je skryté na mobilu */
    .admin-sidebar-toggle {
        display: none !important;
    }
    
    /* Hamburger menu je skryté - sidebar je stále viditelný */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-overlay {
        display: none !important;
    }
    
    /* Main content mobile/tablet - přidat margin pro ikonkové menu (45px = šířka sidebaru) */
    .main-content {
        margin-left: 45px !important;
        margin-right: 0 !important;
        padding: 0.5rem !important;
    }
    
    /* Zajistit, že žádné jiné pravidlo nezmění margin main-content */
    body:has(.sidebar) .main-content,
    body:has(.sidebar.collapsed) .main-content,
    body:has(.sidebar.hidden) .main-content {
        margin-left: 45px !important;
    }
    
    /* Sjednocení paddingů u container-fluid na mobilu - respektuje padding main-content */
    .main-content .container-fluid,
    .admin-main-content-modern .container-fluid,
    .client-portal-main-content .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Content header mobile/tablet */
    .content-header {
        padding: 0.75rem;
        margin-bottom: 1rem;
        position: sticky;
        top: 0;
        z-index: 100;
        background-color: #d1d7f5;
    }
    
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 0.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: block;
    }
    
    .mobile-menu-toggle:hover {
        background: #f8f9fa;
    }
    
    .content-header .quick-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .content-header .quick-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Global search mobile */
    .global-search-results {
        width: 280px;
        right: -40px;
    }
    
    /* Sidebar quick actions mobile */
    .sidebar-quick-actions .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .content-header {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .content-header .quick-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .content-header .quick-actions .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .global-search-results {
        width: 250px;
        right: -30px;
    }
    
    /* Mobile menu toggle na malých obrazovkách - skryté, není potřeba */
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Main content */
.main-content {
    margin-left: calc(280px * var(--scale-factor));
    padding: 0.5rem calc(2rem * var(--scale-factor)) calc(2rem * var(--scale-factor));
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

body:has(.sidebar.collapsed) .main-content {
    margin-left: calc(50px * var(--scale-factor)) !important;
}

@media (max-width: 992px) {
    body:has(.sidebar.collapsed) .main-content {
        margin-left: 45px !important;
    }
    
    body:has(.sidebar) .main-content {
        margin-left: 45px !important;
    }
}

body:has(.sidebar.hidden) .main-content {
    margin-left: 0 !important;
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 45px !important;
        padding: 0.5rem !important;
    }
}

/* Tlačítko pro zobrazení skrytého sidebaru */
.admin-sidebar-toggle {
    position: fixed;
    border: none !important;
    background: none !important;
    top: 0px;
    left: 10px;
    z-index: 10002;
    width: 30px;
    height: 30px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.admin-sidebar-toggle:hover {
   
    transform: scale(1.1);
}

.admin-sidebar-toggle img {
    width: 20px;
    height: 20px;
}

/* ===== JEDNOTNÝ DESIGN SYSTÉM - Content Header ===== */
.content-header {
    border-radius: calc(0.5rem * var(--scale-factor));
    padding: calc(1rem * var(--scale-factor));
    margin-bottom: 20px;
    margin-top: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    position: sticky;
    top: 0.5rem;
    z-index: 100;
}

.content-header h1 {
    margin: 0;
    color: var(--taskering-dark);
    font-weight: 700;
}

.content-header .breadcrumb {
    margin: 0.5rem 0 0 0;
    background: none;
    padding: 0;
}

.content-header .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
}

/* Cards */
.taskering-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.taskering-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.taskering-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--taskering-dark);
}

.taskering-card .card-body {
    padding: 2rem;
}

/* Buttons */
.taskering-btn {
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: none;
}

.taskering-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.taskering-btn-success {
    background: var(--taskering-gradient-success);
    color: white;
}

.taskering-btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.taskering-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

/* Forms */
.taskering-form .form-control {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.taskering-form .form-control:focus {
    border-color: var(--taskering-primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

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

/* Tables */
.taskering-table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.taskering-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #e9ecef;
    font-weight: 700;
    color: var(--taskering-dark);
    padding: 1rem 1.5rem;
}

.taskering-table tbody tr {
    transition: background 0.3s ease;
}

.taskering-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.taskering-table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

/* Alerts */
.taskering-alert {
    border-radius: 15px;
    border: none;
    padding: 1.5rem 2rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.taskering-alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.taskering-alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.taskering-alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.taskering-alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Badges */
.taskering-badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.taskering-badge-primary {
    background: var(--taskering-gradient-primary);
    color: white;
}

.taskering-badge-success {
    background: var(--taskering-gradient-success);
    color: white;
}

.taskering-badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.taskering-badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

/* Progress bars */
.taskering-progress {
    height: 12px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.taskering-progress-bar {
    background: var(--taskering-gradient-primary);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--taskering-primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px #e9ecef;
}

.timeline-content {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-left: 1rem;
}

.timeline-content h4 {
    color: var(--taskering-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.timeline-content small {
    color: #adb5bd;
    font-size: 0.875rem;
}

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

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

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
    100% { 
        transform: scale(1); 
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive design - tato pravidla jsou přepsána výše v @media (max-width: 992px) */
/* Ponecháno pro kompatibilitu, ale má nižší prioritu */

@media (max-width: 767.98px) {
    .home-login-layout .login-form {
        padding: 2rem;
        margin: 1rem;
    }
    
    .content-header {
        padding: 1.5rem;
    }
    
    .taskering-card .card-body {
        padding: 1.5rem;
    }
    
    .taskering-table {
        font-size: 0.875rem;
    }
    
    .taskering-table td,
    .taskering-table th {
        padding: 0.75rem 1rem;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .content-header,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .taskering-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
  


/*user styles*/

.projectDescription {
    background-color: #dee2e6;
}

/* Skrýt fallback divy pro avatary, pokud je před nimi viditelný obrázek */
img[onload] + .rounded-circle,
img[onerror] + .rounded-circle,
img[onload] + .user-avatar,
img[onerror] + .user-avatar {
    display: none !important;
}

/* Zobrazit fallback div pouze pokud je obrázek skrytý nebo neexistuje */
img[style*="display: none"] + .rounded-circle,
img[style*="display: none"] + .user-avatar {
    display: flex !important;
}

/* Styly pro parsovaný email obsah - zabránit narušení Bootstrap grid layoutu */
.email-content-wrapper {
    /* Resetovat problematické vlastnosti, které narušují layout */
    float: none !important;
    position: relative !important;
    clear: none !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    display: block !important;
}

/* Zajistit, že parsovaný email obsah nebude přetékat z containeru */
.bg-light.p-3.rounded {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
}

/* Resetovat float a position pro všechny elementy uvnitř email obsahu */
.email-content-wrapper *,
.bg-light.p-3.rounded * {
    float: none !important;
    position: relative !important;
    clear: none !important;
}

/* Výjimka pro obrázky - mohou být inline-block, ale ne float */
.email-content-wrapper img,
.bg-light.p-3.rounded img {
    max-width: 100% !important;
    height: auto !important;
    display: inline-block !important;
    float: none !important;
    position: relative !important;
}

/* Zajistit, že tabulky v emailu nebudou přetékat */
.email-content-wrapper table,
.bg-light.p-3.rounded table {
    max-width: 100% !important;
    width: auto !important;
    table-layout: auto !important;
    display: table !important;
    float: none !important;
    position: relative !important;
}

/* Zajistit, že odkazy a další inline elementy nebudou narušovat layout */
.email-content-wrapper a,
.bg-light.p-3.rounded a {
    display: inline !important;
    float: none !important;
    position: relative !important;
}

/* Zajistit, že parsovaný obsah neporuší Bootstrap grid */
.email-content-wrapper p,
.email-content-wrapper span,
.email-content-wrapper div,
.bg-light.p-3.rounded p,
.bg-light.p-3.rounded span {
    float: none !important;
    position: relative !important;
    clear: none !important;
}

/* Odstranit clear z <br> tagů, které mohou narušit layout */
.email-content-wrapper br[clear],
.bg-light.p-3.rounded br[clear],
.email-content-wrapper br[clear="all"],
.bg-light.p-3.rounded br[clear="all"],
.email-content-wrapper br[clear="left"],
.bg-light.p-3.rounded br[clear="left"],
.email-content-wrapper br[clear="right"],
.bg-light.p-3.rounded br[clear="right"],
.email-content-wrapper br[clear="both"],
.bg-light.p-3.rounded br[clear="both"] {
    clear: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== STYLY Z VIEW SOUBORŮ - SDJEDNOCENÝ DESIGN ===== */

/* Task Detail - hover edit */
.hover-edit:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 8px;
    margin: -8px;
}

/* Tracking indicator */
.tracking-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Reaction buttons */
.reaction-btn {
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 4px 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.reaction-btn:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.05);
}

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

.reaction-btn.active {
    background-color: rgba(0, 0, 0, 0.05);
}

.reaction-count {
    font-weight: bold;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Priority badges */
.priority-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.priority-high { background: #ff6b6b; color: white; }
.priority-medium { background: #ffd93d; color: #333; }
.priority-low { background: #6bcf7f; color: white; }

/* Email content wrapper */
.email-message-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.email-content-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.email-content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: white;
}

.email-content-wrapper table td,
.email-content-wrapper table th {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.email-content-wrapper table th {
    background: #f8f9fa;
    font-weight: 600;
}

.email-content-wrapper .email-table-content {
    margin: 10px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #667eea;
}

.email-content-wrapper .email-table-content p {
    margin: 8px 0;
    padding: 4px 0;
}

.email-content-wrapper .email-table-content strong {
    color: #495057;
    font-weight: 600;
}

.email-content-wrapper p {
    margin: 10px 0;
    line-height: 1.6;
}

.email-content-wrapper a {
    color: #667eea;
    text-decoration: underline;
}

.email-content-wrapper a:hover {
    color: #5568d3;
}

.email-content-wrapper ul,
.email-content-wrapper ol {
    margin: 10px 0;
    padding-left: 25px;
}

.email-content-wrapper li {
    margin: 5px 0;
}

.email-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.email-content-wrapper h1,
.email-content-wrapper h2,
.email-content-wrapper h3,
.email-content-wrapper h4,
.email-content-wrapper h5,
.email-content-wrapper h6 {
    margin: 15px 0 10px 0;
    font-weight: 600;
    color: #212529;
}

.email-content-wrapper blockquote {
    margin: 15px 0;
    padding: 10px 15px;
    border-left: 4px solid #667eea;
    background: #f8f9fa;
    border-radius: 4px;
}

.email-content-wrapper [style*="display: none"],
.email-content-wrapper [style*="visibility: hidden"] {
    display: none !important;
}

/* Ticket detail mobile optimization */
@media (max-width: 767.98px) {
    .ticket-detail {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .ticket-detail .card-body {
        padding: 0.75rem;
    }
    
    .ticket-detail .card-header {
        padding: 0.5rem 0.75rem;
    }
    
    .ticket-detail .btn-group {
        width: 100%;
    }
    
    .ticket-detail .btn-group .btn {
        flex: 1;
        font-size: 0.875rem;
        padding: 0.375rem 0.5rem;
    }
    
    .ticket-detail .form-control,
    .ticket-detail .form-select {
        font-size: 16px;
        min-height: 44px;
    }
    
    .ticket-detail .form-select-sm {
        font-size: 16px;
        padding: 0.5rem 0.75rem;
    }
    
    .ticket-detail .card-header h5 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .ticket-detail .card-header h6 {
        font-size: 1rem;
    }
    
    .ticket-detail .bg-light {
        padding: 0.75rem !important;
        font-size: 0.9375rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .ticket-detail .col-md-4 {
        margin-top: 1rem;
    }
    
    .ticket-detail .card {
        margin-bottom: 1rem;
    }
    
    .ticket-detail textarea {
        min-height: 120px;
    }
}

@media (max-width: 575.98px) {
    .alert.position-fixed {
        top: 0.5rem !important;
        right: 0.5rem !important;
        left: 0.5rem !important;
        margin: 0 !important;
        width: auto !important;
    }
}

/* Task card */
.task-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

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

.table-progress {
    height: 6px;
}

.hidden-form {
    display: none;
}

.view-section {
    transition: opacity 0.3s ease-in-out;
}

/* Styly pro zobrazení úkolů podle projektu */
.tasks-by-project {
    background: #fff;
}

.project-group {
    margin-bottom: 2rem;
}

.project-header {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.project-header h4 {
    color: #212529;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.task-item {
    transition: background-color 0.2s ease;
}

.task-item:hover {
    background-color: #f8f9fa;
}

.task-item .task-name a {
    color: #212529;
    font-size: 0.95rem;
}

.task-item .task-name a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.assignee-avatar {
    flex-shrink: 0;
}

/* Styly pro tabulkové zobrazení úkolů */
#tableView .tasks-table {
    border-collapse: separate;
    border-spacing: 0;
}

#tableView .tasks-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

#tableView .tasks-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

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

#tableView .tasks-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
}

.project-avatar {
    flex-shrink: 0;
    background-color: #6c757d !important;
}

/* Badges pro úkoly */
.badge.rounded-pill {
    padding: 0.25em 0.6em;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Project card */
.project-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

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

.projects-list .project-item {
    transition: background-color 0.2s ease;
}

.projects-list .project-item:hover {
    background-color: #f8f9fa;
}

.projects-list .project-item:last-child {
    border-bottom: none !important;
}

.projects-list .project-name a:hover {
    color: #0d6efd !important;
}

.projects-list .project-actions .btn {
    padding: 0.25rem;
    border: none;
    background: transparent;
    box-shadow: none;
}

.projects-list .project-actions .btn:hover {
    background-color: #e9ecef;
    border-radius: 4px;
}

.projects-list .project-actions .btn:focus {
    box-shadow: none;
    outline: none;
}

.projects-list .favorite-btn.active .favorite-icon {
    filter: brightness(0) saturate(100%) invert(77%) sepia(90%) saturate(2000%) hue-rotate(0deg) brightness(105%) contrast(105%);
}

.projects-list .user-avatar {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.projects-list .user-avatar:hover {
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}

/* Ticket card */
.ticket-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: grab;
}

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

.ticket-card:active {
    cursor: grabbing;
}

.kanban-column {
    min-height: 200px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-content {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

/* Timeline alternative (calendar) */
.timeline-date {
    position: relative;
    margin: 2rem 0 1rem 0;
}

.timeline-date-line {
    position: absolute;
    left: -2rem;
    top: 50%;
    width: 1rem;
    height: 2px;
    background-color: #007bff;
    transform: translateY(-50%);
}

.timeline-date-label {
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    display: inline-block;
    font-weight: 600;
    position: relative;
}

/* Timeline items styling */
.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #6c757d;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-item.task::before {
    background-color: #1976d2;
}

.timeline-item.project::before {
    background-color: #7b1fa2;
}

.timeline-item.completed::before {
    background-color: #28a745;
}

.timeline-item.overdue::before {
    background-color: #dc3545;
}

.timeline-item-content {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.timeline-item-header {
    margin-bottom: 0.5rem;
}

.timeline-item-meta {
    margin-bottom: 0.5rem;
}

.timeline-item-priority {
    margin-bottom: 0.5rem;
}

.timeline-item-actions {
    margin-top: 0.5rem;
}

.timeline-item.overdue .timeline-item-content {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.timeline-item.completed .timeline-item-content {
    opacity: 0.7;
}

/* Calendar grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #dee2e6;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.calendar-header {
    display: contents;
}

.calendar-day-header {
    background-color: #f8f9fa;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

.calendar-body {
    display: contents;
}

.calendar-week {
    display: contents;
}

.calendar-day {
    background-color: white;
    min-height: 120px;
    padding: 0.5rem;
    position: relative;
}

.calendar-day.empty {
    background-color: #f8f9fa;
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.day-items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Inbox widget */
.inbox-item {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.inbox-item:hover {
    background-color: #f8f9fa;
}

.inbox-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.inbox-sender {
    color: #333;
    font-size: 14px;
}

.inbox-subject {
    font-size: 14px;
    color: #666;
}

/* Notifications dropdown */
.notification-dropdown {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e7f3ff;
    font-weight: 500;
}

.notification-item.read {
    opacity: 0.7;
}

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

.notification-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

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

.notification-message {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #6c757d;
}

/* In-app notifications */
.in-app-notifications-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.in-app-notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid #007bff;
}

.in-app-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.in-app-notification-content {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 12px;
}

.in-app-notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.in-app-notification-body {
    flex: 1;
    min-width: 0;
}

.in-app-notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #333;
}

.in-app-notification-message {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.in-app-notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.in-app-notification-actions .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

.in-app-notification-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.in-app-notification-close:hover {
    opacity: 1;
}

.in-app-notification[data-type="task_assigned"] {
    border-left-color: #007bff;
}

.in-app-notification[data-type="task_completed"] {
    border-left-color: #28a745;
}

.in-app-notification[data-type="task_comment"] {
    border-left-color: #17a2b8;
}

.in-app-notification[data-type="project_updated"] {
    border-left-color: #ffc107;
}

/* Support hero */
.support-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.support-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.support-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.support-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

.support-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.support-form .alert {
    border-radius: 15px;
    border: none;
}

/* Hostings sort icons */
.sort-icons {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 4px;
}

.sort-icon {
    opacity: 0.4;
    transition: opacity 0.2s;
}

.sort-icon:hover {
    opacity: 0.8;
}

.column-filter {
    margin-top: 4px;
    font-size: 0.85rem;
}

thead th {
    vertical-align: top;
    padding-top: 8px;
}

/* Widget color picker */
.widget-color-picker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-color-picker:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
}

.widget-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.widget-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.widget-color-picker::-moz-color-swatch {
    border: none;
    border-radius: 4px;
}

/* Shop widget */
.taskering-shop-widget {
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: white;
}

.taskering-shop-widget .product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.taskering-shop-widget .product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
}

.taskering-shop-widget .quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.taskering-shop-widget .quantity-controls input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.taskering-shop-widget .quantity-controls button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
}

.taskering-shop-widget .coupon-input-group {
    display: flex;
    gap: 10px;
}

.taskering-shop-widget .coupon-input-group input {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.taskering-shop-widget .coupon-input-group button {
    padding: 5px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.taskering-shop-widget .btn-add-to-cart {
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.taskering-shop-widget .billing-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.taskering-shop-widget .billing-form h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.product-selection-row {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px;
    background: #f8f9fa;
}

.product-selection-row:first-child {
    background: #fff;
    border-color: #007bff;
}

.shop-product {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    background: #fff;
}

.shop-product h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.shop-product .form-check {
    margin-top: 10px;
}

.shop-product .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

/* Hover shadow */
.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.object-fit-cover {
    object-fit: cover;
}

.variant-btn:hover {
    background-color: var(--bs-primary);
    color: white !important;
}

.variant-btn.in-cart {
    background-color: var(--bs-success);
    color: white !important;
    border-color: var(--bs-success);
}

/* Table warning */
.table-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* Nav tabs (invoices) */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    border-bottom-color: #dee2e6;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background-color: transparent;
}

.invoice-item {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
}

/* Drag & Drop (projects) */
.tasklist-section.dragging {
    opacity: 0.5;
    cursor: move;
}

.drag-placeholder {
    background-color: rgba(59, 130, 246, 0.1);
    border: 2px dashed #3b82f6 !important;
    border-radius: 12px !important;
}

.drag-handle:hover {
    opacity: 1 !important;
}

.drag-handle img {
    transition: opacity 0.2s;
}

.tasklist-section[data-has-new-tasks="1"] {
    animation: highlightNewArea 2s ease-in-out;
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
}

@keyframes highlightNewArea {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.task-item[data-is-new="1"] {
    animation: fadeInNewTask 0.5s ease-in;
}

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

/* Kompaktní zobrazení oblastí (zabalené/prázdné) */
.tasklist-section.area-collapsed {
    margin-bottom: 0.5rem !important;
}

.tasklist-section.area-collapsed .card-body {
    padding: 0.75rem 1rem !important;
}

.tasklist-section.area-collapsed .card-body > .d-flex.justify-content-between {
    margin-bottom: 0 !important;
}

/* Skrýt email alias a další prvky při sbalení */
.tasklist-section.area-collapsed .area-email-alias,
.tasklist-section.area-collapsed .area-tasks-container {
    display: none !important;
}

/* Prázdné oblasti - kompaktnější */
.tasklist-section.area-empty {
    margin-bottom: 0.5rem !important;
}

.tasklist-section.area-empty .card-body {
    padding: 0.75rem 1rem !important;
}

.tasklist-section.area-empty .card-body > .d-flex.justify-content-between {
    margin-bottom: 0 !important;
}

.tasklist-section.area-empty.area-collapsed .empty-area-text {
    display: none;
}

/* Client portal */
.client-portal-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.client-portal-header {
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.client-portal-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
}

.client-portal-header small {
    font-size: 0.875rem;
    opacity: 0.9;
}

.client-portal-content {
    flex: 1;
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.client-portal-footer {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    padding: 1.5rem 0;
    margin-top: auto;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

/* Client portal main content - padding je nastaven v layout souboru */

/* Client portal content body - bez paddingu, protože padding je na main-content */
.client-portal-main-content .content-body {
    padding: 0;
}

/* Client portal content body row spacing */
.client-portal-main-content .content-body .row {
    margin-left: 0;
    margin-right: 0;
}

/* Inbox widget */
.inbox-preview {
    font-size: 13px;
    line-height: 1.4;
}

.badge-sm {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.inbox-item.hidden {
    display: none;
}

.card-body::-webkit-scrollbar {
    width: 6px;
}

.card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.card-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.nav-pills-sm .nav-link {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    margin-right: 0.25rem;
    border-radius: 0.375rem;
}

.nav-pills-sm .nav-link .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
}

@media (max-width: 768px) {
    .nav-pills-sm {
        flex-wrap: wrap;
    }
    
    .nav-pills-sm .nav-link {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        margin-right: 0.125rem;
    }
}

/* Notifications */
.notification-actor {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-actor-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.notification-time {
    margin-left: auto;
    white-space: nowrap;
}

.notification-actions {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.notification-actions button {
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.notification-actions button:hover {
    opacity: 1;
}

.empty-notifications {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-notifications img {
    width: 64px;
    height: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}

/* Calendar items */
.calendar-item {
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.calendar-item.task {
    background-color: #e3f2fd;
    color: #1976d2;
}

.calendar-item.project {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.calendar-item.recurring_invoice {
    background-color: #e8f5e8;
    color: #388e3c;
}

.calendar-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.calendar-item.overdue {
    background-color: #ffebee;
    color: #d32f2f;
}

.hover-bg-light {
    transition: background-color 0.2s;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

/* Gantt Diagram */
.gantt-container {
    overflow-x: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.gantt-header {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.gantt-sidebar-header {
    width: 300px;
    min-width: 300px;
    padding: 0.75rem;
    font-weight: 600;
    border-right: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.gantt-timeline {
    display: flex;
    min-width: max-content;
}

.gantt-day-header {
    width: 40px;
    min-width: 40px;
    padding: 0.5rem 0.25rem;
    text-align: center;
    border-right: 1px solid #dee2e6;
    font-size: 0.75rem;
}

.gantt-day-header.weekend {
    background-color: #fff3cd;
}

.gantt-day-number {
    font-weight: 600;
    font-size: 0.85rem;
}

.gantt-day-name {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
}

.gantt-body {
    display: flex;
    flex-direction: column;
}

.gantt-row {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    min-height: 60px;
}

.gantt-row:hover {
    background-color: #f8f9fa;
}

.gantt-sidebar {
    width: 300px;
    min-width: 300px;
    padding: 0.75rem;
    border-right: 2px solid #dee2e6;
    background-color: white;
    display: flex;
    align-items: center;
}

.gantt-item-name {
    font-size: 0.9rem;
}

.gantt-timeline-content {
    display: flex;
    flex: 1;
    min-width: max-content;
}

.gantt-day-cell {
    width: 40px;
    min-width: 40px;
    border-right: 1px solid #e9ecef;
    position: relative;
    background-color: white;
}

.gantt-day-cell.weekend {
    background-color: #fffbf0;
}

.gantt-bar {
    height: 100%;
    min-height: 30px;
    border-radius: 3px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s;
    position: relative;
}

.gantt-bar:hover {
    opacity: 0.8;
    z-index: 5;
}

.gantt-bar.task {
    background-color: #e3f2fd;
    color: #1976d2;
    border-left: 3px solid #1976d2;
}

.gantt-bar.project {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border-left: 3px solid #7b1fa2;
}

.gantt-bar.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.gantt-bar.archived {
    opacity: 0.4;
    background-color: #e9ecef;
    color: #6c757d;
}

.gantt-bar-label {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.gantt-body {
    display: flex;
}

.gantt-sidebar {
    width: 300px;
    min-width: 300px;
    border-right: 2px solid #dee2e6;
}

.gantt-row {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    min-height: 50px;
}

.gantt-row-item {
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

.gantt-timeline-content {
    display: flex;
    min-width: max-content;
}

.gantt-day-cell {
    width: 40px;
    min-width: 40px;
    border-right: 1px solid #dee2e6;
    position: relative;
}

.gantt-day-cell.weekend {
    background-color: #fffbf0;
}

.gantt-bar {
    position: absolute;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    z-index: 5;
}

.gantt-bar.task {
    background-color: #1976d2;
}

.gantt-bar.project {
    background-color: #7b1fa2;
}

.gantt-bar.completed {
    opacity: 0.6;
}

/* Timeline alternative (calendar) */
.timeline-item {
    position: relative;
    margin: 1rem 0;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #dee2e6;
}

/* Dashboard timeline */
.timeline-marker {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Invoices print styles - specifické pro tisk, ponechat v souboru */

/* ===== DEBUG PANEL (podobný Nette Tracy) ===== */
.debug-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 400px;
    max-height: 80vh;
    background: #1a1a1a;
    color: #fff;
    border-top-left-radius: 8px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.debug-panel.collapsed {
    max-height: 40px;
}

.debug-panel-header {
    background: #2d2d2d;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    user-select: none;
    transition: background 0.2s;
}

.debug-panel-header:hover {
    background: #3d3d3d;
}

.debug-panel-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #ffcccc;
}

.debug-panel-text {
    margin-left: 6px;
}

.debug-panel-content {
    max-height: calc(80vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    background: #1a1a1a;
}

.debug-panel-content::-webkit-scrollbar {
    width: 6px;
}

.debug-panel-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.debug-panel-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.debug-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.debug-section:last-child {
    border-bottom: none;
}

.debug-section h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #ffcccc;
    font-weight: 600;
}

.debug-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.debug-stat {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 11px;
}

.debug-timing {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 11px;
}

.debug-timing-label {
    color: #ccc;
}

.debug-timing-value {
    color: #90ee90;
    font-weight: bold;
}

.debug-query {
    background: #252525;
    border-left: 3px solid #555;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 11px;
}

.debug-query.slow {
    border-left-color: #ff6b6b;
    background: #2a1f1f;
}

.debug-query-time {
    color: #90ee90;
    font-weight: bold;
    margin-right: 8px;
}

.debug-query-rows {
    color: #ffa500;
    margin-right: 8px;
}

.debug-query-sql {
    margin-top: 6px;
    color: #ccc;
    word-break: break-word;
    font-size: 10px;
    line-height: 1.4;
}

.debug-query-params {
    margin-top: 6px;
    padding: 6px;
    background: #1a1a1a;
    border-radius: 3px;
    font-size: 10px;
    color: #ffcccc;
}

.debug-query-params pre {
    margin: 4px 0 0 0;
    color: #ffcccc;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 10px;
}

/* Mobilní zobrazení */
@media (max-width: 768px) {
    .debug-panel {
        width: 100%;
        max-height: 90vh;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    
    .debug-panel-content {
        max-height: calc(90vh - 40px);
    }
}

/* ===== MOBILNÍ TABY JAKO ACCORDION ===== */
@media (max-width: 767.98px) {
    /* Skrýt původní taby na mobilu */
    .nav-pills:not(.keep-as-pills),
    .nav-tabs:not(.keep-as-tabs) {
        display: none !important;
    }
    
    /* Zobrazit accordion wrapper (bude vytvořen JavaScriptem) */
    .mobile-tabs-accordion {
        display: block !important;
        margin-bottom: 1rem;
        margin-top: 0.5rem;
    }
    
    /* Accordion styly - používá Bootstrap accordion */
    .mobile-tabs-accordion .accordion-button {
        padding: 0.875rem 1rem;
        font-weight: 500;
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        color: #212529;
        font-size: 0.95rem;
        box-shadow: none;
    }
    
    .mobile-tabs-accordion .accordion-button:not(.collapsed) {
        background-color: #0d6efd;
        color: white;
        box-shadow: none;
    }
    
    .mobile-tabs-accordion .accordion-button:not(.collapsed) .badge {
        background-color: rgba(255, 255, 255, 0.3) !important;
        color: white !important;
    }
    
    .mobile-tabs-accordion .accordion-button:focus {
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        border-color: #86b7fe;
    }
    
    .mobile-tabs-accordion .accordion-button::after {
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .mobile-tabs-accordion .accordion-item {
        border: 1px solid #dee2e6;
        margin-bottom: 0.5rem;
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-tabs-accordion .accordion-item:first-of-type {
        border-top-left-radius: 0.5rem;
        border-top-right-radius: 0.5rem;
    }
    
    .mobile-tabs-accordion .accordion-item:last-of-type {
        border-bottom-left-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
        margin-bottom: 0;
    }
    
    .mobile-tabs-accordion .accordion-body {
        padding: 0;
        background-color: white;
    }
    
    .mobile-tabs-accordion .accordion-body .list-group-item {
        padding: 0.875rem 1rem;
        border: none;
        border-bottom: 1px solid #e9ecef;
        cursor: pointer;
        transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .mobile-tabs-accordion .accordion-body .list-group-item:last-child {
        border-bottom: none;
    }
    
    .mobile-tabs-accordion .accordion-body .list-group-item:hover {
        background-color: #f8f9fa;
        color: #0d6efd;
    }
    
    .mobile-tabs-accordion .accordion-body .list-group-item.active {
        background-color: #0d6efd;
        color: white;
        font-weight: 500;
    }
    
    .mobile-tabs-accordion .accordion-body .list-group-item.active .badge {
        background-color: rgba(255, 255, 255, 0.3) !important;
        color: white !important;
        border: none;
    }
    
    .mobile-tabs-accordion .accordion-body .list-group-item:not(.active) .badge {
        margin-left: auto;
    }
    
    /* Zajistit, že ikony a badge jsou správně zarovnané */
    .mobile-tabs-accordion .accordion-button .d-flex,
    .mobile-tabs-accordion .list-group-item .d-flex {
        width: 100%;
        align-items: center;
    }
    
    .mobile-tabs-accordion .accordion-button img,
    .mobile-tabs-accordion .list-group-item img {
        flex-shrink: 0;
    }
}

/* ===== Priority Select Colors ===== */
.priority-select {
    transition: background-color 0.2s ease, color 0.2s ease;
    text-align: center;
}

.priority-select.priority-low {
    background-color: #cff4fc !important;
    color: #055160 !important;
}

.priority-select.priority-medium {
    background-color: #fff3cd !important;
    color: #664d03 !important;
}

.priority-select.priority-high {
    background-color: #f8d7da !important;
    color: #842029 !important;
}

.priority-select.priority-urgent {
    background-color: #212529 !important;
    color: #fff !important;
}

/* ===== Comment Form - Basecamp Style ===== */
.comment-form-basecamp {
    /* Wrapper pro celý formulář */
}

.comment-form-basecamp .comment-editor-box {
    overflow: hidden;
}

.comment-form-basecamp .comment-editor-box .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    padding: 8px 12px;
}

.comment-form-basecamp .comment-editor-box .ql-container.ql-snow {
    border: none;
    min-height: 100px;
}

.comment-form-basecamp .comment-editor-box .ql-editor {
    min-height: 100px;
    padding: 12px 15px;
}

.comment-form-basecamp .comment-editor-box .ql-editor.ql-blank::before {
    font-style: normal;
    color: #adb5bd;
}

.comment-form-basecamp .quick-actions {
    background: #fafbfc;
    border-radius: 6px;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
}

.comment-form-basecamp .quick-actions .form-check {
    margin-bottom: 8px;
}

.comment-form-basecamp .quick-actions .form-check:last-child {
    margin-bottom: 0;
}

.comment-form-basecamp .quick-actions .form-check-label {
    font-size: 14px;
    color: #495057;
}

.comment-form-basecamp .quick-actions .form-select,
.comment-form-basecamp .quick-actions .form-control {
    font-size: 13px;
}

/* Notification recipients avatars */
.comment-form-basecamp .notification-recipients .rounded-circle {
    margin-left: -8px;
}

.comment-form-basecamp .notification-recipients .rounded-circle:first-child {
    margin-left: 0;
}

/* Dropdown button green style */
.comment-form-basecamp .btn-success {
    background-color: #3cb371;
    border-color: #3cb371;
}

.comment-form-basecamp .btn-success:hover {
    background-color: #2e8b57;
    border-color: #2e8b57;
}

/* Comment toolbar */
.comment-form-basecamp .comment-toolbar label:hover {
    background: #e9ecef;
    border-radius: 4px;
}

/* Quick due date options */
.comment-form-basecamp #quickDueDateOptions {
    background: #fffbe6;
    border: 1px solid #ffe066;
    border-radius: 6px;
    padding: 10px 12px;
}

.comment-form-basecamp #quickDueDateOptions .btn {
    margin-right: 4px;
}