/**
 * Tasks modal + kanban UI polish — siba_webkit CSS overlay.
 * Do not edit Perfex core. Keep all IDs / data-* / sortable classes intact.
 */

:root {
    --siba-task-radius: 14px;
    --siba-task-radius-sm: 10px;
    --siba-task-border: #e2e8f0;
    --siba-task-border-soft: #eef2f7;
    --siba-task-bg: #f1f5f9;
    --siba-task-surface: #ffffff;
    --siba-task-text: #0f172a;
    --siba-task-muted: #64748b;
    --siba-task-accent: #0f766e;
    --siba-task-accent-soft: #ecfdf5;
    --siba-task-info: #0369a1;
    --siba-task-info-soft: #e0f2fe;
    --siba-task-warn: #b45309;
    --siba-task-warn-soft: #fffbeb;
    --siba-task-danger: #b91c1c;
    --siba-task-danger-soft: #fef2f2;
    --siba-task-violet: #5b21b6;
    --siba-task-violet-soft: #f5f3ff;
    --siba-task-slate-soft: #f8fafc;
    --siba-task-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    --siba-task-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   View task modal — #task-modal  (organized sections + meaningful colors)
   ========================================================================== */

#task-modal.task-modal-single .modal-dialog {
    margin-top: 24px;
}

#task-modal.task-modal-single .modal-content,
#task-modal.task-modal-single .modal-content.data {
    border: 0;
    border-radius: var(--siba-task-radius);
    box-shadow: var(--siba-task-shadow);
    overflow: hidden;
    background: var(--siba-task-bg);
}

/* Header — status accent strip via data-status */
#task-modal .task-single-header {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--siba-task-border);
    padding: 18px 22px 16px;
}

#task-modal .task-single-header::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 4px;
    background: #94a3b8;
}

#task-modal .task-single-header[data-status="1"]::before { background: #64748b; } /* not started */
#task-modal .task-single-header[data-status="2"]::before { background: #0284c7; } /* in progress */
#task-modal .task-single-header[data-status="3"]::before { background: #ca8a04; } /* testing */
#task-modal .task-single-header[data-status="4"]::before { background: #7c3aed; } /* awaiting */
#task-modal .task-single-header[data-status="5"]::before { background: #059669; } /* complete */

#task-modal .task-single-header .modal-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--siba-task-text);
    line-height: 1.35;
    gap: 8px;
    flex-wrap: wrap;
}

#task-modal .task-single-header .label,
#task-modal .task-single-header span.label {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.3em 0.75em;
    border: 0;
}

#task-modal .task-single-header > p {
    color: var(--siba-task-muted);
    font-size: 12.5px;
    margin-top: 6px !important;
}

#task-modal .task-single-header .close {
    opacity: 0.5;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    margin-top: 0;
}

#task-modal .task-single-header .close:hover {
    opacity: 1;
    background: #e2e8f0;
}

#task-modal.task-modal-single .modal-body {
    background: var(--siba-task-bg);
    padding: 14px 14px 18px !important;
}

/* Columns as workspace cards */
#task-modal .task-single-col-left {
    background: var(--siba-task-surface);
    border: 1px solid var(--siba-task-border);
    border-radius: var(--siba-task-radius-sm);
    box-shadow: var(--siba-task-shadow-sm);
    padding: 14px 16px 18px !important;
    margin-bottom: 10px;
}

#task-modal .task-single-col-right {
    background: #f8fafc;
    border: 1px solid var(--siba-task-border);
    border-radius: var(--siba-task-radius-sm);
    box-shadow: var(--siba-task-shadow-sm);
    padding: 12px 12px 14px !important;
    margin-bottom: 10px;
    border-left: 1px solid var(--siba-task-border);
}

/* Meta strip under title */
#task-modal .task-info-created,
#task-modal .task-single-related-wrapper {
    display: block;
    background: var(--siba-task-slate-soft);
    border: 1px solid var(--siba-task-border-soft);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--siba-task-muted);
    font-size: 12.5px;
    margin-bottom: 8px;
}

