/**
 * TiempoIn - Main Stylesheet
 * Mobile-first responsive design
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --success: #28a745;
    --success-hover: #218838;
    --warning: #ffc107;
    --warning-hover: #e0a800;
    --danger: #dc3545;
    --danger-hover: #c82333;
    --secondary: #6c757d;
    --secondary-hover: #5a6268;
    --light: #f8f9fa;
    --lighter: #f0f2f5;
    --border: #dee2e6;
    --gray: #6c757d;
    --gray-dark: #495057;
    --text: #333;
    --text-muted: #666;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--light);
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 20px 0 15px 0;
    font-weight: 600;
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: var(--success-hover);
}

.btn-warning {
    background: var(--warning);
    color: #333;
}

.btn-warning:hover {
    background: var(--warning-hover);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-hover);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 25px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-error {
    background: #f8d7da;
    border-left-color: var(--danger);
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    border-left-color: var(--success);
    color: #155724;
}

.alert-info {
    background: #d1ecf1;
    border-left-color: #0c5460;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border-left-color: var(--warning);
    color: #856404;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    background: var(--lighter);
    padding: 15px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background: var(--lighter);
    padding: 15px;
    border-top: 1px solid var(--border);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary);
}

.badge-success {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ff8c00;
}

.badge-danger {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger);
}

.badge-secondary {
    background: rgba(108, 117, 125, 0.2);
    color: var(--gray-dark);
}

.badge-working {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.badge-lunch {
    background: rgba(255, 193, 7, 0.2);
    color: #ff8c00;
}

.badge-closed {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger);
}

.badge-review {
    background: rgba(255, 193, 7, 0.2);
    color: #ff8c00;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: var(--lighter);
    border-bottom: 2px solid var(--border);
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0;
    margin-bottom: 20px;
}

.navbar-brand {
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    padding: 15px 20px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: var(--light);
    color: var(--primary);
}

/* Bottom Navigation (mobile) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    z-index: 1000;
}

.bottom-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-around;
}

.bottom-nav-item {
    flex: 1;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s;
}

.bottom-nav-link:hover,
.bottom-nav-link.active {
    color: var(--primary);
}

.bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-bottom: 70px;
}

.dashboard-sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    display: none;
}

.dashboard-sidebar.show {
    display: block;
}

.dashboard-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.row-2col {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.col-12 {
    grid-column: 1 / -1;
}

.col-6 {
    grid-column: span 1;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-active {
    background: var(--success);
}

.status-inactive {
    background: var(--secondary);
}

/* Employee Photo */
.employee-photo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.employee-photo-small {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

/* Utilities */
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }

.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }

.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }

.hidden { display: none; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    h4 { font-size: 18px; }
    
    .container {
        padding: 0 15px;
    }
    
    .row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    thead {
        display: none;
    }
    
    tbody tr {
        display: block;
        border: 1px solid var(--border);
        margin-bottom: 15px;
        border-radius: 6px;
    }
    
    td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        padding-bottom: 12px;
    }
    
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 12px;
    }
    
    .bottom-nav {
        display: block;
    }
    
    .dashboard-content {
        padding-bottom: 90px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .bottom-nav,
    .btn {
        display: none;
    }
    
    .dashboard-sidebar {
        display: none;
    }
    
    .dashboard-content {
        padding: 0;
    }
}
.owner-content table,
.owner-main table,
.owner-container table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    margin-top: 14px;
}

.owner-content th,
.owner-content td,
.owner-main th,
.owner-main td,
.owner-container th,
.owner-container td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    white-space: nowrap;
}

.owner-content th,
.owner-main th,
.owner-container th {
    background: #f8fafc;
    color: #111827;
    font-weight: 800;
}

.owner-content td,
.owner-main td,
.owner-container td {
    color: #374151;
}

.owner-content tr:last-child td,
.owner-main tr:last-child td,
.owner-container tr:last-child td {
    border-bottom: none;
}

.owner-content h1,
.owner-main h1 {
    margin-bottom: 26px;
}

.owner-content h2,
.owner-main h2 {
    margin-top: 30px;
    margin-bottom: 12px;
}

