*{box-sizing:border-box}body{margin:0;font-family:Montserrat,Segoe UI,Helvetica,Arial,sans-serif;background:#eae8e9;color:#0b0b0b}@media(prefers-color-scheme:dark){:root:not([data-theme]) body{background:#0a100d;color:#fff}}a{color:#0ca678}.page{max-width:900px;margin:0 auto;padding:32px 24px}.muted{color:#767671}.btn{display:inline-block;padding:10px 20px;border-radius:999px;border:none;background:#0ca678;color:#fff;font-weight:600;text-decoration:none;cursor:pointer;box-shadow:0 4px 14px #0ca67847}.btn.secondary{background:#fff;border:1px solid #e1e0d9;color:#0b0b0b;box-shadow:none}.btn.danger{background:#d03b3b;box-shadow:0 4px 14px #d03b3b47}table.data-table{width:100%;border-collapse:collapse;margin:12px 0 24px;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 2px #0b0b0b0a,0 10px 28px #0b0b0b0f}table.data-table th,table.data-table td{border:1px solid #e1e0d9;padding:8px 10px;text-align:left;font-size:.9rem}table.data-table th{background:#f0f0ec}.card{background:#fff;border:none;border-radius:20px;padding:18px 20px;margin-bottom:16px;box-shadow:0 1px 2px #0b0b0b0a,0 10px 28px #0b0b0b0f}label{display:flex;flex-direction:column;gap:4px;font-size:.9rem;font-weight:600}input,select,textarea{width:100%;max-width:100%;font-family:inherit;font-size:.95rem;padding:8px 10px;border-radius:10px;border:1px solid #e1e0d9;background:#fff;color:#0b0b0b}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.actions-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;margin-bottom:16px}.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.75rem;font-weight:600}.badge.pending{background:#fff3cd;color:#7a5b00}.badge.approved{background:#d4f4e2;color:#0ca678}.badge.rejected{background:#fbdada;color:#d03b3b}.error{color:#d03b3b;margin:8px 0}.section-title{font-weight:700;margin:24px 0 8px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.page-header h1{margin:0}.page-header-btn{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}.filter-input{display:block;width:100%;max-width:320px;margin:8px 0 16px}.icon-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border-radius:8px;border:1px solid #e1e0d9;background:#fff;color:#52514e;cursor:pointer}.icon-btn:hover{background:#f0f0ec}.icon-btn.danger{color:#d03b3b}.icon-btn.danger:hover{background:#fbdada}.totals-stats{display:flex;flex-wrap:wrap;gap:20px 28px}.stat{display:flex;flex-direction:column;gap:2px}.stat-value{font-size:1.35rem;font-weight:700}.stat-label{font-size:.75rem;color:#767671}.stat-primary .stat-value,.stat-protein .stat-value{color:#0ca678}.stat-carbs .stat-value{color:#3b82d0}.stat-fat .stat-value{color:#d0973b}.stat-fiber .stat-value{color:#8a5ed0}.meal-items{display:flex;flex-direction:column;gap:10px}.meal-item-row{margin-bottom:0}.meal-item-main{display:flex;flex-wrap:nowrap;gap:8px;align-items:flex-end}.item-field{flex:1 1 auto;min-width:0}.qty-field{flex:0 1 72px;min-width:0}.meal-item-macros{margin-top:8px;font-size:.82rem}.day-status-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;background:#cfcec7;vertical-align:middle}.day-status-dot.day-good{background:#0ca678}.day-status-dot.day-under{background:#f0c33c}.day-status-dot.day-over{background:#d03b3b}.list-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.short-label{display:none}:root[data-theme=dark] body{background:#0a100d;color:#fff}:root[data-theme=dark] .muted{color:#7c8a83}:root[data-theme=dark] .btn.secondary{background:#131f1a;border-color:#ffffff14;color:#fff}:root[data-theme=dark] table.data-table th,:root[data-theme=dark] table.data-table td{border-color:#223129}:root[data-theme=dark] table.data-table{background:#10231b;box-shadow:0 1px 2px #0003,0 10px 28px #00000059}:root[data-theme=dark] table.data-table th{background:#131f1a}:root[data-theme=dark] .card{background:#10231b;border:none;box-shadow:0 1px 2px #0003,0 10px 28px #00000059}:root[data-theme=dark] input,:root[data-theme=dark] select,:root[data-theme=dark] textarea{background:#10231b;border-color:#223129;color:#fff}:root[data-theme=dark] .badge.pending{background:#3a3212;color:#f0c33c}:root[data-theme=dark] .badge.approved{background:#12301f;color:#3ddc97}:root[data-theme=dark] .badge.rejected{background:#3a1414;color:#ff8080}:root[data-theme=dark] .icon-btn{background:#10231b;border-color:#223129;color:#b9c4bd}:root[data-theme=dark] .icon-btn:hover{background:#131f1a}:root[data-theme=dark] .icon-btn.danger{color:#ff8080}:root[data-theme=dark] .icon-btn.danger:hover{background:#3a1414}:root[data-theme=dark] .stat-label{color:#7c8a83}:root[data-theme=dark] .day-status-dot{background:#4a4a45}:root[data-theme=dark] .day-status-dot.day-good{background:#3ddc97}:root[data-theme=dark] .day-status-dot.day-under{background:#f0c33c}:root[data-theme=dark] .day-status-dot.day-over{background:#ff8080}@media(max-width:720px){.page{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}}@media(max-width:640px){.page{padding:16px;padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}.form-grid{grid-template-columns:1fr}table.data-table{display:block;overflow-x:auto;white-space:nowrap}.btn{min-height:44px;padding:10px 18px;display:inline-flex;align-items:center;justify-content:center}input,select,textarea{font-size:16px;min-height:44px}.actions-row .btn{flex:1 1 auto}.card{padding:14px 16px}.full-label{display:none}.short-label{display:inline}.page-header-btn{width:44px;height:44px;padding:0;border-radius:50%}.page-header-btn .btn-label{display:none}.qty-field{flex-basis:60px}.meal-item-main .icon-btn{width:36px;height:36px}}
