/* One interaction palette shared by the portal and embedded unit apps.
   Loaded after their styles. Important declarations intentionally beat legacy
   component themes without changing layout, selected states or reveal logic. */
:root {
 --interaction-purple: #4f46e5;
 --interaction-ink: #3730a3;
 --interaction-fill: #eef0fe;
 --interaction-ring: 0 0 0 3px rgba(79,70,229,.12);
}
:is(
#dropZone,
#zoomCtl button,
.addBtn,
.angle-card,
.attachment-item,
.back-link,
.btn,
.btn-danger,
.btn-ghost,
.btn-icon,
.btn-outline,
.btn-primary,
.btn-soft,
.btn-whatsapp,
.btn.danger,
.btn.primary,
.calendar-add,
.calendar-daynum,
.calendar-task,
.cand-card,
.card,
.card-link,
.chat-attach,
.chat-peer,
.chat-pick-row,
.check-plus,
.colleague-item,
.comboItem,
.comboToggle,
.compose-clip,
.crm-card,
.crm-step,
.dictate-btn,
.floorSwatch,
.group-card,
.hbar-link,
.issueCard,
.jalali-picker .jp-display,
.jdpDay,
.jdpToggle,
.jp-cell,
.jp-clear,
.jp-display,
.jp-nav,
.kpi-link,
.letter-row,
.letter-subject,
.line-row,
.listItem,
.login-ways a,
.mark-option > span,
.meeting-replies > summary,
.meeting-share > summary,
.mention-opt,
.modal-header button,
.mon-highlight-link,
.mon-section,
.nav-item,
.org-card,
.panel-head .head-link,
.payBtn,
.perf-row,
.picker-item,
.qt-add-check,
.qt-cancel,
.qt-icon-btn,
.qt-menu a,
.qt-tool,
.quick-all,
.quick-item,
.recap-list a,
.record-fold > summary,
.report-page .filter-bar select,
.report-page .person-row,
.report-page .tab,
.report-page .table tbody tr,
.report-tool,
.roll-banner,
.row-link,
.saveBtn,
.sheet-table tbody tr,
.side-fold-btn,
.side-link,
.side-panel-link,
.sop-sample,
.sop-way,
.stat,
.report-page .kpi,
.stat-tile,
.tab,
.table tbody tr,
.task-title,
.tc-fold > summary,
.themeToggle,
.todo-row,
.toggleRow,
.topbar-item,
.unit-card-link,
.voice-btn,
.work-link,
.work-link.is-soon,
[contenteditable="true"],
[data-href],
[onclick],
[role="button"],
[role="option"],
[role="tab"],
a.card,
a.colleague-item,
a.crm-card,
a.kpi,
a.line-row,
a.mon-card,
a.mon-count,
a.notif-row,
a.project-card,
a.task-row,
a[href],
button,
input,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not(:disabled):not([readonly]):not(.is-soon):not(.disabled),
input:not([type="hidden"]),
select,
select:not(:disabled),
summary,
textarea,
textarea:not(:disabled):not([readonly]):not(.is-soon):not(.disabled),
tr.rowhover,
tr[data-href]
):not(:disabled):not([aria-disabled="true"]):not([readonly]):not(.is-soon):not(.disabled) {
 transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease !important;
}
:is(
#dropZone,
#zoomCtl button,
.addBtn,
.angle-card,
.attachment-item:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.back-link,
.btn,
.btn-danger,
.btn-ghost,
.btn-icon,
.btn-outline,
.btn-primary,
.btn-soft,
.btn-whatsapp,
.btn.danger,
.btn.primary,
.calendar-add,
.calendar-daynum,
.calendar-task,
.cand-card:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.card:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.card-link,
.chat-attach,
.chat-peer,
.chat-pick-row,
.check-plus,
.colleague-item:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.comboItem,
.comboToggle,
.compose-clip,
.crm-card:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.crm-step,
.dictate-btn,
.floorSwatch,
.group-card:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.hbar-link,
.issueCard,
.jalali-picker .jp-display,
.jdpDay,
.jdpToggle,
.jp-cell,
.jp-clear,
.jp-display,
.jp-nav,
.kpi-link,
.letter-row:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.letter-subject,
.line-row:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.listItem,
.login-ways a,
.mark-option > span,
.meeting-replies > summary,
.meeting-share > summary,
.mention-opt,
.modal-header button,
.mon-highlight-link,
.mon-section:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.nav-item,
.org-card:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.panel-head .head-link,
.payBtn,
.perf-row:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.picker-item,
.qt-add-check,
.qt-cancel,
.qt-icon-btn,
.qt-menu a,
.qt-tool,
.quick-all,
.quick-item:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.recap-list a,
.record-fold > summary,
.report-page .filter-bar select,
.report-page .person-row:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.report-page .tab,
.report-page .table tbody tr:is([data-href],[onclick],.rowhover,.is-clickable),
.report-tool,
.roll-banner:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.row-link,
.saveBtn,
.sheet-table tbody tr:is([data-href],[onclick],.rowhover,.is-clickable),
.side-fold-btn,
.side-link,
.side-panel-link,
.sop-sample:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.sop-way:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.stat:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.report-page .kpi:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.stat-tile:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.tab,
.table tbody tr:is([data-href],[onclick],.rowhover,.is-clickable),
.task-title,
.tc-fold > summary,
.themeToggle,
.todo-row:is(a,[data-href],[onclick],[role="button"],.is-clickable),
.toggleRow,
.topbar-item,
.unit-card-link,
.voice-btn,
.work-link,
.work-link.is-soon,
[contenteditable="true"],
[data-href],
[onclick],
[role="button"],
[role="option"],
[role="tab"],
a.card,
a.colleague-item,
a.crm-card,
a.kpi,
a.line-row,
a.mon-card,
a.mon-count,
a.notif-row,
a.project-card,
a.task-row,
a[href],
button,
input,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not(:disabled):not([readonly]):not(.is-soon):not(.disabled),
input:not([type="hidden"]),
select,
select:not(:disabled),
summary,
textarea,
textarea:not(:disabled):not([readonly]):not(.is-soon):not(.disabled),
tr.rowhover,
tr[data-href]
):not(:disabled):not([aria-disabled="true"]):not([readonly]):not(.is-soon):not(.disabled):hover {
 background-color: var(--interaction-fill) !important;
 background-image: none !important;
 border-color: var(--interaction-purple) !important;
 color: var(--interaction-ink) !important;
 box-shadow: var(--interaction-ring) !important;
 filter: none !important;
 transform: none !important;
 text-decoration: none !important;
 accent-color: var(--interaction-purple) !important;
}
:is(
#dropZone,
#zoomCtl button,
.addBtn,
.angle-card,
.attachment-item,
.back-link,
.btn,
.btn-danger,
.btn-ghost,
.btn-icon,
.btn-outline,
.btn-primary,
.btn-soft,
.btn-whatsapp,
.btn.danger,
.btn.primary,
.calendar-add,
.calendar-daynum,
.calendar-task,
.cand-card,
.card,
.card-link,
.chat-attach,
.chat-peer,
.chat-pick-row,
.check-plus,
.colleague-item,
.comboItem,
.comboToggle,
.compose-clip,
.crm-card,
.crm-step,
.dictate-btn,
.floorSwatch,
.group-card,
.hbar-link,
.issueCard,
.jalali-picker .jp-display,
.jdpDay,
.jdpToggle,
.jp-cell,
.jp-clear,
.jp-display,
.jp-nav,
.kpi-link,
.letter-row,
.letter-subject,
.line-row,
.listItem,
.login-ways a,
.mark-option > span,
.meeting-replies > summary,
.meeting-share > summary,
.mention-opt,
.modal-header button,
.mon-highlight-link,
.mon-section,
.nav-item,
.org-card,
.panel-head .head-link,
.payBtn,
.perf-row,
.picker-item,
.qt-add-check,
.qt-cancel,
.qt-icon-btn,
.qt-menu a,
.qt-tool,
.quick-all,
.quick-item,
.recap-list a,
.record-fold > summary,
.report-page .filter-bar select,
.report-page .person-row,
.report-page .tab,
.report-page .table tbody tr,
.report-tool,
.roll-banner,
.row-link,
.saveBtn,
.sheet-table tbody tr,
.side-fold-btn,
.side-link,
.side-panel-link,
.sop-sample,
.sop-way,
.stat,
.report-page .kpi,
.stat-tile,
.tab,
.table tbody tr,
.task-title,
.tc-fold > summary,
.themeToggle,
.todo-row,
.toggleRow,
.topbar-item,
.unit-card-link,
.voice-btn,
.work-link,
.work-link.is-soon,
[contenteditable="true"],
[data-href],
[onclick],
[role="button"],
[role="option"],
[role="tab"],
a.card,
a.colleague-item,
a.crm-card,
a.kpi,
a.line-row,
a.mon-card,
a.mon-count,
a.notif-row,
a.project-card,
a.task-row,
a[href],
button,
input,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not(:disabled):not([readonly]):not(.is-soon):not(.disabled),
input:not([type="hidden"]),
select,
select:not(:disabled),
summary,
textarea,
textarea:not(:disabled):not([readonly]):not(.is-soon):not(.disabled),
tr.rowhover,
tr[data-href]
):not(:disabled):not([aria-disabled="true"]):not([readonly]):not(.is-soon):not(.disabled):focus-visible {
 outline: 2px solid var(--interaction-purple) !important;
 outline-offset: 2px !important;
}
:is(.table,.sheet-table,table) tr:is([data-href],[onclick],.rowhover,.is-clickable):hover > :is(td,th) {
 background-color: var(--interaction-fill) !important;
}
:is(.side-link,.topbar-item):hover :is(.side-icon,.topbar-disc,.topbar-avatar),
:is(.hbar-link,.mon-count,.mon-highlight-link,.todo-row):is(a,[data-href],[onclick],[role="button"],.is-clickable):hover :is(.hbar-label,b,.line-title,.todo-label) {
 background-color: var(--interaction-fill) !important;
 color: var(--interaction-ink) !important;
}
.mark-option:hover input:not(:disabled) + span,
.mark-option:has(input:focus-visible) span {
 background-color: var(--interaction-fill) !important;
 border-color: var(--interaction-purple) !important;
 color: var(--interaction-ink) !important;
 box-shadow: var(--interaction-ring) !important;
}
input:not([type="hidden"]):disabled:hover,
select:disabled:hover, textarea:disabled:hover,
input[readonly]:hover, textarea[readonly]:hover {
 box-shadow: none !important; border-color: var(--border,#e3e3e8) !important;
 background-color: var(--surface,#fff) !important; cursor: default;
}
.login-seal:hover { box-shadow:none !important; transform:none !important; filter:none !important; }
@media (prefers-reduced-motion: reduce) {
 :is(
#dropZone,
#zoomCtl button,
.addBtn,
.angle-card,
.attachment-item,
.back-link,
.btn,
.btn-danger,
.btn-ghost,
.btn-icon,
.btn-outline,
.btn-primary,
.btn-soft,
.btn-whatsapp,
.btn.danger,
.btn.primary,
.calendar-add,
.calendar-daynum,
.calendar-task,
.cand-card,
.card,
.card-link,
.chat-attach,
.chat-peer,
.chat-pick-row,
.check-plus,
.colleague-item,
.comboItem,
.comboToggle,
.compose-clip,
.crm-card,
.crm-step,
.dictate-btn,
.floorSwatch,
.group-card,
.hbar-link,
.issueCard,
.jalali-picker .jp-display,
.jdpDay,
.jdpToggle,
.jp-cell,
.jp-clear,
.jp-display,
.jp-nav,
.kpi-link,
.letter-row,
.letter-subject,
.line-row,
.listItem,
.login-ways a,
.mark-option > span,
.meeting-replies > summary,
.meeting-share > summary,
.mention-opt,
.modal-header button,
.mon-highlight-link,
.mon-section,
.nav-item,
.org-card,
.panel-head .head-link,
.payBtn,
.perf-row,
.picker-item,
.qt-add-check,
.qt-cancel,
.qt-icon-btn,
.qt-menu a,
.qt-tool,
.quick-all,
.quick-item,
.recap-list a,
.record-fold > summary,
.report-page .filter-bar select,
.report-page .person-row,
.report-page .tab,
.report-page .table tbody tr,
.report-tool,
.roll-banner,
.row-link,
.saveBtn,
.sheet-table tbody tr,
.side-fold-btn,
.side-link,
.side-panel-link,
.sop-sample,
.sop-way,
.stat,
.report-page .kpi,
.stat-tile,
.tab,
.table tbody tr,
.task-title,
.tc-fold > summary,
.themeToggle,
.todo-row,
.toggleRow,
.topbar-item,
.unit-card-link,
.voice-btn,
.work-link,
.work-link.is-soon,
[contenteditable="true"],
[data-href],
[onclick],
[role="button"],
[role="option"],
[role="tab"],
a.card,
a.colleague-item,
a.crm-card,
a.kpi,
a.line-row,
a.mon-card,
a.mon-count,
a.notif-row,
a.project-card,
a.task-row,
a[href],
button,
input,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not(:disabled):not([readonly]):not(.is-soon):not(.disabled),
input:not([type="hidden"]),
select,
select:not(:disabled),
summary,
textarea,
textarea:not(:disabled):not([readonly]):not(.is-soon):not(.disabled),
tr.rowhover,
tr[data-href]
):not(:disabled):not([aria-disabled="true"]):not([readonly]):not(.is-soon):not(.disabled) { transition:none !important; }
}

:is(button,input,select,textarea):disabled:hover { filter:none !important; transform:none !important; }

/* «هاور روی کارت‌های چارت سازمانی رو حذف کن»: the org chart's cards take no
   hover colour or lift; the only sign that a card opens a person's panel is
   the hand cursor, and only for the reader who may open it. */
.oc-box:hover { transform: none !important; filter: none !important; }
/* The card's link layer is an a[href], which the palette above tints on
   hover. That rule weighs one id (its list holds #dropZone) plus six
   classes; the two ids in :not() only lift this one above it. */
a.oc-open:not(#oc-none):not(#oc-none-2):hover {
 background: none !important;
 border-color: transparent !important;
 box-shadow: none !important;
 cursor: pointer;
}

/* «فیلدهایی که قابل کلیک هستند تیترشون یا کلمه مورد نظر لینک نداشته باشه
   چون در هاورش یک کادر بنفش دورش نشون میده»: a link that is a word inside a
   row, a cell, a title or a line of text takes no box on hover — the palette
   above draws a filled ring round every a[href], which around a single word
   reads as a stray purple frame. It is underlined instead. Buttons, tabs,
   chips and whole cards keep the palette. Keyboard focus keeps its ring
   (that is the :focus-visible rule, untouched). The two ids in :not() only
   lift this rule above the palette's, which weighs an id and six classes. */
:is(td, th, p, li, h1, h2, h3, h4, label, .line-title, .line-row, .okr-card-title, .okr-kr-title,
    .okr-card-meta, .software-desc, .muted, .project-card-sub, .crm-card-meta, .panel-head)
    > a[href]:not(.btn):not(.act-btn):not(.tab):not(.chip):not(.oc-open):not(.wf-box):not(#k-none):not(#k-none-2):hover,
a.row-link:not(.btn):not(#k-none):not(#k-none-2):hover,
a.line-title:not(#k-none):not(#k-none-2):hover {
 background: none !important;
 background-color: transparent !important;
 border-color: transparent !important;
 box-shadow: none !important;
 color: var(--interaction-ink) !important;
 text-decoration: underline !important;
 text-underline-offset: 3px;
}

/* A link that reads as text, wherever it is (marked by form-helpers.js):
   no box on hover — only the underline. */
.is-text-link:not(#k-none):not(#k-none-2):hover {
 background: none !important;
 background-color: transparent !important;
 border-color: transparent !important;
 box-shadow: none !important;
 outline: none !important;
 text-decoration: underline !important;
 text-underline-offset: 3px;
}
.is-text-block:not(#k-none):not(#k-none-2):hover { text-decoration: none !important; }

/* «هاور رو فیلدها برگردون … وقتی کلمه لینک داشته باشه دورش یک کادر ایجاد
   میکنه، اون کادر حذف بشه»: a row or a card that is itself clickable keeps
   the palette's hover; a title or a link inside it (marked «is-inner-word» by
   form-helpers.js, and the known pairs below before the script has run)
   draws no box of its own — the field around it is what lights up. */
:is(a.letter-row, a.roll-banner, a.line-row, a.notif-row, a.task-row, a.card, a.crm-card,
    a.project-card, a.mon-card, a.colleague-item, tr[data-href], [data-href])
    :is(.letter-subject, .row-link, .line-title, .task-title):not(#k-none):not(#k-none-2):hover,
.is-inner-word:not(#k-none):not(#k-none-2):hover {
 background: none !important;
 background-color: transparent !important;
 border-color: transparent !important;
 box-shadow: none !important;
 outline: none !important;
 text-decoration: none !important;
}