.owner-container {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

 /* Manager employee card - compact premium style */
 .employee-card {
     background: #ffffff;
     border-radius: 12px;
     box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
     overflow: hidden;
     display: flex;
     flex-direction: column;
     min-width: 0;
 }
 
 .employee-card-header {
     display: flex;
     align-items: center;
     gap: 12px;
     padding: 12px 14px;
     background: linear-gradient(135deg, rgba(102,126,234,0.06), rgba(118,75,162,0.04));
 }
 
 .employee-avatar-circle,
 .employee-photo-small {
     width: 56px;
     height: 56px;
     border-radius: 50%;
     flex: 0 0 56px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: 700;
     font-size: 20px;
     color: #ffffff;
     box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
     overflow: hidden;
 }
 
 .employee-avatar-circle {
     background: linear-gradient(135deg, var(--primary), var(--primary-dark));
 }
 
 .employee-photo-small img,
 .employee-photo-small {
     object-fit: cover;
 }
 
 .employee-header-meta {
     display: flex;
     flex-direction: column;
     gap: 4px;
     min-width: 0;
 }
 
 .employee-card .employee-name {
     font-size: 16px;
     font-weight: 700;
     color: #111827;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }
 
 
 .employee-card-body {
     padding: 10px 14px 14px 14px;
     font-size: 13px;
     color: var(--text-muted);
     display: flex;
     flex-direction: column;
     gap: 6px;
 }
 
 .employee-card .mtimes {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 8px;
     font-size: 13px;
 }
 
 .employee-card .mtimes div {
     color: #374151;
 }

 .section-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 16px;
     margin-bottom: 18px;
 }
 
 .section-header-spaced {
     gap: 24px;
 }
 
 .section-subtitle {
     margin-top: 8px;
     color: var(--text-muted);
     max-width: 610px;
 }
 
 .section-heading {
     display: flex;
     align-items: center;
     gap: 14px;
 }
 
 .section-icon {
     width: 42px;
     height: 42px;
     display: grid;
     place-items: center;
     border-radius: 14px;
     background: rgba(102,126,234,0.08);
     color: var(--primary);
 }
 
 .helper-note {
     margin-top: 0;
     margin-bottom: 20px;
     color: var(--text-muted);
     font-size: 14px;
 }
 
 .summary-grid.labor-summary-grid {
     display: grid;
     grid-template-columns: repeat(4, minmax(180px, 1fr));
     gap: 18px;
     margin-bottom: 24px;
 }
 
 .labor-summary-card {
     border-radius: 16px;
     overflow: hidden;
     box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
 }
 
 .labor-summary-card .card-body {
     display: flex;
     align-items: center;
     gap: 16px;
     padding: 22px;
 }
 
 .labor-summary-card .stat-icon-circle {
     width: 48px;
     height: 48px;
     display: grid;
     place-items: center;
     border-radius: 50%;
     background: rgba(102,126,234,0.12);
     color: var(--primary);
 }
 
 .labor-summary-card .stat-label {
     font-size: 12px;
     text-transform: uppercase;
     letter-spacing: 0.04em;
     color: var(--text-muted);
     margin-bottom: 6px;
 }
 
 .labor-summary-card .stat-value {
     font-size: 26px;
     font-weight: 700;
     color: #111827;
 }
 
 .labor-summary-card.highlight {
     background: linear-gradient(90deg, rgba(102,126,234,1), rgba(118,75,162,1));
     color: #fff;
 }
 
 .labor-summary-card.highlight .stat-icon-circle {
     background: rgba(255,255,255,0.16);
     color: #fff;
 }
 
 .labor-summary-card.highlight .stat-label,
 .labor-summary-card.highlight .stat-value {
     color: #fff;
 }
 
 .employee-row-cell {
     display: flex;
     align-items: center;
     gap: 12px;
 }
 
 .employee-avatar {
     width: 42px;
     height: 42px;
     border-radius: 50%;
     display: grid;
     place-items: center;
     background: rgba(102,126,234,0.12);
     color: var(--primary);
     font-weight: 700;
 }
 
 .money-value {
     font-weight: 700;
     color: var(--primary-dark);
 }
 
 .labor-panel {
     border-radius: 16px;
     overflow: hidden;
     box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
 }
 
 .labor-table thead {
     background: #f8fafc;
 }
 
 .labor-table th,
 .labor-table td {
     padding: 16px 18px;
     border-bottom: 1px solid #e5e7eb;
     font-size: 14px;
 }
 
 .labor-table tbody tr:hover {
     background: rgba(102, 126, 234, 0.05);
 }
 
 .labor-table td {
     vertical-align: middle;
 }
 
 .locations-panel {
     border-radius: 16px;
     overflow: hidden;
     box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
 }
 
 .locations-table thead {
     background: #f8fafc;
 }
 
 .locations-table th,
 .locations-table td {
     padding: 16px 18px;
     border-bottom: 1px solid #e5e7eb;
     font-size: 14px;
 }
 
 .locations-table tbody tr {
     transition: background 0.2s ease;
 }
 
 .locations-table tbody tr:hover {
     background: rgba(102, 126, 234, 0.05);
 }
 
 .manager-access-pill,
 .locations-actions .btn {
     display: inline-flex;
     align-items: center;
     gap: 6px;
 }

/* Subtle manager sign-in link for kiosk screens */
.kiosk-manager-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    color: rgba(0,0,0,0.56);
    opacity: 0.85;
    text-decoration: none;
}

