/* ============================================
   WorkSys — Modern Dark Control Room Theme
   FULLY RESPONSIVE VERSION
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: #050505;
    color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #27272A; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* --- LAYOUT --- */
.container {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 240px;
    min-height: 100vh;
    background: #0A0A0A;
    border-right: 1px solid #27272A;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar h2 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #27272A;
    color: #fff;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    margin: 2px 8px;
    color: #A1A1AA;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-left: 2px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.sidebar a:first-of-type {
    margin-top: 12px;
}

.sidebar a:hover {
    color: #fff;
    background: #121212;
}

.sidebar a.active {
    color: #00E5FF;
    border-left-color: #00E5FF;
    background: rgba(0, 229, 255, 0.05);
}

.sidebar a.logout-link {
    margin-top: auto;
    margin-bottom: 16px;
    color: #71717A;
    border-top: 1px solid #1a1a1e;
    padding-top: 14px;
}

.sidebar a.logout-link:hover {
    color: #FF3B30;
    background: rgba(255, 59, 48, 0.05);
}

/* --- MAIN --- */
.main {
    flex: 1;
    margin-left: 240px;
    padding: 40px;
    overflow-x: auto;
    min-height: 100vh;
}

/* --- PAGE HEADER --- */
.page-header {
    margin-bottom: 32px;
}

.page-header .label {
    display: block;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.2;
}

.page-header .subtitle {
    font-family: 'JetBrains Mono', monospace;
    color: #A1A1AA;
    font-size: 13px;
    margin-top: 6px;
}

/* --- LABELS --- */
.label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: #A1A1AA;
    margin-bottom: 4px;
}

