/* Minimal styling for CyberPoa */
* { box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f8f9fa; color: #333; margin: 0; padding: 0; min-height: 100vh; display: flex; flex-direction: column; }
.navbar { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 1rem 1.5rem; color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.navbar a { color: inherit; text-decoration: none; font-weight: 500; }
.brand-mark { display: inline-flex; align-items: center; gap: 0.8rem; font-weight: 700 !important; letter-spacing: 0.02em; }
.brand-mark__icon { width: 28px; height: 28px; display: block; filter: drop-shadow(0 8px 18px rgba(18, 27, 75, 0.28)); }
.brand-mark__text { font-size: 1.2rem; }
.nav-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav-links a { padding: 0.5rem 1rem; border-radius: 6px; transition: all 0.3s ease; white-space: nowrap; font-size: 0.95rem; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.1); }
.logout-link { padding: 0.5rem 1rem; border-radius: 6px; transition: all 0.3s ease; }
.logout-link:hover { background: rgba(255, 255, 255, 0.1); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.container { max-width: 1200px; margin: 1rem auto; padding: 1.5rem; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-radius: 12px; min-height: 60vh; width: calc(100% - 2rem); }
.table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.table th, .table td { border: 1px solid #e9ecef; padding: 0.75rem; text-align: left; }
.table th { background: #f8f9fa; font-weight: 600; color: #495057; }
.btn { padding: 0.75rem 1.5rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; text-decoration: none; border-radius: 8px; border: none; cursor: pointer; transition: all 0.3s ease; font-weight: 500; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); }
.btn-danger { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%); }
.btn-danger:hover { box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4); }

.pwa-install-prompt {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 560px;
    margin: 0 auto;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #d8e1eb;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
    color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pwa-install-prompt--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.pwa-install-prompt__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.pwa-install-prompt__copy strong {
    font-size: 0.98rem;
}

.pwa-install-prompt__copy span {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.35;
}

.pwa-install-prompt__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pwa-install-prompt__button,
.pwa-install-prompt__dismiss {
    border: 0;
    cursor: pointer;
}

.pwa-install-prompt__button {
    padding: 0.62rem 0.95rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
}

.pwa-install-prompt__dismiss {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    font-size: 1.2rem;
    line-height: 1;
}

@media (max-width: 540px) {
    .pwa-install-prompt {
        align-items: stretch;
        flex-direction: column;
    }

    .pwa-install-prompt__actions {
        justify-content: space-between;
    }
}

/* Dashboard specific styles */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Section */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.header-content h1 {
    color: #495057;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.dashboard-welcome {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.filters {
    display: flex;
    gap: 0.75rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    color: #495057;
    min-width: 120px;
}

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

.quick-add-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
}

/* Metrics Cards */
.metrics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.revenue-card .metric-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.expense-card .metric-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
}

.profit-card .metric-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.balance-card .metric-icon {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #fff;
}

.metric-content {
    flex: 1;
}

.metric-content h3 {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #495057;
}

.metric-value.positive {
    color: #28a745;
}