#task-modal .task-single-related-wrapper a {
    color: var(--siba-task-info);
    font-weight: 600;
}

#task-modal .alert {
    border-radius: 10px;
    border: 0;
    box-shadow: none;
}

#task-modal .alert-info {
    background: var(--siba-task-info-soft);
    color: #0c4a6e;
}

#task-modal .alert-success {
    background: var(--siba-task-accent-soft);
    color: #065f46;
}

/* ---- Action toolbar (complete / timer / stats) ---- */
#task-modal .task-single-col-left > p.pull-left {
    margin-bottom: 8px !important;
}

#task-modal .task-single-col-left > p.pull-left .btn {
    border-radius: 9px;
    font-weight: 650;
    box-shadow: none;
    border-width: 1px;
}

#task-modal #task-single-mark-complete-btn.btn-primary {
    background: #059669;
    border-color: #059669;
}

#task-modal #task-single-mark-complete-btn.btn-primary:hover {
    background: #047857;
    border-color: #047857;
}

#task-modal #task-single-unmark-complete-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

#task-modal .task-single-col-left .btn-success {
    background: #0f766e;
    border-color: #0f766e;
}

#task-modal .task-single-col-left .btn-danger {
    background: #dc2626;
    border-color: #dc2626;
}

#task-modal .task-single-col-left .btn-default {
    background: #fff;
    border-color: #cbd5e1;
    color: #334155;
}

#task-modal .task-single-col-left .btn-default:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

#task-modal .task-single-col-left > hr.hr-10,
#task-modal .task-single-col-left > hr {
    border-top-color: var(--siba-task-border);
    margin: 12px 0 16px;
}

/* ---- Section titles ---- */
#task-modal h4.th,
#task-modal h4.chk-heading,
#task-modal .task-single-col-left > h4.mbot20 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    margin-top: 4px;
    margin-bottom: 10px !important;
    padding: 6px 10px;
    border-radius: 8px;
    line-height: 1.3;
}

/* Description — sky */
#task-modal .task-single-col-left > h4.th {
    background: var(--siba-task-info-soft);
    color: var(--siba-task-info);
    border-inline-start: 3px solid #0284c7;
}

/* Checklist heading */
#task-modal h4.chk-heading {
    background: var(--siba-task-warn-soft);
    color: var(--siba-task-warn);
    border-inline-start: 3px solid #f59e0b;
}

/* Attachments heading */
#task-modal #attachments > h4.th {
    background: #ecfeff;
    color: #0e7490;
    border-inline-start: 3px solid #06b6d4;
}

/* ---- Description block ---- */
#task-modal #task_view_description,
#task-modal .tc-content #task_view_description {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 55%);
    border: 1px solid #bae6fd;
    border-radius: var(--siba-task-radius-sm);
    padding: 14px 16px;
    min-height: 56px;
    color: var(--siba-task-text);
    line-height: 1.65;
    margin-bottom: 4px;
}

#task-modal #task_view_description.task-no-description {
    background: #f8fafc;
    border-style: dashed;
    border-color: #cbd5e1;
    color: var(--siba-task-muted);
}

/* ---- Timesheets panel ---- */
#task-modal #task_single_timesheets {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--siba-task-radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

#task-modal #task_single_timesheets .table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

#task-modal #task_single_timesheets .table > thead > tr > th,
#task-modal #task_single_timesheets .tw-bg-neutral-50 {
    background: #e0f2fe !important;
    color: #075985;
    font-weight: 700;
    font-size: 12px;
    border-color: #bae6fd;
}

#task-modal .task-single-add-timesheet.btn-success {
    background: #0284c7;
    border-color: #0284c7;
}

/* ---- Checklist ---- */
#task-modal .checklist-items-wrapper,
#task-modal #checklist-items {
    margin-top: 4px;
}