.accent { color: #00E5FF; }

/* --- STATS --- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 0 0 32px;
}

.stat-card {
    background: #0A0A0A;
    border: 1px solid #27272A;
    padding: 24px;
    transition: border-color 0.2s;
}

.stat-card:hover {
    border-color: #3f3f46;
}

.stat-card .label {
    margin-bottom: 12px;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #fff;
}

.stat-value.accent {
    color: #00E5FF;
}

/* --- FILTER BAR --- */
.filter-bar {
    background: #0A0A0A;
    border: 1px solid #27272A;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: #A1A1AA;
}

.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-row select,
.filter-row input[type="date"] {
    flex: 1;
    min-width: 140px;
    height: 38px;
}

.btn-filter {
    background: #00E5FF;
    color: #000;
    font-weight: 600;
    height: 38px;
    padding: 0 20px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-filter:hover {
    background: #00B8CC;
}

.btn-clear {
    color: #A1A1AA;
    text-decoration: none;
    font-size: 13px;
    padding: 0 16px;
    height: 38px;
    display: flex;
    align-items: center;
    border: 1px solid #27272A;
    transition: color 0.2s, border-color 0.2s;
}

.btn-clear:hover {
    color: #fff;
    border-color: #52525B;
}

/* --- INPUTS / SELECT / TEXTAREA --- */
input,
select,
textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #27272A;
    background: #121212;
    color: #fff;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #00E5FF;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: #52525B;
}

textarea {
    min-height: 70px;
    resize: vertical;
    line-height: 1.5;
}

input[type="date"] {
    min-width: 140px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

input[type="range"] {
    width: 100%;
    padding: 0;
    height: 4px;
    background: #27272A;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #facc15;
    border: none;
    cursor: pointer;
}

input[type="file"] {
    background: transparent;
    border: 1px dashed #27272A;
    padding: 10px;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #00E5FF;
}

select option {
    background: #0A0A0A;
    color: #fff;
}

/* --- FORM --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: #A1A1AA;
    margin-bottom: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 24px;
}

.inline-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.month-tag {
    font-family: 'JetBrains Mono', monospace;
    color: #A1A1AA;
    font-size: 13px;
    white-space: nowrap;
}

/* --- SECTION CARDS --- */
.section-card {
    background: #0A0A0A;
    border: 1px solid #27272A;
    margin-bottom: 24px;
    overflow: hidden;
}

.section-header {
    padding: 12px 20px;
    border-bottom: 1px solid #27272A;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.section-header.cyan { color: #00E5FF; }
.section-header.yellow { color: #facc15; }
.section-header.purple { color: #a78bfa; }

/* --- TABLES --- */
.report-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.report-table thead,
.report-table tbody,
.report-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.report-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: #A1A1AA;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #27272A;
    background: #0A0A0A;
}

.report-table tbody td {
    padding: 8px 10px;
    vertical-align: top;
    border-bottom: 1px solid #1a1a1e;
}

.report-table tbody tr:last-child td {
    border-bottom: none;
}

.sl-col {
    width: 50px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #52525B;
}

.date-col {
    width: 170px;
}

.action-col {
    width: 40px;
    text-align: center;
}

.report-table textarea,
.report-table input,
.report-table select {
    border: 1px solid #1a1a1e;
    background: transparent;
}

.report-table textarea:focus,
.report-table input:focus,
.report-table select:focus {
    border-color: #00E5FF;
    background: rgba(0, 229, 255, 0.03);
}

.progress-label {
    font-family: 'JetBrains Mono', monospace;
    color: #A1A1AA;
    font-size: 11px;
    margin-top: 4px;
    display: block;
    text-align: right;
}

/* --- BUTTONS --- */
button,
.btn {
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #00E5FF;
    color: #000;
    font-weight: 600;
    font-size: 15px;
    margin-top: 20px;
    letter-spacing: 0.02em;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #00B8CC;
}

.add-row-btn {
    font-family: 'JetBrains Mono', monospace;
    background: none;
    color: #A1A1AA;
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid #27272A;
    transition: color 0.2s, border-color 0.2s;
}

.add-row-btn:hover {
    color: #00E5FF;
    border-color: #00E5FF;
}

.btn-remove-row {
    background: none;
    border: 1px solid transparent;
    color: #52525B;
    font-size: 18px;
    font-weight: 300;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s;
    font-family: 'JetBrains Mono', monospace;
}

.btn-remove-row:hover {
    color: #FF3B30;
    border-color: rgba(255, 59, 48, 0.3);
}

.btn-icon {
    background: none;
    border: none;
    color: #A1A1AA;
    padding: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: #00E5FF;
}

.btn-delete {
    text-decoration: none;
}

.btn-delete:hover {
    color: #FF3B30 !important;
}

.btn-small {
    padding: 8px 16px;
    background: #00E5FF;
    color: #000;
    font-weight: 600;
    font-size: 12px;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: background 0.2s;
    width: 100%;
}

.btn-small:hover {
    background: #00B8CC;
}

.btn-small-yellow {
    background: #facc15;
    color: #000;
}

.btn-small-yellow:hover {
    background: #eab308;
}

/* ========== WEEK GROUP (Admin Dashboard) ========== */
.week-group {
    background: #0A0A0A;
    border: 1px solid #27272A;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.week-group:hover {
    border-color: #3f3f46;
}

.week-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.week-group-header:hover {
    background: #0e0e0e;
}

.week-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.week-group-title svg {
    color: #00E5FF;
    flex-shrink: 0;
}

.week-group-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.week-report-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #00E5FF;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 3px 10px;
}

.week-group-body {
    border-top: 1px solid #27272A;
    padding: 0 12px;
}

.week-group-body .report-card {
    margin: 12px 0;
}

/* ========== REPORTS LIST (User view) ========== */
.reports-list { }

.date-group {
    margin: 24px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-group span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: #A1A1AA;
}

.date-group::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #27272A;
}

/* --- REPORT CARD --- */
.report-card {
    background: #0A0A0A;
    border: 1px solid #27272A;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.report-card:hover {
    border-color: #3f3f46;
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    gap: 8px;
}

.report-info b {
    font-weight: 500;
    font-size: 15px;
}

.report-meta {
    color: #A1A1AA;
    font-size: 13px;
    margin-left: 8px;
}

.report-sub {
    font-family: 'JetBrains Mono', monospace;
    color: #52525B;
    font-size: 12px;
}

.report-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.caret {
    color: #52525B;
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.3s;
    display: inline-block;
}

/* --- REPORT BODY (toggle via display) --- */
.report-body {
    border-top: 1px solid #27272A;
}

.report-sections {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    padding: 20px;
}

.section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 12px;
}

.cyan-text { color: #00E5FF; }
.yellow-text { color: #facc15; }
.purple-text { color: #a78bfa; }

.report-section ul {
    list-style: none;
    padding: 0;
}

.report-section li {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: 8px;
}

.item-num {
    color: #52525B;
    margin-right: 4px;
}

.output-text {
    color: #71717A;
    font-size: 12px;
    margin-left: 24px;
}

.date-text {
    color: #00E5FF;
    font-size: 11px;
    margin-left: 24px;
    opacity: 0.7;
}

.outcome-text {
    color: #a78bfa;
    font-size: 12px;
    margin-left: 24px;
    opacity: 0.8;
}

/* --- PROGRESS BAR (Dashboard) --- */
.progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 4px 24px;
}

.progress-bar-track {
    flex: 1;
    height: 6px;
    background: #27272A;
    overflow: hidden;
    max-width: 120px;
}

.progress-bar-fill {
    height: 100%;
    background: #facc15;
    transition: width 0.3s;
}

.progress-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #facc15;
    min-width: 32px;
}

/* --- PRIORITY BADGES --- */
.priority-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
}

.badge-low {
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.08);
}