.kiosk-manager-link:hover {
    color: rgba(0,0,0,0.85);
    text-decoration: underline;
}
 
 .manager-access-pill {
     padding: 6px 10px;
     margin: 2px 2px 2px 0;
     border-radius: 999px;
     background: rgba(102,126,234,0.12);
     color: var(--primary);
     font-size: 12px;
     line-height: 1.4;
 }
 
 .badge-general-access {
     background: rgba(102,126,234,0.18);
     color: var(--primary);
     font-weight: 700;
 }
 
 .payrates-panel {
     border-radius: 16px;
     overflow: hidden;
     box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
 }
 
 .payrates-table thead {
     background: #f8fafc;
 }
 
 .payrates-table th,
 .payrates-table td {
     padding: 16px 18px;
     border-bottom: 1px solid #e5e7eb;
     font-size: 14px;
 }
 
 .payrates-table tbody tr:hover {
     background: rgba(102, 126, 234, 0.05);
 }
 
 .payrate-employee-cell {
     display: flex;
     align-items: center;
     gap: 12px;
 }
 
 .payrate-avatar {
     width: 38px;
     height: 38px;
     border-radius: 50%;
     display: grid;
     place-items: center;
     background: rgba(102,126,234,0.12);
     color: var(--primary);
     font-weight: 700;
 }
 
 .payrate-employee-cell .employee-name {
     font-weight: 700;
     color: #111827;
 }
 
 .add-employee-btn {
     white-space: nowrap;
 }
 
 .payrates-panel .btn-sm {
     min-width: 85px;
 }
 
 .payrates-panel .btn-sm.btn-primary {
     background: linear-gradient(90deg, rgba(102,126,234,1) 0%, rgba(118,75,162,1) 100%);
     border-color: transparent;
 }
 
 .payrates-panel .btn-sm.btn-primary:hover {
     filter: brightness(0.95);
 }
 
 .payrates-panel .btn-sm.btn-secondary {
     background: #f3f4f6;
     color: #111827;
 }
 
 .payrates-panel .btn-sm.btn-secondary:hover {
     background: #e5e7eb;
 }
 
 .payrates-table td:first-child {
     min-width: 240px;
 }
 
 .helper-note {
     margin-top: 0;
     margin-bottom: 20px;
     color: var(--text-muted);
     font-size: 14px;
 }
 
 .section-icon {
     width: 42px;
     height: 42px;
     display: grid;
     place-items: center;
     border-radius: 14px;
     background: rgba(102,126,234,0.08);
     color: var(--primary);
 }
 
 .section-heading {
     display: flex;
     align-items: center;
     gap: 14px;
 }
 
 .section-subtitle {
     margin-top: 8px;
     color: var(--text-muted);
     max-width: 610px;
 }
 
 .badge-general-access {
     background: rgba(102,126,234,0.18);
     color: var(--primary);
     font-weight: 700;
 }
 
 .managers-panel {
     border-radius: 16px;
     overflow: hidden;
     box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
 }
 
 .managers-table thead {
     background: #f8fafc;
 }
 
 .managers-table th,
 .managers-table td {
     padding: 16px 18px;
     border-bottom: 1px solid #e5e7eb;
     font-size: 14px;
 }
 
 .managers-table tbody tr:hover {
     background: rgba(102, 126, 234, 0.05);
 }
 
 .add-employee-btn {
     white-space: nowrap;
 }
 
 .owner-content,
 .owner-main {
     flex: 1;
     padding: 32px;
     overflow-x: auto;
 }
 
 .section-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 16px;
     margin-bottom: 18px;
 }
 
 @media (max-width: 900px) {
     .section-header {
         flex-direction: column;
         align-items: stretch;
     }
 
     .add-employee-btn,
     .action-buttons .btn {
         width: 100%;
     }
 }

.stats-grid,
.dashboard-grid,
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .owner-container {
        flex-direction: column;
    }

    .owner-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .owner-content,
    .owner-main {
        padding: 20px;
    }

    .stats-grid,
    .dashboard-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Owner dashboard specific refinements */