#task-modal .checklist {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 9px;
    margin-bottom: 7px;
    padding: 6px 8px;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#task-modal .checklist:hover {
    background: #fff7ed;
    border-color: #fbbf24;
    box-shadow: var(--siba-task-shadow-sm);
}

#task-modal .checklist .checkbox label {
    font-weight: 550;
    color: #78350f;
}

#task-modal .checklist-templates-wrapper {
    margin-bottom: 8px !important;
}

#task-modal .chk-toggle-buttons button {
    color: var(--siba-task-warn) !important;
    font-weight: 600;
}

/* ---- Attachments (section list only — not nested comment files) ---- */
#task-modal .task_attachments_wrapper,
#task-modal #attachments {
    margin-top: 4px;
}

#task-modal #attachments .task-attachment,
#task-modal #attachments li.task-attachment {
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

#task-modal #attachments .task-attachment.highlight-bg,
#task-modal #attachments li.task-attachment.highlight-bg {
    background: #cffafe;
    border-color: #67e8f9;
}

#task-modal #attachments .task-attachment-no-preview,
#task-modal #attachments .preview-image {
    border-radius: 8px;
    overflow: hidden;
}

/* ---- Comments ---- */
/* Toggle title is an <a id="taskCommentSlide"> wrapping <h4> — keep it a simple heading */
#task-modal #taskCommentSlide {
    display: block;
    text-decoration: none !important;
    color: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 10px;
}

#task-modal #taskCommentSlide h4 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--siba-task-violet-soft);
    color: var(--siba-task-violet);
    border-inline-start: 3px solid #8b5cf6;
}

#task-modal #taskCommentSlide:hover h4 {
    background: #ede9fe;
}

/* Composer + list wrapper */
#task-modal .tasks-comments {
    display: block;
    width: 100%;
    background: #faf8ff;
    border: 1px solid #e9e5ff;
    border-radius: var(--siba-task-radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

#task-modal #task-comment-form {
    background: #ffffff;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 4px;
    min-height: 0 !important;
}

#task-modal #task_comment {
    border-radius: 8px;
    border: 1px solid #c4b5fd;
    background: #fff;
    opacity: 1;
    width: 100%;
    resize: vertical;
    box-shadow: none;
}

#task-modal #task_comment:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

#task-modal #addTaskCommentBtn {
    border-radius: 8px;
    font-weight: 650;
    background: #7c3aed;
    border-color: #7c3aed;
}

#task-modal .task-comment-dropzone {
    border-radius: 8px;
    margin-top: 8px;
}

#task-modal #task-comments {
    margin-top: 8px;
    clear: both;
}

/* Each comment: keep Perfex float/media layout, only soften chrome */
#task-modal .task-comment {
    position: relative;
    background: #ffffff;
    border: 1px solid #ebe4ff;
    border-radius: 10px;
    padding: 12px 12px 10px !important;
    margin: 0 0 12px !important;
    box-shadow: none;
    overflow: hidden; /* contain floated avatar */
}

#task-modal .task-comment::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 3px;
    background: #8b5cf6;
}

#task-modal .task-comment.highlight-bg {
    background: #f5f3ff;
}

#task-modal .task-comment .staff-profile-image-small,
#task-modal .task-comment .client-profile-image-small,
#task-modal .task-comment .media-object {
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #ddd6fe;
}

#task-modal .task-comment .comment-wrapper {
    display: block;
    width: 100%;
    overflow: visible;
}

#task-modal .task-comment .comment-content {
    color: var(--siba-task-text);
    line-height: 1.6;
    word-break: break-word;
    overflow: auto;
}

#task-modal .task-comment .task-info-separator {
    border-top: 0;
    margin: 0;
    display: none; /* separators unused once each comment is its own card */
}

#task-modal .tasks-comments > hr {
    border-top-color: #e9e5ff;
    margin: 12px 0;
}

