/**
 * Chytrá jednotka - CSS styly pro moduly
 * Centralizované styly pro všechny stránky v /page
 */

/* ==========================================================================
   SPOLEČNÉ STYLY PRO FORMULÁŘE
   ========================================================================== */

/* Sjednocená výška input a select prvků */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
    height: 42px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    background: white;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
    height: auto;
    min-height: 80px;
    resize: vertical;
}

input[type="color"] {
    height: 42px;
    padding: 4px;
    cursor: pointer;
}

.form-control-color {
    width: 60px;
    min-width: 60px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

/* ==========================================================================
   SPOLEČNÉ STYLY PRO SEKCE
   ========================================================================== */

.module-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.module-header {
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.module-header h3 {
    margin: 0;
    font-size: 1rem;
}

.module-header-info {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Barevné varianty hlaviček */
.module-header-green { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.module-header-blue { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }
.module-header-purple { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.module-header-orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.module-header-red { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.module-header-indigo { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }

/* ==========================================================================
   STROJNÍ SLUŽBA
   ========================================================================== */

.vehicle-selector { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.vehicle-selector-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: white; padding: 0.75rem 1rem; font-weight: 600; font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; }
.vehicle-section { padding: 1rem; border-bottom: 1px solid #e5e7eb; }
.vehicle-section:last-child { border-bottom: none; }
.vehicle-section-title { font-size: 0.75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.vehicle-btn { padding: 1rem; border-radius: 10px; background: #f0fdf4; color: #166534; text-decoration: none; font-size: 0.875rem; font-weight: 600; transition: all 0.2s; text-align: center; border: 2px solid #bbf7d0; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.vehicle-btn:hover { background: #dcfce7; border-color: #86efac; transform: translateY(-2px); }
.vehicle-btn.active { background: #059669; color: white; border-color: #047857; }
.vehicle-btn-icon { font-size: 1.5rem; }
.vehicle-btn-spz { font-size: 0.6875rem; opacity: 0.8; font-weight: 500; }
.tech-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-btn { padding: 0.375rem 0.75rem; border-radius: 6px; background: #fef3c7; color: #92400e; text-decoration: none; font-size: 0.75rem; font-weight: 500; transition: all 0.2s; border: 1px solid #fde68a; white-space: nowrap; }
.tech-btn:hover { background: #fde68a; }
.tech-btn.active { background: #f59e0b; color: white; border-color: #d97706; }

.ride-form { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.ride-form-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.ride-form-header h3 { margin: 0; font-size: 1rem; }
.ride-form-body { padding: 1.25rem; }
.ride-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.ride-form-group { }
.ride-form-group label { display: block; font-weight: 600; margin-bottom: 0.375rem; color: #374151; font-size: 0.8125rem; }
.ride-form-group input, .ride-form-group select, .ride-form-group textarea { width: 100%; padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; }
.ride-form-group input:focus, .ride-form-group select:focus, .ride-form-group textarea:focus { outline: none; border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,0.1); }
.ride-form-section { border-top: 1px solid #e5e7eb; margin-top: 1rem; padding-top: 1rem; }
.ride-form-actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

.rides-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 1.5rem; }
.rides-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; border-radius: 12px 12px 0 0; }
.rides-header h3 { margin: 0; font-size: 1rem; }
.rides-header-info { font-size: 0.875rem; opacity: 0.9; }
.rides-table { width: 100%; border-collapse: collapse; }
.rides-table th { background: #f8fafc; padding: 0.75rem; text-align: left; font-size: 0.6875rem; font-weight: 600; color: #64748b; text-transform: uppercase; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
.rides-table th.center { text-align: center; }
.rides-table td { padding: 0.625rem 0.75rem; border-bottom: 1px solid #e5e7eb; font-size: 0.8125rem; vertical-align: middle; }
.rides-table td.center { text-align: center; }
.rides-table tr:hover { background: #f0fdf4; }
.rides-table tr.refueled { background: #fef3c7; }
.rides-table tr.refueled:hover { background: #fde68a; }
.ride-number { font-weight: 700; color: #059669; }
.ride-km { font-weight: 600; }
.ride-actions { display: flex; gap: 0.25rem; justify-content: center; }
.ride-btn { width: 28px; height: 28px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; transition: all 0.2s; }
.ride-btn-edit { background: #fef3c7; color: #d97706; }
.ride-btn-edit:hover { background: #d97706; color: white; }
.ride-btn-delete { background: #fee2e2; color: #dc2626; }
.ride-btn-delete:hover { background: #dc2626; color: white; }

.fuel-summary { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.fuel-summary-item { text-align: center; }
.fuel-summary-value { font-size: 1.5rem; font-weight: 700; }
.fuel-summary-label { font-size: 0.75rem; opacity: 0.9; }

.stats-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.stats-header { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; padding: 1rem 1.25rem; }
.stats-header h3 { margin: 0; font-size: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1rem; padding: 1rem; }
.stats-card { text-align: center; padding: 0.75rem; background: #f9fafb; border-radius: 8px; }
.stats-card-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.5rem; border: 3px solid #8b5cf6; }
.stats-card-name { font-size: 0.75rem; font-weight: 600; color: #1f2937; margin-bottom: 0.25rem; }
.stats-card-value { font-size: 1rem; font-weight: 700; color: #8b5cf6; }

.confirm-delete { background: #fee2e2; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; text-align: center; }
.confirm-delete p { margin-bottom: 1rem; color: #991b1b; }
.confirm-buttons { display: flex; gap: 0.5rem; justify-content: center; }

/* ==========================================================================
   CHEMICKÁ SLUŽBA
   ========================================================================== */

.chem-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 1.5rem; }
.chem-header { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; border-radius: 12px 12px 0 0; }
.chem-header h3 { margin: 0; font-size: 1rem; }
.chem-header-info { font-size: 0.875rem; opacity: 0.9; }

.chem-form { padding: 1.25rem; }
.chem-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.chem-form-group { }
.chem-form-group label { display: block; font-weight: 600; margin-bottom: 0.375rem; color: #374151; font-size: 0.8125rem; }
.chem-form-group input, .chem-form-group select { width: 100%; padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; }
.chem-form-group input:focus, .chem-form-group select:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }

.chem-people-section { border-top: 1px solid #e5e7eb; padding-top: 1rem; margin-top: 1rem; }
.chem-people-title { font-weight: 600; color: #374151; font-size: 0.875rem; margin-bottom: 0.75rem; }
.chem-people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.5rem; max-height: 300px; overflow-y: auto; padding: 0.5rem; background: #f9fafb; border-radius: 8px; }
.chem-person { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; background: white; border-radius: 6px; border: 1px solid #e5e7eb; cursor: pointer; transition: all 0.2s; }
.chem-person:hover { border-color: #7c3aed; background: #f5f3ff; }
.chem-person input { accent-color: #7c3aed; }
.chem-person-name { font-size: 0.8125rem; font-weight: 500; }

.chem-form-actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

.chem-table { width: 100%; border-collapse: collapse; }
.chem-table th { background: #f8fafc; padding: 0.75rem; text-align: left; font-size: 0.6875rem; font-weight: 600; color: #64748b; text-transform: uppercase; border-bottom: 2px solid #e2e8f0; }
.chem-table th.center { text-align: center; }
.chem-table td { padding: 0.625rem 0.75rem; border-bottom: 1px solid #e5e7eb; font-size: 0.8125rem; vertical-align: middle; }
.chem-table td.center { text-align: center; }
.chem-table tr:hover { background: #f5f3ff; }

.chem-name { font-weight: 600; color: #1f2937; }
.chem-date { font-weight: 600; color: #7c3aed; }
.chem-usage { font-size: 0.75rem; color: #6b7280; }
.chem-next { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 4px; font-weight: 600; font-size: 0.75rem; }
.chem-next-ok { background: #dcfce7; color: #166534; }
.chem-next-warning { background: #fef3c7; color: #92400e; }
.chem-next-expired { background: #fee2e2; color: #dc2626; }

.chem-empty { padding: 3rem; text-align: center; color: #9ca3af; }

.chem-name-link { font-weight: 600; color: #7c3aed; text-decoration: none; transition: all 0.2s; }
.chem-name-link:hover { color: #6d28d9; text-decoration: underline; }

.chem-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; padding: 1.25rem; background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.chem-stat-box { background: white; padding: 1rem; border-radius: 8px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.chem-stat-value { font-size: 1.25rem; font-weight: 700; color: #7c3aed; }
.chem-stat-label { font-size: 0.6875rem; color: #6b7280; margin-top: 0.25rem; text-transform: uppercase; }

.chem-interval { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 4px; font-weight: 600; font-size: 0.75rem; background: #e0e7ff; color: #4338ca; }
.chem-interval-long { background: #fef3c7; color: #92400e; }
.chem-interval-first { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.6875rem; background: #f3f4f6; color: #9ca3af; }

.chem-action-btn { display: inline-block; padding: 0.25rem 0.375rem; border-radius: 4px; text-decoration: none; font-size: 0.875rem; transition: all 0.2s; margin: 0 0.125rem; }
.chem-action-edit { background: #e0e7ff; }
.chem-action-edit:hover { background: #c7d2fe; }
.chem-action-delete { background: #fee2e2; }
.chem-action-delete:hover { background: #fecaca; }

.chem-edit-form { background: #f5f3ff; border-top: 2px solid #7c3aed; padding: 1.25rem; margin-top: 1rem; }
.chem-edit-header { font-weight: 700; color: #7c3aed; margin-bottom: 1rem; font-size: 0.9375rem; }

/* ==========================================================================
   SLUŽBA OBČANŮM
   ========================================================================== */

.sluzba-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 1.5rem; }
.sluzba-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: white; padding: 1rem 1.25rem; border-radius: 12px 12px 0 0; }
.sluzba-header h3 { margin: 0; font-size: 1rem; }

.sluzba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; padding: 1.5rem; }
.sluzba-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem; border-radius: 12px; text-decoration: none; color: white; transition: all 0.3s; text-align: center; min-height: 120px; }
.sluzba-btn:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.sluzba-btn-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.sluzba-btn-text { font-weight: 600; font-size: 0.9375rem; }

.confirm-dialog { background: white; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); max-width: 500px; margin: 2rem auto; overflow: hidden; }
.confirm-header { padding: 1.25rem; color: white; text-align: center; }
.confirm-header-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.confirm-header h3 { margin: 0; font-size: 1.25rem; }
.confirm-body { padding: 1.5rem; }
.confirm-message { background: #fef3c7; border: 1px solid #fde68a; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; color: #92400e; font-size: 0.875rem; }
.confirm-message strong { display: block; margin-bottom: 0.5rem; }

.confirm-recipients { margin-bottom: 1.5rem; }
.confirm-recipients-title { font-weight: 600; color: #374151; margin-bottom: 0.75rem; font-size: 0.875rem; }
.confirm-recipients-list { background: #f9fafb; border-radius: 8px; padding: 0.75rem; max-height: 200px; overflow-y: auto; }
.confirm-recipient { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem; border-bottom: 1px solid #e5e7eb; }
.confirm-recipient:last-child { border-bottom: none; }
.confirm-recipient-name { font-weight: 500; font-size: 0.875rem; }
.confirm-recipient-phone { color: #6b7280; font-size: 0.8125rem; }
.confirm-no-recipients { text-align: center; color: #9ca3af; padding: 1rem; }

.confirm-actions { display: flex; gap: 0.75rem; }
.confirm-actions .btn { flex: 1; padding: 0.75rem; font-size: 0.9375rem; }
.btn-danger { background: #dc2626; color: white; border: none; }
.btn-danger:hover { background: #b91c1c; }

.success-message { background: #dcfce7; border: 1px solid #86efac; border-radius: 12px; padding: 2rem; text-align: center; margin-bottom: 1.5rem; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.success-title { font-size: 1.5rem; font-weight: 700; color: #166534; margin-bottom: 0.5rem; }
.success-text { color: #15803d; }

/* ==========================================================================
   VYTÍŽENÍ
   ========================================================================== */

.load-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 1.5rem; }
.load-header { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.load-header-left { display: flex; align-items: center; gap: 0.75rem; }
.load-header-icon { font-size: 1.5rem; }
.load-header h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.load-header-year { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.load-month-select { display: flex; align-items: center; gap: 0.5rem; }
.load-month-select select { padding: 0.5rem 1rem; border-radius: 6px; border: none; font-size: 0.875rem; background: white; cursor: pointer; }
.load-month-select button { padding: 0.5rem 1rem; border-radius: 6px; border: none; background: rgba(255,255,255,0.2); color: white; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.load-month-select button:hover { background: rgba(255,255,255,0.3); }
.load-table { width: 100%; border-collapse: collapse; }
.load-table th { background: #f8fafc; padding: 0.75rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; border-bottom: 2px solid #e2e8f0; position: sticky; top: 64px; z-index: 20; box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.load-table th.center { text-align: center; }
.load-table td { padding: 0.75rem 1rem; border-bottom: 1px solid #f1f5f9; font-size: 0.875rem; }
.load-table td.center { text-align: center; }
.load-table tr:hover { background: #f0f9ff; }
.load-table tr.total { background: #f8fafc; font-weight: 700; }
.load-table tr.total td { border-top: 2px solid #e2e8f0; }
.load-name { font-weight: 600; color: #1e293b; }
.load-value { font-weight: 700; color: #0ea5e9; }
.load-percent { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 4px; font-weight: 600; font-size: 0.8125rem; }
.load-percent-high { background: #dcfce7; color: #166534; }
.load-percent-medium { background: #fef3c7; color: #92400e; }
.load-percent-low { background: #fee2e2; color: #991b1b; }
.load-bar { width: 100%; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.load-bar-fill { height: 100%; background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%); border-radius: 4px; transition: width 0.3s; }
.load-empty { padding: 3rem; text-align: center; color: #9ca3af; }

/* ==========================================================================
   MĚSÍČNÍ VÝKAZ
   ========================================================================== */

.vykaz-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 1.5rem; }
.vykaz-header { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); color: white; padding: 1.25rem; border-radius: 12px 12px 0 0; text-align: center; }
.vykaz-header-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.vykaz-header h3 { margin: 0; font-size: 1.25rem; }
.vykaz-header p { margin: 0.5rem 0 0; opacity: 0.9; font-size: 0.875rem; }

.vykaz-body { padding: 2rem; }
.vykaz-form { max-width: 500px; margin: 0 auto; }
.vykaz-form-group { margin-bottom: 1.5rem; }
.vykaz-form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: #374151; font-size: 0.9375rem; }
.vykaz-form-group select { width: 100%; padding: 0.75rem 1rem; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 1rem; background: white; cursor: pointer; transition: all 0.2s; }
.vykaz-form-group select:focus { outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,0.1); }
.vykaz-form-group select:hover { border-color: #0ea5e9; }

.vykaz-submit { display: flex; justify-content: center; }
.vykaz-submit button { padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); color: white; border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.vykaz-submit button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(14,165,233,0.3); }

.vykaz-info { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; padding: 1rem; margin-top: 1.5rem; }
.vykaz-info-title { font-weight: 600; color: #0369a1; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.vykaz-info-text { color: #0c4a6e; font-size: 0.875rem; line-height: 1.5; }

.vykaz-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 1rem; }
.vykaz-quick-btn { padding: 0.5rem; text-align: center; background: #e0f2fe; color: #0369a1; border-radius: 6px; font-size: 0.8125rem; font-weight: 500; cursor: pointer; transition: all 0.2s; border: none; }
.vykaz-quick-btn:hover { background: #0ea5e9; color: white; }

/* ==========================================================================
   RESPONZIVNÍ ÚPRAVY
   ========================================================================== */

@media (max-width: 768px) {
    .load-table { display: block; overflow-x: auto; }
    .vykaz-quick { grid-template-columns: repeat(2, 1fr); }
    .sluzba-grid { grid-template-columns: 1fr; }
    .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .vehicle-grid { grid-template-columns: 1fr; }
    .chem-people-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   NASTAVENÍ STROJNÍ SLUŽBY
   ========================================================================== */

.vehicle-form {
    padding: 1.5rem;
}

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

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

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

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.375rem;
}

.form-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.form-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Tabulka dat */
.table-responsive {
    overflow-x: auto;
}

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

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

.data-table th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.text-center {
    text-align: center;
}

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

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-orange {
    background: #ffedd5;
    color: #9a3412;
}

.badge-gray {
    background: #f3f4f6;
    color: #6b7280;
}

/* Akční tlačítka */
.action-buttons {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
}

.btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
}

.btn-light {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-light:hover {
    background: rgba(255,255,255,0.3);
}

/* Sjednocené hlavičky sekcí s tlačítkem Přidat */
.incidents-header-right,
.training-header-right,
.event-header-right,
.work-header-right,
.board-header-right,
.rides-header-right,
.chem-header-right,
.hours-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ==========================================================================
   PŘEHLED HODIN
   ========================================================================== */

.hours-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.hours-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.hours-header-icon {
    font-size: 1.5rem;
}

.hours-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.hours-header-right select {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.hours-header-right select option {
    background: #0284c7;
    color: white;
}

.hours-person-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hours-person-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hours-person-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0ea5e9;
}

/* ==========================================================================
   PŘEHLED UŽIVATELŮ
   ========================================================================== */

.overview-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.overview-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.overview-header-icon {
    font-size: 1.5rem;
}

.overview-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

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

.overview-header-right select {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.overview-header-right select option {
    background: #4f46e5;
    color: white;
}

/* ==========================================================================
   ZÁSAHY
   ========================================================================== */

.incidents-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.incidents-header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.incidents-header-icon {
    font-size: 1.5rem;
}

.incidents-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.incidents-header-count {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.incidents-list { }

.incident-card {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
    transition: background 0.2s;
}

.incident-card:last-child {
    border-bottom: none;
}

.incident-card:hover {
    background: #fef2f2;
}

.incident-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.incident-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

.incident-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
}

.incident-location {
    color: #6b7280;
    font-size: 0.875rem;
}

.incident-type {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.incident-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.incident-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.incident-meta-item strong {
    color: #1f2937;
}

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

.incident-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.incident-btn-view {
    background: #dbeafe;
    color: #2563eb;
}

.incident-btn-view:hover {
    background: #2563eb;
    color: white;
}

.incident-btn-edit {
    background: #fef3c7;
    color: #d97706;
}

.incident-btn-edit:hover {
    background: #d97706;
    color: white;
}

.incident-btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.incident-btn-delete:hover {
    background: #dc2626;
    color: white;
}

.incidents-empty {
    padding: 3rem;
    text-align: center;
    color: #9ca3af;
}

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

@media (max-width: 768px) {
    .incident-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .incident-main {
        grid-template-columns: 1fr;
    }
    
    .incident-number {
        display: none;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
        font-size: 0.8125rem;
    }
}

/* ==========================================================================
   ŠKOLENÍ
   ========================================================================== */

.training-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.training-header { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.training-header-left { display: flex; align-items: center; gap: 0.75rem; }
.training-header-icon { font-size: 1.5rem; }
.training-header h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.training-header-count { background: rgba(255,255,255,0.2); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; }
.training-header-archive { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }
.training-list { }
.training-card { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #f3f4f6; align-items: center; transition: background 0.2s; }
.training-card:last-child { border-bottom: none; }
.training-card:hover { background: #f5f3ff; }
.training-date { text-align: center; }
.training-date-day { font-size: 1.5rem; font-weight: 700; color: #7c3aed; }
.training-date-month { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; }
.training-main { }
.training-title { font-weight: 700; color: #1f2937; font-size: 1rem; margin-bottom: 0.25rem; }
.training-info { color: #6b7280; font-size: 0.875rem; }
.training-info span { margin-right: 1rem; }
.training-actions { display: flex; gap: 0.5rem; }
.training-btn { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 0.875rem; }
.training-btn-view { background: #ddd6fe; color: #7c3aed; }
.training-btn-view:hover { background: #7c3aed; color: white; }
.training-btn-edit { background: #fef3c7; color: #d97706; }
.training-btn-edit:hover { background: #d97706; color: white; }
.training-btn-delete { background: #fee2e2; color: #dc2626; }
.training-btn-delete:hover { background: #dc2626; color: white; }
.training-empty { padding: 3rem; text-align: center; color: #9ca3af; }
.training-empty-icon { font-size: 3rem; margin-bottom: 1rem; }

@media (max-width: 768px) { 
    .training-card { grid-template-columns: 1fr; gap: 0.75rem; }
    .training-date { text-align: left; display: flex; gap: 0.5rem; align-items: baseline; }
}

/* Školení - Detail */
.training-detail { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.training-detail-header { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color: white; padding: 1.25rem; }
.training-detail-header h2 { margin: 0 0 0.5rem 0; font-size: 1.25rem; }
.training-detail-header p { margin: 0; opacity: 0.9; font-size: 0.875rem; }
.training-detail-body { padding: 1.5rem; }
.training-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.training-detail-item label { display: block; font-size: 0.75rem; color: #6b7280; text-transform: uppercase; margin-bottom: 0.25rem; }
.training-detail-item strong { font-size: 1rem; color: #1f2937; }
.training-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.training-badge { background: #7c3aed; color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8125rem; }
.training-confirm-section { background: #f9fafb; border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; }
.training-confirm-section h4 { margin: 0 0 0.75rem 0; font-size: 0.875rem; color: #374151; }
.training-confirm-list { margin: 0; padding: 0; list-style: none; }
.training-confirm-list li { padding: 0.5rem 0; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.training-confirm-list li:last-child { border-bottom: none; }
.training-confirm-status { padding: 0.125rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.training-confirm-status-yes { background: #d1fae5; color: #047857; }
.training-confirm-status-maybe { background: #fef3c7; color: #92400e; }
.training-confirm-status-no { background: #fee2e2; color: #991b1b; }
.training-confirm-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.training-confirm-btn { padding: 0.5rem 1rem; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.training-confirm-btn-yes { background: #059669; color: white; }
.training-confirm-btn-yes:hover { background: #047857; }
.training-confirm-btn-maybe { background: #f59e0b; color: white; }
.training-confirm-btn-maybe:hover { background: #d97706; }
.training-confirm-btn-no { background: #dc2626; color: white; }
.training-confirm-btn-no:hover { background: #991b1b; }
.training-files { background: #eff6ff; border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; }
.training-files h4 { margin: 0 0 0.75rem 0; font-size: 0.875rem; color: #1e40af; }
.training-files ul { margin: 0; padding: 0; list-style: none; }
.training-files li { padding: 0.375rem 0; }
.training-files a { color: #2563eb; text-decoration: none; }
.training-files a:hover { text-decoration: underline; }
.training-detail-actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

/* Školení - Formulář */
.training-form { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.training-form-header { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.training-form-header h3 { margin: 0; font-size: 1.125rem; }
.training-form-body { padding: 1.5rem; }
.training-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.training-form-group { margin-bottom: 1rem; }
.training-form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: #374151; font-size: 0.875rem; }
.training-form-group input, .training-form-group select, .training-form-group textarea { width: 100%; padding: 0.625rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; }
.training-form-group input:focus, .training-form-group select:focus, .training-form-group textarea:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.training-form-checkboxes { background: #f9fafb; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.training-form-checkboxes h4 { margin: 0 0 0.75rem 0; font-size: 0.875rem; color: #374151; }
.training-form-checkboxes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.5rem; }
.training-form-checkboxes label { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem; border-radius: 4px; cursor: pointer; font-size: 0.875rem; }
.training-form-checkboxes label:hover { background: #e5e7eb; }
.training-form-actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

/* Školení - Statistiky */
.training-stats { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.training-stats-header { padding: 1rem 1.25rem; color: white; display: flex; align-items: center; gap: 0.75rem; background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.training-stats-header-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.training-stats-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.training-stats-list { padding: 0; }
.training-stats-item { display: flex; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; gap: 0.75rem; }
.training-stats-item:last-child { border-bottom: none; }
.training-stats-item:hover { background: #f9fafb; }
.training-stats-rank { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8125rem; flex-shrink: 0; }
.training-stats-rank-1 { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: white; }
.training-stats-rank-2 { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); color: white; }
.training-stats-rank-3 { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); color: white; }
.training-stats-rank-other { background: #f3f4f6; color: #6b7280; }
.training-stats-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.training-stats-info { flex: 1; min-width: 0; }
.training-stats-name { font-weight: 600; color: #1f2937; font-size: 0.875rem; }
.training-stats-bar-container { flex: 1; max-width: 120px; }
.training-stats-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.training-stats-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%); }
.training-stats-value { font-weight: 700; font-size: 0.875rem; color: #1f2937; min-width: 50px; text-align: right; }

/* ==========================================================================
   AKCE
   ========================================================================== */

.event-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.event-header { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.event-header-left { display: flex; align-items: center; gap: 0.75rem; }
.event-header-icon { font-size: 1.5rem; }
.event-header h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.event-header-count { background: rgba(255,255,255,0.2); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; }
.event-header-archive { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }
.event-list { }
.event-card { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #f3f4f6; align-items: center; transition: background 0.2s; }
.event-card:last-child { border-bottom: none; }
.event-card:hover { background: #fff7ed; }
.event-date { text-align: center; }
.event-date-day { font-size: 1.5rem; font-weight: 700; color: #ea580c; }
.event-date-month { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; }
.event-main { }
.event-title { font-weight: 700; color: #1f2937; font-size: 1rem; margin-bottom: 0.25rem; }
.event-info { color: #6b7280; font-size: 0.875rem; }
.event-info span { margin-right: 1rem; }
.event-actions { display: flex; gap: 0.5rem; }
.event-btn { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 0.875rem; }
.event-btn-view { background: #ffedd5; color: #ea580c; }
.event-btn-view:hover { background: #ea580c; color: white; }
.event-btn-edit { background: #fef3c7; color: #d97706; }
.event-btn-edit:hover { background: #d97706; color: white; }
.event-btn-delete { background: #fee2e2; color: #dc2626; }
.event-btn-delete:hover { background: #dc2626; color: white; }
.event-empty { padding: 3rem; text-align: center; color: #9ca3af; }
.event-empty-icon { font-size: 3rem; margin-bottom: 1rem; }

@media (max-width: 768px) { 
    .event-card { grid-template-columns: 1fr; gap: 0.75rem; }
    .event-date { text-align: left; display: flex; gap: 0.5rem; align-items: baseline; }
}

/* Akce - Detail */
.event-detail { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.event-detail-header { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); color: white; padding: 1.25rem; }
.event-detail-header h2 { margin: 0 0 0.5rem 0; font-size: 1.25rem; }
.event-detail-header p { margin: 0; opacity: 0.9; font-size: 0.875rem; }
.event-detail-body { padding: 1.5rem; }
.event-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.event-detail-item label { display: block; font-size: 0.75rem; color: #6b7280; text-transform: uppercase; margin-bottom: 0.25rem; }
.event-detail-item strong { font-size: 1rem; color: #1f2937; }
.event-detail-actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

/* Akce - Formulář */
.event-form { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.event-form-header { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.event-form-header h3 { margin: 0; font-size: 1.125rem; }
.event-form-body { padding: 1.5rem; }
.event-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.event-form-group { margin-bottom: 1rem; }
.event-form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: #374151; font-size: 0.875rem; }
.event-form-group input, .event-form-group select, .event-form-group textarea { width: 100%; padding: 0.625rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; }
.event-form-group input:focus, .event-form-group select:focus, .event-form-group textarea:focus { outline: none; border-color: #ea580c; box-shadow: 0 0 0 3px rgba(234,88,12,0.1); }
.event-form-actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

/* ==========================================================================
   PRÁCE
   ========================================================================== */

.work-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.work-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.work-header-left { display: flex; align-items: center; gap: 0.75rem; }
.work-header-icon { font-size: 1.5rem; }
.work-header h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.work-header-count { background: rgba(255,255,255,0.2); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; }
.work-list { }
.work-card { display: grid; grid-template-columns: 50px 1fr auto; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #f3f4f6; align-items: center; transition: background 0.2s; }
.work-card:last-child { border-bottom: none; }
.work-card:hover { background: #ecfdf5; }
.work-number { width: 40px; height: 40px; background: linear-gradient(135deg, #059669 0%, #047857 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; }
.work-main { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; }
.work-title { font-weight: 700; color: #1f2937; font-size: 1rem; }
.work-location { color: #6b7280; font-size: 0.875rem; }
.work-type { display: inline-block; background: #d1fae5; color: #047857; padding: 0.125rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.work-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.8125rem; color: #6b7280; }
.work-meta-item { display: flex; align-items: center; gap: 0.25rem; }
.work-meta-item strong { color: #1f2937; }
.work-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.work-btn { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 0.875rem; }
.work-btn-view { background: #dbeafe; color: #2563eb; }
.work-btn-view:hover { background: #2563eb; color: white; }
.work-btn-edit { background: #fef3c7; color: #d97706; }
.work-btn-edit:hover { background: #d97706; color: white; }
.work-btn-delete { background: #fee2e2; color: #dc2626; }
.work-btn-delete:hover { background: #dc2626; color: white; }
.work-btn-approve { background: #d1fae5; color: #059669; }
.work-btn-approve:hover { background: #059669; color: white; }
.work-btn-reject { background: #e5e7eb; color: #6b7280; }
.work-btn-reject:hover { background: #6b7280; color: white; }
.work-empty { padding: 3rem; text-align: center; color: #9ca3af; }
.work-empty-icon { font-size: 3rem; margin-bottom: 1rem; }

@media (max-width: 768px) { 
    .work-card { grid-template-columns: 1fr; gap: 0.75rem; }
    .work-main { grid-template-columns: 1fr; }
    .work-number { display: none; }
}

/* Práce - Detail */
.work-detail { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.work-detail-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: white; padding: 1.25rem; }
.work-detail-header h2 { margin: 0 0 0.5rem 0; font-size: 1.25rem; }
.work-detail-header p { margin: 0; opacity: 0.9; font-size: 0.875rem; }
.work-detail-body { padding: 1.5rem; }
.work-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.work-detail-item label { display: block; font-size: 0.75rem; color: #6b7280; text-transform: uppercase; margin-bottom: 0.25rem; }
.work-detail-item strong { font-size: 1rem; color: #1f2937; }
.work-detail-actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

/* Práce - Formulář */
.work-form { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.work-form-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.work-form-header h3 { margin: 0; font-size: 1.125rem; }
.work-form-body { padding: 1.5rem; }
.work-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.work-form-group { margin-bottom: 1rem; }
.work-form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: #374151; font-size: 0.875rem; }
.work-form-group input, .work-form-group select, .work-form-group textarea { width: 100%; padding: 0.625rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; }
.work-form-group input:focus, .work-form-group select:focus, .work-form-group textarea:focus { outline: none; border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,0.1); }
.work-form-actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

/* ==========================================================================
   NÁSTĚNKA
   ========================================================================== */

.board-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.board-header { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.board-header-left { display: flex; align-items: center; gap: 0.75rem; }
.board-header-icon { font-size: 1.5rem; }
.board-header h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.board-header-count { background: rgba(255,255,255,0.2); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; }
.board-list { }
.board-post { padding: 1.25rem; border-bottom: 1px solid #f3f4f6; }
.board-post:last-child { border-bottom: none; }
.board-post:hover { background: #faf5ff; }
.board-post-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.board-post-author { display: flex; align-items: center; gap: 0.75rem; }
.board-post-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; }
.board-post-meta { }
.board-post-name { font-weight: 600; color: #1f2937; }
.board-post-time { font-size: 0.75rem; color: #9ca3af; }
.board-post-actions { display: flex; gap: 0.5rem; }
.board-post-btn { padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; text-decoration: none; transition: all 0.2s; }
.board-post-btn-edit { background: #fef3c7; color: #d97706; }
.board-post-btn-edit:hover { background: #d97706; color: white; }
.board-post-btn-delete { background: #fee2e2; color: #dc2626; }
.board-post-btn-delete:hover { background: #dc2626; color: white; }
.board-post-title { font-size: 1.125rem; font-weight: 700; color: #1f2937; margin-bottom: 0.5rem; }
.board-post-content { color: #4b5563; line-height: 1.6; margin-bottom: 1rem; }
.board-post-photos { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.board-post-photo { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform 0.2s; }
.board-post-photo:hover { transform: scale(1.05); }
.board-empty { padding: 3rem; text-align: center; color: #9ca3af; }
.board-empty-icon { font-size: 3rem; margin-bottom: 1rem; }

/* Nástěnka - Formulář */
.board-form { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.board-form-header { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.board-form-header h3 { margin: 0; font-size: 1.125rem; }
.board-form-body { padding: 1.5rem; }
.board-form-group { margin-bottom: 1rem; }
.board-form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: #374151; font-size: 0.875rem; }
.board-form-group input, .board-form-group textarea { width: 100%; padding: 0.625rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; }
.board-form-group input:focus, .board-form-group textarea:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.1); }
.board-form-actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

/* ==========================================================================
   ÚVOD - SLUŽBA
   ========================================================================== */

.duty-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.duty-header { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); color: white; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.duty-header-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.duty-header h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.duty-list { padding: 0; }
.duty-item { display: flex; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; gap: 0.75rem; }
.duty-item:last-child { border-bottom: none; }
.duty-item:hover { background: #fef2f2; }
.duty-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #dc2626; }
.duty-info { flex: 1; }
.duty-name { font-weight: 600; color: #1f2937; }
.duty-role { font-size: 0.8125rem; color: #6b7280; }
.duty-time { font-size: 0.75rem; color: #9ca3af; }
.duty-empty { padding: 2rem; text-align: center; color: #9ca3af; }

/* ==========================================================================
   KONTAKTY
   ========================================================================== */

.contacts-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.contacts-header { padding: 1rem 1.25rem; color: white; display: flex; align-items: center; gap: 0.75rem; }
.contacts-header-red { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.contacts-header-blue { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.contacts-header-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.contacts-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.contacts-list { padding: 0; }
.contact-item { display: flex; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; gap: 0.75rem; }
.contact-item:last-child { border-bottom: none; }
.contact-item:hover { background: #f9fafb; }
.contact-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.contact-info { flex: 1; min-width: 0; }
.contact-name { font-weight: 600; color: #1f2937; font-size: 0.9375rem; }
.contact-role { font-size: 0.8125rem; color: #6b7280; }
.contact-phone { font-size: 0.875rem; color: #2563eb; font-weight: 500; white-space: nowrap; }
.contact-phone a { color: inherit; text-decoration: none; }
.contact-phone a:hover { text-decoration: underline; }

/* ==========================================================================
   CHAT
   ========================================================================== */

.chat-container { display: grid; grid-template-columns: 350px 1fr; gap: 1rem; }
.chat-form-card { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.chat-form-header { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: white; padding: 1rem; border-radius: 8px 8px 0 0; font-weight: 600; }
.chat-form-body { padding: 1rem; }
.chat-form-group { margin-bottom: 1rem; }
.chat-form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.875rem; }
.chat-form-group select, .chat-form-group textarea { width: 100%; padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; }
.chat-form-group textarea { min-height: 100px; resize: vertical; }
.chat-messages-card { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.chat-messages-header { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: white; padding: 1rem; border-radius: 8px 8px 0 0; font-weight: 600; }
.chat-messages-list { flex: 1; overflow-y: auto; max-height: 500px; padding: 1rem; }
.chat-message { margin-bottom: 1rem; padding: 0.75rem; border-radius: 8px; background: #f3f4f6; }
.chat-message-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.chat-message-author { font-weight: 600; font-size: 0.875rem; }
.chat-message-time { font-size: 0.75rem; color: #6b7280; }
.chat-message-text { font-size: 0.875rem; line-height: 1.5; }
.chat-message-mine { background: #dbeafe; }

@media (max-width: 992px) { .chat-container { grid-template-columns: 1fr; } }

/* ==========================================================================
   SMS
   ========================================================================== */

.sms-container { display: grid; grid-template-columns: 400px 1fr; gap: 1.5rem; }
.sms-form-card { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; height: fit-content; }
.sms-form-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: white; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.sms-form-header-icon { font-size: 1.25rem; }
.sms-form-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.sms-form-body { padding: 1.25rem; }
.sms-form-group { margin-bottom: 1rem; }
.sms-form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: #374151; font-size: 0.875rem; }
.sms-form-group select, .sms-form-group textarea { width: 100%; padding: 0.625rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; }
.sms-form-group textarea { min-height: 120px; resize: vertical; }
.sms-counter { display: flex; justify-content: space-between; font-size: 0.75rem; color: #6b7280; margin-top: 0.5rem; }
.sms-history-card { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; }
.sms-history-header { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); color: white; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.sms-history-header-icon { font-size: 1.25rem; }
.sms-history-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.sms-history-list { max-height: 500px; overflow-y: auto; }
.sms-history-item { padding: 1rem 1.25rem; border-bottom: 1px solid #f3f4f6; }
.sms-history-item:last-child { border-bottom: none; }
.sms-history-item:hover { background: #f9fafb; }
.sms-history-header-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.sms-history-author { font-weight: 600; color: #1f2937; font-size: 0.875rem; }
.sms-history-time { font-size: 0.75rem; color: #9ca3af; }
.sms-history-text { font-size: 0.875rem; color: #4b5563; line-height: 1.5; }

@media (max-width: 992px) { .sms-container { grid-template-columns: 1fr; } }

/* ==========================================================================
   STATISTIKY
   ========================================================================== */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1.5rem; }
.stat-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; }
.stat-header { padding: 1rem 1.25rem; color: white; display: flex; align-items: center; gap: 0.75rem; }
.stat-header-red { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }
.stat-header-green { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.stat-header-blue { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.stat-header-purple { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.stat-header-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.stat-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.stat-list { padding: 0; }
.stat-item { display: flex; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; gap: 0.75rem; }
.stat-item:last-child { border-bottom: none; }
.stat-item:hover { background: #f9fafb; }
.stat-rank { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8125rem; flex-shrink: 0; }
.stat-rank-1 { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: white; }
.stat-rank-2 { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); color: white; }
.stat-rank-3 { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); color: white; }
.stat-rank-other { background: #f3f4f6; color: #6b7280; }
.stat-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.stat-info { flex: 1; min-width: 0; }
.stat-name { font-weight: 600; color: #1f2937; font-size: 0.875rem; }
.stat-bar-container { flex: 1; max-width: 120px; }
.stat-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 4px; }
.stat-bar-fill-red { background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%); }
.stat-bar-fill-green { background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%); }
.stat-bar-fill-blue { background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%); }
.stat-bar-fill-purple { background: linear-gradient(90deg, #a78bfa 0%, #7c3aed 100%); }
.stat-value { font-weight: 700; font-size: 0.875rem; color: #1f2937; min-width: 50px; text-align: right; }

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

/* ==========================================================================
   ZÁSAHY - STATISTIKY
   ========================================================================== */

.stats-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.stats-card { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; }
.stats-card-header { padding: 1rem 1.25rem; color: white; display: flex; align-items: center; gap: 0.75rem; }
.stats-card-header-red { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }
.stats-card-header-green { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.stats-card-header-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.stats-card-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.stats-card-list { padding: 0; }
.stats-card-item { display: flex; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; gap: 0.75rem; }
.stats-card-item:last-child { border-bottom: none; }
.stats-card-item:hover { background: #f9fafb; }

@media (max-width: 992px) { .stats-container { grid-template-columns: 1fr; } }

/* ==========================================================================
   ÚVOD - ROZŠÍŘENÉ STYLY
   ========================================================================== */

.duty-header-text h3 { margin: 0; font-size: 1.125rem; font-weight: 700; }
.duty-header-text p { margin: 0; font-size: 0.75rem; opacity: 0.9; }
.duty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: #e5e7eb; }
.duty-card { background: white; padding: 1rem; display: flex; align-items: center; gap: 1rem; }
.duty-card-empty { background: #fef2f2; }
.duty-card .duty-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid #dc2626; flex-shrink: 0; }
.duty-photo-empty { width: 60px; height: 60px; border-radius: 50%; background: #fee2e2; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.duty-photo-placeholder { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border: 2px solid #dc2626; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.duty-function { font-size: 0.6875rem; font-weight: 600; color: #dc2626; text-transform: uppercase; letter-spacing: 0.5px; }
.duty-card .duty-info { flex: 1; min-width: 0; }
.duty-card .duty-name { font-weight: 600; color: #1f2937; font-size: 0.9rem; }
.duty-card .duty-time { font-size: 0.75rem; color: #6b7280; text-align: left; }
.duty-empty-text { color: #dc2626; font-weight: 600; font-size: 0.875rem; }

.available-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.available-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: white; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.available-header-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.available-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: #e5e7eb; }
.available-card { background: white; padding: 0.875rem; display: flex; align-items: center; gap: 0.75rem; }
.available-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #059669; flex-shrink: 0; }
.available-photo-placeholder { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border: 2px solid #059669; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.available-info { flex: 1; min-width: 0; }
.available-name { font-weight: 600; color: #1f2937; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.available-time { font-size: 0.6875rem; color: #6b7280; }

/* ==========================================================================
   MOJE SMĚNY - ÚVODNÍ STRÁNKA
   ========================================================================== */

.my-shifts-section { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.my-shifts-header { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: white; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.my-shifts-header-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.my-shifts-list { padding: 0; }
.my-shift-item { display: flex; align-items: center; gap: 1rem; padding: 0.875rem 1.25rem; border-bottom: 1px solid #f3f4f6; transition: background 0.2s; }
.my-shift-item:last-child { border-bottom: none; }
.my-shift-item:hover { background: #f8fafc; }
.my-shift-today { background: #eff6ff; }
.my-shift-today:hover { background: #dbeafe; }
.my-shift-date { display: flex; flex-direction: column; align-items: center; min-width: 50px; padding: 0.5rem; background: #f3f4f6; border-radius: 8px; }
.my-shift-today .my-shift-date { background: #2563eb; color: white; }
.my-shift-day { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; color: #6b7280; }
.my-shift-today .my-shift-day { color: rgba(255,255,255,0.8); }
.my-shift-date-num { font-size: 0.9375rem; font-weight: 700; color: #1f2937; }
.my-shift-today .my-shift-date-num { color: white; }
.my-shift-info { flex: 1; min-width: 0; }
.my-shift-function { font-weight: 600; color: #1f2937; font-size: 0.9375rem; }
.my-shift-time { font-size: 0.8125rem; color: #6b7280; }
.my-shift-hours { background: #2563eb; color: white; padding: 0.375rem 0.75rem; border-radius: 20px; font-size: 0.8125rem; font-weight: 600; }

/* ==========================================================================
   KONTAKTY - ROZŠÍŘENÉ STYLY
   ========================================================================== */

.contacts-header-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.contacts-header-purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.contacts-header-orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.contacts-header-count { background: rgba(255,255,255,0.2); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; margin-left: auto; }
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; padding: 1.25rem; }
@media (max-width: 400px) { .contacts-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 1rem; padding: 1rem; background: #f9fafb; border-radius: 10px; transition: all 0.2s; border-left: 4px solid transparent; }
.contact-card:hover { background: #f0f9ff; transform: translateX(4px); }
.contact-photo-placeholder { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; flex-shrink: 0; border: 3px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.contact-email { font-size: 0.8125rem; color: #64748b; margin-bottom: 0.5rem; word-break: break-all; }
.contact-details { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.contact-detail { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; padding: 0.25rem 0.5rem; background: white; border-radius: 4px; color: #374151; }
.contact-detail-phone { background: #dcfce7; color: #166534; font-weight: 600; }
.contact-detail-family { background: #fef3c7; color: #92400e; }
.contact-detail-birthday { background: #dbeafe; color: #1e40af; }
.contact-detail-age { background: #f3e8ff; color: #7c3aed; font-weight: 700; }
.contact-activity { font-size: 0.6875rem; color: #9ca3af; margin-top: 0.5rem; }
.contact-color { width: 8px; height: 100%; border-radius: 4px; flex-shrink: 0; }

/* ==========================================================================
   CHAT - ROZŠÍŘENÉ STYLY
   ========================================================================== */

.chat-textarea { width: 100%; border: 1px solid #e5e7eb; border-radius: 6px; padding: 0.75rem; font-size: 0.875rem; resize: vertical; min-height: 80px; }
.chat-textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.chat-section { margin-bottom: 1rem; }
.chat-section-title { font-size: 0.75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; margin-bottom: 0.5rem; }
.chat-checkbox { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; font-size: 0.875rem; cursor: pointer; }
.chat-checkbox input { width: 16px; height: 16px; cursor: pointer; }
.chat-checkbox-group { background: #f9fafb; border-radius: 6px; padding: 0.5rem; margin-bottom: 0.5rem; }
.chat-checkbox-group-title { color: #dc2626; font-weight: 600; font-size: 0.8125rem; }
.chat-checkbox-items { margin-left: 1.25rem; margin-top: 0.25rem; }
.chat-submit { width: 100%; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: white; border: none; padding: 0.75rem; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.chat-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.chat-history { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; }
.chat-history-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: white; padding: 1rem; font-weight: 600; }
.chat-reply { margin-top: 0.75rem; display: flex; gap: 0.5rem; }
.chat-reply input { flex: 1; border: 1px solid #e5e7eb; border-radius: 6px; padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
.chat-reply input:focus { outline: none; border-color: #2563eb; }
.chat-reply button { background: #2563eb; color: white; border: none; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.8125rem; cursor: pointer; }
.chat-reply button:hover { background: #1d4ed8; }
.chat-message-own { background: #eff6ff; }

/* ==========================================================================
   SMS - ROZŠÍŘENÉ STYLY
   ========================================================================== */

.sms-form-header { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); color: white; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.sms-form-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.sms-form-body { padding: 1.25rem; }
.sms-section-title { font-size: 0.75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; margin-bottom: 0.5rem; margin-top: 1rem; }
.sms-checkbox { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; font-size: 0.875rem; cursor: pointer; }
.sms-checkbox input { width: 16px; height: 16px; cursor: pointer; }
.sms-checkbox-group { background: #f9fafb; border-radius: 6px; padding: 0.5rem; margin-bottom: 0.5rem; }
.sms-checkbox-group-title { color: #dc2626; font-weight: 600; font-size: 0.8125rem; }
.sms-checkbox-items { margin-left: 1.25rem; margin-top: 0.25rem; }
.sms-submit { width: 100%; background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); color: white; border: none; padding: 0.75rem; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.sms-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(8,145,178,0.3); }
.sms-private-section { background: #f0f9ff; border-radius: 8px; padding: 1rem; margin-top: 1rem; }
.sms-private-section h4 { margin: 0 0 0.75rem 0; font-size: 0.875rem; color: #0e7490; }
.sms-private-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 500px) { .sms-private-row { grid-template-columns: 1fr; } }
.sms-history { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; }
.sms-messages-list { max-height: 800px; overflow-y: auto; }
.sms-message { padding: 1rem 1.25rem; border-bottom: 1px solid #f3f4f6; }
.sms-message:last-child { border-bottom: none; }
.sms-message-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.sms-message-sender { font-weight: 600; color: #1f2937; }
.sms-message-to { font-size: 0.75rem; color: #6b7280; margin-bottom: 0.5rem; }
.sms-message-text { color: #374151; line-height: 1.5; background: #f9fafb; padding: 0.75rem; border-radius: 6px; }
.sms-message-own { background: #f0f9ff; }
.sms-add-contact { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.sms-add-contact-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: white; padding: 1rem 1.25rem; }
.sms-add-contact-header h3 { margin: 0; font-size: 1rem; }
.sms-add-contact-body { padding: 1.25rem; }
.sms-add-contact-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 1rem; align-items: end; }
@media (max-width: 768px) { .sms-add-contact-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   STATISTIKY - ROZŠÍŘENÉ STYLY
   ========================================================================== */

.stat-table { width: 100%; border-collapse: collapse; }
.stat-table th { background: #f8fafc; padding: 0.625rem 0.75rem; text-align: center; font-size: 0.6875rem; font-weight: 600; color: #64748b; text-transform: uppercase; border-bottom: 2px solid #e2e8f0; position: sticky; top: 64px; z-index: 10; }
.stat-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #f1f5f9; font-size: 0.8125rem; text-align: center; }
.stat-table tr:hover { background: #f0f9ff; }
.stat-hour { font-weight: 700; color: #1e293b; background: #f8fafc; width: 50px; }
.stat-value-secondary { color: #64748b; }
.stat-value-total { font-weight: 700; color: #1e293b; background: #f1f5f9; }
.stat-percent { display: inline-block; padding: 0.125rem 0.375rem; border-radius: 4px; font-weight: 600; font-size: 0.75rem; }
.stat-percent-high { background: #dcfce7; color: #166534; }
.stat-percent-medium { background: #fef3c7; color: #92400e; }
.stat-percent-low { background: #fee2e2; color: #991b1b; }
.stat-summary { padding: 1rem 1.25rem; background: #f8fafc; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.stat-summary-label { font-size: 0.875rem; color: #64748b; }
.stat-summary-value { font-size: 1.25rem; font-weight: 700; color: #1e293b; }

/* ==========================================================================
   ZÁSAHY - STATISTIKY ROZŠÍŘENÉ
   ========================================================================== */

.stats-header { padding: 1rem 1.25rem; color: white; display: flex; align-items: center; gap: 0.75rem; }
.stats-header-gold { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.stats-header-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.stats-header-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.stats-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.stats-list { padding: 0; }
.stats-item { display: flex; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; gap: 0.75rem; }
.stats-item:last-child { border-bottom: none; }
.stats-item:hover { background: #f9fafb; }
.stats-rank { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8125rem; flex-shrink: 0; }
.stats-rank-1 { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: white; }
.stats-rank-2 { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); color: white; }
.stats-rank-3 { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); color: white; }
.stats-rank-other { background: #f3f4f6; color: #6b7280; }
.stats-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.stats-info { flex: 1; min-width: 0; }
.stats-name { font-weight: 600; color: #1f2937; font-size: 0.875rem; }
.stats-bar-container { flex: 1; max-width: 120px; }
.stats-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.stats-bar-fill { height: 100%; border-radius: 4px; }
.stats-bar-fill-gold { background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%); }
.stats-bar-fill-blue { background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%); }
.stats-value { font-weight: 700; font-size: 0.875rem; color: #1f2937; min-width: 50px; text-align: right; }

/* ==========================================================================
   NÁSTĚNKA - ROZŠÍŘENÉ STYLY
   ========================================================================== */

.board-form-group textarea { min-height: 150px; resize: vertical; }
.board-form-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
.board-form-file { padding: 0.5rem; border: 2px dashed #d1d5db; border-radius: 6px; }
.board-form-file:hover { border-color: #8b5cf6; }

/* ==========================================================================
   PRÁCE - ROZŠÍŘENÉ STYLY
   ========================================================================== */

.work-card-pending { background: #fffbeb; }
.work-card-pending:hover { background: #fef3c7; }
.work-status-pending { background: #fef3c7; color: #92400e; }
.work-detail-workers { background: #f9fafb; border-radius: 8px; padding: 1rem; }
.work-detail-workers h4 { margin: 0 0 0.75rem 0; font-size: 0.875rem; color: #374151; }
.work-detail-workers ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.work-detail-workers li { background: #059669; color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8125rem; }
.work-form-workers { background: #f9fafb; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.work-form-workers h4 { margin: 0 0 0.75rem 0; font-size: 0.875rem; color: #374151; }
.work-form-workers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.5rem; max-height: 300px; overflow-y: auto; }
.work-form-workers label { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem; border-radius: 4px; cursor: pointer; font-size: 0.875rem; }
.work-form-workers label:hover { background: #e5e7eb; }

/* Práce - Statistiky */
.work-stats { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 1.5rem; }
.work-stats-header { padding: 1rem 1.25rem; color: white; display: flex; align-items: center; gap: 0.75rem; background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.work-stats-header-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.work-stats-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.work-stats-list { padding: 0; }
.work-stats-item { display: flex; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; gap: 0.75rem; }
.work-stats-item:last-child { border-bottom: none; }
.work-stats-item:hover { background: #f9fafb; }
.work-stats-rank { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8125rem; flex-shrink: 0; }
.work-stats-rank-1 { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: white; }
.work-stats-rank-2 { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); color: white; }
.work-stats-rank-3 { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); color: white; }
.work-stats-rank-other { background: #f3f4f6; color: #6b7280; }
.work-stats-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.work-stats-info { flex: 1; min-width: 0; }
.work-stats-name { font-weight: 600; color: #1f2937; font-size: 0.875rem; }
.work-stats-bar-container { flex: 1; max-width: 120px; }
.work-stats-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.work-stats-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%); }
.work-stats-value { font-weight: 700; font-size: 0.875rem; color: #1f2937; min-width: 50px; text-align: right; }

/* ==========================================================================
   KALENDÁŘ - ROZŠÍŘENÉ STYLY
   ========================================================================== */

.calendar-nav-date {
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    margin-right: 0.5rem;
}
.calendar-nav-date:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 0.5rem;
}
.calendar-day-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.calendar-day-center {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: center;
}
.calendar-day-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.calendar-day-date {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
}
.calendar-day-weekday {
    color: #6b7280;
    font-size: 0.875rem;
}
@media (max-width: 768px) {
    .calendar-day-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    .calendar-day-center {
        order: -1;
    }
}

/* ============================================
   Technika - Modul správy techniky
   ============================================ */

/* Sekce */
.tech-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.tech-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tech-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.tech-header-icon {
    font-size: 1.5rem;
}

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

.tech-header-count {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Tabulka */
.tech-table-wrapper {
    overflow-x: auto;
}

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

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

.tech-table th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

.tech-table tbody tr:hover {
    background: #f3f4f6;
}

.tech-table .text-center {
    text-align: center;
}

.tech-overdue {
    background: #fee2e2 !important;
    color: #dc2626;
    font-weight: 600;
}

.tech-row-disabled {
    opacity: 0.6;
}

/* Akce */
.tech-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.tech-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f3f4f6;
    text-decoration: none;
    transition: all 0.2s;
}

.tech-action-btn:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

/* Stav */
.tech-stav {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tech-stav-ok {
    background: #d1fae5;
    color: #059669;
}

.tech-stav-ko {
    background: #fee2e2;
    color: #dc2626;
}

.tech-stav-výhrada {
    background: #fef3c7;
    color: #d97706;
}

/* Detail */
.tech-detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.tech-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
}

.tech-detail-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.tech-detail-header p {
    margin: 0;
    opacity: 0.9;
}

.tech-detail-body {
    padding: 1.5rem;
}

.tech-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tech-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tech-detail-item label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-detail-item strong {
    font-size: 1rem;
    color: #1f2937;
}

.tech-detail-files {
    margin-bottom: 1.5rem;
}

.tech-detail-files h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.tech-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-files-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.tech-files-list a {
    color: #667eea;
    text-decoration: none;
}

.tech-files-list a:hover {
    text-decoration: underline;
}

.tech-detail-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Kontroly */
.tech-kontroly-list {
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.tech-kontrola-card {
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    overflow: hidden;
}

.tech-kontrola-ko {
    border-left-color: #ef4444;
}

.tech-kontrola-vyhrada {
    border-left-color: #f59e0b;
}

.tech-kontrola-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.03);
}

.tech-kontrola-typ {
    font-weight: 600;
    color: #374151;
}

.tech-kontrola-datum {
    font-size: 0.875rem;
    color: #6b7280;
}

.tech-kontrola-body {
    padding: 1rem;
}

.tech-kontrola-body p {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
}

.tech-kontrola-footer {
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.03);
    font-size: 0.75rem;
    color: #6b7280;
}

/* Formulář */
.tech-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.tech-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 1.5rem;
}

.tech-form-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.tech-form-body {
    padding: 1.5rem;
}

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

.tech-form-group {
    margin-bottom: 1rem;
}

.tech-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.tech-form-group input,
.tech-form-group select,
.tech-form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tech-form-group input:focus,
.tech-form-group select:focus,
.tech-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tech-form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.tech-file-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Prázdný stav */
.tech-empty {
    padding: 3rem;
    text-align: center;
    color: #6b7280;
}

/* Text danger */
.text-danger {
    color: #dc2626 !important;
}

/* Responzivní */
@media (max-width: 768px) {
    .tech-section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .tech-header-left,
    .tech-header-right {
        justify-content: center;
    }
    
    .tech-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-form-row {
        grid-template-columns: 1fr;
    }
    
    .tech-detail-actions,
    .tech-form-actions {
        flex-direction: column;
    }
    
    .tech-table th,
    .tech-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   Vybavení - Modul osobního vybavení
   ============================================ */

/* Sekce */
.equip-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.equip-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.equip-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.equip-header-icon {
    font-size: 1.5rem;
}

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

.equip-header-count {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Tabulka */
.equip-table-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

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

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

.equip-table th,
.equip-table td {
    padding: 0.5rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.equip-table th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 0.8rem;
    color: #374151;
    white-space: nowrap;
}

.equip-table tbody tr:hover {
    background: #f3f4f6;
}

.equip-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.equip-table tbody tr:nth-child(even):hover {
    background: #f3f4f6;
}

.equip-name-col {
    text-align: left !important;
    white-space: nowrap;
    min-width: 150px;
    background: #f9fafb;
}

.equip-value-col {
    min-width: 80px;
}

.equip-col-link {
    color: #374151;
    text-decoration: none;
}

.equip-col-link:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.equip-input {
    width: 100%;
    max-width: 100px;
    padding: 0.375rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.equip-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.equip-input-new {
    background: #fffbeb;
    border-color: #fcd34d;
}

.equip-save-row {
    background: #f9fafb;
    padding: 1rem !important;
    text-align: center !important;
}

/* Formulář */
.equip-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.equip-form-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 1.25rem 1.5rem;
}

.equip-form-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.equip-form-body {
    padding: 1.5rem;
}

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

.equip-form-group {
    margin-bottom: 1rem;
}

.equip-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.equip-form-group input,
.equip-form-group select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.equip-form-group input:focus,
.equip-form-group select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.equip-form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

/* Prázdný stav */
.equip-empty {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 3rem;
    text-align: center;
    color: #6b7280;
}

.equip-empty p {
    margin-bottom: 1rem;
}

/* Responzivní */
@media (max-width: 768px) {
    .equip-section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .equip-header-left,
    .equip-header-right {
        justify-content: center;
    }
    
    .equip-form-row {
        grid-template-columns: 1fr;
    }
    
    .equip-form-actions {
        flex-direction: column;
    }
    
    .equip-table th,
    .equip-table td {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .equip-input {
        max-width: 70px;
        padding: 0.25rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   Print - Modul tiskového výstupu
   ============================================ */

.print-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.print-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.print-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.print-header-icon {
    font-size: 1.5rem;
}

.print-section-body {
    padding: 1.5rem;
}

.print-form {
    margin-bottom: 1.5rem;
}

.print-form-content {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
}

.print-form-label {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.print-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.print-form-group {
    flex: 1;
    min-width: 150px;
}

.print-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.print-form-group input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.print-form-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.print-form-submit {
    flex: 0 0 auto;
}

.print-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

.print-info h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: #1e40af;
}

.print-info ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #1e40af;
}

.print-info li {
    margin-bottom: 0.5rem;
}

.print-info li:last-child {
    margin-bottom: 0;
}

.print-info kbd {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background: white;
    border: 1px solid #93c5fd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .print-form-row {
        flex-direction: column;
    }
    
    .print-form-group {
        width: 100%;
    }
    
    .print-form-submit {
        width: 100%;
    }
    
    .print-form-submit .btn {
        width: 100%;
    }
}

/* ============================================
   Personal Stats - Osobní statistiky hasiče
   ============================================ */

.personal-stats {
    margin-bottom: 1.5rem;
}

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

.stat-box {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    border-left: 4px solid #6b7280;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-box.stat-ok {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.stat-box.stat-ok .stat-icon {
    color: #10b981;
}

.stat-box.stat-warning {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.stat-box.stat-warning .stat-icon {
    color: #ef4444;
}

.stat-box.stat-neutral {
    border-left-color: #9ca3af;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.stat-box.stat-neutral .stat-icon {
    color: #9ca3af;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.8);
    font-size: 28px;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.stat-note {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.stat-box.stat-ok .stat-note {
    color: #059669;
}

.stat-box.stat-warning .stat-note {
    color: #dc2626;
}

.stat-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    background: rgba(255,255,255,0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        flex-direction: row;
        align-items: center;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS - MODULES
   ============================================ */

@media (max-width: 768px) {
    /* Strojní služba */
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .vehicle-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .vehicle-btn-icon {
        font-size: 1.25rem;
    }
    
    .tech-grid {
        gap: 0.375rem;
    }
    
    .tech-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    .ride-form-grid {
        grid-template-columns: 1fr;
    }
    
    .rides-table th,
    .rides-table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .rides-table th {
        font-size: 0.625rem;
    }
    
    .fuel-summary {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
    }
    
    /* Školení */
    .training-card {
        padding: 0.75rem;
    }
    
    .training-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .training-card-title {
        font-size: 0.9375rem;
    }
    
    .training-card-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .training-card-meta span {
        font-size: 0.75rem;
    }
    
    /* Zásahy */
    .intervention-card {
        padding: 0.75rem;
    }
    
    .intervention-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .intervention-title {
        font-size: 0.9375rem;
    }
    
    .intervention-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Práce */
    .work-card {
        padding: 0.75rem;
    }
    
    .work-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .work-form-workers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Chemická služba */
    .chemical-card {
        padding: 0.75rem;
    }
    
    /* Technika */
    .technika-grid {
        grid-template-columns: 1fr;
    }
    
    .technika-card {
        padding: 0.75rem;
    }
    
    .technika-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Module headers */
    .module-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .module-header h3 {
        font-size: 0.9375rem;
    }
    
    /* Kalendář */
    .calendar-day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.625rem 0.75rem;
    }
    
    .calendar-day-left {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Print module */
    .print-form-grid {
        grid-template-columns: 1fr;
    }
    
    /* Vybavení */
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    /* Statistiky */
    .stats-card {
        padding: 0.75rem;
    }
    
    .stats-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    /* Strojní služba */
    .vehicle-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .vehicle-section {
        padding: 0.75rem;
    }
    
    .vehicle-selector-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .ride-form-header {
        padding: 0.75rem;
    }
    
    .ride-form-header h3 {
        font-size: 0.9375rem;
    }
    
    .ride-form-body {
        padding: 0.75rem;
    }
    
    .rides-header {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
    
    .rides-header h3 {
        font-size: 0.9375rem;
    }
    
    /* Práce */
    .work-form-workers-grid {
        grid-template-columns: 1fr;
    }
    
    .work-stats-item {
        flex-wrap: wrap;
    }
    
    .work-stats-bar-container {
        display: none;
    }
    
    /* Obecné */
    .module-section {
        margin-bottom: 1rem;
    }
    
    /* Tabulky - horizontální scroll */
    .table-responsive {
        margin: 0 -0.75rem;
        padding: 0;
    }
    
    .table-responsive table {
        min-width: 500px;
    }
}

/* Touch optimalizace pro moduly */
@media (hover: none) and (pointer: coarse) {
    .vehicle-btn {
        min-height: 60px;
    }
    
    .tech-btn {
        min-height: 36px;
        padding: 0.5rem 0.75rem;
    }
    
    .ride-btn {
        width: 36px;
        height: 36px;
    }
    
    .training-card,
    .intervention-card,
    .work-card,
    .chemical-card,
    .technika-card {
        padding: 1rem;
    }
}

/* ==========================================================================
   BEZPEČNOST PAGE
   ========================================================================== */

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

.security-section h2 {
    font-size: 1.1rem;
    color: #dc2626;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin: 2rem 0 1rem 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-section h3 {
    font-size: 1rem;
    color: #333;
    margin: 1.5rem 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-section h4 {
    font-size: 0.9rem;
    color: #555;
    margin: 1rem 0 0.5rem 0;
}

.security-section p {
    margin-bottom: 0.75rem;
    text-align: justify;
    line-height: 1.7;
}

.security-section ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.security-section li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.security-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.security-table th,
.security-table td {
    border: 1px solid #e0e0e0;
    padding: 0.75rem;
    text-align: left;
}

.security-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.code-block {
    font-family: 'Courier New', monospace;
    background: #1e293b;
    color: #a5d6a7;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.8rem;
    overflow-x: auto;
    line-height: 1.5;
}

.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==========================================================================
   LEAFLET MAP (zasahy)
   ========================================================================== */

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.zasah-popup {
    min-width: 200px;
}

.zasah-popup-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
    color: #dc2626;
}

.zasah-popup-type {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.zasah-popup-info {
    font-size: 12px;
    line-height: 1.5;
}

.zasah-popup-info strong {
    color: #333;
}

/* ==========================================================================
   TOGGLE SWITCH (ciselniky)
   ========================================================================== */

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    transition: .3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: #22c55e;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* ==========================================================================
   TABS (majetek, majetek_nastav)
   ========================================================================== */

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

.tab {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: 4px;
    text-decoration: none;
    color: var(--gray-700);
}

.tab:hover {
    background: var(--gray-200);
}

.tab.active {
    background: var(--primary);
    color: #fff;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ==========================================================================
   LOGIN HISTORY (nastaveni)
   ========================================================================== */

.login-history-list {
    display: flex;
    flex-direction: column;
}

.login-history-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}

.login-history-item:hover {
    background: var(--gray-50);
}

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

.login-history-item.login-suspicious {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
}

.login-history-item.login-vpn {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
}

.login-history-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
}

.login-history-device {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.login-device-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 8px;
}

.login-device-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-900);
}

.login-device-browser {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.login-history-time {
    text-align: center;
}

.login-time-date {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-800);
}

.login-time-duration {
    font-size: 0.75rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.login-history-location {
    text-align: right;
}

.login-location-place {
    font-size: 0.8125rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.login-location-ip code {
    font-size: 0.75rem;
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
}

.login-hostname {
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-left: 0.5rem;
}

.login-history-flags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.login-flag {
    font-size: 1rem;
}

.login-isp {
    color: var(--gray-400);
}

@media (max-width: 768px) {
    .login-history-main {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .login-history-location {
        text-align: left;
    }
    
    .login-location-place {
        justify-content: flex-start;
    }
    
    .boxes-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   STATS GRID (podpora)
   ========================================================================== */

.stats-grid .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ==========================================================================
   STK BADGE PULSE (strojni)
   ========================================================================== */

@keyframes stkBadgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
