*{box-sizing:border-box}body{color:#18332b;background:#f1f5f4;margin:0;font-family:system-ui,Segoe UI,Tahoma,sans-serif}button,input{font:inherit}button{cursor:pointer}button:focus-visible{outline-offset:3px;outline:3px solid #38bdf8}.login-page{color:#173c2c;background:linear-gradient(145deg,#e4f5eb,#f7faf8);place-items:center;min-height:100dvh;padding:24px;display:grid}.login-card{text-align:center;background:#fff;border-radius:24px;width:100%;max-width:410px;padding:32px;box-shadow:0 15px 50px #17452e15}.login-logo{color:#fff;background:#087f5b;border-radius:22px;place-items:center;width:76px;height:76px;margin:0 auto 16px;display:grid}.login-card h1{color:#087f5b;margin:8px 0;font-size:34px}.login-card h2{margin-top:24px}.login-subtitle{color:#64748b;margin:8px 0;font-size:14px}.login-card form{text-align:start;gap:12px;margin-top:24px;display:grid}.login-card label{font-size:14px;font-weight:600}.login-input{color:#64748b;border:1px solid #d9e4dd;border-radius:12px;align-items:center;gap:10px;padding:12px;display:flex}.login-input input{color:#173c2c;background:0 0;border:none;outline:none;flex:1;min-width:0;font-size:16px}.login-input:focus-within{outline:2px solid #087f5b}.login-input button,.login-language{color:#087f5b;cursor:pointer;background:0 0;border:none}.login-submit{color:#fff;cursor:pointer;background:#087f5b;border:none;border-radius:12px;margin-top:8px;padding:14px;font-size:16px;font-weight:600}.login-submit:disabled{opacity:.6}.login-private,.login-language{color:#087f5b;justify-content:center;align-items:center;gap:8px;margin:20px auto 0;font-size:13px;display:flex}.login-error{color:#b91c1c;background:#fef2f2;border-radius:8px;padding:10px;font-size:14px}@media (width<=480px){.login-card{padding:24px}}.activity-page{gap:18px;display:grid}.activity-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.activity-heading p{color:#64748b;font-size:14px}.activity-heading button{color:#fff;cursor:pointer;background:#087f5b;border:0;border-radius:10px;align-items:center;gap:8px;padding:11px 16px;display:flex}.activity-heading button:disabled{opacity:.5}.activity-stats{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.activity-stats article{background:#fff;border:1px solid #e2e8e5;border-radius:16px;padding:20px}.activity-stats svg,.activity-stats h2{color:#087f5b}.activity-stats p{color:#64748b;font-size:13px}.activity-filters{flex-wrap:wrap;gap:12px;display:flex}.activity-search{background:#fff;border:1px solid #dbe4df;border-radius:10px;flex:1;align-items:center;gap:10px;padding:12px;display:flex}.activity-search input{background:0 0;border:none;outline:none;width:100%;min-width:0;font-size:16px}.activity-filters select{background:#fff;border:1px solid #dbe4df;border-radius:10px;padding:12px}.activity-list{gap:10px;display:grid}.activity-record{background:#fff;border:1px solid #e2e8e5;border-radius:14px;align-items:flex-start;gap:14px;padding:16px;display:flex}.activity-icon{color:#087f5b;background:#e4f5eb;border-radius:12px;flex-shrink:0;place-items:center;width:46px;height:46px;display:grid}.activity-info{overflow-wrap:anywhere;flex:1;gap:5px;min-width:0;display:grid}.activity-info p{color:#087f5b;font-size:14px}.activity-info small{color:#64748b}.activity-info span{color:#64748b;align-items:center;gap:5px;font-size:12px;display:flex}.activity-error{color:#b91c1c;background:#fef2f2;border-radius:10px;padding:12px}@media (width<=600px){.activity-stats article{padding:12px}.activity-stats p{font-size:11px}.activity-filters select{width:100%}}.family-page{gap:18px;display:grid}.family-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.family-heading p{color:#64748b;font-size:14px}.family-page button{color:#fff;cursor:pointer;background:#087f5b;border:0;border-radius:10px;justify-content:center;align-items:center;gap:7px;padding:11px 15px;display:inline-flex}.family-page button:disabled{opacity:.5}.family-stats{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.family-stats article,.family-form,.family-member{background:#fff;border:1px solid #e2e8e5;border-radius:16px;padding:20px}.family-stats svg{color:#087f5b}.family-stats h2{color:#087f5b;margin:10px 0}.family-form{gap:14px;display:grid}.family-form label{gap:6px;font-size:14px;font-weight:600;display:grid}.family-form input{border:1px solid #dbe4df;border-radius:9px;width:100%;padding:12px;font-size:16px}.family-list{gap:12px;display:grid}.family-member{flex-wrap:wrap;align-items:center;gap:14px;display:flex}.family-avatar{color:#087f5b;background:#e4f5eb;border-radius:50%;place-items:center;width:48px;height:48px;font-size:20px;font-weight:700;display:grid}.family-info{flex:1;gap:5px;display:grid}.family-info small{color:#64748b}.member-active{color:#087f5b;font-size:12px}.member-inactive{color:#b91c1c;font-size:12px}.family-actions{flex-wrap:wrap;gap:8px;display:flex}.family-error,.family-success{border-radius:10px;padding:12px}.family-error{color:#b91c1c;background:#fef2f2}.family-success{color:#166534;background:#dcfce7}@media (width<=600px){.family-actions{width:100%}.family-actions button{flex:1}.family-member{padding:15px}}.fin-module{gap:18px;padding-bottom:25px;display:grid}.fin-heading{justify-content:space-between;align-items:center;gap:15px;display:flex}.fin-heading p{color:#64748b;margin-top:5px}.fin-module button{color:#174c3b;cursor:pointer;background:#fff;border:1px solid #dce7e2;border-radius:10px;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:10px 14px;display:inline-flex}.fin-module button:disabled{opacity:.5}.fin-module .fin-primary,.fin-module .selected{color:#fff;background:#087f5b;border-color:#087f5b}.fin-panel{background:#fff;border:1px solid #e0e8e4;border-radius:16px;padding:20px}.fin-panel h3{margin-bottom:15px}.fin-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.fin-stats article{background:#e9f7f0;border-radius:12px;flex-direction:column;gap:8px;padding:15px;display:flex}.fin-stats strong{color:#087f5b;overflow-wrap:anywhere}.fin-progress{background:#e2e8f0;border-radius:20px;height:12px;margin:18px 0;overflow:hidden}.fin-progress div{height:100%}.fin-budget-form,.fin-actions,.fin-periods{flex-wrap:wrap;gap:8px;margin-top:15px;display:flex}.fin-module input,.fin-module select{border:1px solid #cbd5e1;border-radius:9px;min-width:0;padding:12px;font-size:16px}.fin-budget-form input{flex:1}.fin-total{color:#fff;background:#087f5b;border-radius:14px;align-items:center;gap:15px;margin:20px 0;padding:22px;display:flex}.fin-expense{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:10px;padding:15px 0;display:flex}.fin-expense p,.fin-expense small{color:#64748b;margin-top:5px;font-size:12px}.fin-overlay{z-index:1000;background:#0008;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.fin-modal{background:#fff;border-radius:18px;width:100%;max-width:480px;max-height:90dvh;padding:24px;overflow:auto}.fin-modal label{flex-direction:column;gap:7px;margin-top:15px;display:flex}.fin-error{color:#991b1b;background:#fee2e2;border-radius:9px;margin:10px 0;padding:12px}@media (width<=650px){.fin-heading{flex-direction:column;align-items:stretch}.fin-panel{padding:14px}.fin-stats{grid-template-columns:1fr}.fin-periods button{flex:1}}.med-module{padding:10px 0 24px}.med-heading{justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;display:flex}.med-heading p{color:#64748b;margin-top:5px}.med-module button{color:#174c3b;cursor:pointer;background:#fff;border:1px solid #dce7e2;border-radius:10px;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:10px 14px;display:inline-flex}.med-module button:disabled{opacity:.5;cursor:not-allowed}.med-module .med-primary{color:#fff;background:#087f5b;border-color:#087f5b}.med-summary{grid-template-columns:repeat(2,1fr);gap:14px;margin-bottom:20px;display:grid}.med-summary article{color:#087f5b;background:#e9f7f0;border-radius:16px;flex-direction:column;gap:8px;padding:20px;display:flex}.med-summary strong{font-size:30px}.med-tabs{gap:8px;margin-bottom:18px;display:flex}.med-tabs .selected{color:#fff;background:#087f5b}.med-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;display:grid}.med-card{background:#fff;border:1px solid #e0e8e4;border-radius:16px;padding:20px}.med-card-title{color:#087f5b;align-items:center;gap:10px;margin-bottom:15px;display:flex}.med-card h2{font-size:32px}.med-card p{margin-top:10px;font-size:14px}.med-badges{flex-wrap:wrap;gap:6px;margin-top:12px;display:flex}.med-badges span{color:#92400e;background:#fff1d6;border-radius:20px;padding:6px 10px;font-size:12px}.med-buttons{grid-template-columns:repeat(2,1fr);gap:8px;margin-top:15px;display:grid}.med-overlay{z-index:1000;background:#0008;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.med-modal{color:#183b30;background:#fff;border-radius:18px;width:100%;max-width:480px;max-height:90dvh;padding:24px;overflow:auto}.med-field{flex-direction:column;gap:7px;margin-top:14px;display:flex}.med-field input{border:1px solid #cbd5e1;border-radius:9px;width:100%;padding:12px;font-size:16px}.med-history article{background:#fff;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;padding:15px;display:flex}.med-error,.med-notice{border-radius:9px;margin:12px 0;padding:12px}.med-error{color:#991b1b;background:#fee2e2}.med-notice{color:#166534;background:#dcfce7}@media (width<=650px){.med-grid{grid-template-columns:1fr}.med-heading{flex-direction:column;align-items:stretch}.med-tabs button{flex:1}}.rashan-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px;display:flex}.rashan-heading h2{color:#065f46;margin:0}.rashan-heading p{color:#64748b;margin:6px 0}.rashan-module button{color:#334155;background:#fff;border:1px solid #dce8e1;border-radius:10px;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:12px;display:inline-flex}.rashan-module button:disabled{opacity:.5;cursor:not-allowed}.rashan-module .primary-btn{color:#fff;background:#087f5b;border-color:#087f5b}.rashan-tabs{gap:8px;margin-bottom:20px;padding-bottom:5px;display:flex;overflow-x:auto}.rashan-tabs button{white-space:nowrap}.rashan-tabs .selected{color:#065f46;background:#dcfce7;border-color:#86efac}.rashan-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.rashan-card{background:#fff;border:1px solid #e0eae4;border-radius:18px;padding:20px;box-shadow:0 4px 15px #18332b08}.rashan-card-top{justify-content:space-between;align-items:center;gap:10px;display:flex}.rashan-card-top h3{overflow-wrap:anywhere;margin:0 0 6px}.rashan-card h2{color:#065f46;margin:18px 0 5px;font-size:30px}.rashan-card small,.minimum-label{color:#64748b}.stock-low,.stock-good{white-space:nowrap;border-radius:20px;padding:6px 10px;font-size:12px}.stock-low{color:#92400e;background:#fef3c7}.stock-good{color:#166534;background:#dcfce7}.rashan-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:18px;display:grid}.rashan-module .delete-btn{color:#b91c1c;background:#fff7f7;border-color:#fecaca}.rashan-overlay{z-index:100;background:#0f172a88;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.rashan-modal{background:#fff;border-radius:20px;width:100%;max-width:460px;max-height:90dvh;padding:22px;overflow-y:auto;box-shadow:0 20px 60px #0003}.rashan-modal h2{margin:0}.rashan-modal form{flex-direction:column;gap:14px;margin-top:20px;display:flex}.rashan-modal label{flex-direction:column;gap:7px;font-size:14px;font-weight:600;display:flex}.rashan-modal input,.rashan-modal select{width:100%;min-height:46px;font:inherit;color:#18332b;background:#f8fafc;border:1px solid #cbd5e1;border-radius:9px;padding:12px;font-size:16px}.purchase-total{color:#065f46;background:#dcfce7;border-radius:10px;padding:16px;font-weight:700}.success-message,.error-message{border-radius:10px;margin:12px 0;padding:12px}.success-message{color:#166534;background:#dcfce7}.error-message{color:#991b1b;background:#fee2e2}.history-row{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:10px;padding:14px 0;display:flex}.history-row p{margin:5px 0}.history-row small{color:#64748b}@media (width<=650px){.rashan-grid{grid-template-columns:1fr}.rashan-card{padding:16px}.rashan-heading .primary-btn{width:100%}}.app{max-width:1100px;min-height:100vh;margin:auto}header{background:#fff;border-bottom:1px solid #dce8e1;justify-content:space-between;align-items:center;gap:10px;padding:18px;display:flex}.brand,.actions{align-items:center;gap:10px;display:flex}.brand h2{color:#087f5b;margin:0}.brand small{color:#64748b;font-size:11px}.logo{color:#fff;background:#087f5b;border-radius:14px;place-items:center;padding:12px;display:grid}.actions button{color:#087f5b;background:#fff;border:1px solid #dce8e1;border-radius:10px;align-items:center;gap:5px;padding:10px;display:flex}main{padding:20px 20px 110px}.hero{color:#fff;background:linear-gradient(135deg,#064e3b,#0b9970);border-radius:22px;padding:30px;box-shadow:0 8px 24px #065f4620}.hero h1{margin:10px 0;font-size:clamp(24px,5vw,38px)}.hero p{color:#d1fae5}.balance{background:#ffffff20;border-radius:15px;align-items:center;gap:15px;margin-top:24px;padding:18px;display:flex}.balance h2{margin:4px 0}.stats{grid-template-columns:repeat(4,1fr);gap:15px;margin:20px 0;display:grid}.stat,.panel{background:#fff;border:1px solid #e0eae4;border-radius:18px;padding:20px}.stat h2{margin:12px 0 5px}.stat p{color:#64748b;margin:0;font-size:14px}.stat-icon{border-radius:12px;place-items:center;width:45px;height:45px;display:grid}.color-0{color:#087f5b;background:#dcfce7}.color-1{color:#2563eb;background:#dbeafe}.color-2{color:#d97706;background:#fef3c7}.color-3{color:#dc2626;background:#fee2e2}.panel{margin:18px 0}.panel h3{margin-top:0}.panel p{color:#64748b}.alert{color:#92400e;background:#fffbeb;border-radius:10px;align-items:center;gap:10px;margin-top:10px;padding:15px;display:flex}.item{border-bottom:1px solid #e2e8f0;align-items:center;gap:12px;padding:18px 0;display:flex}.item span{margin-inline-start:auto}nav{width:100%;max-width:1100px;padding:12px;padding-bottom:max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dce8e1;justify-content:space-around;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%)}nav button{color:#64748b;background:0 0;border:none;border-radius:12px;flex-direction:column;align-items:center;gap:5px;padding:10px 16px;font-size:12px;display:flex}nav button.active{color:#087f5b;background:#e6f6ee}.error{color:#dc2626}@media (width<=650px){.stats{grid-template-columns:repeat(2,1fr)}main{padding:14px 14px 110px}header{padding:12px}.brand small{display:none}.hero{padding:22px}.stat{padding:16px}nav button{padding:8px}}