/* Don't restyle nested file tiles inside comments with the cyan attachment look */
#task-modal .task-comment .task-attachment,
#task-modal .task-comment li.task-attachment {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
}

/* ---- Right sidebar: info + reminders + people + upload ---- */
#task-modal .task-single-col-right {
    display: block;
}

#task-modal .task-single-col-right > .task-info-heading:first-of-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f766e !important;
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    border-radius: 10px;
    padding: 8px 10px;
    margin: 4px 0 10px !important;
}

#task-modal .task-single-col-right > .task-info-heading:first-of-type .task-info-icon,
#task-modal .task-single-col-right > .task-info-heading:first-of-type svg {
    color: #0f766e !important;
}

#task-modal .task-single-col-right .task-info {
    background: #ffffff;
    border: 1px solid var(--siba-task-border-soft);
    border-radius: 10px;
    padding: 9px 11px;
    margin-bottom: 7px;
    border-bottom: 0;
}

#task-modal .task-single-col-right .task-info h5 {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
}

#task-modal .task-single-col-right .task-info-icon {
    color: #64748b;
}

#task-modal .task-single-col-right .task-info-status {
    border-inline-start: 3px solid #0284c7;
    background: #f0f9ff;
    border-color: #bae6fd;
}

#task-modal .task-single-col-right .task-info-start-date {
    border-inline-start: 3px solid #38bdf8;
}

#task-modal .task-single-col-right .task-info-due-date {
    border-inline-start: 3px solid #f59e0b;
    background: #fffbeb;
    border-color: #fde68a;
}

#task-modal .task-single-col-right .task-info-priority {
    border-inline-start: 3px solid #ef4444;
}

#task-modal .task-single-col-right .task-info-finished {
    border-inline-start: 3px solid #059669;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

#task-modal .task-single-col-right .task-info-billable,
#task-modal .task-single-col-right .task-billable-amount,
#task-modal .task-single-col-right .task-info-hourly-rate {
    border-inline-start: 3px solid #8b5cf6;
}

#task-modal .task-single-col-right .task-info-total-logged-time,
#task-modal .task-single-col-right .task-info-user-logged-time {
    border-inline-start: 3px solid #0f766e;
}

#task-modal .task-single-col-right .task-single-inline-field {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 8px;
    background: #fff;
    min-width: 118px;
    max-width: 140px;
    text-align: center;
    direction: ltr;
    font-variant-numeric: tabular-nums;
    box-shadow: none;
}

#task-modal .task-single-col-right .task-info-separator {
    display: block;
    border: 0;
    height: 0;
    margin: 14px 0;
}

#task-modal .task-single-col-right .task-info-tags-edit,
#task-modal .task-single-col-right ul.tagit {
    border-radius: 8px;
    border-color: #c7d2fe;
    background: #eef2ff;
}

/* Section headings in right column (reminders / assignees / followers) */
#task-modal .task-single-col-right .tw-flex.tw-items-center.tw-justify-between > .task-info-heading,
#task-modal .task-single-col-right > .task-info-heading.tw-flex {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px !important;
    gap: 6px;
}

#task-modal .task-single-col-right .tw-flex.tw-items-center.tw-justify-between > .task-info-heading svg,
#task-modal .task-single-col-right > .task-info-heading.tw-flex svg {
    color: inherit !important;
    flex-shrink: 0;
}

/* Reminders block */
#task-modal .task-single-col-right .tw-flex.tw-items-center.tw-justify-between:has(> .task-info-heading) {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

#task-modal .task-single-col-right .tw-flex.tw-items-center.tw-justify-between:has(> .task-info-heading) .task-info-heading,
#task-modal .task-single-col-right .tw-flex.tw-items-center.tw-justify-between:has(> .task-info-heading) svg {
    color: #c2410c !important;
}

#task-modal .task-single-col-right .tw-flex.tw-items-center.tw-justify-between button {
    width: 30px;
    height: 30px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    background: #ea580c !important;
    color: #fff !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: 0 1px 2px rgba(234, 88, 12, 0.35);
}