.badge-medium {
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
    background: rgba(250, 204, 21, 0.08);
}

.badge-high {
    color: #FF3B30;
    border: 1px solid rgba(255, 59, 48, 0.3);
    background: rgba(255, 59, 48, 0.08);
}

/* --- ROLE BADGES --- */
.role-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
}

.role-admin {
    color: #00E5FF;
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.08);
}

.role-user {
    color: #A1A1AA;
    border: 1px solid #27272A;
    background: rgba(161, 161, 170, 0.05);
}

.no-data {
    font-family: 'JetBrains Mono', monospace;
    color: #3f3f46;
    font-size: 13px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #52525B;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 4px;
    color: #71717A;
}

.empty-state small {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

/* --- ALERTS --- */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    border: 1px solid;
}

.alert-success {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.05);
}

.alert-error {
    color: #FF3B30;
    border-color: rgba(255, 59, 48, 0.3);
    background: rgba(255, 59, 48, 0.05);
}

/* --- PROFILE PAGE --- */
.profile-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #1a1a1e;
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #fff;
}

.photo-section {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.photo-preview {
    width: 100px;
    height: 100px;
    border: 1px solid #27272A;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #121212;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.photo-form {
    flex: 1;
}

/* --- ADMIN USER MANAGEMENT --- */
.admin-forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ========== LOGIN PAGE (Full-screen particles BG) ========== */
.login-page {
    background: #08090c;
    margin: 0;
    overflow: hidden;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.login-centered {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: rgba(5, 5, 5, 0.85);
    border: 1px solid #27272A;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.login-brand-block {
    padding: 40px 40px 32px;
    border-bottom: 1px solid #27272A;
}

.login-brand-block h1 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 8px 0;
}

.login-brand-block p {
    color: #A1A1AA;
    font-size: 14px;
    letter-spacing: 0.04em;
    margin: 0;
}

.brand-line {
    width: 50px;
    height: 2px;
    background: #00E5FF;
    margin-top: 20px;
}

.login-form-block {
    padding: 32px 40px 40px;
}

.login-form-block h2 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.login-footer {
    font-family: 'JetBrains Mono', monospace;
    color: #52525B;
    font-size: 11px;
    text-align: center;
    margin-top: 32px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* --- TABLET (768px - 900px) --- */
@media (max-width: 900px) {
    .report-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .admin-forms-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .photo-section {
        flex-direction: column;
        align-items: center;
    }
}

/* --- MOBILE LANDSCAPE & SMALL TABLETS (601px - 768px) --- */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar h2 {
        font-size: 0;
        padding: 16px;
        text-align: center;
    }
    
    .sidebar h2::first-letter {
        font-size: 18px;
    }
    
    .sidebar a {
        font-size: 0;
        padding: 12px;
        justify-content: center;
        margin: 2px 4px;
    }
    
    .sidebar a::before {
        content: '•';
        font-size: 16px;
    }
    
    .main {
        margin-left: 60px;
        padding: 24px 16px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header .subtitle {
        font-size: 12px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-row select,
    .filter-row input[type="date"] {
        width: 100%;
        min-width: 100%;
    }
    
    .btn-filter,
    .btn-clear {
        width: 100%;
        justify-content: center;
    }
    
    .week-group-title {
        font-size: 13px;
    }
    
    .week-group-title svg {
        width: 14px;
        height: 14px;
    }
    
    .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .report-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .report-table {
        font-size: 12px;
    }
    
    .report-table thead th {
        padding: 8px 6px;
        font-size: 10px;
    }
    
    .report-table tbody td {
        padding: 6px 4px;
    }
    
    .sl-col {
        width: 40px;
    }
    
    .date-col {
        width: 130px;
    }
    
    .action-col {
        width: 35px;
    }
    
    .login-card {
        max-width: 100%;
    }
    
    .login-brand-block {
        padding: 32px 24px 24px;
    }
    
    .login-brand-block h1 {
        font-size: 28px;
    }
    
    .login-form-block {
        padding: 24px;
    }
    
    .login-form-block h2 {
        font-size: 24px;
    }
}

/* --- MOBILE PORTRAIT (max-width: 600px) --- */
@media (max-width: 600px) {
    .sidebar {
        width: 0;
        border-right: none;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
        width: 200px;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
    }
    
    .main {
        margin-left: 0;
        padding: 16px 12px;
    }
    
    .page-header {
        margin-bottom: 24px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .filter-bar {
        padding: 12px;
    }
    
    .section-card {
        margin-bottom: 16px;
    }
    
    .section-header {
        padding: 10px 12px;
        font-size: 10px;
    }
    
    .form-grid {
        padding: 16px;
        gap: 12px;
    }
    
    .report-sections {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .report-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .report-table thead,
    .report-table tbody,
    .report-table tr {
        display: table;
        min-width: 600px;
    }
    
    .week-group-header {
        padding: 12px 16px;
    }
    
    .week-report-count {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .report-info b {
        font-size: 14px;
    }
    
    .report-meta {
        font-size: 12px;
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
    
    .report-sub {
        font-size: 11px;
    }
    
    .btn-icon {
        padding: 4px;
    }
    
    .btn-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .item-num {
        font-size: 11px;
    }
    
    .output-text,
    .date-text,
    .outcome-text {
        margin-left: 16px;
        font-size: 11px;
    }
    
    .progress-bar-wrap {
        margin-left: 16px;
    }
    
    .priority-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .empty-state {
        padding: 60px 20px;
    }
    
    .empty-state p {
        font-size: 16px;
    }
    
    .empty-state small {
        font-size: 12px;
    }
    
    .photo-preview {
        width: 80px;
        height: 80px;
    }
    
    .login-centered {
        padding: 20px 12px;
    }
    
    .login-brand-block {
        padding: 24px 20px 20px;
    }
    
    .login-brand-block h1 {
        font-size: 24px;
    }
    
    .login-brand-block p {
        font-size: 13px;
    }
    
    .login-form-block {
        padding: 20px;
    }
    
    .login-form-block h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .login-footer {
        font-size: 10px;
        margin-top: 24px;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 14px;
    }
    
    input,
    select,
    textarea {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .form-group label {
        font-size: 10px;
    }
    
    .add-row-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* --- EXTRA SMALL MOBILE (max-width: 400px) --- */
@media (max-width: 400px) {
    .page-header h1 {
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 10px;
    }
    
    .login-brand-block h1 {
        font-size: 22px;
    }
    
    .login-form-block h2 {
        font-size: 18px;
    }
    
    .report-info b {
        font-size: 13px;
    }
    
    .week-group-title {
        font-size: 12px;
    }
    
    .alert {
        font-size: 12px;
        padding: 10px 12px;
    }
}

/* --- LANDSCAPE ORIENTATION --- */
@media (max-height: 500px) and (orientation: landscape) {
    .login-centered {
        padding: 20px 12px;
    }
    
    .login-brand-block {
        padding: 20px 24px 16px;
    }
    
    .login-brand-block h1 {
        font-size: 24px;
    }
    
    .login-form-block {
        padding: 20px 24px;
    }
    
    .login-form-block h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .btn-submit {
        padding: 10px;
        margin-top: 16px;
    }
}

/* --- PRINT STYLES --- */
@media print {
    .sidebar,
    .btn-icon,
    .btn-delete,
    .add-row-btn,
    .btn-remove-row,
    .filter-bar,
    .btn-submit {
        display: none !important;
    }
    
    .main {
        margin-left: 0;
        padding: 20px;
    }
    
    .report-card {
        page-break-inside: avoid;
        border: 1px solid #000;
    }
    
    .report-body {
        display: block !important;
    }
    
    * {
        background: #fff !important;
        color: #000 !important;
    }
}


input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(48%) sepia(99%) saturate(500%) hue-rotate(180deg);
    cursor: pointer;
}