.owner-sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.sidebar-header { padding-bottom: 8px; }

.owner-sidebar .owner-sidebar-item {
    display: block;
    padding: 12px 20px;
    color: var(--gray-dark);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 200ms ease;
    font-weight: 600;
}

.owner-sidebar .owner-sidebar-item:hover {
    background: var(--lighter);
    color: var(--primary);
}

.owner-sidebar .owner-sidebar-item.active {
    background: linear-gradient(90deg, rgba(102,126,234,0.12), rgba(118,75,162,0.08));
    color: #fff;
    background-color: var(--primary);
    border-left-color: rgba(255,255,255,0.18);
}

.owner-sidebar .owner-sidebar-item.active:hover { filter: brightness(0.98); }

.page-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.page-header h1 { margin:0; font-size:28px; }
.page-header .text-muted { margin-top:6px; }

.sidebar-link { display:inline-flex; align-items:center; gap:10px; }
.sidebar-icon { width:18px; height:18px; display:inline-block; flex:0 0 18px; }
.sidebar-icon svg { width:100%; height:100%; }
.sidebar-text { vertical-align:middle; }

.summary-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:18px; margin-bottom:20px; }
.summary-grid .card { border-radius:12px; box-shadow:0 6px 20px rgba(2,6,23,0.08); }
.summary-grid .card .stat-label { font-size:13px; color:rgba(255,255,255,0.9); }
.summary-grid .card .stat-value { font-size:28px; color:var(--text); }

.summary-grid .card:nth-child(1) .stat-value,
.summary-grid .card:nth-child(2) .stat-value,
.summary-grid .card:nth-child(3) .stat-value { color: var(--primary); }

.owner-table-card { border-radius:12px; overflow:hidden; box-shadow:0 10px 30px rgba(2,6,23,0.06); }
.owner-table-card .card-header { font-size:16px; font-weight:700; background:transparent; border-bottom:none; padding:18px 20px; }
.owner-table-card .card-body { padding: 0 20px 20px 20px; }

.owner-main th, .owner-main td { padding:12px 14px; }
.owner-main td.text-primary { color: #0f172a; font-weight:700; }

.stat-label { font-size:13px; color:#94a3b8; margin-bottom:6px; }
.stat-value { font-size:26px; font-weight:700; color:var(--primary); }

.money { font-weight:700; color:var(--primary); }

/* Summary card icon circle */
.stat-row { display:flex; align-items:center; gap:14px; }
.stat-icon-circle { width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--lighter); color:var(--primary); flex:0 0 52px; }
.stat-icon { width:24px; height:24px; display:block; }

/* Highlighted card (gradient) uses white semi-transparent icon background */
.stat-highlight .stat-icon-circle { background: rgba(255,255,255,0.12); color: #fff; }

/* Slightly different coloring for working card */
.stat-card-working .stat-icon-circle { background: rgba(40,167,69,0.12); color: var(--success); }
.stat-card-locations .stat-icon-circle { background: rgba(102,126,234,0.08); color: var(--primary); }
.stat-card-employees .stat-icon-circle { background: rgba(108,117,125,0.06); color: var(--gray-dark); }

@media (max-width: 900px) {
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .summary-grid { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; }
}

/* Manager dashboard styles */
.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.status-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(2,6,23,0.06);
    text-align: center;
}

.status-card-label { font-size:13px; color:var(--text-muted); }
.status-card-number { font-size:26px; font-weight:800; margin-top:8px; }

.employees-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap:20px; }
.employee-card { border-radius:12px; overflow:hidden; box-shadow:0 8px 24px rgba(2,6,23,0.06); background:white; }
.employee-card-photo { width:100%; height:140px; background:#f8fafc; display:flex; align-items:center; justify-content:center; }
.employee-card-photo img { width:100%; height:100%; object-fit:cover; }
.employee-card-body { padding:14px; }
.employee-name { font-weight:700; font-size:16px; }
.employee-status { margin-top:8px; }
.employee-card .text-muted { font-size:13px; margin-top:10px; }

.fab { position: fixed; bottom: 80px; right: 20px; width:56px; height:56px; border-radius:50%; background:var(--primary); color:#fff; border:none; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(2,6,23,0.12); cursor:pointer; }
.fab svg { display:block; }

@media (max-width: 768px) {
    .employees-grid { grid-template-columns: 1fr; }
    .status-cards { grid-template-columns: repeat(2,1fr); }
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-weight: 700;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    white-space: nowrap;
}