#task-modal .task-single-col-right .tw-flex.tw-items-center.tw-justify-between button:hover {
    background: #c2410c !important;
    color: #fff !important;
}

#task-modal .task-single-col-right ul.mtop10 {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

#task-modal .task-single-col-right ul.mtop10 > li {
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

#task-modal .task-single-col-right ul.mtop10 > li .mbot15 {
    margin-bottom: 0 !important;
}

#task-modal .task-single-col-right ul.mtop10 > li hr.hr-10 {
    display: none;
}

#task-modal .task-single-col-right ul.mtop10 > li p {
    margin-bottom: 4px;
    color: #9a3412 !important;
    font-size: 12.5px;
}

#task-modal #newTaskReminderToggle {
    background: #fff7ed;
    border: 1px dashed #fdba74;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}

/* Assignees heading + followers heading — color cards via adjacent structure */
#task-modal .task-single-col-right > h4.task-info-heading.tw-mb-1 {
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    border-radius: 10px;
    padding: 8px 10px;
    color: #0f766e !important;
}

#task-modal .task-single-col-right > h4.task-info-heading.tw-mb-1 svg {
    color: #0f766e !important;
}

/* Followers heading is second h4.tw-mb-1 — override to violet */
#task-modal .task-single-col-right > h4.task-info-heading.tw-mb-1 ~ h4.task-info-heading.tw-mb-1 {
    background: var(--siba-task-violet-soft);
    border-color: #ddd6fe;
    color: #5b21b6 !important;
}

#task-modal .task-single-col-right > h4.task-info-heading.tw-mb-1 ~ h4.task-info-heading.tw-mb-1 svg {
    color: #5b21b6 !important;
}

#task-modal .task-single-col-right .simple-bootstrap-select {
    margin-bottom: 10px !important;
}

#task-modal .task-single-col-right .simple-bootstrap-select .bootstrap-select .dropdown-toggle {
    border-radius: 9px !important;
    border: 1px solid #99f6e4 !important;
    background: #f0fdfa !important;
    color: #115e59 !important;
    font-weight: 600;
    box-shadow: none !important;
}

#task-modal .task-single-col-right .simple-bootstrap-select .bootstrap-select .dropdown-toggle:hover,
#task-modal .task-single-col-right .simple-bootstrap-select .bootstrap-select.open .dropdown-toggle {
    border-color: #2dd4bf !important;
    background: #ccfbf1 !important;
}

/* Followers select after second people heading */
#task-modal .task-single-col-right > h4.task-info-heading.tw-mb-1 ~ h4.task-info-heading.tw-mb-1 ~ .simple-bootstrap-select .bootstrap-select .dropdown-toggle {
    border-color: #c4b5fd !important;
    background: #f5f3ff !important;
    color: #5b21b6 !important;
}

#task-modal .task-single-col-right > h4.task-info-heading.tw-mb-1 ~ h4.task-info-heading.tw-mb-1 ~ .simple-bootstrap-select .bootstrap-select .dropdown-toggle:hover,
#task-modal .task-single-col-right > h4.task-info-heading.tw-mb-1 ~ h4.task-info-heading.tw-mb-1 ~ .simple-bootstrap-select .bootstrap-select.open .dropdown-toggle {
    border-color: #8b5cf6 !important;
    background: #ede9fe !important;
}

#task-modal .task_users_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-start;
    min-height: 36px;
    margin-bottom: 4px;
}

#task-modal .task-user {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    margin: 0 !important;
    text-align: center;
}

#task-modal .task-user > a {
    display: inline-flex;
    line-height: 0;
}

#task-modal .task-user .staff-profile-image-small,
#task-modal .task-user img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #5eead4;
}

#task-modal .task-user .task-user-name {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    color: #334155;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#task-modal .task-user .remove-task-user {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fee2e2;
    color: #b91c1c !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s ease;
}

