/* Miqyas 3.5.9: scoped ONLY to tasks/measurement page */
.m359-tasks{direction:rtl;display:grid;gap:15px;color:#193d5b}
.m359-tasks .page-header{margin-bottom:0}
.m359-tasks .miqyas-smart-filters{border:1px solid #dee9f2!important;background:linear-gradient(180deg,#fff,#f9fcff)!important;border-radius:20px!important;box-shadow:0 8px 24px rgba(15,50,81,.045)!important;padding:17px!important;margin:0!important}
.m359-tasks .miqyas-filter-head{padding-bottom:13px!important;margin-bottom:13px!important;border-bottom:1px solid #e8eef5}
.m359-tasks .miqyas-filter-head strong{font-size:16px;color:#143e60}
.m359-tasks .miqyas-filter-head small{font-size:12px;line-height:1.8}
.m359-tasks .miqyas-filter-grid{gap:12px!important}
.m359-tasks .miqyas-filter-field{font-size:12px;color:#46647c;min-width:0}
.m359-tasks .miqyas-filter-field select,.m359-tasks .miqyas-filter-field input{min-height:40px!important;border:1px solid #d5e3ef!important;border-radius:11px!important;background:#fff!important;color:#183c5b!important;font:inherit;padding:9px!important;width:100%;min-width:0}
.m359-tasks .miqyas-filter-field select:focus,.m359-tasks .miqyas-filter-field input:focus{outline:2px solid #b6d6f2;outline-offset:1px}
.m359-tasks .miqyas-filter-actions{border-top:1px solid #e8eef5;padding-top:12px;margin-top:12px;gap:9px}
.m359-tasks .stat-strip{border:1px solid #e2eaf3!important;background:linear-gradient(180deg,#fff,#f9fcff)!important;border-radius:19px!important;padding:17px!important;margin:0!important;box-shadow:0 7px 20px rgba(20,56,82,.035)}
.m359-tasks .stat-title{font-size:15px!important;font-weight:900!important;color:#133b5c!important;margin:0 0 13px!important}
.m359-tasks .stat-list{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
.m359-tasks .stat{border:1px solid #e5edf4!important;background:#fff!important;padding:15px 12px!important;border-radius:14px!important;box-shadow:none!important}
.m359-tasks .stat b{font-size:24px!important;line-height:1.3!important;color:#123c5f!important}
.m359-tasks .stat small{font-size:12px!important;color:#68849a!important}
.m359-tasks .stat:nth-child(2){border-top:3px solid #e59d37!important}
.m359-tasks .stat:nth-child(3){border-top:3px solid #8264d3!important}
.m359-tasks .stat:nth-child(4){border-top:3px solid #d65b70!important}
.m359-tasks .table-container{border:1px solid #dfe8f2!important;border-radius:18px!important;background:#fff;box-shadow:0 10px 28px rgba(19,55,84,.055);overflow:auto;max-height:780px;margin:0!important}
.m359-tasks .table-container table{width:100%;min-width:1090px;border-collapse:separate;border-spacing:0}
.m359-tasks .table-container thead th{position:sticky;top:0;z-index:2;background:#153a61!important;color:#fff!important;font-size:12px!important;font-weight:800!important;padding:14px 11px!important;white-space:nowrap;border-bottom:1px solid #123654}
.m359-tasks .table-container tbody td{padding:13px 11px!important;font-size:12px!important;line-height:1.85!important;border-bottom:1px solid #edf1f6!important;vertical-align:middle!important;color:#2a4863!important}
.m359-tasks .table-container tbody tr:nth-child(even){background:#fafcff}
.m359-tasks .table-container tbody tr:hover{background:#f1f8fc!important}
.m359-tasks .table-container tbody td:nth-child(2){min-width:215px;max-width:340px}
.m359-tasks .table-container tbody td:nth-child(2) strong{color:#143e61;font-size:12px;line-height:1.8}
.m359-tasks .table-container .measure-progress-select,.m359-tasks .table-container .measure-admin-select{border-radius:9px!important;border:1px solid #d7e5f0!important;padding:8px!important;min-height:36px;background:#fff;color:#244963;font-size:12px;cursor:pointer}
.m359-tasks .table-container select:focus{outline:2px solid #c2e2f2;outline-offset:1px}
.m359-tasks .table-container select:disabled{opacity:.65;cursor:not-allowed;background:#f1f5f9}
.m359-tasks .actions{display:flex!important;gap:5px;align-items:center;justify-content:center}
.m359-tasks .action-button{height:31px!important;min-width:31px!important;border-radius:9px!important;display:inline-flex;align-items:center;justify-content:center}
.m359-tasks .measure-subnote{font-size:11px;color:#a06b34;margin-top:4px;line-height:1.5}
.m359-table-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid #e0eaf2;padding:12px 16px;border-radius:15px}
.m359-table-info strong{display:block;font-size:14px;color:#183e60}.m359-table-info small{font-size:11px;color:#67839a}
.m359-pages{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.m359-pages label{font-size:11px;color:#688297;display:flex;gap:7px;align-items:center}
.m359-pages select,.m359-page-btn{border:1px solid #d9e5ef;border-radius:9px;background:#fff;padding:7px 11px;color:#20527a;font-weight:700;cursor:pointer}
.m359-page-btn:disabled{opacity:.45;cursor:not-allowed}.m359-current{font-weight:800;font-size:12px;color:#153b5d;padding:0 7px}
@media(max-width:1000px){.m359-tasks .stat-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.m359-tasks .stat-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}.m359-table-tools{align-items:flex-start}.m359-tasks .stat{padding:12px 9px!important}.m359-tasks .stat b{font-size:20px!important}}


/* 3.5.10 — strictly scoped to the task measurement page */
.m359-tasks .stat-list{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:9px!important}
.m359-tasks .stat{position:relative;min-width:0;text-align:center!important;border-top:3px solid #c5d5e5!important}
.m359-tasks .stat.m3510-complete{border-top-color:#169b78!important}
.m359-tasks .stat.m3510-underway{border-top-color:#2879c8!important}
.m359-tasks .stat.m3510-notstarted{border-top-color:#95a6b8!important}
.m359-tasks .stat.m3510-delayed{border-top-color:#eb972b!important}
.m359-tasks .stat.m3510-frozen{border-top-color:#8760d1!important}
.m359-tasks .stat.m3510-cancelled{border-top-color:#df5069!important}
.m359-tasks .table-container table{min-width:1250px}
.m359-tasks .table-container tbody td{font-size:12px!important;line-height:1.65!important}
.m359-tasks .table-container tbody td:nth-child(2){min-width:270px;max-width:420px}
.m359-tasks .table-container tbody td:nth-child(4){min-width:165px}
.m3510-period{display:flex;flex-direction:column;gap:5px;white-space:nowrap}
.m3510-period>span{display:flex;align-items:center;gap:8px;justify-content:space-between}
.m3510-period small{font-size:10px;color:#668198;background:#eef4f8;padding:2px 6px;border-radius:6px}
.m3510-period b{font-size:11px;color:#244c6c;font-weight:750}
.m3510-weight{display:inline-block;font-weight:900;font-size:13px;color:#113d60;white-space:nowrap;font-variant-numeric:tabular-nums;unicode-bidi:isolate}
.m3510-action-group{display:flex;align-items:center;gap:5px;justify-content:center;white-space:nowrap}
.m3510-action{border:none;border-radius:8px;color:#fff;padding:7px 8px;display:inline-flex;align-items:center;gap:5px;cursor:pointer;font-size:11px;font-weight:750}
.m3510-action span{font-size:10px}.m3510-view{background:#2d74c9}.m3510-edit{background:#e68c24}.m3510-delete{background:#d94c60}
.m3510-action:focus-visible{outline:2px solid #173d68;outline-offset:2px}
.m359-tasks .table-container tbody tr:has(.tag){transition:background .15s ease}
@media(max-width:1350px){.m359-tasks .stat-list{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:700px){.m359-tasks .stat-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}.m3510-action span{display:none}}

/* 3.5.11: isolated task weight and preview styles */
.m3511-numeric,.m3510-weight{font-family:Arial,Tahoma,sans-serif!important;font-variant-numeric:tabular-nums;font-feature-settings:"tnum";direction:ltr!important;unicode-bidi:isolate!important;white-space:nowrap;letter-spacing:.1px}
.m359-tasks .m3510-weight{font-size:13px;font-weight:850}
.m3511-task-preview{direction:rtl;color:#193c59;display:grid;gap:15px;font-size:13px}
.m3511-preview-head{border:1px solid #dae9f3;background:linear-gradient(110deg,#edf8fb,#f8fbff);padding:18px;border-radius:17px}
.m3511-preview-eyebrow{color:#247a91;font-size:11px;font-weight:800}
.m3511-preview-head h3{font-size:19px;line-height:1.8;margin:7px 0 5px;color:#123958}
.m3511-preview-head p{margin:0;color:#607c92;line-height:1.7}
.m3511-preview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.m3511-preview-stats>div{background:#fff;border:1px solid #dfe9f2;border-radius:13px;padding:13px;min-width:0;text-align:center;display:flex;flex-direction:column;gap:8px}
.m3511-preview-stats small{font-size:11px;color:#6e8499}.m3511-preview-stats strong{color:#163e60;font-size:19px;overflow-wrap:anywhere}
.m3511-preview-section{background:#fff;border:1px solid #e1ebf3;border-radius:15px;padding:15px}
.m3511-preview-section h4{color:#133d60;font-size:14px;margin:0 0 12px}
.m3511-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.m3511-detail{padding:12px;border:1px solid #e8eff5;border-radius:11px;background:#f9fcff;min-width:0}
.m3511-detail small{display:block;font-size:11px;color:#75899a;margin-bottom:6px}.m3511-detail strong{display:block;font-size:13px;line-height:1.75;overflow-wrap:anywhere}
.m3511-meter-label{display:flex;align-items:center;justify-content:space-between;gap:10px}.m3511-meter-label h4{margin:0}
.m3511-meter-label b{color:#147f80;font-size:17px}.m3511-preview-track{background:#e6edf4;border-radius:999px;height:11px;overflow:hidden;margin:12px 0}
.m3511-preview-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#159c83,#2d79c8)}
.m3511-help{font-size:11px;color:#7c8fa0;margin:7px 0 0;line-height:1.8}.m3511-notes{font-size:13px;line-height:1.9;color:#35536d;margin:0;white-space:pre-wrap}
@media(max-width:760px){.m3511-preview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.m3511-detail-grid{grid-template-columns:1fr}.m3511-preview-head{padding:13px}}

/* 3.5.12 – source-based safe task-weight reconciliation */
.m3512-invalid-weight{font-weight:900;color:#b42318;background:#fff0ed;border-radius:7px;padding:5px 7px;white-space:nowrap}
.m3512-repair{direction:rtl;display:grid;gap:12px;color:#1c3854}.m3512-repair p{line-height:1.8;margin:0}.m3512-repair label{font-weight:700;display:grid;gap:7px}.m3512-repair input{width:100%;padding:10px;border:1px solid #ccdbe8;border-radius:9px;font:inherit}.m3512-hint{color:#6c7e91;font-size:12px}.m3512-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.m3512-summary div{padding:11px;background:#f4f8fc;border-radius:10px;text-align:center}.m3512-summary b{display:block;font-size:20px}.m3512-summary small{display:block;font-size:11px;color:#697e92}.m3512-review{max-height:290px;overflow:auto}.m3512-review table{width:100%;border-collapse:collapse}.m3512-review th,.m3512-review td{border-bottom:1px solid #e4ebf2;padding:9px;text-align:right}.m3512-review th{position:sticky;top:0;background:#f1f6fb}.m3512-review [dir=ltr]{text-align:left;font-variant-numeric:tabular-nums}@media(max-width:650px){.m3512-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 3.5.13 automatic task weights */
.m3513-auto-note{font-size:12px;color:#327186;background:#eaf7fb;border:1px solid #d2eaf2;border-radius:9px;padding:9px 11px;margin-top:6px;line-height:1.8}

/* 3.5.14 - Empty task notes state within task preview only. */
.m3511-notes.m3514-empty-notes{color:#73869a;font-style:normal;background:#f8fafc;padding:11px 13px;border:1px dashed #dbe6ef;border-radius:10px}

/* 3.5.15 — readable task detail, isolated from dashboard */
.m3511-task-preview{font-size:15px;line-height:1.9;color:#1d3752;gap:16px}
.m3511-task-preview .m3511-preview-head{padding:20px 22px;border-radius:18px}
.m3511-task-preview .m3511-preview-head h3{font-size:23px;line-height:1.65;font-weight:850}
.m3511-task-preview .m3511-preview-head p{font-size:14px}
.m3511-task-preview .m3511-preview-section{padding:19px 20px;border-radius:16px}
.m3511-task-preview .m3511-preview-section h4{font-size:17px;font-weight:850;color:#123b60;margin-bottom:14px}
.m3511-task-preview .m3511-detail small{font-size:12px;line-height:1.65}
.m3511-task-preview .m3511-detail strong{font-size:15px;line-height:1.9;overflow-wrap:anywhere}
.m3511-task-preview .m3511-preview-stats strong{font-size:20px}
.m3511-task-preview .m3511-preview-stats small{font-size:12px}
.m3511-task-preview .m3515-context{background:#f8fcff}
.m3511-task-preview .m3515-notes-block{background:#fff}
.m3511-task-preview .m3515-notes-block p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:2}
.m3511-task-preview .m3511-help{font-size:12px;line-height:1.8}
@media(max-width:650px){.m3511-task-preview .m3511-preview-head h3{font-size:19px}.m3511-task-preview .m3511-preview-section{padding:14px}}
