/* CAME Main Tasks. Colours and type follow the CAME ALP identity. */
.camet-app, .camet-gate, .ct-print {
	--blue: #0A64A9;
	--teal: #05B4CA;
	--teal2: #0B8FA8;
	--navy: #073C77;
	--gold: #C98A12;
	--gold-soft: #FFF4DE;
	--ink: #0B1626;
	--ink2: #1F3147;
	--meta: #5B6C80;
	--line: #D6E5EF;
	--bg: #F2F7FA;
	--surface: #FFFFFF;
	--surface2: #EAF4F9;
	--key: #E6F7FA;
	--red: #C0392B;
	--red-soft: #FDECEA;
	--green: #1FAF55;
	--green-soft: #E5F7EC;
	--hero: linear-gradient(115deg, #05B4CA 0%, #0791BF 26%, #0A64A9 58%, #08468A 82%, #073C77 100%);
	--f-display: 'Cairo', Tahoma, Arial, sans-serif;
	--f-body: 'Noto Naskh Arabic', 'Cairo', Tahoma, serif;
	--r: 10px;
	--shadow: 0 1px 2px rgba(7, 63, 123, .06), 0 8px 24px rgba(7, 63, 123, .07);
}

body.camet-body { margin: 0; background: #F2F7FA; }
.camet-app { font-family: var(--f-display); color: var(--ink); background: var(--bg); min-height: 100vh; font-size: 14px; line-height: 1.6; text-align: right; }
.camet-app *, .camet-app *::before, .camet-app *::after { box-sizing: border-box; }
.camet-app button, .camet-app input, .camet-app select, .camet-app textarea { font-family: var(--f-display); font-size: 14px; color: var(--ink); }
.camet-app a { color: var(--blue); }
.camet-app svg.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.camet-loading { padding: 80px 20px; text-align: center; color: var(--meta); font-size: 16px; }
.camet-in-admin { min-height: calc(100vh - 140px); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.camet-admin-app { margin-left: 16px; }

/* ---------- top bar ---------- */
.ct-top { background: var(--hero); color: #fff; display: flex; align-items: center; gap: 14px; padding: 10px 18px; position: sticky; top: 0; z-index: 40; }
.camet-in-admin .ct-top { position: relative; }
.ct-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; flex: none; }
.ct-brand img { height: 38px; background: #fff; border-radius: 7px; padding: 2px 4px; display: block; }
.ct-brand span { font-weight: 800; font-size: 17px; white-space: nowrap; }
.ct-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.ct-nav::-webkit-scrollbar { display: none; }
.ct-nav a { color: #fff; text-decoration: none; padding: 7px 12px; border-radius: 8px; white-space: nowrap; font-weight: 600; display: flex; align-items: center; gap: 6px; opacity: .92; }
.ct-nav a:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.ct-nav a.on { background: var(--navy); opacity: 1; }
.ct-top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ct-iconbtn { background: transparent; border: 0; color: inherit; cursor: pointer; position: relative; padding: 7px; border-radius: 8px; display: inline-flex; }
.ct-iconbtn:hover { background: rgba(255, 255, 255, .14); }
.ct-badge-dot { position: absolute; top: 0; left: -2px; background: var(--gold); color: #fff; font-size: 10px; font-weight: 700; border-radius: 9px; min-width: 17px; height: 17px; padding: 0 4px; display: flex; align-items: center; justify-content: center; }
.ct-burger { display: none; }

/* ---------- buttons, inputs ---------- */
.ct-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 7px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; white-space: nowrap; text-decoration: none; line-height: 1.4; }
.ct-btn:hover { border-color: #b8d0e0; background: #F7FBFD; }
.ct-btn-primary { background: var(--blue); border-color: var(--blue); color: #fff !important; }
.ct-btn-primary:hover { background: var(--navy); border-color: var(--navy); }
.ct-btn-gold { background: var(--gold); border-color: var(--gold); color: #fff !important; }
.ct-btn-gold:hover { background: #b47a0e; border-color: #b47a0e; }
.ct-btn-wa { background: #1FAF55; border-color: #1FAF55; color: #fff !important; }
.ct-btn-danger { color: var(--red) !important; }
.ct-btn-danger:hover { background: var(--red-soft); border-color: #f2c4bf; }
.ct-btn-ghost { background: transparent; border-color: transparent; }
.ct-btn-ghost:hover { background: var(--surface2); border-color: transparent; }
.ct-btn-sm { padding: 4px 10px; font-size: 13px; }
.ct-btn:disabled { opacity: .55; cursor: default; }
.ct-input, .ct-select, .ct-textarea { width: 100%; border: 1px solid #C4D7E5; border-radius: 8px; padding: 8px 11px; background: #fff; outline: none; min-height: 38px; }
.ct-textarea { min-height: 84px; resize: vertical; font-family: var(--f-body) !important; font-size: 15px !important; line-height: 1.8; }
.ct-input:focus, .ct-select:focus, .ct-textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(5, 180, 202, .18); }
.ct-label { display: block; font-weight: 700; font-size: 13px; color: var(--ink2); margin: 0 0 6px; }
.ct-label svg.ic { width: 16px; height: 16px; color: var(--blue); margin-left: 3px; }
.ct-field { margin-bottom: 14px; min-width: 0; }
.ct-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.ct-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; }
.ct-hint { font-size: 12.5px; color: var(--meta); margin-top: 5px; }
.ct-error { font-size: 13px; color: var(--red); margin-top: 5px; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-chip { border: 1px solid #C4D7E5; background: #fff; color: var(--ink2); padding: 4px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }
.ct-chip:hover { border-color: var(--teal); }
.ct-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ct-chip.on.p-urgent { background: var(--red); border-color: var(--red); }
.ct-chip.on.p-high { background: var(--gold); border-color: var(--gold); }
.ct-chip.on.p-low { background: #6B7C8F; border-color: #6B7C8F; }
.ct-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #9DB5C7; background: #fff; cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: #fff; }
.ct-check:hover { border-color: var(--green); }
.ct-check.on { background: var(--green); border-color: var(--green); }
.ct-check svg.ic { width: 13px; height: 13px; stroke-width: 3; }
.ct-check.pr-urgent { border-color: var(--red); }
.ct-check.pr-high { border-color: var(--gold); }

/* ---------- shell ---------- */
.ct-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 58px); }
.ct-side { background: var(--surface); border-left: 1px solid var(--line); padding: 14px 12px; position: sticky; top: 58px; height: calc(100vh - 58px); overflow-y: auto; }
.camet-in-admin .ct-side { position: static; height: auto; }
.ct-side-label { font-size: 12px; font-weight: 700; color: var(--meta); margin: 14px 4px 6px; display: flex; align-items: center; justify-content: space-between; }
.ct-side-label:first-child { margin-top: 0; }
.ct-side-label button { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 2px; border-radius: 6px; display: inline-flex; }
.ct-side-label button:hover { background: var(--key); }
.ct-ws { display: flex; gap: 6px; }
.ct-ws select { flex: 1; font-weight: 700; }
.ct-plink { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; color: var(--ink) !important; text-decoration: none; font-weight: 600; margin-bottom: 2px; }
.ct-plink:hover { background: var(--surface2); }
.ct-plink.on { background: var(--key); color: var(--navy) !important; }
.ct-plink .ct-count { margin-right: auto; color: var(--meta); font-size: 12px; font-weight: 600; }
.ct-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.ct-side-sum { background: var(--surface2); border-radius: 10px; padding: 10px 12px; margin-top: 16px; font-size: 12.5px; color: var(--ink2); }
.ct-main { padding: 20px 22px 60px; min-width: 0; }

/* ---------- generic cards ---------- */
.ct-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.ct-card-h { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--navy); }
.ct-card-h .ct-sub { margin-right: auto; font-weight: 600; font-size: 12.5px; color: var(--meta); }
.ct-avatar { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; border: 2px solid #fff; }
.ct-avatars { display: inline-flex; flex-direction: row; }
.ct-avatars .ct-avatar + .ct-avatar { margin-right: -8px; }
.ct-avatar-lg { width: 48px; height: 48px; font-size: 20px; }
.ct-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 6px; white-space: nowrap; line-height: 1.7; }
.b-urgent { background: var(--red); color: #fff; }
.b-high { background: var(--gold); color: #fff; }
.b-medium { background: var(--blue); color: #fff; }
.b-low { background: #E3EAF0; color: #46566A; }
.s-new { background: #E8EEF3; color: #46566A; }
.s-progress { background: var(--key); color: var(--teal2); }
.s-review { background: #E6ECF7; color: var(--navy); }
.s-done { background: var(--green-soft); color: #13803D; }
.ct-tag { background: var(--key); color: var(--navy); font-size: 12px; padding: 1px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.ct-bar { height: 7px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.ct-bar > i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.ct-empty { text-align: center; color: var(--meta); padding: 28px 12px; }
.ct-empty b { display: block; color: var(--ink2); font-size: 15px; margin-bottom: 4px; }

/* ---------- dashboard ---------- */
.ct-hello { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.ct-hello h1 { font-size: 22px; font-weight: 800; margin: 0; color: var(--ink); }
.ct-hello p { margin: 0; color: var(--meta); }
.ct-hello .ct-seg { margin-right: auto; }
.ct-seg { display: inline-flex; background: var(--surface2); border-radius: 9px; padding: 3px; gap: 2px; }
.ct-seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; cursor: pointer; font-weight: 700; color: var(--ink2); display: inline-flex; align-items: center; gap: 5px; }
.ct-seg button.on { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(7, 63, 123, .12); }
.ct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ct-stat { background: var(--surface); border: 1px solid var(--line); border-right: 4px solid var(--blue); border-radius: 0 10px 10px 0; padding: 10px 14px; cursor: pointer; }
.ct-stat:hover { box-shadow: var(--shadow); }
.ct-stat small { color: var(--meta); font-weight: 700; font-size: 12.5px; }
.ct-stat b { display: block; font-size: 26px; font-weight: 800; line-height: 1.3; }
.ct-dash { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ct-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ct-rem { border-right: 3px solid var(--teal); padding: 3px 10px 3px 0; margin-bottom: 8px; cursor: pointer; font-size: 13.5px; }
.ct-rem:hover { background: var(--surface2); }
.ct-rem.late { border-color: var(--red); }
.ct-rem.soon { border-color: var(--gold); }
.ct-rem small { display: block; color: var(--meta); font-size: 12px; }
.ct-prog { margin-bottom: 10px; font-size: 13px; }
.ct-prog-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.ct-prog-h span { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }

/* ---------- task rows ---------- */
.ct-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #E6EFF5; }
.ct-row:last-child { border-bottom: 0; }
.ct-row:hover { background: #F8FBFD; }
.ct-row-main { flex: 1; min-width: 0; cursor: pointer; }
.ct-row-title { font-weight: 700; font-size: 14.5px; word-break: break-word; }
.ct-row.done .ct-row-title { text-decoration: line-through; color: var(--meta); }
.ct-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--meta); font-size: 12.5px; margin-top: 3px; }
.ct-meta span { display: inline-flex; align-items: center; gap: 3px; }
.ct-meta svg.ic { width: 14px; height: 14px; }
.ct-meta .late { color: var(--red); font-weight: 700; }
.ct-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.ct-caret { background: none; border: 0; padding: 0; width: 20px; height: 20px; cursor: pointer; color: var(--meta); flex: none; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; }
.ct-caret:hover { background: var(--surface2); }
.ct-caret svg.ic { width: 15px; height: 15px; transition: transform .15s; }
.ct-caret.open svg.ic { transform: rotate(90deg); }
.ct-caret-sp { width: 20px; flex: none; }
.ct-sub-wrap { border-right: 2px solid var(--line); margin-right: 28px; }
.ct-parent-label { font-size: 12px; color: var(--teal2); font-weight: 600; }

/* ---------- project header & filters ---------- */
.ct-ph { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ct-ph h1 { font-size: 21px; font-weight: 800; margin: 0; }
.ct-ph .ct-meta { margin: 0; }
.ct-ph-actions { margin-right: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ct-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.ct-filters .ct-input, .ct-filters .ct-select { width: auto; min-height: 34px; padding: 5px 9px; font-size: 13px; }
.ct-filters .ct-search { flex: 1; min-width: 160px; }
.ct-filters label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.ct-section { margin-bottom: 18px; }
.ct-section-h { display: flex; align-items: center; gap: 8px; padding: 4px 4px 8px; border-bottom: 2px solid var(--blue); margin-bottom: 4px; }
.ct-section-h h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--navy); }
.ct-section-h .ct-count { color: var(--meta); font-weight: 600; font-size: 12.5px; }
.ct-section-h .ct-sec-act { margin-right: auto; display: flex; gap: 2px; opacity: .55; }
.ct-section-h:hover .ct-sec-act { opacity: 1; }
.ct-quick { display: flex; align-items: center; gap: 8px; padding: 8px 4px; color: var(--meta); }
.ct-quick input[type=text] { border: 0; background: transparent; outline: none; flex: 1; padding: 4px 0; font-size: 14px; }
.ct-quick input[type=text]:focus { border-bottom: 1px solid var(--teal); }
.ct-group-h { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; flex-wrap: wrap; }
.ct-group-h h3 { margin: 0; font-size: 16px; font-weight: 800; }
.ct-group-h a { text-decoration: none; color: var(--ink) !important; }
.ct-group-h .ct-bar { width: 110px; }
.ct-ws-title { font-size: 13px; font-weight: 800; color: var(--meta); margin: 22px 0 0; display: flex; align-items: center; gap: 6px; }

/* ---------- kanban ---------- */
.ct-kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.ct-kcol { background: var(--surface2); border-radius: 12px; padding: 10px; min-height: 260px; transition: background .15s; }
.ct-kcol.over { background: var(--key); outline: 2px dashed var(--teal); }
.ct-kcol-h { display: flex; align-items: center; gap: 7px; font-weight: 800; margin-bottom: 8px; padding: 0 2px; }
.ct-kcol-h .ct-count { color: var(--meta); font-weight: 600; font-size: 12.5px; margin-right: auto; }
.ct-kcard { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(7, 63, 123, .05); }
.ct-kcard:hover { border-color: #b8d0e0; }
.ct-kcard.dragging { opacity: .45; }
.ct-kcard.p-urgent { border-right: 3px solid var(--red); }
.ct-kcard.p-high { border-right: 3px solid var(--gold); }
.ct-kcard-t { font-weight: 700; margin-bottom: 5px; word-break: break-word; }
.ct-kcard-f { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; }
.ct-kadd { width: 100%; justify-content: center; border-style: dashed; background: transparent; color: var(--meta); }

/* ---------- timeline ---------- */
.ct-tl-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.ct-tl-nav b { font-size: 15px; margin: 0 6px; }
.ct-tl { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ct-tl-grid { position: relative; }
.ct-tl-row { display: flex; border-bottom: 1px solid #EDF3F7; min-height: 40px; }
.ct-tl-row:last-child { border-bottom: 0; }
.ct-tl-label { width: 210px; flex: none; padding: 9px 12px; font-weight: 600; font-size: 13px; position: sticky; right: 0; background: #fff; z-index: 3; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ct-tl-label.sub { padding-right: 26px; font-weight: 500; color: var(--ink2); }
.ct-tl-label.sec { background: var(--surface2); color: var(--navy); font-weight: 800; cursor: default; }
.ct-tl-track { position: relative; flex: none; }
.ct-tl-head .ct-tl-label { background: var(--surface2); }
.ct-tl-day { position: absolute; top: 0; bottom: 0; border-left: 1px solid #F1F5F8; font-size: 11px; color: var(--meta); text-align: center; padding-top: 3px; }
.ct-tl-day.we { background: #F8FAFC; }
.ct-tl-day.today { background: rgba(5, 180, 202, .1); color: var(--teal2); font-weight: 800; }
.ct-tl-month { position: absolute; top: 0; font-size: 12px; font-weight: 800; color: var(--navy); padding: 2px 6px; white-space: nowrap; }
.ct-tl-bar { position: absolute; top: 8px; height: 24px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; padding: 0 8px; overflow: hidden; white-space: nowrap; cursor: grab; touch-action: none; user-select: none; z-index: 2; }
.ct-tl-bar .fill { position: absolute; inset: 0 0 0 auto; background: rgba(255, 255, 255, .28); pointer-events: none; }
.ct-tl-bar span { position: relative; overflow: hidden; text-overflow: ellipsis; }
.ct-tl-bar .hd { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; }
.ct-tl-bar .hd.s { right: 0; }
.ct-tl-bar .hd.e { left: 0; }
.ct-tl-bar.rec { background: transparent; cursor: pointer; padding: 0; }
.ct-tl-bar.rec i { position: absolute; top: 4px; height: 16px; border-radius: 4px; }
.ct-tl-bar.done { opacity: .55; }
.ct-tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold); z-index: 1; }

/* ---------- calendar ---------- */
.ct-cal-h { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; font-weight: 800; color: var(--navy); font-size: 13px; text-align: center; margin-bottom: 4px; }
.ct-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ct-day { background: #fff; min-height: 112px; padding: 5px; cursor: pointer; min-width: 0; }
.ct-day:hover { background: #F8FBFD; }
.ct-day.out { background: #F7FAFC; }
.ct-day.out .ct-dn { color: #A9B7C4; }
.ct-day.today .ct-dn { background: var(--teal); color: #fff; }
.ct-dn { font-weight: 800; font-size: 13px; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.ct-ev { display: block; font-size: 11.5px; font-weight: 600; background: var(--key); color: var(--navy); border-radius: 5px; padding: 1px 6px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 3px solid var(--blue); }
.ct-ev.p-urgent { border-right-color: var(--red); }
.ct-ev.p-high { border-right-color: var(--gold); }
.ct-ev.done { text-decoration: line-through; opacity: .6; }
.ct-more { font-size: 11.5px; color: var(--meta); font-weight: 700; margin-top: 2px; }

/* ---------- mind map ---------- */
.ct-mm-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ct-mm-bar .ct-select { width: auto; min-height: 34px; padding: 4px 9px; }
.ct-mm { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; background-image: radial-gradient(#DCE8F0 1px, transparent 1px); background-size: 22px 22px; }
.ct-mm svg { display: block; width: 100%; touch-action: none; cursor: grab; user-select: none; }
.ct-mm svg.panning { cursor: grabbing; }
.ct-mm .mm-node { cursor: pointer; }
.ct-mm .mm-node.drop rect.mm-box { stroke: var(--gold); stroke-width: 3; }
.ct-mm .mm-node.dragging { opacity: .7; pointer-events: none; }
.ct-mm-hint { position: absolute; bottom: 8px; right: 12px; font-size: 12px; color: var(--meta); background: rgba(255, 255, 255, .9); padding: 2px 8px; border-radius: 6px; }

/* ---------- overlays ---------- */
.ct-overlay { position: fixed; inset: 0; background: rgba(7, 28, 52, .45); z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.ct-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 760px; box-shadow: 0 20px 60px rgba(7, 28, 52, .3); overflow: hidden; }
.ct-modal.sm { max-width: 460px; }
.ct-modal-h { background: var(--hero); color: #fff; padding: 13px 18px; display: flex; align-items: center; gap: 10px; }
.ct-modal-h h2 { margin: 0; font-size: 17px; font-weight: 800; color: #fff; flex: 1; }
.ct-modal-b { padding: 18px; }
.ct-modal-f { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #F8FBFD; flex-wrap: wrap; }
.ct-drawer-ov { position: fixed; inset: 0; background: rgba(7, 28, 52, .35); z-index: 99990; }
.ct-drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(760px, 100%); background: var(--bg); z-index: 99991; overflow-y: auto; box-shadow: 10px 0 40px rgba(7, 28, 52, .25); animation: ct-in .18s ease-out; }
@keyframes ct-in { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.ct-dh { background: var(--hero); color: #fff; padding: 14px 18px 12px; position: sticky; top: 0; z-index: 2; }
.ct-dh-top { display: flex; align-items: flex-start; gap: 10px; }
.ct-dh h2 { margin: 0; font-size: 19px; font-weight: 800; color: #fff; flex: 1; line-height: 1.5; word-break: break-word; }
.ct-dh .ct-meta { color: #D5F5FB; }
.ct-dh .ct-iconbtn { color: #fff; }
.ct-dh-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.ct-dh-actions .ct-select { width: auto; min-height: 32px; padding: 3px 8px; font-weight: 700; }
.ct-db { padding: 14px 16px 40px; display: flex; flex-direction: column; gap: 12px; }
.ct-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 14px; font-size: 13px; }
.ct-kv div small { display: block; color: var(--meta); font-weight: 700; font-size: 12px; }
.ct-kv div b { font-weight: 600; }
.ct-desc { font-family: var(--f-body); font-size: 15.5px; line-height: 1.9; white-space: pre-wrap; color: var(--ink); font-weight: 500; }
.ct-note { background: var(--surface2); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; }
.ct-note-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--meta); margin-bottom: 3px; }
.ct-note-h b { color: var(--ink); }
.ct-note-h button { margin-right: auto; }
.ct-note p { margin: 0; font-family: var(--f-body); font-size: 15px; line-height: 1.85; white-space: pre-wrap; font-weight: 500; }
.ct-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px; background: #fff; }
.ct-file a { font-weight: 700; text-decoration: none; word-break: break-all; }
.ct-file small { display: block; color: var(--meta); font-size: 12px; }
.ct-file .ft { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; color: #fff; flex: none; }
.ct-drop { border: 2px dashed #B9D2E2; border-radius: 10px; padding: 14px; text-align: center; color: var(--meta); cursor: pointer; font-size: 13px; }
.ct-drop.over, .ct-drop:hover { border-color: var(--teal); background: var(--key); }
.ct-pop { position: fixed; z-index: 100001; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(7, 28, 52, .22); width: 340px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; }
.ct-pop-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 800; color: var(--navy); }
.ct-notif { display: flex; gap: 9px; padding: 10px 14px; border-bottom: 1px solid #EEF3F7; cursor: pointer; font-size: 13.5px; }
.ct-notif:hover { background: var(--surface2); }
.ct-notif.unread { background: #F2FBFD; }
.ct-notif.unread::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; margin-top: 7px; }
.ct-notif small { display: block; color: var(--meta); font-size: 12px; }
.ct-menu a, .ct-menu button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 14px; background: none; border: 0; text-align: right; cursor: pointer; color: var(--ink) !important; text-decoration: none; font-weight: 600; }
.ct-menu a:hover, .ct-menu button:hover { background: var(--surface2); }
.ct-picker { position: relative; }
.ct-picker-box { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; border: 1px solid #C4D7E5; border-radius: 8px; padding: 5px 7px; min-height: 38px; background: #fff; cursor: text; }
.ct-picker-box input { border: 0; outline: none; flex: 1; min-width: 90px; padding: 3px; }
.ct-pchip { display: inline-flex; align-items: center; gap: 5px; background: var(--key); color: var(--navy); border-radius: 14px; padding: 2px 4px 2px 8px; font-size: 12.5px; font-weight: 700; }
.ct-pchip .ct-avatar { width: 20px; height: 20px; font-size: 10px; border: 0; }
.ct-pchip button { background: none; border: 0; cursor: pointer; color: var(--navy); padding: 0 2px; font-size: 14px; line-height: 1; }
.ct-plist { position: absolute; top: 100%; right: 0; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); max-height: 220px; overflow-y: auto; z-index: 5; margin-top: 3px; }
.ct-plist div { padding: 7px 10px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.ct-plist div:hover, .ct-plist div.act { background: var(--surface2); }
.ct-plist small { color: var(--meta); }
.ct-summary { background: var(--gold-soft); border-right: 3px solid var(--gold); padding: 6px 10px; font-size: 13px; font-weight: 600; color: #6F4A06; margin-top: 8px; border-radius: 0 6px 6px 0; }
.ct-color { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.ct-color.on { box-shadow: 0 0 0 2px var(--ink); }
.ct-wa-msg { background: #E7F8EE; border-radius: 10px; }
.ct-mtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ct-mtable td, .ct-mtable th { padding: 7px 6px; border-bottom: 1px solid #E6EFF5; text-align: right; }
.ct-mtable th { color: var(--meta); font-size: 12.5px; }
.ct-toasts { position: fixed; bottom: 18px; left: 18px; z-index: 100002; display: flex; flex-direction: column; gap: 8px; }
.ct-toast { background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 9px; font-weight: 600; box-shadow: var(--shadow); max-width: 360px; }
.ct-toast.err { background: var(--red); }
.ct-toast { display: flex; align-items: center; gap: 12px; }
.ct-toast-act { background: #fff; color: var(--navy); border: 0; border-radius: 6px; padding: 3px 12px; font-weight: 800; cursor: pointer; font-family: inherit; }

/* ---------- gate (login) ---------- */
.camet-gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--hero); padding: 20px; font-family: var(--f-display); }
.camet-gate-card { background: #fff; border-radius: 16px; padding: 28px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 20px 60px rgba(7, 28, 52, .3); color: var(--ink); }
.camet-gate-logo { height: 80px; margin-bottom: 6px; }
.camet-gate h1 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.camet-gate p { color: var(--ink2); }
.camet-gate form { text-align: right; }
.camet-gate form p { margin: 0 0 12px; }
.camet-gate label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.camet-gate input[type=text], .camet-gate input[type=password] { width: 100%; box-sizing: border-box; border: 1px solid #C4D7E5; border-radius: 8px; padding: 9px 11px; font-size: 15px; }
.camet-gate input[type=submit] { width: 100%; background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 10px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--f-display); }
.camet-gate .login-remember label { display: inline; font-weight: 500; }
.camet-gate-link { color: var(--blue); font-weight: 700; }


/* ---------- Eisenhower ---------- */
.ct-eis { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 12px; }
.ct-eis-ax { text-align: center; font-weight: 800; color: var(--navy); background: var(--surface2); border-radius: 8px; padding: 4px; }
.ct-eis-side { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-weight: 800; color: var(--navy); background: var(--surface2); border-radius: 8px; padding: 6px 2px; display: flex; align-items: center; justify-content: center; }
.ct-q { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--qc); border-radius: 12px; min-height: 240px; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow); transition: background .15s; }
.ct-q.over { background: var(--qs); outline: 2px dashed var(--qc); }
.ct-q-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--qs); border-bottom: 1px solid var(--line); }
.ct-q-h b { display: block; font-size: 15px; font-weight: 800; color: var(--qc); }
.ct-q-h small { color: var(--ink2); font-weight: 600; }
.ct-q-h .ct-count { margin-right: auto; font-weight: 800; color: var(--qc); font-size: 18px; }
.ct-q-n { width: 28px; height: 28px; border-radius: 50%; background: var(--qc); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.ct-q-b { padding: 4px 10px; max-height: 460px; overflow-y: auto; flex: 1; }
.ct-qrow { display: flex; align-items: flex-start; gap: 9px; padding: 8px 2px; border-bottom: 1px solid #E6EFF5; cursor: grab; }
.ct-qrow:last-child { border-bottom: 0; }
.ct-qrow.dragging { opacity: .45; }
.ct-pin { border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--meta); cursor: pointer; padding: 0 6px; }
.ct-pin:hover { color: var(--red); border-color: var(--red); }
.ct-qtag { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--qc); border: 1px solid var(--qc); border-radius: 6px; padding: 0 6px; white-space: nowrap; }

/* ---------- multi-select & bulk actions ---------- */
.ct-sel { width: 20px; height: 20px; border-radius: 5px; border: 2px solid #9DB5C7; background: #fff; cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: #fff; vertical-align: -4px; margin-left: 6px; }
.ct-sel:hover { border-color: var(--blue); }
.ct-sel.on { background: var(--blue); border-color: var(--blue); }
.ct-sel svg.ic { width: 13px; height: 13px; stroke-width: 3; }
.ct-row.selected, .ct-qrow.selected, .ct-rtable tr.selected td { background: #E8F1FA !important; }
.ct-kcard.selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(10, 100, 169, .25); }
.ct-bulk { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 99950; background: var(--navy); color: #fff; border-radius: 14px; padding: 9px 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; box-shadow: 0 14px 40px rgba(7, 28, 52, .35); max-width: calc(100vw - 24px); }
.ct-bulk b { font-size: 14px; white-space: nowrap; padding: 0 4px; }
.ct-bulk .ct-btn { border-color: rgba(255, 255, 255, .25); }
.ct-bulk .ct-btn-ghost { color: #fff !important; }
.ct-bulk .ct-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.ct-bulk .ct-select { width: auto; min-height: 32px; padding: 3px 8px; font-size: 13px; }
.ct-bulk-sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .25); }
.ct-dates { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.ct-dates.ct-grid2 { display: grid; }
.ct-main { padding-bottom: 110px; }

/* ---------- Gantt reports ---------- */
.ct-gt-out { position: absolute; top: 11px; font-size: 11.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; pointer-events: none; z-index: 2; }
.ct-gt-grp { background: var(--key); }
.ct-gt-grp .ct-tl-label { background: var(--key); display: flex; align-items: center; gap: 6px; }
.ct-gt-grp .ct-tl-label small { color: var(--meta); font-weight: 600; }
.ct-gt-sum { position: absolute; top: 15px; height: 10px; border-radius: 5px; overflow: hidden; }
.ct-gt-sum b { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(255, 255, 255, .62); }
.ct-tl-bar.late { outline: 2px dashed var(--red); outline-offset: 1px; }
.ct-tl-day.wk { border-right: 1px solid #DCE6EE; text-align: right; padding-right: 3px; }
.ct-gt-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; color: var(--ink2); margin-bottom: 10px; }
.ct-gt-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-left: 4px; }

/* ---------- reports & export ---------- */
.ct-rep-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ct-rep-label { font-size: 15px; color: var(--navy); }
.ct-rep-groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.ct-seg { flex-wrap: wrap; }
.ct-seg button { white-space: nowrap; }
.ct-twrap { overflow-x: auto; }
.ct-rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ct-rtable th { background: var(--navy); color: #fff; font-weight: 700; padding: 7px 8px; text-align: right; white-space: nowrap; font-size: 12.5px; }
.ct-rtable td { padding: 7px 8px; border-bottom: 1px solid #E6EFF5; vertical-align: top; }
.ct-rtable tbody tr:nth-child(even) td { background: #F7FBFD; }
.ct-rtable-main tbody tr { cursor: pointer; }
.ct-rtable-main tbody tr:hover td { background: var(--key); }
.ct-rtable-main td:first-child { min-width: 200px; }
.ct-exp { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.ct-mlist { border: 1px solid var(--line); border-radius: 9px; max-height: 220px; overflow-y: auto; }
.ct-mrow { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #EEF3F7; cursor: pointer; }
.ct-mrow:last-child { border-bottom: 0; }
.ct-mrow:hover { background: var(--surface2); }
.ct-mrow small { display: block; color: var(--meta); font-size: 12px; direction: ltr; text-align: right; }
.ct-chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
@media (max-width: 860px) {
	.ct-eis { grid-template-columns: minmax(0, 1fr); }
	.ct-rep-groups { grid-template-columns: minmax(0, 1fr); }
	.ct-eis-ax, .ct-eis-side, .ct-eis > div:first-child { display: none; }
	.ct-exp .ct-btn { padding: 4px 8px; }
	.ct-bulk { bottom: 8px; border-radius: 12px; gap: 6px; padding: 8px; }
	.ct-bulk-sep { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.ct-dash { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
	.ct-top { padding: 8px 12px; gap: 8px; flex-wrap: wrap; }
	.ct-burger { display: inline-flex; }
	.ct-brand span { display: none; }
	.ct-nav { order: 3; flex-basis: 100%; }
	.ct-top-actions { margin-right: auto; }
	.ct-top-actions .ct-btn-gold .lbl { display: none; }
	.ct-shell { grid-template-columns: minmax(0, 1fr); }
	.ct-side { position: fixed; top: 0; right: 0; bottom: 0; height: auto; width: 280px; z-index: 99980; transform: translateX(110%); transition: transform .2s; box-shadow: -10px 0 40px rgba(7, 28, 52, .2); }
	.ct-side.open { transform: none; }
	.ct-main { padding: 14px 12px 60px; }
	.ct-overlay { padding: 0; }
	.ct-modal { border-radius: 0; min-height: 100%; }
	.ct-tl-label { width: 140px; }
	.ct-day { min-height: 76px; padding: 3px; }
	.ct-ev { font-size: 10.5px; padding: 0 3px; }
	.ct-hello .ct-seg { margin-right: 0; }
}
@media (max-width: 520px) {
	.ct-ev { display: none; }
	.ct-day .ct-more { display: block; }
	.ct-cal-dots { display: flex !important; }
}
.ct-cal-dots { display: none; gap: 2px; flex-wrap: wrap; margin-top: 3px; }
.ct-cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* quick delete (v1.7) */
.ct-qdel { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #8A9AAB; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.ct-qdel svg { width: 15px; height: 15px; }
.ct-qdel:hover, .ct-qdel:focus-visible { background: #FDECEA; color: #C0392B; opacity: 1; }
.ct-row:hover .ct-qdel, .ct-kcard:hover .ct-qdel, .ct-plink:hover .ct-qdel, .ct-qdel:focus-visible { opacity: 1; }
.ct-row .ct-qdel { align-self: center; }
.ct-kcard { position: relative; }
.ct-kcard > .ct-qdel { position: absolute; top: 6px; left: 6px; }
.ct-plink .ct-qdel { width: 24px; height: 24px; margin-right: -4px; }
.ct-plink .ct-count + .ct-qdel { margin-right: 0; }
@media (hover: none) { .ct-qdel { opacity: .55; } }

/* task text in Noto Naskh Arabic (v1.7.2: darker & larger) */
.ct-row-title, .ct-kcard-t, .ct-rem, .ct-tl-label, .ct-tl-bar span, .ct-ev, .ct-gt-out, .ct-parent-label,
.ct-dh-top h2, .ct-rtable td b, .ct-qrow .ct-row-title, #tf-title, .ct-quick input[type=text], #ct-sub-title {
	font-family: var(--f-body) !important;
	font-weight: 700 !important;
	letter-spacing: 0;
}
.ct-row-title, .ct-kcard-t, .ct-rem, .ct-dh-top h2, .ct-rtable td b, .ct-tl-label, #tf-title, #ct-sub-title { color: #050D18; }
.ct-row-title { font-size: 17px; line-height: 1.75; }
.ct-kcard-t { font-size: 16px; line-height: 1.7; }
.ct-dh-top h2 { font-size: 22px !important; line-height: 1.6; }
.ct-rem { font-size: 15.5px; line-height: 1.7; }
.ct-rem small { font-family: var(--f-display); font-weight: 600; }
.ct-tl-label { font-size: 14.5px; }
.ct-ev { font-size: 12.5px; line-height: 1.75; }
.ct-gt-out, .ct-tl-bar span { font-size: 13px; }
.ct-parent-label { font-size: 13px; }
.ct-rtable td b { font-size: 15px; }
#tf-title, .ct-quick input[type=text], #ct-sub-title { font-size: 16.5px !important; }
.ct-row.done .ct-row-title { color: var(--meta); }

/* quick add with person / date / priority (v1.8.3) */
.ct-quick-full { flex-wrap: wrap; row-gap: 6px; }
.ct-quick-full > input[data-on="quick"] { min-width: 220px; }
.ct-quick-opts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-right: auto; }
.ct-quick-opts .ct-select, .ct-quick-opts .ct-input, .ct-quick .ct-q-user, .ct-quick .ct-q-date, .ct-quick .ct-q-prio { font-size: 13.5px !important; font-family: var(--f-display) !important; font-weight: 600 !important; color: var(--ink2); }
.ct-quick .ct-q-user { max-width: 170px; }
@media (max-width: 700px) {
	.ct-quick-opts { margin-right: 0; width: 100%; }
	.ct-quick-opts .ct-select, .ct-quick-opts .ct-input { flex: 1 1 30%; min-width: 0; }
}
