/* DAY ERP 1.2.8 — operational modules design system */
:root{
  --module-bg:#f7f9fc;
  --module-panel:#ffffff;
  --module-line:#e6eaf0;
  --module-line-strong:#d7dde6;
  --module-text:#202833;
  --module-muted:#748093;
  --module-soft:#f3f6fa;
  --module-red:#d12244;
  --module-red-soft:#fff1f4;
  --module-blue:#2f80ed;
  --module-blue-soft:#eef5ff;
  --module-purple:#7c3aed;
  --module-purple-soft:#f5f0ff;
  --module-orange:#e67e22;
  --module-orange-soft:#fff4e9;
  --module-yellow:#f3c716;
  --module-shadow:0 12px 34px rgba(29,42,61,.07);
}
.module-page{min-height:calc(100vh - 112px)}
.module-shell{max-width:1480px;margin:0 auto;display:grid;gap:16px;color:var(--module-text)}
.module-head{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;padding:4px 0 16px;border-bottom:1px solid var(--module-line)}
.module-head>div:first-child{min-width:0}
.module-head h1{margin:5px 0 2px;font-size:25px;line-height:1.35;color:#19212b;font-weight:850;letter-spacing:-.3px}
.module-head p{margin:0;color:var(--module-muted);font-size:12px}
.module-kicker{display:inline-flex;align-items:center;gap:7px;font-size:10px;font-weight:900;letter-spacing:.08em;color:var(--module-blue)}
.module-kicker::before{content:"";width:7px;height:7px;border-radius:2px;background:currentColor;transform:rotate(45deg)}
.module-kicker.purple{color:var(--module-purple)}
.module-kicker.orange{color:var(--module-orange)}
.module-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.module-head-actions select{min-width:150px}
.module-context-actions{align-items:flex-end}
.module-context-field{display:grid;gap:5px;min-width:170px;color:#697588;font-size:10px;font-weight:800}
.module-context-field>span{padding-right:2px}
.module-context-field select{min-width:170px}

.module-shell button,.module-shell input,.module-shell select,.module-shell textarea{font-family:inherit}
.module-shell input,.module-shell select,.module-shell textarea{
  width:100%;border:1px solid var(--module-line-strong);background:#fff;color:var(--module-text);border-radius:9px;outline:0;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.module-shell input,.module-shell select{height:40px;padding:0 11px}
.module-shell textarea{padding:10px 11px;line-height:1.85;resize:vertical;min-height:92px}
.module-shell input:hover,.module-shell select:hover,.module-shell textarea:hover{border-color:#c7d0dc}
.module-shell input:focus,.module-shell select:focus,.module-shell textarea:focus{border-color:#9caec2;box-shadow:0 0 0 3px rgba(47,128,237,.09)}
.module-shell input:disabled,.module-shell select:disabled,.module-shell textarea:disabled{background:#f4f6f8;color:#8a94a3;cursor:not-allowed}
.module-shell select{appearance:none;-webkit-appearance:none;padding-left:32px;background-image:linear-gradient(45deg,transparent 50%,#738096 50%),linear-gradient(135deg,#738096 50%,transparent 50%);background-position:14px 17px,9px 17px;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.module-shell input[type="checkbox"],.module-shell input[type="radio"]{width:17px;height:17px;min-width:17px;padding:0;accent-color:var(--module-red);box-shadow:none}
.module-shell input[type="number"]{direction:ltr;text-align:left}
.module-shell input[type="date"]{direction:ltr;text-align:left}

.primary-action,.secondary-action{height:40px;padding:0 15px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:800;font-size:12px;cursor:pointer;white-space:nowrap;transition:transform .12s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease}
.primary-action{border:1px solid var(--module-red);background:var(--module-red);color:#fff;box-shadow:0 7px 18px rgba(209,34,68,.14)}
.primary-action:hover{background:#bc1f3d;border-color:#bc1f3d;transform:translateY(-1px)}
.secondary-action{border:1px solid var(--module-line-strong);background:#fff;color:#384558;box-shadow:none}
.secondary-action:hover{border-color:#bfc9d5;background:#f8fafc}
.compact-action{height:36px;padding:0 12px;border-radius:8px;font-size:11px}
.danger-text{color:#bb2440!important}

.module-message{border:1px solid #dce6f5;background:#f4f8ff;color:#315d91;border-radius:9px;padding:9px 12px;font-size:12px}
.module-message[data-kind="error"]{border-color:#f2cbd3;background:#fff3f5;color:#a82b42}
.module-message[data-kind="ok"]{border-color:#ccdafa;background:#f2f6ff;color:#2855b5}
.module-loading{min-height:120px;display:grid;place-items:center;color:var(--module-muted);font-size:12px}
.module-loading::before{content:"";width:24px;height:24px;border:2px solid #dfe5ee;border-top-color:var(--module-blue);border-radius:50%;animation:module-spin .75s linear infinite;margin-bottom:-74px}
@keyframes module-spin{to{transform:rotate(360deg)}}

.module-tabs{display:flex;align-items:center;gap:4px;padding:4px;border-bottom:1px solid var(--module-line);overflow-x:auto}
.module-tabs button{position:relative;height:38px;padding:0 13px;border:0;background:transparent;color:#667286;border-radius:7px;cursor:pointer;font-size:12px;font-weight:750;white-space:nowrap}
.module-tabs button:hover{background:#f5f7fa;color:#333f50}
.module-tabs button.is-active{background:#fff0f3;color:var(--module-red)}
.module-tabs button.is-active::after{content:"";position:absolute;right:12px;left:12px;bottom:-5px;height:2px;border-radius:99px;background:var(--module-red)}
.module-body{min-width:0}

.module-toolbar{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}
.module-toolbar.compact{display:grid;grid-template-columns:minmax(0,1fr) 140px;padding:10px}
.module-toolbar>div{display:grid;gap:2px}
.module-toolbar b{font-size:13px;color:#273243}
.module-toolbar small{font-size:10px;color:var(--module-muted)}
.module-toolbar input[type="search"]{max-width:360px}

.module-table-wrap{overflow:auto;border:1px solid var(--module-line);border-radius:10px;background:#fff}
.module-table{width:100%;border-collapse:separate;border-spacing:0;min-width:760px;font-size:11px}
.module-table th{position:sticky;top:0;z-index:1;background:#f8fafc;color:#697588;font-weight:800;text-align:right;padding:10px 12px;border-bottom:1px solid var(--module-line);white-space:nowrap}
.module-table td{padding:11px 12px;border-bottom:1px solid #eef1f5;color:#334052;vertical-align:middle}
.module-table tbody tr{transition:background .12s ease}
.module-table tbody tr:hover{background:#fafcff}
.module-table tbody tr:last-child td{border-bottom:0}
.module-table td b{font-size:11.5px;color:#202b39}
.module-empty{padding:28px!important;text-align:center!important;color:#8a94a3!important}
.module-row-actions{display:flex;gap:6px;justify-content:flex-end}
.module-row-actions button{height:30px;border:1px solid #dfe5ec;border-radius:7px;background:#fff;color:#475569;padding:0 9px;cursor:pointer;font-size:10px}
.module-row-actions button:hover{border-color:#bdc8d5;background:#f8fafc}

.module-status{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:0 9px;border-radius:999px;background:#f1f4f8;color:#536173;font-size:9.5px;font-weight:850;white-space:nowrap;border:1px solid #e3e8ee}
.module-status[data-status="draft"]{background:#f5f6f8;color:#677384}
.module-status[data-status="submitted"],.module-status[data-status="accepted"],.module-status[data-status="active"]{background:#eef5ff;color:#2f67b4;border-color:#d6e6fb}
.module-status[data-status="quotes_ready"],.module-status[data-status="pending_finance"],.module-status[data-status="pending_ceo_approval"],.module-status[data-status="service_pending"]{background:#fff8dc;color:#826700;border-color:#f2df87}
.module-status[data-status="ordered"],.module-status[data-status="approved_for_order"]{background:#fff1e6;color:#a95611;border-color:#f4d3b5}
.module-status[data-status="completed"],.module-status[data-status="received"],.module-status[data-status="posted"],.module-status[data-status="approved"]{background:#eef3ff;color:#4a55b9;border-color:#d9def8}
.module-status[data-status="rejected"],.module-status[data-status="returned"],.module-status[data-status="returned_to_supply"],.module-status[data-status="reversed"]{background:#fff0f3;color:#b52642;border-color:#f1cbd3}

.module-empty-state{min-height:150px;display:grid;place-items:center;align-content:center;text-align:center;padding:28px;color:#8993a1;font-size:12px;border:1px dashed #dce2ea;border-radius:10px;background:#fbfcfd}
.module-empty-state.error{color:#ad2942;background:#fff5f7;border-color:#f0ccd4}
.module-section{display:grid;gap:10px;padding:15px 0;border-top:1px solid #edf0f4}
.module-section:first-child{border-top:0}
.module-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.module-section h3{margin:0;font-size:14px;color:#293444}
.module-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:4px 0 8px}
.module-summary-grid>div{padding:12px 13px;border:1px solid #e8ecf1;border-radius:9px;background:#fff;display:grid;gap:4px}
.module-summary-grid span{font-size:9.5px;color:#7d8796}
.module-summary-grid b{font-size:12px;color:#273241}

.module-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 14px}
.module-form-grid label,.module-editor>label,.workflow-start-card label{display:grid;gap:6px;color:#5d6879;font-size:10.5px;font-weight:700}
.module-form-grid .span-2{grid-column:span 2}
.module-checks{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0}
.module-checks label,.module-inline-check{display:inline-flex!important;align-items:center!important;gap:7px!important;font-size:11px!important;color:#4b586a!important;font-weight:700!important}
.journal-lines-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px;padding-top:12px;border-top:1px solid #eef1f4}
.journal-lines-head b{font-size:12px}
.journal-line,.proc-item-row,.workflow-step-editor{display:grid;align-items:end;gap:8px;margin-top:8px;padding:10px;border:1px solid #e9edf2;border-radius:9px;background:#fafbfd}
.journal-line{grid-template-columns:1.3fr 1fr 1fr 1fr auto}
.proc-item-row{grid-template-columns:1.5fr .65fr 1fr 1.25fr auto}
.workflow-step-editor{grid-template-columns:.75fr 1.1fr .8fr 1fr 1.15fr auto .7fr .85fr 1fr auto;align-items:center}
.journal-line button,.proc-item-row button,.workflow-step-editor button{width:32px;height:32px;border:1px solid #e3e7ed;border-radius:7px;background:#fff;color:#a0354a;cursor:pointer}

.module-editor{position:fixed;z-index:80;top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:min(620px,calc(100vw - 40px));max-height:min(82vh,820px);overflow:auto;background:#fff;border:1px solid #dfe5ec;border-radius:14px;box-shadow:0 0 0 100vmax rgba(25,35,49,.32),0 30px 90px rgba(26,38,56,.26);padding:20px;display:grid;align-content:start;gap:15px}
.module-editor-wide{width:min(780px,calc(100vw - 40px))}
.module-editor>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #edf0f4}
.module-editor>header h3{margin:0;font-size:17px;color:#1f2937}
.module-editor>header p{margin:4px 0 0;color:#7a8492;font-size:10.5px;line-height:1.8}
.module-editor>header>[data-close]{width:34px;height:34px;border:1px solid #e1e6ed;border-radius:8px;background:#f8fafc;color:#5b6676;font-size:20px;line-height:1;cursor:pointer}
.module-editor>header>[data-close]:hover{background:#fff0f3;border-color:#f0cad3;color:#ba2542}
.module-editor>footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding-top:13px;border-top:1px solid #edf0f4;margin-top:4px}
.module-editor>footer .module-inline-check{margin-left:auto}

/* procurement */
.procurement-layout{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:14px;min-height:590px}
.procurement-list,.procurement-detail{background:#fff;border:1px solid var(--module-line);border-radius:10px;min-width:0}
.procurement-list{overflow:hidden}
.procurement-list-rows{display:grid;max-height:620px;overflow:auto;border-top:1px solid #edf0f4}
.procurement-row{width:100%;border:0;border-bottom:1px solid #eef1f5;background:#fff;padding:12px 13px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;text-align:right;cursor:pointer;color:#293445}
.procurement-row:hover{background:#fafcff}
.procurement-row.is-selected{background:#fff4f6;box-shadow:inset -3px 0 0 var(--module-red)}
.procurement-row>span{display:grid;gap:4px;min-width:0}
.procurement-row>span:last-child{justify-items:end}
.procurement-row b{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.procurement-row small{font-size:9.5px;color:#8390a1}
.procurement-detail{padding:16px;overflow:auto}
.procurement-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:14px}
.procurement-detail-head span{font-size:10px;color:#7c8797}
.procurement-detail-head h2{font-size:18px;margin:4px 0 2px}
.procurement-detail-head p{margin:0;color:#7b8696;font-size:10.5px}
.procurement-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding-top:14px;border-top:1px solid #edf0f4}
.quote-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.quote-card{border:1px solid #e4e8ee;border-radius:9px;padding:12px;background:#fff;display:grid;gap:8px}
.quote-card.selected{border-color:#d5c4ff;background:#f8f5ff;box-shadow:inset -3px 0 0 var(--module-purple)}
.quote-card>div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.quote-card strong{font-size:13px;color:#263244}
.quote-card small{font-size:9.5px;color:#818c9d}
.history-list{display:grid;gap:0;border:1px solid #e8ecf1;border-radius:9px;overflow:hidden}
.history-list>div{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:center;padding:10px 12px;background:#fff;border-bottom:1px solid #eef1f4;font-size:10.5px}
.history-list>div:last-child{border-bottom:0}
.history-list small,.history-list span{color:#7d8897}

/* workflow */
.workflow-task-list{display:grid;gap:9px}
.workflow-task{border:1px solid #e6eaf0;border-radius:10px;background:#fff;padding:14px 15px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.workflow-task.needs-claim{border-right:3px solid var(--module-purple);background:#fbf9ff}
.workflow-task>div:first-child{min-width:0;display:grid;gap:3px}
.workflow-task span{font-size:9px;font-weight:850;color:var(--module-purple)}
.workflow-task h3{margin:0;font-size:14px;color:#283345}
.workflow-task p{margin:0;color:#5f6b7c;font-size:11px}
.workflow-task small{font-size:9.5px;color:#8a94a2}
.workflow-task-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.workflow-start-card{max-width:620px;margin:8px auto;padding:20px;border:1px solid #e6eaf0;border-radius:11px;background:#fff;display:grid;gap:14px;box-shadow:var(--module-shadow)}
.workflow-start-card h3{margin:0;font-size:17px}

/* mail — canonical two-column workspace */
.mail-page-root{padding:0!important;overflow:visible!important;background:#eef1f5}
.mail-workspace{width:100%;max-width:none;margin:0;padding:16px 18px 54px;min-height:calc(100dvh - 64px);color:#243041}
.mail-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px;padding:0 4px}
.mail-page-head h1{margin:0;font-size:22px;line-height:1.55;font-weight:900;color:#202836;letter-spacing:-.25px}
.mail-split-layout{display:grid;grid-template-columns:minmax(330px,390px) minmax(0,1fr);gap:14px;align-items:start;direction:rtl}
.mail-home,.mail-list-pane{min-width:0;border:1px solid #dfe4eb;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(31,43,58,.035)}
.mail-reader-pane{min-width:0;min-height:calc(100dvh - 150px);border:1px solid #dde3ea;border-radius:10px;background:#f7f8fa;padding:14px;box-shadow:0 8px 24px rgba(31,43,58,.035)}
.mail-reader-empty{min-height:calc(100dvh - 180px);display:grid;place-items:center;align-content:center;gap:7px;text-align:center;color:#768193;background:radial-gradient(circle at 50% 45%,#fff 0,#f8f9fb 52%,#f3f5f8 100%);border:1px dashed #dfe4ea;border-radius:8px}
.mail-reader-empty[hidden]{display:none}
.mail-reader-empty-mark{width:56px;height:56px;display:grid;place-items:center;border-radius:17px;background:#fff0f3;color:#D12244;font-size:25px;box-shadow:0 8px 22px rgba(209,34,68,.08)}
.mail-reader-empty strong{font-size:15px;color:#394557;font-weight:850}.mail-reader-empty span{font-size:12px}

.mail-toolbar-v2{display:grid;gap:9px;min-height:0;padding:11px 12px;background:#fafbfc;border-bottom:1px solid #e9edf2}
.mail-tabs{display:flex;align-items:stretch;gap:20px;height:38px;padding:0;border:0}
.mail-tabs button{position:relative;border:0;background:transparent;padding:0 2px;color:#687486;font-size:12.5px;font-weight:650;cursor:pointer}
.mail-tabs button.is-active{color:#D12244;font-weight:850}
.mail-tabs button.is-active::after{content:"";position:absolute;right:0;left:0;bottom:-1px;height:2px;border-radius:3px 3px 0 0;background:#D12244}
.mail-list-tools{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px;width:100%;min-width:0}
.mail-search{min-width:0}.mail-search input{width:100%;height:36px;border:1px solid #dce2e9;border-radius:7px;background:#fff;padding:0 12px;color:#243041;font-size:12.5px;outline:0}
.mail-search input:focus{border-color:#b8c2cf;box-shadow:0 0 0 3px rgba(209,34,68,.08)}
.mail-unread-filter{display:flex;align-items:center;gap:6px;white-space:nowrap;color:#596574;font-size:11px;font-weight:650;cursor:pointer}.mail-unread-filter input{accent-color:#D12244}
.mail-filter-wrap{position:relative}.mail-filter-icon{width:34px;height:34px;border:1px solid #dce2e9;border-radius:7px;background:#fff;color:#596574;cursor:pointer;font-size:17px}
.mail-filter-panel{position:absolute;z-index:70;left:0;top:calc(100% + 7px);width:280px;display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:11px;border:1px solid #dce2e9;border-radius:8px;background:#fff;box-shadow:0 16px 38px rgba(27,39,56,.14)}
.mail-filter-panel[hidden]{display:none}.mail-filter-panel label{display:grid;gap:5px;color:#596574;font-size:11px;font-weight:700}.mail-filter-panel input{width:100%;height:36px;border:1px solid #dce2e9;border-radius:7px;padding:0 8px;background:#fff;color:#243041;font:inherit}.mail-filter-panel>button{grid-column:1/-1;justify-self:start}
.mail-list-status{min-height:0;padding:0 12px;color:#9a3348;font-size:11.5px;background:#fff}.mail-list-status:not(:empty){padding-top:8px;padding-bottom:8px;border-bottom:1px solid #f0e3e6}
.mail-list{min-height:330px;max-height:calc(100dvh - 274px);overflow:auto;overscroll-behavior:contain;background:#fff}
.mail-thread-row-v2{position:relative;width:100%;min-height:88px;display:grid;grid-template-columns:3px 42px minmax(0,1fr) 8px;align-items:center;gap:10px;padding:11px 11px 11px 8px;border:0;border-bottom:1px solid #edf0f3;background:#fff;text-align:right;color:#243041;cursor:pointer;transition:background .14s ease,border-color .14s ease}
.mail-thread-row-v2:last-child{border-bottom:0}.mail-thread-row-v2:hover{background:#f8f9fb}.mail-thread-row-v2:focus-visible{outline:3px solid rgba(209,34,68,.18);outline-offset:-3px}.mail-thread-row-v2.is-selected{background:#f5f0f3;box-shadow:inset 0 0 0 1px #eadce1}.mail-thread-row-v2.is-unread{background:#fff7f9}.mail-thread-row-v2.is-unread.is-selected{background:#fbeef2}
.mail-unread-edge{align-self:stretch;width:3px;border-radius:5px;background:transparent}.mail-thread-row-v2.is-unread .mail-unread-edge{background:#D12244}
.mail-unread-dot{width:7px;height:7px;border-radius:50%;background:transparent;align-self:start;margin-top:8px}.mail-thread-row-v2.is-unread .mail-unread-dot{background:#D12244;box-shadow:0 0 0 3px rgba(209,34,68,.09)}
.mail-avatar{display:grid;place-items:center;flex:0 0 auto;border-radius:50%;overflow:hidden;background:#eef1f6;color:#56657a;font-weight:850;line-height:1;border:1px solid rgba(56,72,92,.08)}.mail-avatar img{width:100%;height:100%;object-fit:cover;display:block}.mail-avatar.fallback{background:linear-gradient(145deg,#f5e9ee,#e8edf5);color:#7a4354}.mail-avatar.xs{width:30px;height:30px;font-size:10px}.mail-avatar.sm{width:40px;height:40px;font-size:12px}.mail-avatar.md{width:42px;height:42px;font-size:12px}.mail-avatar.lg{width:52px;height:52px;font-size:14px}
.mail-list-copy{display:grid;gap:2px;min-width:0}.mail-list-subject-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0}.mail-list-subject-line b{font-size:13.5px;line-height:1.55;font-weight:720;color:#273243;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mail-thread-row-v2.is-unread .mail-list-subject-line b{font-weight:900;color:#17202c}.mail-list-subject-line time{font-size:10.5px;color:#7c8795;white-space:nowrap;font-variant-numeric:tabular-nums}.mail-thread-row-v2.is-unread .mail-list-subject-line time{color:#4e5968;font-weight:750}.mail-list-sender{font-size:11.5px;color:#536174;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mail-thread-row-v2.is-unread .mail-list-sender{font-weight:800;color:#374456}.mail-list-preview{font-size:11.5px;line-height:1.6;color:#7b8593;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mail-empty-simple{padding:50px 16px;text-align:center;color:#697586;font-size:13px;background:#fff}.mail-empty-simple.is-error{color:#9f2d43}.mail-list-more-wrap{display:flex;justify-content:center;padding:8px;border-top:1px solid #edf0f3;background:#fafbfc}

.mail-thread-view{min-width:0;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible}.mail-thread-page-v2{width:100%;display:block;background:transparent;padding:0 0 8px}.mail-thread-titlebar{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:2px 2px 12px;border-bottom:1px solid #dfe4ea}.mail-thread-heading{display:grid;gap:2px;min-width:0}.mail-thread-heading h2{margin:0;font-size:20px;line-height:1.65;font-weight:900;color:#202a38;white-space:normal;overflow-wrap:anywhere}.mail-thread-heading>span{font-size:11.5px;color:#778292;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mail-thread-titlebar .mail-icon-button{display:none}
.mail-icon-button{width:34px;display:grid;height:34px;place-items:center;border:1px solid #dde3ea;border-radius:7px;background:#fff;color:#536174;cursor:pointer;font-size:18px;line-height:1}.mail-icon-button:hover{background:#f5f7fa;border-color:#c9d1dc}.mail-icon-button:focus-visible{outline:3px solid rgba(209,34,68,.17);outline-offset:2px}
.mail-history-toolbar{display:flex;justify-content:center;min-height:10px;padding:5px 0 0}.mail-documents{display:grid;gap:10px;width:100%;padding:7px 0 16px;overflow:visible;max-height:none}.mail-day-divider-v2{display:flex;align-items:center;gap:10px;margin:7px 0;color:#697586;font-size:11.5px;font-weight:650}.mail-day-divider-v2::before,.mail-day-divider-v2::after{content:"";height:1px;background:#e6eaef;flex:1}.mail-day-divider-v2 span{white-space:nowrap;padding:0 5px}
.mail-document{width:100%;border:1px solid #dfe5eb;border-right:0;border-radius:10px;background:#fbfcfe;padding:15px 17px 17px;box-shadow:0 5px 16px rgba(35,48,66,.035);display:grid;gap:12px;position:relative}.mail-document.is-original{background:linear-gradient(180deg,#fff7f9 0,#fff 120px);border-color:#ead8de;box-shadow:0 8px 24px rgba(123,54,76,.055)}.mail-document.is-original::before{content:"";position:absolute;right:0;top:0;bottom:0;width:4px;border-radius:0 10px 10px 0;background:#D12244}.mail-document.is-reply::before{content:"";position:absolute;right:0;top:15px;bottom:15px;width:2px;border-radius:3px;background:#aab6c5}
.mail-document-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 0 9px;border-bottom:1px solid #e8ecf0}.mail-document-person{display:flex;align-items:center;gap:10px;min-width:0}.mail-document-person>div{display:grid;gap:2px;min-width:0}.mail-document-person>div>small{font-size:10.5px;color:#8a6670;font-weight:750}.mail-document.is-reply .mail-document-person>div>small{color:#7d8795}.mail-document-route{display:flex;align-items:center;gap:7px;min-width:0;font-size:12.5px;line-height:1.65;color:#596574;white-space:nowrap;overflow:hidden}.mail-document-route strong{font-size:13.5px;font-weight:900;color:#253143;max-width:220px;overflow:hidden;text-overflow:ellipsis}.mail-document-route>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}.mail-document-head time{font-size:11px;color:#758191;white-space:nowrap;font-variant-numeric:tabular-nums}.mail-document-body{font-size:14.5px;line-height:2;color:#263342;font-weight:430;white-space:normal;overflow-wrap:anywhere;max-width:none;width:100%;padding:2px 3px}.mail-document.is-original .mail-document-body{font-size:15px;color:#222f3d}
.mail-attachments-v2{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding-top:2px}.mail-attachments-v2 a{display:grid;grid-template-columns:auto auto auto;align-items:center;gap:7px;max-width:100%;padding:7px 9px;border:1px solid #e0e5eb;border-radius:7px;background:#fafbfc;color:#3e5574;text-decoration:none;font-size:11px}.mail-attachments-v2 a>span{color:#8a6570;font-weight:750}.mail-attachments-v2 a>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;color:#35465d}.mail-attachments-v2 a>small{color:#7b8796;white-space:nowrap}.mail-attachments-v2 a:hover{background:#fff7f9;border-color:#e9c4cd}

.mail-reply-v2{display:grid;gap:12px;width:100%;margin:4px 0 14px;padding:15px 17px 16px;border:1px solid #dfe5ec;border-radius:8px;background:#fff;box-shadow:0 10px 30px rgba(31,43,58,.045)}.mail-reply-v2[hidden]{display:none}.mail-reply-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.mail-reply-top strong{font-size:14px;font-weight:850;color:#263242}.mail-reply-recipient-row{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:start;gap:8px}.mail-reply-recipient-row>span{padding-top:9px;font-size:12px;font-weight:750;color:#596574}.mail-reply-v2 textarea{width:100%;min-height:128px;resize:vertical;border:1px solid #dce2e9;border-radius:7px;background:#fff;padding:10px 12px;color:#243041;font-size:14px;line-height:1.85;outline:0}.mail-reply-v2 textarea:focus{border-color:#b7c1ce;box-shadow:0 0 0 3px rgba(209,34,68,.07)}.mail-new-participant-note{margin:-3px 34px 0 0;padding:7px 9px;border-right:2px solid #F3C716;background:#fffdf4;color:#695f39;font-size:11.5px;border-radius:4px}.mail-compose-tools-v2{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.mail-thread-actionbar-v2{position:sticky;z-index:25;bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;margin-top:5px;background:rgba(255,255,255,.96);border:1px solid #d8dfe7;border-radius:8px;box-shadow:0 -7px 24px rgba(31,43,58,.07);backdrop-filter:blur(8px)}.mail-action-secondary{display:flex;align-items:center;gap:8px}.mail-more-menu-wrap{position:relative}.mail-more-button{width:36px;height:34px;border:1px solid #dfe5ec;border-radius:7px;background:#fff;color:#556274;cursor:pointer;font-weight:900;letter-spacing:1px}.mail-more-menu{position:absolute;left:0;bottom:calc(100% + 7px);min-width:180px;padding:5px;border:1px solid #dfe5ec;border-radius:8px;background:#fff;box-shadow:0 14px 36px rgba(25,36,51,.14)}.mail-more-menu[hidden]{display:none}.mail-more-menu button{width:100%;border:0;background:#fff;padding:8px 9px;text-align:right;border-radius:6px;color:#354253;font-size:12px;cursor:pointer}.mail-more-menu button:hover{background:#f6f8fa}.mail-workflow-error{display:block;padding:8px 9px;color:#9d3f50;font-size:11.5px}.mail-access-summary{display:grid;gap:4px;padding:8px 9px;border-top:1px solid #edf0f3;color:#596574}.mail-access-summary b{font-size:11px;font-weight:850;color:#354253}.mail-access-summary span{font-size:10.5px;line-height:1.7;max-width:280px;white-space:normal}

.mail-recipient-picker-v2{display:grid;gap:7px;min-width:0}.mail-recipient-chips-v2{display:flex;flex-wrap:wrap;gap:6px}.mail-recipient-chip-v2{display:inline-flex;align-items:center;gap:6px;min-height:34px;max-width:100%;padding:3px 5px 3px 9px;border:1px solid #ded5ee;border-radius:7px;background:#faf7ff;color:#4f3d6f}.mail-recipient-chip-v2>span{display:grid;gap:0;min-width:0}.mail-recipient-chip-v2 b{font-size:11.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mail-recipient-chip-v2 small{font-size:9.5px;color:#796b91;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mail-recipient-chip-v2 button{width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:#745e98;font-size:17px;cursor:pointer}.mail-recipient-chip-v2 button:hover{background:#eee7f8}.mail-recipient-input-wrap{position:relative}.mail-recipient-input-wrap>input{width:100%;height:39px;border:1px solid #dce2e9;border-radius:7px;background:#fff;padding:0 11px;color:#243041;font-size:13px;outline:0}.mail-recipient-input-wrap>input:focus{border-color:#b7c1ce;box-shadow:0 0 0 3px rgba(209,34,68,.07)}.mail-recipient-results-v2{position:absolute;z-index:80;right:0;left:0;top:calc(100% + 5px);overflow:auto;padding:5px;border:1px solid #dce2e9;border-radius:8px;background:#fff;box-shadow:0 16px 38px rgba(27,39,56,.16)}.mail-recipient-results-v2.opens-up{top:auto;bottom:calc(100% + 5px)}.mail-recipient-results-v2[hidden]{display:none}.mail-recipient-results-v2 button{width:100%;min-height:45px;display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:8px;border:0;border-radius:6px;background:#fff;padding:5px 7px;text-align:right;color:#2e3949;cursor:pointer}.mail-recipient-results-v2 button:hover,.mail-recipient-results-v2 button.is-active{background:#f6f8fb}.mail-recipient-results-v2 button>span:last-child{display:grid;gap:1px;min-width:0}.mail-recipient-results-v2 b{font-size:12px}.mail-recipient-results-v2 small{font-size:10px;color:#6f7b8a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mail-person-initial{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#f2edf9;color:#654b89;font-size:12px;font-weight:850}.mail-recipient-empty{padding:12px;text-align:center;color:#778292;font-size:11.5px}
.mail-file-picker{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mail-attach-add{height:34px;border:1px solid #dce2e9;border-radius:7px;background:#fff;color:#4d5a6b;padding:0 10px;cursor:pointer;font-size:12px;font-weight:700}.mail-attach-add:hover{background:#f7f9fb}.mail-file-list{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.mail-file-chip{display:inline-flex;align-items:center;gap:6px;max-width:330px;padding:4px 5px 4px 8px;border:1px solid #e1e6ec;border-radius:7px;background:#fafbfc;color:#445267}.mail-file-chip b{font-size:10.5px;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mail-file-chip small{font-size:9px;color:#7b8797;white-space:nowrap}.mail-file-chip button{width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:#7c8796;cursor:pointer;font-size:16px}.mail-file-chip button:hover{background:#eef1f4;color:#4d5867}.mail-form-error{padding:9px 10px;border:1px solid #efc6ce;border-radius:7px;background:#fff6f8;color:#9a3046;font-size:12px;line-height:1.65}.mail-form-error[hidden]{display:none}

.mail-dialog-backdrop{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:18px;background:rgba(25,33,45,.30);backdrop-filter:blur(2px)}.mail-compose-modal{width:min(760px,calc(100vw - 30px));max-height:min(760px,calc(100dvh - 30px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid #dce2e9;border-radius:10px;background:#fff;box-shadow:0 22px 70px rgba(23,32,45,.22);overflow:hidden}.mail-compose-modal>header{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;border-bottom:1px solid #e6eaef}.mail-compose-modal>header h2{margin:0;font-size:18px;font-weight:850;color:#222d3b}.mail-compose-scroll{overflow:auto;padding:16px;display:grid;gap:13px}.mail-compose-modal>footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 14px;border-top:1px solid #e6eaef;background:#fbfcfd}.mail-field{display:grid;gap:6px;color:#4f5d6f;font-size:12px;font-weight:760}.mail-field>input,.mail-field>textarea{width:100%;border:1px solid #dce2e9;border-radius:7px;background:#fff;padding:9px 11px;color:#243041;font-size:14px;font-weight:430;outline:0}.mail-field>input{height:40px}.mail-field>textarea{min-height:220px;resize:vertical;line-height:1.9}.mail-field>input:focus,.mail-field>textarea:focus{border-color:#b6c0cd;box-shadow:0 0 0 3px rgba(209,34,68,.07)}.mail-cancel-button{height:38px;border:0;background:transparent;color:#586576;padding:0 12px;cursor:pointer;font-weight:700}.mail-toast{position:fixed;z-index:1400;left:22px;bottom:22px;max-width:min(430px,calc(100vw - 44px));padding:10px 13px;border:1px solid #dce2e9;border-radius:8px;background:#fff;color:#354253;box-shadow:0 14px 42px rgba(25,36,50,.16);font-size:12.5px;transform:translateY(18px);opacity:0;pointer-events:none;transition:.18s ease}.mail-toast.is-visible{opacity:1;transform:none}.mail-toast[data-kind="error"]{border-color:#e7bdc6;color:#973148}.mail-toast[data-kind="ok"]{border-color:#b9d4df;color:#315c72}.mail-toast[data-kind="warning"]{border-color:#eadc9d;color:#655d2e}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* personal system notification sound */
.notification-popover .notification-row.is-unread{background:#fff5f7;border-right:3px solid #D12244}.notification-popover>header{color:#293648}.notification-popover>header button{color:#586678}.notification-popover>header button:hover{background:#f2f4f7}.notification-head-tools{display:flex;align-items:center;gap:3px}
.notification-sound-backdrop{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:16px;background:rgba(28,36,49,.34);backdrop-filter:blur(2px);direction:rtl}.notification-sound-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff;border:1px solid #dce2e9;border-radius:12px;box-shadow:0 24px 70px rgba(20,30,44,.24);overflow:hidden}.notification-sound-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid #e7ebef}.notification-sound-dialog>header h2{margin:0;font-size:18px;color:#222d3b}.notification-sound-dialog>header p{margin:3px 0 0;font-size:11.5px;color:#778291}.notification-sound-dialog>header button{width:32px;height:32px;border:0;border-radius:7px;background:#f3f5f7;color:#5e6978;font-size:20px;cursor:pointer}.notification-sound-body{display:grid;gap:18px;padding:17px 18px;overflow:auto}.notification-sound-modes{display:grid;gap:7px}.notification-sound-modes label{display:flex;align-items:center;gap:10px;padding:10px 11px;border:1px solid #e1e6ec;border-radius:8px;background:#fbfcfd;cursor:pointer}.notification-sound-modes input{accent-color:#D12244}.notification-sound-modes span{display:grid;gap:1px}.notification-sound-modes b{font-size:12.5px;color:#2d3948}.notification-sound-modes small{font-size:10.5px;color:#7a8695}.notification-volume-row{display:grid;grid-template-columns:auto minmax(0,1fr) 48px auto;align-items:center;gap:10px;padding:12px;border:1px solid #e1e6ec;border-radius:8px}.notification-volume-row label{font-size:12px;font-weight:800;color:#394657}.notification-volume-row input{accent-color:#D12244}.notification-volume-row output{font-size:11px;color:#657181;text-align:center}.notification-volume-row button{height:34px;border:1px solid #dce2e9;border-radius:7px;background:#fff;color:#455466;padding:0 10px;cursor:pointer}.notification-custom-upload{display:grid;gap:10px;padding:13px;border:1px solid #e1e6ec;border-radius:8px;background:#fafbfc}.notification-custom-upload b{font-size:12.5px;color:#303c4c}.notification-custom-upload p{margin:3px 0 0;font-size:10.5px;line-height:1.7;color:#7b8694}.notification-custom-actions{display:flex;gap:7px;flex-wrap:wrap}.notification-sound-file{font-size:10.5px;color:#697586;min-height:16px}.notification-sound-error{padding:9px 10px;border:1px solid #efc4cd;border-radius:7px;background:#fff5f7;color:#983247;font-size:11.5px}.notification-sound-error[hidden]{display:none}.notification-sound-dialog>footer{display:flex;justify-content:flex-end;gap:8px;padding:11px 18px;border-top:1px solid #e7ebef;background:#fafbfc}

@media(max-width:980px){.mail-split-layout{grid-template-columns:minmax(300px,350px) minmax(0,1fr);gap:10px}.mail-workspace{padding-inline:12px}.mail-reader-pane{padding:10px}.mail-thread-heading h2{font-size:18px}.mail-document{padding:13px}}
@media(max-width:760px){.mail-workspace{padding:10px 10px 72px}.mail-page-head h1{font-size:20px}.mail-split-layout{display:block}.mail-list-pane{display:block}.mail-reader-pane{display:none;padding:0;border:0;box-shadow:none;background:transparent;min-height:0}.mail-page-root.mail-has-open-thread .mail-list-pane{display:none}.mail-page-root.mail-has-open-thread .mail-reader-pane{display:block}.mail-thread-titlebar .mail-icon-button{display:grid}.mail-list{max-height:none;overflow:visible}.mail-thread-row-v2{grid-template-columns:3px 38px minmax(0,1fr) 7px;min-height:82px}.mail-list-tools{grid-template-columns:minmax(0,1fr) auto}.mail-unread-filter{grid-column:1/-1}.mail-filter-panel{left:0;right:auto;width:min(280px,calc(100vw - 32px))}.mail-document-head{align-items:flex-start}.mail-document-route{white-space:normal;flex-wrap:wrap}.mail-document-head time{white-space:nowrap}.mail-document-body{font-size:14px;line-height:1.9}.mail-avatar.lg{width:46px;height:46px}.mail-reader-empty{display:none}.mail-thread-actionbar-v2{right:0;left:0;border-radius:7px}.mail-compose-modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.mail-dialog-backdrop{padding:8px}.mail-field>textarea{min-height:180px}.mail-file-chip{max-width:100%}.mail-new-participant-note{margin-right:0}.notification-volume-row{grid-template-columns:auto minmax(0,1fr) 44px}.notification-volume-row button{grid-column:1/-1;justify-self:start}}
@media(max-height:500px){.mail-dialog-backdrop{place-items:stretch center;padding:6px}.mail-compose-modal{max-height:calc(100dvh - 12px)}.mail-compose-scroll{padding:10px 14px}.mail-field>textarea{min-height:110px}.mail-compose-modal>header{min-height:46px}.mail-compose-modal>footer{padding:7px 12px}}


/* HR workspace */
.hr-shell .module-head{border-top:3px solid #D12244}.hr-tabs{overflow-x:auto;scrollbar-width:thin}.module-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:18px}.module-stat{border:1px solid #e2e5e9;border-radius:10px;padding:14px;background:#fff}.module-stat span{display:block;color:#68707c;font-size:12px}.module-stat strong{display:block;margin-top:5px;font-size:22px;color:#252a31}.module-card{border:1px solid #e2e5e9;border-radius:10px;background:#fff;padding:16px}.module-card h2,.module-split h2{font-size:16px;margin:0 0 12px}.module-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.module-detail-grid>div{padding:10px 0;border-bottom:1px solid #eef0f3}.module-detail-grid span{display:block;color:#6b7280;font-size:12px}.module-detail-grid b{display:block;margin-top:3px}.module-split{display:grid;grid-template-columns:1fr 1fr;gap:16px}.module-note{padding:10px 12px;border-right:3px solid #F3C716;background:#fffaf0;border-radius:6px}.module-empty.is-error,.module-form-message.is-error{color:#9f1833}.module-form-grid .span-2{grid-column:1/-1}@media(max-width:820px){.module-split{grid-template-columns:1fr}.hr-tabs{white-space:nowrap}.module-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* DAY ERP 1.3.12 — mobile mail workspace hardening */
@media(max-width:760px){
  .mail-page-root{overflow-x:hidden}
  .mail-workspace{padding:7px 7px calc(68px + env(safe-area-inset-bottom))!important;min-height:calc(100dvh - 64px)!important}
  .mail-page-head{gap:8px;margin-bottom:8px}
  .mail-page-head h1{font-size:18px!important}
  .mail-page-head .compact-action{width:auto!important;min-height:38px}
  .mail-home,.mail-list-pane{border-radius:8px!important;box-shadow:none!important}
  .mail-toolbar-v2{padding-inline:8px}
  .mail-tabs{overflow-x:auto;white-space:nowrap}
  .mail-list-tools{padding-inline:8px;gap:7px}
  .mail-thread-row-v2{min-height:72px!important;padding:9px 7px!important;grid-template-columns:3px 36px minmax(0,1fr) 7px!important}
  .mail-list-copy{min-width:0}
  .mail-list-subject-line b,.mail-list-preview,.mail-list-sender{overflow:hidden;text-overflow:ellipsis}
  .mail-reader-pane{width:100%;overflow-x:hidden}
  .mail-thread-titlebar{position:sticky;top:0;z-index:5;background:#fff;padding:7px 6px!important}
  .mail-thread-heading{min-width:0}
  .mail-thread-heading h2{font-size:16px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mail-documents{padding-inline:0!important}
  .mail-document{border-radius:8px!important;padding:10px!important;overflow:hidden}
  .mail-document-body{overflow-wrap:anywhere;word-break:normal}
  .mail-attachments-v2{grid-template-columns:1fr!important}
  .mail-attachments-v2 a{min-width:0;overflow:hidden}
  .mail-thread-actionbar-v2{bottom:0;padding-bottom:max(8px,env(safe-area-inset-bottom));flex-wrap:wrap}
  .mail-compose-modal{width:100%!important;max-width:none!important;max-height:calc(100dvh - 8px)!important;border-radius:10px 10px 0 0!important;align-self:end}
  .mail-dialog-backdrop{place-items:end center!important;padding:4px!important}
  .mail-compose-scroll{padding:10px!important}
  .mail-compose-modal>footer{position:sticky;bottom:0;z-index:2;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
}
@media(max-width:430px){
  .mail-workspace{min-height:calc(100dvh - 60px)!important}
  .mail-page-head{align-items:center!important;flex-direction:row!important}
  .mail-filter-panel{width:calc(100vw - 22px)!important;max-width:none}
  .mail-document-person{min-width:0}
  .mail-document-route{font-size:11.5px}
}


/* DAY ERP 1.3.12 — mail explicit close */
.mail-thread-titlebar{grid-template-columns:auto minmax(0,1fr) auto!important}.mail-thread-close{display:grid!important;color:#596574!important;font-size:21px!important}
@media(max-width:760px){.mail-thread-titlebar{grid-template-columns:auto minmax(0,1fr) auto!important}.mail-thread-close{display:grid!important}}


/* DAY ERP 1.3.14 — actor-first notification rows */
.notification-popover .notification-row-v2{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;text-align:right!important;padding:10px 11px!important;min-height:62px!important}
.notification-actor-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;position:relative;overflow:hidden;background:#f1e8ec;color:#7a4354;font-size:13px;font-weight:850;align-self:center}
.notification-actor-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.notification-row-copy{display:grid;grid-template-rows:auto auto;gap:3px;min-width:0;align-content:center}
.notification-row-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
.notification-row-title strong{font-size:12.5px;line-height:1.55;color:#273243;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notification-row-title time{font-size:9.5px;color:#8a94a3;white-space:nowrap;flex:0 0 auto}
.notification-row-context{font-size:11px;line-height:1.55;color:#667384;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.notification-popover .notification-row-v2.is-unread .notification-row-title strong{font-weight:900;color:#1f2937}
@media(max-width:760px){.notification-popover .notification-row-v2{grid-template-columns:42px minmax(0,1fr)!important}.notification-actor-avatar{width:42px;height:42px}}

/* DAY ERP 1.3.26 — Workflow Engine */
.workflow-shell{--wf-accent:#D12244;--wf-accent-soft:#fff2f5;--wf-warn:#8a6d00;--wf-warn-soft:#fff9df}
.workflow-head{border-top:3px solid var(--wf-accent);padding-top:13px}
.wf-brand-kicker{color:var(--wf-accent)!important}
.workflow-toolbar{min-height:58px}
.wf-process-toolbar{align-items:flex-end}
.wf-filter-row{display:flex!important;grid-auto-flow:column;gap:8px!important;align-items:center}
.wf-filter-row select{min-width:150px}
.wf-table-sub{display:block;margin-top:3px;color:#8791a0;font-size:9.5px;font-weight:500}

.workflow-task-list{display:grid;gap:9px}
.workflow-task{border:1px solid #e3e7ed;border-radius:10px;background:#fff;padding:14px 15px;display:flex;align-items:center;justify-content:space-between;gap:18px;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.workflow-task:hover{border-color:#d4dae3;box-shadow:0 8px 24px rgba(31,43,58,.05)}
.workflow-task.needs-claim{border-right:3px solid var(--wf-accent);background:#fffafb}
.workflow-task.is-overdue{border-right-color:#d09f00;background:#fffdf5}
.workflow-task-main{min-width:0;display:grid;gap:4px}
.workflow-task-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.workflow-task-meta>span:first-child{font-size:9.5px;font-weight:850;color:var(--wf-accent)}
.workflow-task h3{margin:0;font-size:14px;color:#253143}
.workflow-task p{margin:0;color:#5f6b7c;font-size:11.5px;overflow-wrap:anywhere}
.workflow-task-foot{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:2px}
.workflow-task-foot small{font-size:9.5px;color:#8a94a2}
.workflow-task-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.wf-warning-chip{display:inline-flex;min-height:22px;align-items:center;padding:0 7px;border-radius:999px;background:var(--wf-warn-soft);border:1px solid #eddda1;color:var(--wf-warn)!important;font-size:9px!important;font-weight:850!important}

.workflow-process-table td small{color:#8791a0;font-size:9.5px}
.workflow-template-table td:first-child{min-width:210px}
.module-row-actions button:disabled{opacity:.45;cursor:not-allowed;background:#f5f6f8}

.workflow-start-card{max-width:720px;margin:8px auto;padding:20px;border:1px solid #e3e7ed;border-radius:11px;background:#fff;display:grid;gap:15px;box-shadow:var(--module-shadow)}
.wf-start-head{display:grid;gap:3px;padding-bottom:12px;border-bottom:1px solid #edf0f4}
.wf-start-head h3{margin:0;font-size:17px;color:#273243}
.wf-start-head p{margin:0;color:#768194;font-size:11px;line-height:1.75}
.wf-start-context:empty{display:none}
.wf-context-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:4px}
.wf-context-fields label{display:grid;gap:6px;color:#5d6879;font-size:10.5px;font-weight:700}
.wf-start-actions{display:flex;justify-content:flex-end;padding-top:4px}

.workflow-modal-backdrop{position:fixed;inset:0;z-index:1700;display:grid;place-items:center;padding:18px;background:rgba(19,27,38,.42);backdrop-filter:blur(2px)}
.workflow-designer{width:min(1180px,calc(100vw - 36px));max-height:calc(100dvh - 36px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff;border:1px solid #d8dee7;border-radius:13px;box-shadow:0 28px 80px rgba(18,27,40,.26);overflow:hidden}
.workflow-designer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid #e7ebf0;background:#fff}
.workflow-designer-head>div{min-width:0}
.workflow-designer-head span{font-size:9.5px;font-weight:900;color:var(--wf-accent)}
.workflow-designer-head h2{margin:3px 0 2px;font-size:19px;color:#222d3b}
.workflow-designer-head p{margin:0;color:#798493;font-size:11px;line-height:1.7}
.wf-icon-button{width:32px!important;height:32px!important;min-width:32px;border:1px solid #e1e6ec!important;border-radius:7px!important;background:#fff!important;color:#5f6b7b!important;cursor:pointer;padding:0!important;display:grid!important;place-items:center!important;font-size:17px!important;line-height:1!important}
.wf-icon-button:hover{background:#f7f9fb!important;border-color:#cdd5df!important}
.workflow-designer-content{overflow:auto;padding:17px 18px 20px;background:#fafbfc}
.wf-designer-section{display:grid;gap:12px;padding:15px;border:1px solid #e4e8ee;border-radius:10px;background:#fff}
.wf-designer-section+.wf-designer-section{margin-top:13px}
.wf-steps-head{margin:0;padding:0 0 11px;border-top:0;border-bottom:1px solid #edf0f4}
.wf-steps-head>div{display:grid;gap:2px}
.wf-steps-head small{font-size:9.5px;color:#85909e}
.wf-step-stack{display:grid;gap:11px}
.workflow-step-editor.wf-step-card{display:block;align-items:initial;grid-template-columns:none;margin:0;padding:0;border:1px solid #dfe4eb;border-radius:10px;background:#fff;overflow:hidden}
.wf-step-card-head{display:flex;align-items:center;gap:10px;padding:10px 11px;background:#f8fafc;border-bottom:1px solid #e9edf2}
.wf-step-number{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:var(--wf-accent-soft);color:var(--wf-accent);font-size:11px;font-weight:900;flex:0 0 auto}
.wf-step-title{display:grid;gap:1px;min-width:0;flex:1}
.wf-step-title b{font-size:12px;color:#2e3948;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-step-title small{font-size:9.5px;color:#84909f}
.wf-step-head-actions{display:flex;gap:5px;margin-right:auto}
.wf-step-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px 12px;padding:13px}
.wf-step-grid label{display:grid;gap:5px;color:#626e7f;font-size:10px;font-weight:750;min-width:0}
.wf-check-field{display:flex!important;align-items:center!important;gap:7px!important;grid-column:span 2;align-self:end;min-height:40px;padding:0 9px;border:1px solid #e6eaf0;border-radius:8px;background:#fafbfc}
.wf-step-subsection{padding:12px 13px;border-top:1px solid #edf0f4;background:#fff}
.wf-subsection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.wf-subsection-head>div{display:grid;gap:1px}
.wf-subsection-head b{font-size:11px;color:#354153}
.wf-subsection-head small{font-size:9px;color:#8b95a3}
.wf-assignee-list,.wf-condition-list{display:grid;gap:7px}
.wf-assignee-row{display:grid;grid-template-columns:190px minmax(220px,1fr) 32px;align-items:center;gap:7px;padding:7px;border:1px solid #e8ecf1;border-radius:8px;background:#fbfcfd}
.wf-assignee-row>[hidden]{display:none!important}
.wf-assignee-static{height:40px;display:flex;align-items:center;padding:0 11px;border:1px solid #e3e7ed;border-radius:8px;background:#fff;color:#657183;font-size:10.5px}
.wf-condition-row{display:grid;grid-template-columns:minmax(180px,1fr) 18px minmax(180px,1fr) 32px;align-items:center;gap:7px;padding:7px;border:1px solid #e8ecf1;border-radius:8px;background:#fbfcfd}
.wf-condition-row>span{text-align:center;color:#8a94a3;font-weight:900}
.workflow-designer-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 18px;border-top:1px solid #e3e8ee;background:#fff}
.workflow-designer-footer>span{color:#808b99;font-size:9.5px;line-height:1.6}
.workflow-designer-footer>div{display:flex;gap:7px;flex:0 0 auto}

.wf-note-backdrop{z-index:1800}
.wf-note-dialog{width:min(520px,calc(100vw - 28px));display:grid;gap:0;background:#fff;border:1px solid #dce2e9;border-radius:11px;box-shadow:0 24px 70px rgba(20,30,44,.24);overflow:hidden}
.wf-note-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid #e8ecf1}
.wf-note-dialog>header h3{margin:0;font-size:16px;color:#293544}
.wf-note-dialog>header p{margin:3px 0 0;font-size:10.5px;color:#7a8695}
.wf-note-dialog>textarea{margin:14px 16px;width:calc(100% - 32px);min-height:110px}
.wf-note-dialog>footer{display:flex;justify-content:flex-end;gap:7px;padding:10px 16px;border-top:1px solid #e8ecf1;background:#fafbfc}

.workflow-instance-detail{display:grid;gap:13px}
.wf-instance-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:15px 16px;border:1px solid #e2e7ed;border-radius:10px;background:#fff}
.wf-instance-head>div:first-child{min-width:0}
.wf-instance-head span{font-size:9.5px;color:var(--wf-accent);font-weight:850}
.wf-instance-head h2{margin:4px 0 3px;font-size:19px;color:#253142}
.wf-instance-head p{margin:0;font-size:10.5px;color:#7a8695}
.wf-instance-head-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.wf-linked-source{display:flex;justify-content:flex-start}
.wf-instance-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:13px;align-items:start}
.wf-detail-section{border:1px solid #e2e7ed;border-radius:10px;background:#fff;overflow:hidden}
.wf-section-head{padding:12px 14px;border-bottom:1px solid #e9edf2;background:#fafbfc}
.wf-section-head h3{margin:0;font-size:13px;color:#303b4b}
.wf-section-head p{margin:2px 0 0;font-size:9.5px;color:#8792a0}
.wf-step-timeline{display:grid;padding:8px 14px 13px}
.wf-timeline-step{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr);gap:9px;padding:9px 0}
.wf-timeline-step:not(:last-child)::after{content:"";position:absolute;right:9px;top:30px;bottom:-10px;width:1px;background:#e3e8ee}
.wf-timeline-marker{width:19px;height:19px;border-radius:50%;border:2px solid #cfd7e1;background:#fff;z-index:1}
.wf-timeline-step[data-status="completed"] .wf-timeline-marker{border-color:#9aa9c8;background:#eef3ff}
.wf-timeline-step[data-status="returned"] .wf-timeline-marker,.wf-timeline-step[data-status="rejected"] .wf-timeline-marker{border-color:#d77d8e;background:#fff0f3}
.wf-timeline-step.is-current .wf-timeline-marker{border-color:var(--wf-accent);box-shadow:0 0 0 4px var(--wf-accent-soft)}
.wf-timeline-content{display:grid;gap:7px;min-width:0}
.wf-timeline-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wf-timeline-title>div{display:grid;gap:1px;min-width:0}
.wf-timeline-title b{font-size:11.5px;color:#303b4b}
.wf-timeline-title small{font-size:9px;color:#8993a0}
.wf-step-assignment-summary{display:flex;gap:5px;flex-wrap:wrap}
.wf-person-chip{display:inline-flex;align-items:center;gap:5px;min-height:25px;padding:0 8px;border:1px solid #e0e5eb;border-radius:999px;background:#f8fafc;color:#4f5c6d;font-size:9.5px}
.wf-person-chip small{color:#8a94a3;font-size:8.5px}
.wf-muted{font-size:9.5px;color:#929baa}
.wf-timeline-meta{display:flex;gap:10px;flex-wrap:wrap;color:#8893a1;font-size:9px}
.wf-history-list{display:grid;padding:10px 14px}
.wf-history-item{display:grid;grid-template-columns:10px minmax(0,1fr);gap:8px;padding:8px 0;border-bottom:1px solid #f0f2f5}
.wf-history-item:last-child{border-bottom:0}
.wf-history-dot{width:7px;height:7px;border-radius:50%;background:#c6ced9;margin-top:6px}
.wf-history-item>div:last-child{display:grid;gap:2px}
.wf-history-item b{font-size:10.5px;color:#394556}
.wf-history-item span{font-size:9.5px;color:#707c8c}
.wf-history-item p{margin:2px 0;padding:6px 8px;border-right:2px solid #e3e8ee;background:#fafbfc;color:#596577;font-size:10px;line-height:1.65}
.wf-history-item small{font-size:8.8px;color:#99a1ad}
.wf-instance-danger{display:flex;justify-content:flex-end;padding-top:2px}

@media(max-width:1050px){
  .wf-step-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wf-instance-layout{grid-template-columns:1fr}
}
@media(max-width:760px){
  .workflow-task{align-items:stretch;flex-direction:column}
  .workflow-task-actions{justify-content:flex-start}
  .wf-process-toolbar{align-items:stretch;flex-direction:column}
  .wf-filter-row{display:grid!important;grid-template-columns:1fr 1fr;width:100%}
  .workflow-modal-backdrop{padding:6px;place-items:end center}
  .workflow-designer{width:100%;max-height:calc(100dvh - 8px);border-radius:11px 11px 0 0}
  .workflow-designer-head{padding:13px 14px}
  .workflow-designer-content{padding:10px}
  .wf-designer-section{padding:10px}
  .wf-step-grid{grid-template-columns:1fr}
  .wf-check-field{grid-column:auto}
  .wf-assignee-row{grid-template-columns:1fr 32px}
  .wf-assignee-row>[data-assignee-type]{grid-column:1/2}
  .wf-assignee-row>[data-assignee-role],.wf-assignee-row>[data-assignee-user],.wf-assignee-row>[data-assignee-context],.wf-assignee-row>.wf-assignee-static{grid-column:1/2}
  .wf-assignee-row>[data-remove-assignee]{grid-column:2;grid-row:1}
  .wf-condition-row{grid-template-columns:minmax(0,1fr) 32px}
  .wf-condition-row>span{display:none}
  .wf-condition-row>[data-condition-key],.wf-condition-row>[data-condition-value]{grid-column:1}
  .wf-condition-row>[data-remove-condition]{grid-column:2;grid-row:1}
  .workflow-designer-footer{align-items:flex-end;flex-direction:column;padding:10px 12px}
  .workflow-designer-footer>span{max-width:none}
  .wf-context-fields{grid-template-columns:1fr}
  .wf-instance-head{flex-direction:column}
  .wf-instance-head-actions{width:100%;justify-content:space-between}
}
@media(max-width:460px){
  .wf-filter-row{grid-template-columns:1fr}
  .workflow-task-actions .compact-action{flex:1 1 auto}
  .wf-step-card-head{gap:7px}
  .wf-step-head-actions{gap:3px}
  .wf-step-head-actions .wf-icon-button{width:29px!important;height:29px!important;min-width:29px}
  .wf-subsection-head{align-items:flex-start;flex-direction:column}
}

/* 1.3.27 workflow linked contract */
.wf-contract-dialog{width:min(760px,calc(100vw - 28px))}
.wf-contract-dialog .module-detail-grid{margin:10px 0 12px}
.wf-contract-dialog [data-finance-code-form]{display:grid;gap:8px;padding:12px;border:1px solid #e4e8ed;border-radius:9px;background:#fafbfc}
.wf-contract-dialog [data-finance-code-form] label{display:grid;gap:5px;font-size:10px;color:#657182}
.wf-contract-dialog [data-finance-code-form] input{min-height:38px;border:1px solid #dce2e8;border-radius:8px;padding:0 10px;background:#fff;font:inherit}
.wf-contract-dialog [data-finance-code-form] small{font-size:9px;color:#7d8794;line-height:1.7}
.wf-contract-note{padding:10px 12px;border:1px solid #e8ebef;border-radius:8px;background:#fff}
.wf-contract-note b{font-size:10.5px;color:#374352}.wf-contract-note p{margin:4px 0 0;color:#647080;font-size:10px;line-height:1.8}

/* DAY ERP 1.3.27 R4 - replace text chevron with SVG */
.module-menu-chevron{width:20px;height:20px;display:grid;place-items:center;flex:0 0 20px;color:#777;transition:transform .18s ease,color .18s ease}
.module-menu-chevron svg{width:16px;height:16px;display:block;overflow:visible}
.module-focus-group.is-open .module-menu-chevron{transform:rotate(180deg);color:var(--focus-color,#D12244)}
