@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: bold;
	src:url('font/IRANSansWeb_Light.eot');
	src: url('font/IRANSansWeb_Lightd41d.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('font/IRANSansWeb_Light.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('font/IRANSansWeb_Light.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('font/IRANSansWeb_Light.ttf') format('truetype');
}
body {
    font-weight: normal;
    font-style: normal;
    font-family:IRANSans !important;

}
@font-face{font-family:VazirFallback;src:local(Tahoma)}
body{font-family:VazirFallback,Tahoma,Arial,sans-serif;background:#f5f7fb;color:#233}.auth-card,.form-card{max-width:760px}.card{border:0;border-radius:1rem}.stat .card-body,.report-kpi .card-body{display:flex;align-items:center;justify-content:space-between;gap:1rem}.stat strong{font-size:2rem;color:#0d6efd}.report-kpi strong{font-size:1.35rem;color:#0d6efd}.money-text{font-size:1.05rem!important;white-space:nowrap}.project-hero{background:linear-gradient(135deg,#0d6efd,#083f88);color:white;border-radius:1.25rem;padding:2rem;display:flex;gap:2rem;align-items:center;justify-content:space-between}.hero-progress-wrap{width:min(420px,45%)}.hero-progress{height:22px;background:rgba(255,255,255,.25);border-radius:999px;overflow:hidden}.chart-card{overflow:hidden}.mini-chart{height:260px;max-width:360px;margin:auto}.report-chart{height:300px;max-width:100%;margin:auto}#calendar{background:white;border-radius:1rem;padding:1rem}#drawCanvas{width:100%;height:600px;background:white;border:1px solid #ddd;border-radius:.75rem;touch-action:none}.table{background:white;border-radius:1rem;overflow:hidden}.comment-card{border-right:4px solid #0d6efd}.comment-img{max-width:260px;max-height:220px;object-fit:cover;border-radius:.75rem;border:1px solid #e6e6e6}.note-editor-card textarea{font-family:Tahoma,Arial,sans-serif;line-height:1.9}.note-toolbar{display:flex;gap:.5rem;flex-wrap:wrap}.note-card{transition:.15s ease}.note-card:hover{transform:translateY(-2px)}.note-body{line-height:1.9;max-height:360px;overflow:auto}.note-inline-img{max-height:280px;margin:.5rem 0;border:1px solid #eee}.dropdown-menu{text-align:right}@media (max-width:768px){.project-hero{display:block}.hero-progress-wrap{width:100%;margin-top:1rem}.mini-chart{height:220px}.report-chart{height:240px}}
/* v5 professional project management */
.pm-page-head h3{font-weight:800}.pm-filter-bar{border:1px solid #e7ecf3}.section-title{font-weight:800;color:#0b3d79;border-right:4px solid #0d6efd;padding-right:.6rem;margin-bottom:1rem}.pm-side-card{top:88px}.progress.slim{height:8px;border-radius:999px}.wbs-board{border:1px solid #e6edf5;background:#fff}.wbs-header{grid-template-columns:2.2fr 1fr 1.35fr 1fr 1fr 1fr .9fr 1fr;gap:.75rem;padding:.85rem 1rem;background:#eef5ff;border-radius:.75rem;font-weight:800;color:#17426f;margin-bottom:.75rem}.wbs-list{list-style:none;margin:0;padding:0;min-height:18px}.wbs-list .wbs-list{margin-right:2.2rem;border-right:2px dashed #d9e4f2;padding-right:.9rem}.wbs-item{margin:.45rem 0}.wbs-row{display:grid;grid-template-columns:2.2fr 1fr 1.35fr 1fr 1fr 1fr .9fr 1fr;gap:.75rem;align-items:center;border:1px solid #e8eef5;background:#fff;border-radius:.9rem;padding:.75rem;box-shadow:0 3px 14px rgba(21,45,78,.04)}.wbs-row:hover{border-color:#b9d7ff;box-shadow:0 8px 24px rgba(13,110,253,.08)}.wbs-title{display:flex;align-items:center;gap:.65rem;min-width:0}.drag-handle{cursor:grab;color:#6885a8;font-size:1.1rem;user-select:none}.wbs-code{background:#e9f2ff;color:#0d6efd;border-radius:.5rem;padding:.15rem .45rem;font-weight:800;min-width:42px;text-align:center}.wbs-actions{display:flex;gap:.25rem;flex-wrap:wrap}.sortable-ghost>.wbs-row,.sortable-ghost.kanban-card{opacity:.45;background:#fff8dd}.sortable-chosen>.wbs-row,.sortable-chosen.kanban-card{border-color:#0d6efd}.kanban-board{display:grid;grid-template-columns:repeat(6,minmax(250px,1fr));gap:1rem;overflow-x:auto;padding-bottom:.75rem}.kanban-col{background:#eef3f9;border-radius:1rem;min-height:60vh;padding:.75rem;min-width:260px}.kanban-col-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;color:#173a61}.kanban-list{min-height:40px}.kanban-card{background:#fff;border-radius:.85rem;padding:.8rem;margin-bottom:.7rem;box-shadow:0 5px 18px rgba(20,40,80,.08);border:1px solid #e5ecf5}.kanban-card:hover{border-color:#b7d2ff}.gantt-container{direction:ltr;overflow:auto}.bar-label{font-family:Tahoma,Arial!important}#pmGantt svg{min-width:900px}.pm-task-form .card{border:1px solid #e7edf5}.money-input{text-align:left;direction:ltr}@media(max-width:992px){.wbs-header{display:none!important}.wbs-row{grid-template-columns:1fr}.kanban-board{grid-template-columns:repeat(6,260px)}.wbs-list .wbs-list{margin-right:1rem}.pm-side-card{position:static!important}}
/* v6 enterprise features */
.nav-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover}.profile-cover{height:120px;background:linear-gradient(135deg,#0d6efd,#7db5ff)}.profile-avatar{width:96px;height:96px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:0 8px 24px rgba(0,0,0,.18);margin-top:-56px}.profile-card{border-radius:1.25rem}.thread-comment{margin:.75rem 0}.thread-comment.level-1{margin-right:2rem}.thread-comment.level-2{margin-right:4rem}.thread-comment.level-3,.thread-comment.level-4{margin-right:6rem}.thread-bubble{padding:1rem;border-radius:1rem;box-shadow:0 4px 18px rgba(15,40,90,.06);border:1px solid #e9eef6}.thread-comment.mine>.thread-bubble{background:#e8f2ff;border-color:#b7d6ff}.thread-comment.other>.thread-bubble{background:#f2f4f7}.comment-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover}.ticket-card{border:1px solid #e8eef5;color:#24364a}.ticket-card:hover{border-color:#0d6efd;transform:translateY(-2px);box-shadow:0 10px 28px rgba(13,110,253,.12)}.ticket-message{display:flex;gap:.7rem;margin:1rem 0}.ticket-message>img,.mini-comment>img{width:42px;height:42px;border-radius:50%;object-fit:cover}.ticket-message-body{padding:1rem;border-radius:1rem;max-width:82%;box-shadow:0 4px 18px rgba(20,40,80,.06)}.ticket-message.mine{justify-content:flex-start}.ticket-message.mine .ticket-message-body,.mini-comment.mine{background:#e8f2ff;border:1px solid #b7d6ff}.ticket-message.other .ticket-message-body,.mini-comment.other{background:#f2f4f7;border:1px solid #e2e7ee}.task-modal-head{background:linear-gradient(135deg,#0d6efd,#164b91);color:#fff}.task-detail .card{border:1px solid #e8eef5}.progress-lg{height:18px;border-radius:999px}.todo-item{display:flex;gap:.5rem;align-items:center;padding:.45rem;border-bottom:1px solid #edf1f5}.mini-comment{display:flex;gap:.6rem;border-radius:1rem;padding:.75rem;margin:.6rem 0}.task-work-bars .progress{height:12px}.task-open{cursor:pointer}.task-open:hover{outline:2px solid rgba(13,110,253,.2)}.gantt-container .bar-wrapper{cursor:pointer}select[multiple]{min-height:120px}

.table thead th{text-align:center!important;vertical-align:middle}.map-box{height:420px;border:1px solid #dee2e6;border-radius:16px;overflow:hidden}.mini-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover}.ltr{direction:ltr;text-align:left}.resource-chip{display:inline-flex;gap:6px;align-items:center;border:1px solid #ddd;border-radius:999px;padding:4px 10px;margin:2px;background:#f8f9fa}
.task-modal-head .task-title-field{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.35);color:#fff;font-weight:800}.task-modal-head .task-title-field:focus{background:#fff;color:#172033}.task-modal-head .task-title-field::placeholder{color:rgba(255,255,255,.7)}

/* v10 global alignment and offline polish */
.table th,.table td{ text-align:center!important; vertical-align:middle!important; }
.project-kanban-board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:1rem}.project-lane{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1rem;min-height:220px}.project-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:.8rem;margin-bottom:.7rem;box-shadow:0 4px 14px rgba(15,23,42,.06);cursor:grab}.date-label{display:inline-block;background:#eef2ff;color:#3730a3;border-radius:999px;padding:.25rem .6rem;font-size:.82rem}.actual-cost-box{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:10px;padding:.6rem}.daily-work-table td,.daily-work-table th{text-align:center!important}.readonly-task-lock{filter:grayscale(.1);opacity:.95}.file-cat-badge{background:#e0f2fe;color:#075985;border-radius:999px;padding:.2rem .55rem}.notification-code{direction:ltr;text-align:left;font-family:monospace}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.5rem}.permission-grid label{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:.5rem}
@media(max-width:900px){.project-kanban-board{grid-template-columns:1fr}}



/* v12.1 dashboard reminders */
.reminder-card{display:flex;gap:.75rem;align-items:flex-start;border:1px solid rgba(13,110,253,.15);background:linear-gradient(135deg,#ffffff,#f4f8ff);border-radius:1rem;padding:.85rem;box-shadow:0 6px 18px rgba(0,0,0,.04)}
.reminder-icon{width:42px;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#eef5ff;font-size:1.35rem;flex:0 0 auto}.dashboard-reminders .date-label{font-weight:600;color:#0d6efd}.wbs-actions{display:flex;gap:.35rem;flex-wrap:wrap}.table td,.table th{text-align:center;vertical-align:middle}

/* v12.3 robust drag/drop and calendar */
.wbs-list{min-height:34px;padding:8px 24px 8px 8px;border-radius:10px;transition:background .15s,border .15s}
.wbs-item > .wbs-list:empty::before{content:'برای زیرمجموعه کردن، وظیفه را اینجا رها کنید';display:block;color:#8a8f98;font-size:12px;border:1px dashed #cfd6e4;border-radius:8px;padding:8px;text-align:center;background:#fafbff}
.wbs-list.drag-over,.project-list.drag-over{background:#eef6ff;border:1px dashed #0d6efd}
.wbs-item.sortable-dragging,.project-card.sortable-dragging{opacity:.45}
.project-list{min-height:160px;border:1px dashed #e3e8f0;border-radius:12px;padding:10px;background:#fafbff}
.project-card{cursor:grab}.project-card:active{cursor:grabbing}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;overflow:auto}
.calendar-head{font-weight:700;text-align:center;padding:10px;background:#f3f6fb;border-radius:10px}
.calendar-cell{min-height:125px;border:1px solid #e5e9f2;border-radius:10px;padding:8px;background:#fff;min-width:150px}
.calendar-cell.muted{background:#f8f9fb}
.calendar-date{font-weight:700;color:#495057;margin-bottom:6px;font-size:12px}
.calendar-task{display:block;text-decoration:none;background:#eef2ff;border-right:4px solid #0d6efd;border-radius:6px;padding:5px;margin:4px 0;color:#1f2937;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-task.status-Done{border-right-color:#198754;background:#eefbf3}.calendar-task.status-Pre_Done{border-right-color:#ffc107;background:#fff8e5}.calendar-task.status-Reject{border-right-color:#dc3545;background:#fff0f0}
@media(max-width:768px){.calendar-grid{grid-template-columns:repeat(1,1fr)}.calendar-head{display:none}.calendar-cell{min-width:100%;min-height:80px}}

/* offline-map-grid-v125 */
#attendanceMap.map-box,.map-box{min-height:420px;background-color:#eef3f8;background-image:linear-gradient(rgba(13,110,253,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(13,110,253,.08) 1px,transparent 1px);background-size:32px 32px;border:1px solid #d7e2ee;border-radius:12px;}
.drag-over{outline:2px dashed #0d6efd; outline-offset:3px;}

/* v13 task date colors, segmented controls, daily board, PWA polish */
.segmented-field{display:flex;flex-wrap:wrap;gap:.35rem}
.task-chip{border:1px solid #dee2e6;background:#fff}
.task-chip.active{box-shadow:0 0 0 .15rem rgba(13,110,253,.18);border-color:#0d6efd;font-weight:700}
.task-chip-critical,.daily-critical{background:#f8d7da!important}.task-chip-urgent,.daily-urgent{background:#ffe5d0!important}.task-chip-high,.daily-high{background:#fff3cd!important}.task-chip-normal,.daily-normal{background:#e7f1ff!important}.task-chip-low,.daily-low{background:#f8f9fa!important}.task-chip-in_progress{background:#d1e7dd!important}.task-chip-active{background:#e7f1ff!important}.task-chip-done{background:#d1e7dd!important}.task-chip-reject,.task-chip-faild{background:#f8d7da!important}.task-chip-pre_done{background:#fff3cd!important}
.daily-board .kanban-card{cursor:pointer}.daily-board .daily-col{min-width:260px}.form-control-color{max-width:62px;padding:.25rem}
@media (display-mode: standalone){body{overscroll-behavior-y:contain}.navbar{padding-top:calc(.5rem + env(safe-area-inset-top))}}

/* v14 final fixes: my tasks label, daily board full-width, ajax state */
.daily-board-4{grid-template-columns:repeat(4,minmax(0,1fr))!important;overflow-x:visible!important;width:100%;}
.daily-board-4 .daily-col{min-width:0!important;min-height:42vh;}
.task-field.is-saving{background-image:linear-gradient(90deg,rgba(13,110,253,.08),rgba(13,110,253,.02));}
.segmented-field .task-chip.active{transform:translateY(-1px);}
@media(max-width:992px){.daily-board-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:576px){.daily-board-4{grid-template-columns:1fr!important}}

/* v16 polish */
.resource-form-card,.resource-card{border:0;border-radius:18px}.resource-card{overflow:hidden}.resource-card .card-body{background:linear-gradient(180deg,#fff,#f8fbff)}.resource-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.resource-stats div{background:#fff;border:1px solid #eef2f7;border-radius:14px;padding:10px;text-align:center}.resource-stats span{display:block;color:#6c757d;font-size:.8rem}.resource-stats b{display:block;margin-top:4px}.ck-editor__editable{min-height:300px;direction:rtl}.task-field.is-saving{opacity:.7}.kanban-board,.daily-board{touch-action:manipulation}


/* v21 Leaflet marker without external image dependency */
.pm-location-div-icon{background:transparent;border:0;}
.pm-location-pin{position:relative;display:flex;align-items:center;justify-content:center;width:34px;height:42px;filter:drop-shadow(0 5px 8px rgba(0,0,0,.25));}
.pm-location-pin i{font-size:36px;color:#dc3545;line-height:1;}
.pm-location-pin b{position:absolute;top:6px;left:50%;transform:translateX(-50%);min-width:16px;height:16px;padding:0 3px;border-radius:999px;background:#fff;color:#0d6efd;font-size:10px;line-height:16px;text-align:center;font-weight:800;box-shadow:0 1px 3px rgba(0,0,0,.25);}

/* v22 daily Eisenhower/archive, reminders and WBS precision */
.daily-col-title{cursor:text;border-bottom:1px dashed rgba(13,110,253,.45);padding-bottom:2px}.daily-col-title:hover{color:#0d6efd}.daily-archive-toggle{white-space:nowrap}.daily-archive-box{background:rgba(255,255,255,.55);border:1px dashed #cfd9e8;border-radius:14px;padding:.55rem}.daily-archive-head{width:100%;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;font-weight:800;color:#44566c;padding:.15rem .25rem}.daily-archive-list{display:none;margin-top:.55rem}.daily-archive-box.open .daily-archive-list{display:block}.daily-card-archived{opacity:.86;border-style:dashed}.daily-card-archived:hover{opacity:1}.due-reminders-card{background:linear-gradient(135deg,#ffffff,#f5f9ff)}.due-reminder-item{display:flex;gap:.7rem;align-items:flex-start;background:#fff;border:1px solid #e6eef8;border-radius:16px;padding:.8rem;box-shadow:0 8px 24px rgba(31,66,135,.06)}.small-clock{width:38px!important;height:38px!important;font-size:1.25rem!important}.reminder-form-card{border-radius:22px;background:linear-gradient(135deg,#ffffff,#f7fbff);border:1px solid #eaf1fb!important}.sms-toggle{display:flex;align-items:center;justify-content:center;gap:.55rem;min-height:48px;border:1px solid #d9e6f8;border-radius:14px;background:#fff;cursor:pointer;font-weight:700}.sms-toggle input{accent-color:#198754}.reminder-pretty-card{position:relative;overflow:hidden;border:1px solid #e3edf8;border-radius:22px;padding:1rem;background:linear-gradient(145deg,#ffffff 0%,#f7fbff 100%);box-shadow:0 12px 30px rgba(13,61,114,.08);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.reminder-pretty-card:before{content:'';position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,#0d6efd,#20c997,#ffc107)}.reminder-pretty-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(13,61,114,.12);border-color:#bfd7ff}.reminder-pretty-card.is-done{opacity:.72;filter:grayscale(.25)}.reminder-clock{width:48px;height:48px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eaf3ff,#fff);box-shadow:inset 0 0 0 1px #d9eaff;font-size:1.55rem;flex:0 0 auto}.reminder-title{font-weight:900;color:#173a61;word-break:break-word}.reminder-desc{color:#607086;line-height:1.85;font-size:.92rem}.reminder-meta{display:flex;flex-wrap:wrap;gap:.45rem}.reminder-meta span{background:#f4f7fb;border:1px solid #e3e9f2;color:#475569;border-radius:999px;padding:.25rem .6rem;font-size:.82rem}.wbs-row.drag-over-row{outline:2px solid rgba(13,110,253,.55);outline-offset:3px;border-color:#0d6efd!important}.wbs-row.drag-over-row:before{content:'جابجایی هم‌سطح';display:inline-flex;align-items:center;justify-content:center;background:#0d6efd;color:#fff;border-radius:999px;font-size:11px;font-weight:800;padding:2px 8px;position:absolute;transform:translateY(-28px)}.wbs-row{position:relative}.daily-done-wrap.opacity-50{pointer-events:none}
/* v23 - sortable todo items inside task detail modal */
.todo-drag-handle{cursor:grab;user-select:none;color:#8a98aa;background:#f4f7fb;border:1px solid #e3e9f2;border-radius:.55rem;padding:.18rem .45rem;line-height:1.2;align-self:stretch;display:flex;align-items:center}
.todo-drag-handle:active{cursor:grabbing}.todo-sort-ghost{opacity:.55;background:#eef5ff}.todo-item.sortable-chosen{background:#f8fbff}
/* v24: WBS quick up/down controls */
.wbs-move-controls{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:.08rem;flex:0 0 auto}
.wbs-move-controls .drag-handle{font-size:1rem;line-height:1;padding:.05rem .15rem}
.wbs-move-btn{border:0;background:#eef5ff;color:#0d6efd;width:22px;height:18px;border-radius:7px;font-size:.65rem;line-height:1;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;transition:.15s}
.wbs-move-btn:hover{background:#0d6efd;color:#fff}
.wbs-move-btn:active{transform:scale(.94)}

/* v29 project settings full-width */
.project-settings-card{max-width:none!important;width:100%!important}

/* v38: daily task timer and project chart dashboard */
.daily-timer-row{display:flex;align-items:center;gap:.6rem;border:1px solid #dbe7f5;background:linear-gradient(135deg,#ffffff,#f7fbff);border-radius:16px;padding:.65rem;box-shadow:0 8px 22px rgba(13,61,114,.06)}
.daily-timer-info{display:flex;align-items:center;gap:.55rem;min-width:0;flex:1;white-space:nowrap}.daily-timer-info span{color:#64748b;font-size:.86rem}.daily-timer-info strong{font-size:1.15rem;color:#0f3b66;direction:ltr}.daily-timer-info small{color:#6c757d;overflow:hidden;text-overflow:ellipsis}.daily-timer-row.is-running{border-color:#a7f3d0;background:linear-gradient(135deg,#f0fdf4,#ffffff)}.daily-timer-row.is-running .daily-timer-total{color:#157347}.daily-timer-row.is-disabled{opacity:.82}.daily-timer-row .btn{min-width:72px}
.project-show-dashboard .card{border:1px solid #e6edf7;border-radius:20px}.project-hero-v38{position:relative;overflow:hidden;background:linear-gradient(135deg,#0d6efd,#173a61);color:#fff;border-radius:24px;padding:1.35rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.project-hero-v38:before{content:'';position:absolute;inset:-60% auto auto -8%;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.13)}.project-kicker{display:inline-flex;border:1px solid rgba(255,255,255,.32);border-radius:999px;padding:.22rem .65rem;font-size:.82rem;margin-bottom:.6rem;background:rgba(255,255,255,.12)}.hero-progress-card{min-width:300px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:18px;padding:.9rem;backdrop-filter:blur(6px)}.project-stat-card{transition:transform .15s ease,box-shadow .15s ease}.project-stat-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(15,23,42,.10)!important}.project-stat-card .card-body{display:flex;flex-direction:column;gap:.35rem}.project-stat-card i{font-size:1.15rem;color:#0d6efd}.project-stat-card span{font-size:.83rem;color:#64748b}.project-stat-card strong{font-size:1.55rem;color:#15253b}.project-chart-card,.project-mini-chart,.project-insight-card{background:linear-gradient(180deg,#fff,#f8fbff)}.project-main-chart{height:300px}.project-mini-chart .mini-chart{height:190px}.project-chart-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.project-chart-legend span,.project-insight-list div{background:#fff;border:1px solid #edf2f7;border-radius:14px;padding:.55rem .65rem;color:#5b6778}.project-chart-legend b{color:#0f3b66;margin-left:.25rem}.project-insight-list{display:grid;gap:.6rem}.project-insight-list div{display:flex;align-items:center;justify-content:space-between}.project-insight-list strong{color:#0f3b66;font-size:1.05rem}@media(max-width:992px){.project-hero-v38{display:block}.hero-progress-card{min-width:0;margin-top:1rem}.project-main-chart{height:260px}}@media(max-width:576px){.daily-timer-row{align-items:stretch;flex-wrap:wrap}.daily-timer-info{flex-basis:100%;white-space:normal}.daily-timer-row .btn{flex:1}.project-chart-legend{grid-template-columns:1fr}}

/* v39 reporting, WBS and settings refinements */
.wbs-header,.wbs-row{grid-template-columns:2.45fr .9fr 1.2fr 1fr 1fr 1fr .9fr 1fr}
.wbs-item{position:relative}.wbs-collapse-toggle{position:absolute;right:-18px;top:14px;width:18px;height:18px;border:0;border-radius:50%;background:#ede7ff;color:#6f42c1;font-size:12px;font-weight:900;line-height:18px;display:flex;align-items:center;justify-content:center;padding:0;z-index:3}.wbs-collapse-toggle:hover{background:#6f42c1;color:#fff}.wbs-item.is-collapsed>.wbs-row{box-shadow:0 0 0 2px rgba(111,66,193,.12)}.wbs-code-wrap{display:inline-flex;flex-direction:column;align-items:center;gap:.18rem}.wbs-priority-mini{font-size:.65rem;font-weight:800;border-radius:999px;background:#fff;border:1px solid #d8e1ef;color:#475569;padding:.05rem .35rem;white-space:nowrap}.task-ai-breakdown-btn{background:#6f42c1;color:#fff;border-color:#6f42c1}.task-ai-breakdown-btn:hover{background:#5a32a3;color:#fff;border-color:#5a32a3}.task-status-setting-row{display:flex;align-items:center;gap:.6rem;border:1px solid #e5edf7;border-radius:14px;padding:.75rem .85rem;margin-bottom:.55rem;background:#fff;font-weight:700}.task-status-setting-row input{width:1.1rem;height:1.1rem}.worklog-filter-card{border:1px solid #e7edf7}.worklog-kpis .card{border:1px solid #e6edf7;border-radius:18px}.worklog-kpis .card-body{display:flex;flex-direction:column;gap:.25rem}.worklog-kpis span{color:#64748b;font-size:.9rem}.worklog-kpis strong{font-size:1.85rem;color:#12365f}.worklog-kpis small{color:#8492a6}.worklog-chart{height:310px}.worklog-chart-wide{height:250px}.worklog-person-row{display:grid;grid-template-columns:1fr auto;gap:.25rem .75rem;align-items:center;border-bottom:1px solid #eef2f7;padding:.65rem 0}.worklog-person-row small{color:#64748b}.worklog-person-row strong{grid-row:1/3;grid-column:2;color:#0f3b66}.project-hero-metrics{display:flex;flex-wrap:wrap;gap:.5rem}.project-hero-metrics span{display:inline-flex;gap:.3rem;align-items:center;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:.35rem .7rem}.project-hero-metrics b{font-weight:900}.project-stat-card{height:100%}@media(min-width:1200px){.project-show-dashboard>.row.g-3.mb-4{flex-wrap:nowrap}.project-show-dashboard>.row.g-3.mb-4>.col-xl{flex:1 1 0;max-width:none}}@media(max-width:992px){.wbs-header,.wbs-row{grid-template-columns:1fr}.wbs-collapse-toggle{right:-8px;top:8px}.worklog-chart,.worklog-chart-wide{height:260px}}

/* v39.1 - keep the New Task modal usable when the form is long */
#taskCreateModal .modal-dialog{max-width:min(1140px,calc(100vw - 1rem));margin:.5rem auto}
#taskCreateModal .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}
#taskCreateModal form.pm-task-form{display:flex;flex-direction:column;max-height:calc(100vh - 1rem);min-height:0}
#taskCreateModal .modal-body{overflow-y:auto;min-height:0;padding-bottom:1rem}
#taskCreateModal .modal-footer{position:sticky;bottom:0;z-index:5;background:#fff;border-top:1px solid #dee2e6;box-shadow:0 -8px 22px rgba(15,23,42,.08)}
@media (max-width:767.98px){#taskCreateModal .modal-dialog{max-width:100%;height:100%;margin:0}#taskCreateModal .modal-content,#taskCreateModal form.pm-task-form{height:100vh;max-height:100vh;border-radius:0}#taskCreateModal .modal-body{padding-bottom:5rem}#taskCreateModal .modal-footer{padding-bottom:calc(.75rem + env(safe-area-inset-bottom))}}

/* v42: project-separated worklog trend and task-modal threaded discussion */
.worklog-project-badges{display:flex;flex-wrap:wrap;gap:.45rem;margin:.75rem 0 1rem}.worklog-project-badge{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .65rem;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#334155;font-size:.82rem;font-weight:700}.worklog-project-badge i{display:inline-block;width:.72rem;height:.72rem;border-radius:50%;box-shadow:0 0 0 2px rgba(15,23,42,.06)}
.task-modal-thread-list{overflow:hidden}.task-modal-thread-comment{margin:.75rem 0}.task-modal-thread-comment.level-1{margin-right:1.5rem}.task-modal-thread-comment.level-2{margin-right:3rem}.task-modal-thread-comment.level-3{margin-right:4.5rem}.task-modal-thread-comment.level-4{margin-right:6rem}.task-modal-comment-row{display:flex;align-items:flex-start;gap:.65rem}.task-modal-comment-row>.comment-avatar{flex:0 0 38px}.task-modal-comment-bubble{min-width:0;flex:1;padding:.8rem .9rem;border:1px solid #e2e8f0;border-radius:1rem;box-shadow:0 3px 14px rgba(15,40,90,.05);background:#f8fafc}.task-modal-thread-comment.mine>.task-modal-comment-row>.task-modal-comment-bubble{background:#e8f2ff;border-color:#b7d6ff}.task-comment-reply-ref{border-right:3px solid #6f42c1;background:rgba(111,66,193,.07);border-radius:.55rem;padding:.45rem .6rem;margin-bottom:.65rem;color:#475569}.task-comment-reply-ref small{display:block;color:#6f42c1;font-weight:800;margin-bottom:.15rem}.task-comment-reply-ref div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-modal-comment-text{overflow-wrap:anywhere}.task-comment-attachment-img{display:block;max-width:220px;max-height:180px;object-fit:cover;border-radius:.75rem;border:1px solid #dbe4f0}.task-inline-reply-target{display:flex;justify-content:space-between;align-items:center;gap:.75rem;border-right:3px solid #6f42c1;background:#f4f0ff;border-radius:.65rem;padding:.55rem .7rem;margin-bottom:.6rem}.task-inline-reply-preview{max-width:520px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#64748b;font-size:.82rem}
@media(max-width:576px){.task-modal-thread-comment.level-1{margin-right:.75rem}.task-modal-thread-comment.level-2,.task-modal-thread-comment.level-3,.task-modal-thread-comment.level-4{margin-right:1.5rem}.task-modal-comment-row>.comment-avatar{width:32px;height:32px;flex-basis:32px}.task-comment-attachment-img{max-width:100%}}

.task-cost-row{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;padding:.7rem 0;border-bottom:1px solid #edf1f6}.task-cost-row:last-child{border-bottom:0}.task-cost-total{color:#198754;font-size:1.05rem}.task-cost-form{background:#f8fafc;border:1px solid #e4ebf4;border-radius:12px;padding:.75rem}

/* PATCH v45: وضعیت تاشونده کارهای روزمره، جدول‌های شخصی تکرارشونده و Todo چندخطی/AJAX. */
.daily-section-toggle{width:38px;height:34px;display:inline-flex;align-items:center;justify-content:center;font-size:1.25rem;font-weight:900;line-height:1}.daily-section-card[data-collapsed="1"]{background:linear-gradient(135deg,#fff,#f8fbff)}
.recurring-daily-section{border:1px solid #e3edf8}.recurring-table-wrapper{border:1px solid #dfe8f3;border-radius:16px;padding:1rem;margin-bottom:1rem;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 8px 24px rgba(31,66,135,.05)}.recurring-table-wrapper:last-child{margin-bottom:0}.recurring-table-head .recurring-table-title{min-width:220px}.recurring-table-scroll{border-radius:12px;border:1px solid #e5ebf2}.recurring-table-grid{width:max-content;min-width:100%;background:#fff}.recurring-table-grid td{vertical-align:middle;min-width:92px}.recurring-table-grid .recurring-text-cell{min-width:150px;padding:.35rem}.recurring-table-grid .recurring-check-cell{min-width:64px;padding:.55rem}.recurring-table-grid .recurring-cell-check{width:1.25rem;height:1.25rem;cursor:pointer}.recurring-cell-text{min-width:140px;resize:vertical;overflow:hidden;line-height:1.7}.recurring-col-controls-row td{background:#f4f8fd;text-align:center;white-space:nowrap}.recurring-col-controls,.recurring-row-controls{white-space:nowrap}.recurring-row-controls{background:#f4f8fd;min-width:84px!important;text-align:center}.recurring-row-controls-end{background:#f4f8fd;min-width:84px!important}.recurring-resize{width:30px;height:30px;padding:0;font-weight:900}.recurring-cell-text.is-saving{opacity:.65}.recurring-save-state{min-height:20px}
.task-todo-card .todo-list{border:1px solid #e8eef5;border-radius:14px;overflow:hidden}.todo-item{align-items:flex-start;padding:.75rem;background:#fff}.todo-item:last-child{border-bottom:0}.todo-item.is-saving{background:#fbfdff}.todo-drag-handle{cursor:grab;flex:0 0 auto;user-select:none;touch-action:none}.todo-drag-handle:active{cursor:grabbing}.todo-text-shell{min-width:0}.todo-text-view{white-space:pre-wrap;word-break:break-word;line-height:1.9;background:#f8fafc;border:1px solid #edf1f5;border-radius:10px;padding:.55rem .7rem}.todo-text-short,.todo-text-full{white-space:pre-wrap;word-break:break-word}.todo-text-editor{min-height:96px;resize:vertical;line-height:1.9}.todo-save-state{min-height:20px;margin-top:.2rem}.todo-item-actions{display:flex;gap:.35rem;flex-wrap:wrap}.todo-new-box{background:#f8fbff;border:1px dashed #cfe0f4;border-radius:14px;padding:.75rem}
@media(max-width:768px){.todo-item{flex-wrap:wrap}.todo-text-shell{order:3;flex-basis:calc(100% - 42px)}.todo-item-actions{margin-inline-start:auto}.recurring-table-head .recurring-table-title{min-width:160px}}

/* PATCH v46: فقط ظاهر حرفه‌ای Todo List و بخش جدول‌های تکرارشونده روزانه. */
.recurring-section-toggle{width:38px;height:34px;display:inline-flex;align-items:center;justify-content:center;font-size:1.25rem;font-weight:900;line-height:1}
.recurring-daily-section[data-collapsed="1"]{background:linear-gradient(135deg,#fff,#f8fbff)}
.recurring-text-column-control{background:#edf5ff!important}
.recurring-fixed-text-column{background:#fbfdff}
.recurring-fixed-text-column .recurring-cell-text{font-weight:600}

.task-todo-card{border:1px solid #e4ebf4!important;border-radius:18px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 10px 28px rgba(30,64,120,.06)}
.todo-card-heading{padding:.1rem .15rem}
.todo-drag-hint{display:inline-flex;align-items:center;min-height:30px;padding:.25rem .65rem;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.76rem;font-weight:700;white-space:nowrap}
.task-todo-card .todo-list{display:grid;gap:.65rem;border:0;border-radius:0;overflow:visible;background:transparent}
.task-todo-card .todo-item{display:grid;grid-template-columns:34px 26px minmax(0,1fr) auto;gap:.65rem;align-items:start;padding:.78rem;border:1px solid #e5ebf3;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(15,40,80,.045);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.task-todo-card .todo-item:hover{border-color:#cddbec;box-shadow:0 8px 22px rgba(15,40,80,.08);transform:translateY(-1px)}
.task-todo-card .todo-item.is-saving{background:#fbfdff}
.task-todo-card .todo-item.is-done{background:#f8fcfa;border-color:#d8ece1}
.task-todo-card .todo-item.is-done .todo-text-short,.task-todo-card .todo-item.is-done .todo-text-full{color:#718077;text-decoration:line-through;text-decoration-thickness:1px}
.task-todo-card .todo-drag-handle{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:9px;background:#f1f5f9;color:#64748b;cursor:grab;user-select:none;touch-action:none;transition:background .18s ease,color .18s ease}
.task-todo-card .todo-drag-handle:hover{background:#e5edf7;color:#334155}
.task-todo-card .todo-drag-handle:active{cursor:grabbing}
.task-todo-card .todo-drag-handle svg{width:18px;height:18px;fill:currentColor}
.todo-check-wrap{display:flex;align-items:flex-start;justify-content:center;padding-top:.38rem;cursor:pointer}
.todo-check-wrap .todo-done{width:1.18rem;height:1.18rem;margin:0;cursor:pointer;box-shadow:none}
.task-todo-card .todo-text-shell{min-width:0}
.task-todo-card .todo-text-view{padding:.2rem .1rem;background:transparent;border:0;border-radius:0;line-height:1.95;white-space:pre-wrap;word-break:break-word;color:#24364a}
.task-todo-card .todo-text-short,.task-todo-card .todo-text-full{white-space:pre-wrap;word-break:break-word}
.task-todo-card .todo-text-toggle{display:inline-flex;align-items:center;margin-top:.35rem;padding:.12rem .55rem;border:0;border-radius:999px;background:#eef5ff;color:#2563a8;font-size:.76rem;font-weight:700;cursor:pointer}
.task-todo-card .todo-text-toggle:hover{background:#dfeeff}
.task-todo-card .todo-text-editor{min-height:104px;resize:vertical;line-height:1.9;border-radius:11px;border-color:#cfdceb;background:#fff}
.task-todo-card .todo-text-editor:focus{border-color:#8db8ec;box-shadow:0 0 0 .2rem rgba(13,110,253,.1)}
.task-todo-card .todo-save-state{min-height:18px;margin-top:.22rem;color:#7b8798;font-size:.74rem}
.task-todo-card .todo-item-actions{display:flex;align-items:center;gap:.3rem;opacity:.42;transition:opacity .18s ease}
.task-todo-card .todo-item:hover .todo-item-actions,.task-todo-card .todo-item:focus-within .todo-item-actions{opacity:1}
.task-todo-card .todo-action-btn{width:31px;height:31px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:9px;background:transparent;color:#64748b;transition:background .18s ease,color .18s ease}
.task-todo-card .todo-action-btn svg{width:17px;height:17px;fill:currentColor}
.task-todo-card .todo-edit:hover,.task-todo-card .todo-edit.is-save-mode{background:#eaf3ff;color:#1769b0}
.task-todo-card .todo-delete:hover{background:#fff0f1;color:#c53745}
.task-todo-card .todo-new-box{padding:.85rem;border:1px dashed #c8d8eb;border-radius:14px;background:#f8fbff}
.task-todo-card .todo-new-box textarea{border-radius:11px;border-color:#d3deeb;resize:vertical;line-height:1.85}
.task-todo-card .task-todo-add{display:inline-flex;align-items:center;gap:.3rem;border-radius:10px;font-weight:700}
.todo-empty-state{padding:1.35rem;border:1px dashed #dce5ef;border-radius:14px;background:#fafcff;color:#8290a3;text-align:center;font-size:.9rem}
.todo-sort-ghost{opacity:.55;background:#eef5ff!important}

@media(max-width:768px){
  .task-todo-card .todo-item{grid-template-columns:32px 24px minmax(0,1fr) auto;gap:.45rem;padding:.65rem}
  .task-todo-card .todo-item-actions{opacity:1;flex-direction:column}
  .todo-drag-hint{display:none}
  .recurring-table-head .recurring-table-title{min-width:160px}
}

.task-todo-card .todo-item.is-readonly{grid-template-columns:26px minmax(0,1fr)}

/* PATCH v47: فقط متن بالای جدول و نمایش واکنش‌گرای جدول‌های کارهای تکرارشونده روزانه. */
.recurring-table-note{border:1px solid #e4ebf3;border-radius:13px;background:#f9fbfe;padding:.75rem}
.recurring-table-note-view{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.recurring-table-note-view.is-empty .recurring-table-note-text{color:#8a97a8;font-style:italic}
.recurring-table-note-text{min-width:0;flex:1;white-space:pre-wrap;word-break:break-word;line-height:1.95;color:#33465c}
.recurring-note-edit{flex:0 0 auto;white-space:nowrap}
.recurring-note-editor{min-height:96px;resize:vertical;line-height:1.9;border-radius:11px}
.recurring-table-fit{width:100%;overflow:hidden;border:1px solid #e5ebf2;border-radius:12px;background:#fff}
.recurring-table-grid{width:100%!important;min-width:0!important;max-width:100%;table-layout:fixed;background:#fff}
.recurring-table-grid td{min-width:0!important;max-width:none;padding:.25rem;overflow:hidden}
.recurring-table-grid .recurring-text-cell{min-width:0!important;padding:.28rem}
.recurring-table-grid .recurring-check-cell{min-width:0!important;padding:.3rem .05rem}
.recurring-table-grid .recurring-cell-check{width:1.05rem;height:1.05rem;max-width:90%;margin:0;cursor:pointer}
.recurring-table-grid .recurring-cell-text{width:100%;min-width:0!important;max-width:100%;padding:.28rem .35rem;resize:none;overflow:hidden;line-height:1.55;font-size:.82rem}
.recurring-table-grid .recurring-header-text-cell:not(.recurring-fixed-text-column) .recurring-cell-text{text-align:center;font-size:.73rem;font-weight:800;padding:.2rem .05rem}
.recurring-col-controls-row td{padding:.12rem .02rem!important}
.recurring-control-stack{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.recurring-table-grid .recurring-resize{width:20px;height:18px;min-width:0;padding:0;border:0;border-radius:5px;font-size:.72rem;line-height:1;font-weight:900}
.recurring-table-grid .recurring-row-controls,.recurring-table-grid .recurring-row-controls-end{min-width:0!important;padding:.12rem!important}
.recurring-desktop-view{display:block;max-width:100%}
.recurring-mobile-view{display:none}

@media(min-width:769px) and (max-width:1200px){
  .recurring-table-grid .recurring-cell-check{width:.95rem;height:.95rem}
  .recurring-table-grid .recurring-cell-text{font-size:.74rem;padding:.22rem}
  .recurring-table-grid .recurring-header-text-cell:not(.recurring-fixed-text-column) .recurring-cell-text{font-size:.66rem}
  .recurring-table-grid .recurring-resize{width:17px;height:17px;font-size:.65rem}
}

@media(max-width:768px){
  .recurring-table-wrapper{padding:.75rem;border-radius:14px}
  .recurring-table-head{align-items:stretch!important}
  .recurring-table-head>div:first-child{flex-basis:100%}
  .recurring-table-head .recurring-table-title{min-width:0;width:100%}
  .recurring-table-size-badge{display:none}
  .recurring-table-note-view{display:block}
  .recurring-note-edit{margin-top:.65rem}
  .recurring-desktop-view{display:none}
  .recurring-mobile-view{display:block}
  .recurring-mobile-day-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem;padding:.75rem;border:1px solid #dfe9f5;border-radius:13px;background:#f7fbff}
  .recurring-mobile-day-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
  .recurring-mobile-day-label-box{margin-top:.65rem;padding:.7rem;border:1px solid #e5ebf2;border-radius:12px;background:#fff}
  .recurring-mobile-rows{display:grid;gap:.7rem;margin-top:.75rem}
  .recurring-mobile-row-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.65rem;padding:.75rem;border:1px solid #e2eaf3;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(25,60,105,.05)}
  .recurring-mobile-texts{display:grid;gap:.45rem;min-width:0}
  .recurring-mobile-text{min-height:48px;resize:vertical;overflow:hidden;line-height:1.65;border-radius:10px}
  .recurring-mobile-checks{display:flex;align-items:center;justify-content:center}
  .recurring-mobile-day-check-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;min-width:78px;min-height:92px;margin:0;padding:.65rem;border:1px solid #cfe1f5;border-radius:13px;background:#f2f8ff;color:#365875;font-size:.78rem;font-weight:800;cursor:pointer}
  .recurring-mobile-day-check-wrap.d-none{display:none!important}
  .recurring-mobile-day-check-wrap .form-check-input{width:1.75rem;height:1.75rem;margin:0;cursor:pointer}
  .recurring-mobile-row-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:.4rem;padding-top:.55rem;border-top:1px dashed #e2e9f1}
}

@media(max-width:430px){
  .recurring-mobile-row-card{grid-template-columns:minmax(0,1fr) 70px;padding:.6rem;gap:.5rem}
  .recurring-mobile-day-check-wrap{min-width:66px;min-height:88px;padding:.45rem}
  .recurring-mobile-day-check-wrap .form-check-input{width:1.6rem;height:1.6rem}
  .recurring-mobile-row-actions .btn{flex:1}
}