#task-modal .task-user:hover .remove-task-user {
    opacity: 1;
}

#task-modal .task_users_wrapper .text-danger.display-block,
#task-modal .task_users_wrapper .display-block.tw-text-neutral-600 {
    width: 100%;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 12.5px;
}

/* Upload dropzone */
#task-modal #task-attachment.dropzone,
#task-modal form#task-attachment {
    background: #ecfeff !important;
    border: 1.5px dashed #22d3ee !important;
    border-radius: 12px !important;
    min-height: 88px;
    padding: 18px 12px !important;
    margin-top: 8px !important;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#task-modal #task-attachment.dropzone:hover,
#task-modal #task-attachment.dropzone.dz-drag-hover {
    background: #cffafe !important;
    border-color: #06b6d4 !important;
}

#task-modal #task-attachment .dz-message,
#task-modal #task-attachment .dz-default {
    margin: 0 !important;
    color: #0e7490;
    font-weight: 650;
    font-size: 13px;
}

#task-modal .gpicker,
#task-modal #dropbox-chooser-task .dropbox-chooser {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 9px !important;
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #334155 !important;
    font-weight: 650;
    padding: 7px 12px !important;
    box-shadow: none !important;
}

#task-modal .gpicker:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

/* Menu trigger (three dots) */
#task-modal .task-single-col-right .task-menu-options .trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 32px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569 !important;
}

#task-modal .task-single-col-right .task-menu-options .trigger:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* ---- All modal buttons polish ---- */
#task-modal .btn,
#_task_modal .btn {
    border-radius: 9px;
    font-weight: 650;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#task-modal .btn-primary,
#_task_modal .btn-primary {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

#task-modal .btn-primary:hover,
#task-modal .btn-primary:focus,
#_task_modal .btn-primary:hover,
#_task_modal .btn-primary:focus {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}

#task-modal .btn-success,
#_task_modal .btn-success {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

#task-modal .btn-success:hover,
#_task_modal .btn-success:hover {
    background: #047857;
    border-color: #047857;
    color: #fff;
}

#task-modal .btn-info,
#_task_modal .btn-info {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

#task-modal .btn-info:hover,
#_task_modal .btn-info:hover {
    background: #0369a1;
    border-color: #0369a1;
    color: #fff;
}

#task-modal .btn-warning,
#_task_modal .btn-warning {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

#task-modal .btn-danger,
#_task_modal .btn-danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

#task-modal .btn-danger:hover,
#_task_modal .btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

#task-modal .btn-default,
#_task_modal .btn-default {
    background: #fff;
    border-color: #cbd5e1;
    color: #334155;
}

#task-modal .btn-default:hover,
#_task_modal .btn-default:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

#task-modal .btn-sm,
#_task_modal .btn-sm {
    border-radius: 8px;
    font-weight: 650;
}

#task-modal .btn.disabled,
#task-modal .btn[disabled],
#_task_modal .btn.disabled,
#_task_modal .btn[disabled] {
    opacity: 0.55;
}

/* ==========================================================================
   Add / edit task modal — #_task_modal
   ========================================================================== */

#_task_modal .modal-dialog {
    margin-top: 32px;
}

#_task_modal .modal-content {
    border: 0;
    border-radius: var(--siba-task-radius);
    box-shadow: var(--siba-task-shadow);
    overflow: hidden;
}

#_task_modal .modal-header {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
    border-bottom: 1px solid #99f6e4;
    padding: 16px 20px;
    position: relative;
}

#_task_modal .modal-header::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 4px;
    background: var(--siba-task-accent);
}

#_task_modal.edit .modal-header {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    border-bottom-color: #bfdbfe;
}

#_task_modal.edit .modal-header::before {
    background: #2563eb;
}

#_task_modal .modal-header .modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--siba-task-text);
}

#_task_modal .modal-body {
    background: var(--siba-task-bg);
    padding: 16px 18px 8px;
}