.metric-value.negative {
    color: #dc3545;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.metric-change.positive {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.metric-change.negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.metric-change.neutral {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link:hover .metric-card { transform: translateY(-4px); }

.dark-mode {
    background: #0e121a;
    color: #e9edf5;
}

.dark-mode .navbar { background: #1a1f2a; color: #e9edf5; }
.dark-mode .navbar a { color: #f4f6ff; }
.dark-mode .container { background: #121827; box-shadow: 0 4px 20px rgba(0,0,0,0.38); color: #e9edf5; }
.dark-mode .table { border-color: #2a2e3d; background: #192135; color: #e9edf5; }
.dark-mode .table th { background: #1f2638; color: #f5f6ff; }
.dark-mode .table td { border-color: #2a2e3d; }
.dark-mode .metric-card, .dark-mode .chart-container, .dark-mode .activity-container { background: #1a1f2d; border-color: #2a2e3f; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.dark-mode .filter-select, .dark-mode .quick-add-btn { background: #1e2433; color: #f0f3ff; border-color: #2d3650; }
.dark-mode .btn { background: linear-gradient(135deg, #5169db 0%, #5f46a9 100%); }
.dark-mode .logout-link, .dark-mode .nav-links a { color: #f5f7ff; }
.dark-mode .dashboard-header { border-color: #2c334b; }
.dark-mode .messages .alert { background: #1e2a41; border-color: #2a3a5b; color: #eff2ff; }
.dark-mode .chart-header h3, .dark-mode .activity-header h3 { color: #f0f2ff; }
.dark-mode .staff-panel,
.dark-mode .staff-summary-card,
.dark-mode .staff-client-card,
.dark-mode .staff-items-header { background: #1a1f2d; border-color: #2a2e3f; color: #e9edf5; }
.dark-mode .staff-panel-title,
.dark-mode .staff-sidebar-title,
.dark-mode .staff-items-title,
.dark-mode .staff-client-name,
.dark-mode .staff-summary-value { color: #f0f2ff; }
.dark-mode .staff-panel-copy,
.dark-mode .staff-form-help,
.dark-mode .staff-items-copy,
.dark-mode .staff-client-meta,
.dark-mode .staff-empty-copy,
.dark-mode .staff-summary-label,
.dark-mode .staff-items-table td::before { color: #9aa6c1; }
.dark-mode .staff-date-chip { background: #1e3a8a; color: #dbeafe; }
.dark-mode .staff-summary-card-total { background: #153327; }
.dark-mode .staff-summary-label-total,
.dark-mode .staff-summary-value-total { color: #9be5b5; }
.dark-mode .staff-summary-value-tax { color: #f5c27b; }
.dark-mode .staff-items-shell { border-color: #2a2e3f; }
.dark-mode .staff-items-table tr { border-color: #2a2e3f; }

.light-mode { background: #f4f6fb; color: #333; }
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.chart-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

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

.chart-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.25rem;
    font-weight: 600;
}

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

.export-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ced4da;
    background: #fff;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.export-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.chart-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    height: 300px;
    position: relative;
}

/* Activity Section */
.activity-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.activity-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

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

.activity-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.25rem;
    font-weight: 600;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

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

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.activity-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.activity-amount {
    font-weight: 700;
    font-size: 1rem;
}

.activity-amount.positive {
    color: #28a745;
}

.activity-amount.negative {
    color: #dc3545;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

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

/* Staff dashboard */
.staff-dashboard-actions {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.staff-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.staff-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.staff-dashboard-sidebar {
    display: grid;
    gap: 1.25rem;
}

.staff-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.staff-panel-header,
.staff-items-header,
.staff-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.staff-panel-header,
.staff-sidebar-header {
    margin-bottom: 1rem;
}

.staff-panel-title,
.staff-sidebar-title {
    margin: 0;
    color: #0f172a;
}

.staff-panel-title {
    font-size: 1.35rem;
}

.staff-sidebar-title {
    font-size: 1.1rem;
}

.staff-panel-copy {
    margin: 0.35rem 0 0;
    color: #6b7280;
}

.staff-date-chip {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.staff-form-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-field {
    min-width: 0;
}

.field-span-2 {
    grid-column: span 2;
}

.field-span-4 {
    grid-column: span 4;
}

.staff-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.staff-form-help {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.staff-form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.staff-form-error-block {
    margin-bottom: 1rem;
}

.staff-items-shell {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.staff-items-header {
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

.staff-items-title {
    font-weight: 700;
    color: #0f172a;
}

.staff-items-copy {
    font-size: 0.85rem;
    color: #64748b;
}

.staff-items-table {
    margin: 0;
}

.staff-col-units {
    width: 120px;
}

.staff-col-price,
.staff-col-total {
    width: 160px;
}

.staff-col-remove {
    width: 90px;
}

.staff-delete-input {
    display: none;
}

.line-total {
    font-weight: 700;
    padding-top: 0.45rem;
}

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

.staff-summary-card {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.staff-summary-card-total {
    background: #ecfdf5;
}

.staff-summary-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.staff-summary-label-total {
    color: #166534;
}

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

.staff-summary-value-tax {
    color: #b45309;
}

.staff-summary-value-total {
    font-size: 1.5rem;
    color: #166534;
}

.staff-form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.staff-client-list {
    display: grid;
    gap: 0.75rem;
}

.staff-client-card {
    padding: 0.9rem 1rem;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #f8fafc;
}

.staff-client-name {
    font-weight: 700;
    color: #0f172a;
}

.staff-client-meta,
.staff-empty-copy {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

/* Icon placeholders (using CSS for now, can be replaced with actual icons) */
.icon-plus:before { content: "+"; }
.icon-trending-up:before { content: "↗"; }
.icon-trending-down:before { content: "↘"; }
.icon-profit:before { content: "$"; }
.icon-balance:before { content: "⚖"; }
.icon-transaction:before { content: "💳"; }
.icon-expense:before { content: "💰"; }
.icon-empty:before { content: "📄"; }
.icon-export:before { content: "↓"; }

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-container {
        padding: 1rem;
    }

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

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .metrics-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .activity-section {
        grid-template-columns: 1fr;
    }

    .staff-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .staff-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-span-2,
    .field-span-4 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    * { box-sizing: border-box; }
    
    .navbar {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        justify-content: space-between;
    }

    .brand-mark__icon {
        width: 24px;
        height: 24px;
    }

    .brand-mark__text {
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        order: 3;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        order: 4;
        background: rgba(0,0,0,0.1);
        padding: 0.75rem;
        border-radius: 6px;
        margin-top: 0.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: left;
    }

    .navbar > div:last-child {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        order: 2;
        width: auto;
    }

    .dashboard-header h1 {
        font-size: 1.75rem;
    }

    .metrics-cards {
        grid-template-columns: 1fr;
    }

    .metric-card {
        padding: 1rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .header-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .filters {
        width: 100%;
    }

    .quick-actions {
        width: 100%;
    }

    .activity-item {
        padding: 0.75rem 1rem;
    }

    .container {
        margin: 0.5rem auto;
        padding: 1rem;
        border-radius: 8px;
        width: calc(100% - 1rem);
    }

    .table th, .table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .dashboard-container {
        padding: 0.75rem;
    }

    .staff-panel {
        padding: 1rem;
    }

    .staff-dashboard-actions,
    .staff-form-actions {
        width: 100%;
    }

    .staff-dashboard-actions .btn,
    .staff-form-actions .btn {
        flex: 1 1 220px;
        text-align: center;
    }

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

    .field-span-2,
    .field-span-4 {
        grid-column: auto;
    }

    .staff-summary-grid {
        grid-template-columns: 1fr;
    }

    .staff-items-table thead {
        display: none;
    }

    .staff-items-table,
    .staff-items-table tbody,
    .staff-items-table tr,
    .staff-items-table td {
        display: block;
        width: 100%;
    }

    .staff-items-table tr {
        padding: 0.9rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .staff-items-table td {
        border: none;
        padding: 0.45rem 0;
    }

    .staff-items-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 0.3rem;
    }

    .line-total {
        padding-top: 0;
    }

    .remove-item {
        width: 100%;
    }

    .activity-item {
        align-items: flex-start;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .activity-content,
    .activity-amount {
        width: 100%;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Extra small screens */
@media (max-width: 480px) {
    body { font-size: 14px; }
    
    .navbar {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .brand-mark__text {
        font-size: 0.9rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .container {
        margin: 0.25rem auto;
        padding: 0.75rem;
        width: calc(100% - 0.5rem);
    }

    .table th, .table td {
        padding: 0.35rem;
        font-size: 0.75rem;
    }

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

    .metric-value {
        font-size: 1.25rem;
    }

    .metric-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .staff-panel {
        padding: 0.85rem;
        border-radius: 14px;
    }

    .staff-panel-title {
        font-size: 1.15rem;
    }

    .staff-date-chip {
        width: 100%;
        text-align: center;
    }

    .staff-dashboard-actions .btn,
    .staff-form-actions .btn {
        flex-basis: 100%;
    }
}

.messages { list-style: none; padding: 0; margin-bottom: 1rem; }
.messages li { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 0.5rem; }
.messages li.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.messages li.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.messages li.warning { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }

.site-footer {
    text-align: center;
    padding: 0.75rem 1.25rem 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    width: 100%;
    margin-top: auto;
}

.site-footer p {
    margin: 0;
}
