*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;background:#f4f6f8;color:#1f2937}.app{max-width:1400px;margin:0 auto;padding:20px}.app__header{display:flex;align-items:center;gap:16px;background:#fff;border-radius:12px;padding:20px 24px;box-shadow:0 1px 3px #00000014;margin-bottom:16px}.app__header-icon{font-size:28px;background:#e6f4ea;border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.app__header-text{flex:1;min-width:0}.app__header h1{font-size:20px;margin:0 0 4px}.app__header p{margin:0;color:#6b7280;font-size:13px}.app__header-right{display:flex;align-items:center;gap:10px;flex-shrink:0}.summary-badge--pill{padding:8px 14px;border-radius:999px;font-size:13px}.app__upload-toggle{background:#16a34a;color:#fff;border:none;border-radius:8px;padding:10px 16px;font-weight:600;cursor:pointer;white-space:nowrap}.app__upload-toggle:hover{background:#15803d}.app__upload-panel{background:#fff;border-radius:12px;padding:20px;margin-bottom:16px;box-shadow:0 1px 3px #00000014}.upload-form{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.upload-form__field{display:flex;flex-direction:column;gap:6px}.upload-form__field label{font-size:13px;font-weight:600;color:#374151}.upload-form__field input{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:14px}.upload-form button[type=submit]{background:#2563eb;color:#fff;border:none;border-radius:8px;padding:10px 20px;font-weight:600;cursor:pointer;height:38px}.upload-form button[type=submit]:disabled{opacity:.6;cursor:not-allowed}.upload-form__message{width:100%;padding:10px 12px;border-radius:6px;font-size:13px}.upload-form__message--success{background:#dcfce7;color:#166534}.upload-form__message--error{background:#fee2e2;color:#991b1b}.app__controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}.date-selector{display:flex;align-items:center;gap:8px;background:#fff;padding:8px 14px;border-radius:8px;box-shadow:0 1px 3px #00000014}.date-selector label{font-size:13px;font-weight:600;color:#374151}.date-selector select{border:1px solid #d1d5db;border-radius:6px;padding:6px 10px;font-size:13px}.app__summary-badges{display:flex;gap:8px;flex-wrap:wrap}.summary-badge{padding:6px 12px;border-radius:999px;font-size:12px;font-weight:600}.summary-badge--green{background:#dcfce7;color:#166534}.summary-badge--blue{background:#dbeafe;color:#1e40af}.summary-badge--amber{background:#fef3c7;color:#92400e}.app__error{background:#fee2e2;color:#991b1b;padding:12px 16px;border-radius:8px;margin-bottom:16px}.app__loading{padding:40px;text-align:center;color:#6b7280}.data-table-wrapper{background:#fff;border-radius:12px;overflow-x:auto;box-shadow:0 1px 3px #00000014}.data-table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}.data-table th{background:#f9fafb;color:#374151;font-weight:600;padding:10px 12px;text-align:center;border-bottom:2px solid #e5e7eb;position:sticky;top:0}.th-group--geo{background:#f3f4f6!important}.th-group--blue{background:#dbeafe!important;color:#1e40af!important}.th-group--amber{background:#fef3c7!important;color:#92400e!important}.th-group--green{background:#dcfce7!important;color:#166534!important}.data-table td{padding:10px 12px;text-align:center;border-bottom:1px solid #f0f0f0}.td-group--blue{background:#eff6ff}.td-group--amber{background:#fffbeb}.td-group--green{background:#f0fdf4}.td-group--action{background:#fff}.data-table__row:nth-child(2n):not(.data-table__row--total) .td-group--geo{background:#fafbfc}.data-table__row:nth-child(2n):not(.data-table__row--total) .td-group--blue{background:#e7f0fe}.data-table__row:nth-child(2n):not(.data-table__row--total) .td-group--amber{background:#fef6e0}.data-table__row:nth-child(2n):not(.data-table__row--total) .td-group--green{background:#e9fbef}.data-table__row:hover:not(.data-table__row--total) td{filter:brightness(.97)}.data-table__row--total td{background:#dcfce7!important;font-weight:700}.data-table__row--total{border-top:2px solid #16a34a}.badge--total{background:#16a34a;color:#fff;padding:4px 10px;border-radius:6px;font-size:11px;letter-spacing:.4px}.tehsil-cell{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:120px}.tehsil-cell__en{font-weight:600}.tehsil-cell__ur{font-size:12px;color:#6b7280;direction:rtl}.badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600}.badge--green{background:#dcfce7;color:#166534}.badge--amber{background:#fef3c7;color:#92400e}.badge--red{background:#fee2e2;color:#991b1b}.data-table__gpc{font-weight:700;color:#166534}.pipeline-bar{min-width:160px;text-align:left}.pipeline-bar__numbers{display:flex;gap:8px;font-size:11px;color:#6b7280;margin-bottom:3px}.pipeline-bar__percent{color:#16a34a;font-weight:600}.pipeline-bar__track{display:flex;height:6px;border-radius:4px;overflow:hidden;background:#f97316}.pipeline-bar__segment--survey{background:#f97316}.pipeline-bar__segment--gpc{background:#16a34a}.pipeline-bar__labels{display:flex;justify-content:space-between;font-size:9px;color:#9ca3af;margin-top:2px}.data-table__empty,.date-selector--empty{padding:30px;text-align:center;color:#6b7280;background:#fff;border-radius:12px}.row-actions{display:flex;gap:6px;justify-content:center}.row-actions__btn{border:1px solid #e5e7eb;background:#fff;border-radius:6px;width:28px;height:28px;cursor:pointer;font-size:13px;display:flex;align-items:center;justify-content:center;color:#374151}.row-actions__btn:hover{background:#f3f4f6}.row-actions__btn--danger:hover{background:#fee2e2;border-color:#fca5a5;color:#991b1b}.row-actions__district-total{font-size:11px;color:#6b7280;font-weight:600}.data-table__deleting-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#ffffff80;display:flex;align-items:center;justify-content:center;font-weight:600;color:#374151;z-index:50}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:flex;align-items:center;justify-content:center;z-index:100;padding:20px}.modal{background:#fff;border-radius:14px;width:100%;max-width:640px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 50px #00000040}.modal__header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px 12px;border-bottom:1px solid #f0f0f0}.modal__header h2{margin:0 0 4px;font-size:17px}.modal__header p{margin:0;font-size:12px;color:#6b7280}.modal__close{border:none;background:transparent;font-size:22px;line-height:1;cursor:pointer;color:#6b7280;padding:4px}.modal__body{padding:16px 24px}.kpi-strip{background:#0f172a;border-radius:10px;padding:14px 16px;margin-bottom:18px}.kpi-strip__title{color:#a7f3d0;font-size:12px;font-weight:600;margin-bottom:10px}.kpi-strip__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.kpi-tile{display:flex;flex-direction:column;gap:4px}.kpi-tile__label{font-size:11px;color:#94a3b8}.kpi-tile__value{font-size:18px;font-weight:700;color:#fff}.modal__meta-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.modal__section-title{font-size:12px;text-transform:uppercase;letter-spacing:.4px;color:#6b7280;margin:18px 0 10px}.modal__grid{display:grid;gap:12px}.modal__grid--3{grid-template-columns:repeat(3,1fr)}.modal__grid--4{grid-template-columns:repeat(4,1fr)}.edit-modal__field{display:flex;flex-direction:column;gap:6px}.edit-modal__field label{font-size:12px;font-weight:600;color:#374151}.edit-modal__field input{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:14px}.edit-modal__field input:disabled{background:#f9fafb;color:#6b7280}.modal__footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid #f0f0f0}.modal__btn{padding:10px 18px;border-radius:8px;font-weight:600;cursor:pointer;border:none;font-size:14px}.modal__btn--ghost{background:#f3f4f6;color:#374151}.modal__btn--primary{background:#16a34a;color:#fff}.modal__btn--primary:disabled{opacity:.6;cursor:not-allowed}@media (max-width: 640px){.modal__meta-row,.modal__grid--3,.modal__grid--4,.kpi-strip__grid{grid-template-columns:repeat(2,1fr)}}