#_task_modal .modal-body > .row > .col-md-12 {
    background: transparent;
}

#_task_modal .modal-body .form-group {
    margin-bottom: 12px;
}

#_task_modal .modal-body label,
#_task_modal .modal-body .control-label {
    font-weight: 650;
    color: #334155;
    font-size: 12.5px;
}

#_task_modal .modal-body .form-control,
#_task_modal .modal-body .bootstrap-select .dropdown-toggle,
#_task_modal .modal-body .input-group-addon {
    border-radius: 9px;
    border-color: var(--siba-task-border);
    box-shadow: none;
    background: #fff;
}

#_task_modal .modal-body .form-control:focus {
    border-color: #5eead4;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

#_task_modal #name {
    font-size: 15px;
    font-weight: 600;
    border-color: #99f6e4;
    background: #f0fdfa;
}

#_task_modal #name:focus {
    background: #fff;
}

#_task_modal .modal-body textarea.form-control {
    min-height: 100px;
    background: #fff;
}

/* Date / priority / related — soft grouping */
#_task_modal #startdate,
#_task_modal #duedate,
#_task_modal #priority,
#_task_modal #rel_type,
#_task_modal #rel_id_select,
#_task_modal #rel_id {
    border-radius: 9px;
}

#_task_modal #duedate {
    border-color: #fcd34d;
    background: #fffbeb;
}

#_task_modal #startdate {
    border-color: #7dd3fc;
    background: #f0f9ff;
}

#_task_modal .checkbox label,
#_task_modal .radio label {
    font-weight: 500;
    color: #334155;
}

#_task_modal .task-add-edit-public,
#_task_modal .task-visible-to-customer {
    background: #f8fafc;
    border: 1px solid var(--siba-task-border-soft);
    border-radius: 8px;
    padding: 8px 10px;
}

#_task_modal .task-modal-assignees,
#_task_modal .task-modal-followers,
#_task_modal .task-assignees,
#_task_modal .task-followers {
    background: var(--siba-task-accent-soft);
    border: 1px solid #99f6e4;
    border-radius: var(--siba-task-radius-sm);
    padding: 12px;
    margin-bottom: 10px;
}

#_task_modal #new-task-attachments,
#_task_modal .attachments {
    background: #ecfeff;
    border: 1px dashed #22d3ee;
    border-radius: var(--siba-task-radius-sm);
    padding: 12px;
}

#_task_modal .modal-footer {
    background: #fff;
    border-top: 1px solid var(--siba-task-border);
    padding: 12px 20px;
}

#_task_modal .modal-footer .btn {
    border-radius: 9px;
    min-width: 104px;
    font-weight: 700;
}

#_task_modal .modal-footer .btn-primary,
#_task_modal .modal-footer .btn-info {
    background: var(--siba-task-accent);
    border-color: var(--siba-task-accent);
}

#_task_modal .modal-footer .btn-primary:hover,
#_task_modal .modal-footer .btn-info:hover {
    background: #0d9488;
    border-color: #0d9488;
}

#_task_modal .modal-footer .btn-default {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

#_task_modal .alert {
    border-radius: 10px;
    border: 0;
}

/* ==========================================================================
   Kanban — body.tasks #kan-ban
   ========================================================================== */

body.tasks #kan-ban-tab #search {
    border-radius: 9px;
    border-color: var(--siba-task-border);
    box-shadow: var(--siba-task-shadow-sm);
}

body.tasks #kan-ban-tab #kan-ban {
    padding-top: 8px;
    padding-bottom: 16px;
}

body.tasks #kan-ban .kan-ban-col {
    width: 300px;
}

body.tasks #kan-ban .kan-ban-col-wrapper .panel_s {
    border: 1px solid var(--siba-task-border);
    border-radius: var(--siba-task-radius);
    background: #eef2f7;
    box-shadow: var(--siba-task-shadow-sm);
    overflow: hidden;
    margin-bottom: 0;
}

body.tasks #kan-ban .kan-ban-col-wrapper .panel_s .panel-heading {
    border: 0 !important;
    border-radius: 0;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 2;
}

body.tasks #kan-ban .kan-ban-content-wrapper {
    background: transparent;
}

body.tasks #kan-ban .kan-ban-content {
    padding: 10px 8px 12px;
    background: transparent;
}

body.tasks #kan-ban li.task {
    margin-bottom: 8px;
}

body.tasks #kan-ban li.task > .panel-body {
    background: var(--siba-task-surface);
    border: 1px solid var(--siba-task-border);
    border-radius: 11px;
    box-shadow: var(--siba-task-shadow-sm);
    padding: 12px 12px 10px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

body.tasks #kan-ban li.task > .panel-body:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.09);
}

body.tasks #kan-ban li.task .task-name a {
    color: var(--siba-task-text);
    text-decoration: none;
}

body.tasks #kan-ban li.task .task-name .tw-truncate {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.tasks #kan-ban li.task .task-name a.tw-text-neutral-600,
body.tasks #kan-ban li.task .task-name > a:not(.tw-font-medium) {
    font-size: 12px;
    color: var(--siba-task-muted) !important;
    margin-top: 2px;
}

body.tasks #kan-ban li.task .tw-text-neutral-500,
body.tasks #kan-ban li.task .tw-text-neutral-600 {
    color: var(--siba-task-muted) !important;
}

body.tasks #kan-ban li.task .kanban-tags {
    margin-top: 8px;
    gap: 4px;
    flex-wrap: wrap;
}

body.tasks #kan-ban li.task .kanban-tags .label,
body.tasks #kan-ban li.task .kanban-tags .tag {
    border-radius: 999px;
    font-weight: 600;
}

body.tasks #kan-ban li.task.current-user-task > .panel-body {
    background: linear-gradient(180deg, var(--siba-task-accent-soft) 0%, #ffffff 48%);
    border-color: #5eead4;
}

body.tasks #kan-ban li.task.overdue-task > .panel-body {
    background: linear-gradient(180deg, var(--siba-task-danger-soft) 0%, #ffffff 48%);
    border-color: #fca5a5;
}

body.tasks #kan-ban li.task.overdue-task .fa-calendar-check-o {
    color: var(--siba-task-danger);
}

body.tasks #kan-ban .kanban-load-more .btn {
    border-radius: 9px;
    border-style: dashed;
    background: transparent;
    color: var(--siba-task-muted);
    font-weight: 650;
}

body.tasks #kan-ban .kanban-load-more .btn:hover:not(.disabled) {
    background: #fff;
    color: var(--siba-task-accent);
    border-color: #5eead4;
}

body.tasks #kan-ban .kanban-empty h4 {
    color: var(--siba-task-muted);
    font-size: 13px;
    font-weight: 500;
}

body.tasks #kan-ban li.task.ui-sortable-helper > .panel-body {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

body.tasks #kan-ban li.ui-sortable-placeholder {
    visibility: visible !important;
    background: #ccfbf1;
    border: 1px dashed #2dd4bf;
    border-radius: 11px;
    margin-bottom: 8px;
    min-height: 64px;
}

/* ==========================================================================
   RTL
   ========================================================================== */

html[dir="rtl"] #task-modal .task-single-col-right,
body.rtl #task-modal .task-single-col-right {
    border-left: 0;
    border-right: 1px solid var(--siba-task-border);
}

html[dir="rtl"] #_task_modal .modal-footer .btn + .btn,
body.rtl #_task_modal .modal-footer .btn + .btn {
    margin-right: 6px;
    margin-left: 0;
}

@media (max-width: 767px) {
    #task-modal .task-single-col-left,
    #task-modal .task-single-col-right,
    #_task_modal .modal-content {
        border-radius: 12px;
    }

    body.tasks #kan-ban .kan-ban-col {
        width: 280px;
    }
}
