.hma-public{direction:rtl;max-width:980px;margin:30px auto;font-family:inherit}.hma-public *{box-sizing:border-box}.hma-public-card,.hma-employee-panel{background:#fff;border:1px solid #e5ebf5;border-radius:28px;box-shadow:0 24px 60px rgba(15,23,42,.08);padding:24px;margin-bottom:18px}.hma-public-head{padding:22px 24px;border-radius:24px;background:linear-gradient(135deg,#fff 0%,#f8fbff 48%,#eef4ff 100%);margin-bottom:18px}.hma-public-head span{display:inline-flex;padding:7px 12px;border-radius:999px;background:#eef4ff;border:1px solid #d8e3ff;color:#4062c7;font-size:12px;font-weight:800}.hma-public-head h2{margin:12px 0 6px;color:#162033;font-size:28px;font-weight:950}.hma-public-head p{margin:0;color:#64748b;line-height:2}.hma-public form{display:grid;gap:14px}.hma-public label{display:block;margin-bottom:7px;color:#223047;font-size:13px;font-weight:800}.hma-public input,.hma-public select,.hma-public textarea{width:100%;border:1px solid #d6dfec;border-radius:16px;min-height:48px;padding:0 14px;background:#fff}.hma-public textarea{min-height:110px;padding:12px}.hma-public button{border:0;border-radius:16px;min-height:48px;padding:0 18px;background:linear-gradient(135deg,#4f89ff 0%,#6d67ff 100%);color:#fff;font-weight:900;cursor:pointer}.hma-public button:disabled{opacity:.45;cursor:not-allowed}.hma-public button.hma-secondary{background:#f8fafc;color:#334155;border:1px solid #d6dfec}.hma-alert{padding:13px 15px;border-radius:16px;background:#eef4ff;border:1px solid #d8e3ff;color:#284ba2;margin-bottom:14px;font-weight:700}.hma-alert.is-error{background:#fff1f2;border-color:#fecdd3;color:#be123c}.hma-warning-box{background:#fff7ed;border-color:#fed7aa}.hma-public-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.hma-public-actions span{padding:10px 14px;border-radius:999px;background:#f8fbff;border:1px solid #dce6f7;color:#475569;font-weight:800}.hma-public-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0}.hma-public-stat{padding:15px;border-radius:20px;border:1px solid #e5ebf5;background:#fff;box-shadow:0 12px 25px rgba(15,23,42,.05)}.hma-public-stat span{display:block;color:#64748b;font-size:12px;font-weight:800}.hma-public-stat strong{display:block;margin-top:8px;color:#162033;font-size:20px;font-weight:950}.hma-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:14px}.hma-calendar__weekday{text-align:center;font-weight:900;color:#475569;padding:8px}.hma-day{min-height:78px;border-radius:16px;border:1px solid #e5ebf5;background:#fff;padding:9px;display:flex;flex-direction:column;justify-content:space-between}.hma-day strong{font-size:17px;color:#162033}.hma-day small{font-size:11px;color:#64748b}.hma-day.is-empty{background:transparent;border:0}.hma-day.is-present{background:#f0fdf4;border-color:#bbf7d0}.hma-day.is-absent{background:#fff1f2;border-color:#fecdd3}.hma-day.is-leave{background:#fefce8;border-color:#fde68a}.hma-day.is-off{background:#f1f5f9;border-color:#cbd5e1}.hma-day.is-holiday-work{background:#faf5ff;border-color:#d8b4fe}.hma-day.is-incomplete{background:#fff7ed;border-color:#fed7aa}@media(max-width:800px){.hma-public{margin:12px auto}.hma-public-card,.hma-employee-panel{border-radius:22px;padding:16px}.hma-public-stats{grid-template-columns:repeat(2,1fr)}.hma-public-head h2{font-size:22px}.hma-calendar{gap:5px}.hma-day{min-height:64px;border-radius:12px;padding:6px}.hma-public-actions{display:grid}.hma-public-actions button{width:100%}}

/* v1.1 visual polish */
.hma-public{background:linear-gradient(180deg,#f7fbff 0%,#ffffff 55%);padding:14px;border-radius:32px}
.hma-public-card,.hma-employee-panel{border-color:rgba(185,202,230,.8);box-shadow:0 26px 70px rgba(54,83,160,.12)}
.hma-public-head{background:radial-gradient(circle at 10% 10%,rgba(74,144,255,.18),transparent 32%),linear-gradient(135deg,#ffffff 0%,#f4f8ff 44%,#eef2ff 100%)}
.hma-public button{position:relative;overflow:hidden;background:linear-gradient(135deg,#2563eb 0%,#7c3aed 60%,#ec4899 100%);box-shadow:0 14px 28px rgba(79,70,229,.22);transition:.18s ease}
.hma-public button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 18px 34px rgba(79,70,229,.28)}
.hma-public button.is-loading{cursor:wait;opacity:.88}
.hma-spinner{display:inline-block;width:17px;height:17px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:999px;vertical-align:-4px;margin-left:7px;animation:hmaSpin .75s linear infinite}
@keyframes hmaSpin{to{transform:rotate(360deg)}}
.hma-public-calendar-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.hma-public-calendar-head h3{margin:0;color:#172132;font-size:22px;font-weight:950}.hma-public-calendar-head p{margin:6px 0 0;color:#64748b;font-size:13px}.hma-calendar-nav{display:flex;gap:8px;flex-wrap:wrap}.hma-calendar-nav a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:14px;padding:10px 13px;background:#f8fbff;border:1px solid #dce6f7;color:#334155;font-weight:900}.hma-greg-small,.hma-day em{display:block;font-style:normal;color:#7b8798;font-size:11px;font-weight:700;margin-top:3px;direction:ltr}.hma-day span{font-size:11px;color:#475569;font-weight:800}.hma-day{transition:.16s ease}.hma-day:hover{transform:translateY(-1px);box-shadow:0 12px 22px rgba(15,23,42,.08)}.hma-day.is-present{background:linear-gradient(180deg,#f0fdf4,#dcfce7)}.hma-day.is-absent{background:linear-gradient(180deg,#fff1f2,#ffe4e6)}.hma-day.is-leave{background:linear-gradient(180deg,#fffbeb,#fef3c7)}.hma-day.is-off{background:linear-gradient(180deg,#f8fafc,#e2e8f0)}.hma-day.is-holiday-work{background:linear-gradient(180deg,#faf5ff,#f3e8ff)}.hma-day.is-incomplete{background:linear-gradient(180deg,#fff7ed,#ffedd5)}
@media(max-width:700px){.hma-public-calendar-head{display:block}.hma-calendar-nav{margin-top:10px}.hma-calendar-nav a{flex:1}.hma-public{padding:5px}}

/* v1.2 employee portal */
.hma-live-clock{display:inline-flex;align-items:center;gap:10px;margin-top:10px;padding:10px 14px;border-radius:18px;background:#fff;border:1px solid #dce6f7;box-shadow:0 10px 24px rgba(15,23,42,.05)}.hma-live-clock span{background:transparent!important;border:0!important;color:#64748b!important;padding:0!important}.hma-live-clock strong{direction:ltr;color:#162033;font-size:18px;font-weight:950}.hma-tabs{padding:0;overflow:hidden}.hma-tab-buttons{display:flex;gap:8px;flex-wrap:wrap;padding:18px;background:linear-gradient(135deg,#f8fbff,#eef2ff);border-bottom:1px solid #e5ebf5}.hma-tab-buttons button{min-height:42px;background:#fff;color:#334155;border:1px solid #dce6f7;box-shadow:none}.hma-tab-buttons button.is-active{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;border-color:transparent}.hma-tab-panel{display:none;padding:20px}.hma-tab-panel.is-active{display:block}.hma-mini-list{display:grid;gap:10px;margin:12px 0}.hma-mini-list details{border:1px solid #e5ebf5;border-radius:16px;padding:12px;background:#fff}.hma-mini-list summary{cursor:pointer;font-weight:900;color:#172132}.hma-lunch-toast{position:fixed;right:22px;bottom:22px;z-index:999999;width:min(340px,calc(100vw - 44px));background:radial-gradient(circle at 0 0,rgba(251,191,36,.22),transparent 40%),#fff;border:1px solid #fde68a;border-radius:24px;box-shadow:0 24px 70px rgba(15,23,42,.18);padding:18px}.hma-lunch-toast strong{display:block;color:#92400e;font-size:18px;font-weight:950}.hma-lunch-toast span{display:block;color:#76542b;line-height:1.9;margin:4px 0 12px}.hma-lunch-toast button{min-height:40px;background:linear-gradient(135deg,#f59e0b,#ef4444)}
@media(max-width:700px){.hma-tab-buttons{display:grid;grid-template-columns:1fr 1fr}.hma-tab-panel{padding:14px}.hma-lunch-toast{right:10px;bottom:10px;width:calc(100vw - 20px)}}

/* v1.2.1 cleaner employee workspace */
.hma-employee-workspace{padding:0;overflow:hidden}
.hma-actions-tabs-row{margin:0;padding:16px 18px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:linear-gradient(135deg,#f8fbff 0%,#eef2ff 100%);border-bottom:1px solid #e5ebf5}
.hma-actions-tabs-row>button,.hma-actions-tabs-row>span{flex:0 0 auto}
.hma-actions-tabs-row .hma-tab-buttons--inline{flex:1 1 460px;display:flex;justify-content:flex-start;gap:8px;padding:0;background:transparent;border:0}
.hma-actions-tabs-row .hma-tab-buttons--inline button{min-height:44px;white-space:nowrap}
.hma-payroll-tabs{padding:0;background:transparent;border:1px solid #e5ebf5;border-radius:20px;overflow:hidden;margin-top:8px}
.hma-payroll-tabs>.hma-tab-buttons--sub{padding:12px;background:#f8fafc;border-bottom:1px solid #e5ebf5}
.hma-payroll-tabs>.hma-tab-buttons--sub button{font-size:13px;min-height:40px}
.hma-payroll-tabs>.hma-tab-panel{padding:16px;background:#fff}
.hma-public small{display:block;margin-top:6px;color:#64748b;font-size:12px;line-height:1.8}
@media(max-width:700px){.hma-actions-tabs-row{display:grid;grid-template-columns:1fr}.hma-actions-tabs-row .hma-tab-buttons--inline{display:grid;grid-template-columns:1fr 1fr;flex:auto}.hma-actions-tabs-row>button,.hma-actions-tabs-row>span{width:100%}.hma-actions-tabs-row>span{text-align:center}}

/* Hermes Attendance v1.2.4 profile polish */
.hma-public{max-width:1280px;width:min(1280px,96vw);margin:24px auto}.hma-employee-panel{width:100%;padding:20px;border-radius:24px}.hma-employee-topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 20px;border:1px solid #e8edf6;background:linear-gradient(135deg,#ffffff,#f8fbff);border-radius:22px;margin-bottom:14px}.hma-employee-topbar span{display:inline-flex;font-size:11px;font-weight:800;color:#64748b}.hma-employee-topbar h2{margin:5px 0 3px;font-size:20px;color:#172132}.hma-employee-topbar p{margin:0;color:#64748b;font-size:12px}.hma-live-clock{min-width:155px;text-align:left;background:#fff;border:1px solid #e5ebf5;border-radius:18px;padding:12px 14px;box-shadow:0 10px 24px rgba(15,23,42,.05)}.hma-live-clock span{display:block;justify-content:flex-end;font-size:10px;color:#94a3b8}.hma-live-clock strong{font-size:22px;letter-spacing:.5px;color:#172132}.hma-public-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.hma-public-stat{padding:12px;border-radius:18px}.hma-public-stat span{font-size:11px}.hma-public-stat strong{font-size:16px;line-height:1.5;word-break:keep-all}.hma-employee-nav-card{padding:12px 14px;border-radius:20px}.hma-actions-tabs-row{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.hma-tab-links{display:flex;gap:8px;flex-wrap:wrap}.hma-tab-links a{display:inline-flex;align-items:center;gap:6px;text-decoration:none;border:1px solid #dbe4f0;background:#f8fafc;color:#44546a;border-radius:14px;padding:9px 12px;font-size:12px;font-weight:800;transition:.15s ease}.hma-tab-links a.is-active,.hma-tab-links a:hover{background:#eef4ff;color:#3157c9;border-color:#c7d8ff}.hma-tab-links [data-hma-badge]{display:inline-flex;min-width:18px;height:18px;align-items:center;justify-content:center;border-radius:99px;background:#ef4444;color:#fff;font-size:10px}.hma-public-actions>button,.hma-public-actions form button,.hma-section-card button{background:#3454d1;border:0;color:#fff;border-radius:14px;padding:10px 16px;font-weight:900;cursor:pointer}.hma-public-actions .hma-alert-inline{display:inline-flex;align-items:center;margin:0;padding:9px 12px;font-size:12px}.hma-current-in{font-size:12px;font-weight:800;color:#64748b}.hma-calendar-legend{gap:8px!important;row-gap:8px}.hma-calendar-legend span{margin:0 0 0 4px;white-space:nowrap}.hma-calendar .hma-day{border:1px solid #e5ebf5;font-family:inherit;text-align:right}.hma-calendar button.hma-day{cursor:pointer}.hma-day.has-note:after{content:'یادداشت';display:inline-block;margin-top:4px;font-size:9px;font-weight:900;color:#4f46e5}.hma-note-modal textarea{width:100%}.hma-public input[type=file],.hma-admin-shell input[type=file]{width:100%;border:1.5px dashed #d7ddea;border-radius:24px;background:#fbfcff;padding:28px;text-align:center;color:#0f766e}.hma-public input[type=file]::file-selector-button,.hma-admin-shell input[type=file]::file-selector-button{border:0;background:#10b981;color:#fff;border-radius:14px;padding:10px 16px;font-weight:900;margin-left:14px;cursor:pointer}.hma-chat-message{border:1px solid #e8edf6!important;background:#fff!important;border-radius:18px!important}.hma-chat-message.is-mine{background:#f8fbff!important}.hma-chat-message p{margin:0 0 6px}.hma-chat-message small{font-size:11px;color:#94a3b8}.hma-chat-delete-text{border:0!important;background:transparent!important;color:#ef6b6b!important;padding:0 6px!important;font-size:12px!important;box-shadow:none!important}.hma-chat-threads button{background:#fff!important;color:#334155!important;border-color:#dbe4f0!important}.hma-chat-threads button:hover{background:#f8fafc!important}.hma-payroll-tabs .hma-tab-buttons--sub button{background:#f8fafc;color:#44546a;border:1px solid #dbe4f0;border-radius:12px}.hma-payroll-tabs .hma-tab-buttons--sub button.is-active{background:#eef4ff;color:#3157c9;border-color:#c7d8ff;box-shadow:none}@media(max-width:900px){.hma-employee-topbar{display:block}.hma-live-clock{text-align:right;margin-top:12px}.hma-public-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hma-actions-tabs-row{align-items:stretch}.hma-tab-links a{flex:1;justify-content:center}.hma-public{width:96vw}}


/* Hermes Attendance v1.2.5 chat bubbles */
.hma-chat-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:14px;align-items:start}.hma-chat-threads{background:#fff;border:1px solid #e8edf6;border-radius:22px;padding:10px;display:grid;gap:8px}.hma-chat-threads button{width:100%;text-align:right;border-radius:14px!important}.hma-chat-room{height:470px;overflow:auto;background:linear-gradient(180deg,#f8fafc,#eef4ff);border:1px solid #dbe4f0;border-radius:24px;padding:16px;display:flex;flex-direction:column;gap:10px}.hma-chat-row{display:flex;width:100%}.hma-chat-row.is-mine{justify-content:flex-end}.hma-chat-row.is-other{justify-content:flex-start}.hma-chat-bubble{max-width:min(74%,620px);border:1px solid #e0e7f2;background:#fff;border-radius:20px;padding:10px 12px;box-shadow:0 8px 20px rgba(15,23,42,.05)}.hma-chat-row.is-mine .hma-chat-bubble{background:#eaf2ff;border-color:#c7d8ff;border-bottom-right-radius:6px}.hma-chat-row.is-other .hma-chat-bubble{background:#fff;border-bottom-left-radius:6px}.hma-chat-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:6px;color:#64748b;font-size:11px}.hma-chat-meta strong{color:#334155;font-size:12px}.hma-chat-bubble p{margin:0;color:#172132;line-height:1.9;white-space:pre-wrap}.hma-chat-delete-text{display:inline-flex!important;margin-top:5px}.hma-chat-message{display:none!important}@media(max-width:850px){.hma-chat-layout{grid-template-columns:1fr}.hma-chat-room{height:380px}.hma-chat-bubble{max-width:88%}}

/* Hermes Attendance v1.2.6 cleaner chat/profile fixes */
.hma-employee-topbar{direction:rtl}.hma-employee-identity{text-align:right}.hma-live-clock{text-align:left;align-items:flex-end}.hma-current-in-top{display:block;margin-top:6px;font-style:normal;font-size:11px;font-weight:900;color:#2563eb;direction:rtl}.hma-current-in{display:none!important}.hma-tab-links [data-hma-badge]:empty{display:none!important}.hma-tab-links [data-hma-badge]{margin-inline-start:3px}.hma-actions-tabs-row{background:#fff;border-bottom:0}.hma-tab-links a{background:#f7f9fc;border-color:#e5ebf5;color:#475569;border-radius:13px}.hma-tab-links a.is-active,.hma-tab-links a:hover{background:#eef4ff;border-color:#d7e4ff;color:#3157c9}.hma-chat-shell{display:grid;grid-template-columns:235px minmax(0,1fr);gap:14px}.hma-chat-side{display:grid;gap:10px;align-content:start}.hma-chat-main{display:grid;gap:10px;min-width:0}.hma-chat-members-box{background:#fff;border:1px solid #e5ebf5;border-radius:18px;padding:10px 12px;color:#64748b;font-size:12px;line-height:1.9}.hma-chat-threads{box-shadow:none;background:#fff;border-radius:18px}.hma-chat-threads button{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff!important;border:0!important;border-bottom:1px solid #eef2f7!important;border-radius:0!important;box-shadow:none!important;padding:10px 8px!important}.hma-chat-threads button:last-child{border-bottom:0!important}.hma-chat-threads button span{font-weight:900;color:#334155}.hma-chat-threads button small{font-size:10px;color:#94a3b8}.hma-chat-empty{padding:22px;text-align:center;color:#64748b}.hma-chat-room{height:500px;background-image:linear-gradient(rgba(248,250,252,.82),rgba(248,250,252,.82)),url('/wp-content/themes/hermesv2_patched/assets/back-chat.png')!important;background-size:cover!important;background-position:center!important;background-attachment:fixed!important;border-color:#e5ebf5!important}.hma-chat-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(250px,62%) minmax(0,1fr);gap:0;width:100%;align-items:start}.hma-chat-row.is-mine .hma-chat-bubble{grid-column:2/4;justify-self:end}.hma-chat-row.is-other .hma-chat-bubble{grid-column:1/3;justify-self:start}.hma-chat-bubble{width:100%;max-width:620px!important;min-width:min(300px,100%);box-sizing:border-box;border-radius:18px!important}.hma-chat-row.is-mine .hma-chat-bubble{background:#dff0ff!important;border-color:#b9d9ff!important;border-bottom-right-radius:6px!important}.hma-chat-row.is-other .hma-chat-bubble{background:#fff!important;border-color:#e5ebf5!important;border-bottom-left-radius:6px!important}.hma-chat-meta strong{font-weight:950}.hma-chat-composer{display:grid;grid-template-columns:42px minmax(0,1fr) 82px;gap:8px;align-items:end;background:#fff;border:1px solid #e5ebf5;border-radius:22px;padding:8px;box-shadow:0 12px 35px rgba(15,23,42,.06)}.hma-chat-composer textarea{min-height:44px;max-height:130px;border:0!important;background:#f8fafc!important;border-radius:15px!important;resize:vertical;margin:0!important;padding:11px 13px!important}.hma-chat-composer button{height:44px;border-radius:15px!important;background:#2563eb!important;color:#fff!important;border:0!important;font-weight:900}.hma-chat-file{width:42px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:15px;background:#f8fafc;border:1px solid #e5ebf5;cursor:pointer}.hma-chat-file input{display:none!important}.hma-chat-file span{font-size:20px}.hma-chat-edit-form{display:grid;gap:8px}.hma-chat-edit-form textarea{width:100%;min-height:80px;border:1px solid #cbd5e1;border-radius:14px;background:#fff;padding:10px}.hma-chat-edit-actions{display:flex;gap:8px;justify-content:flex-end}.hma-chat-edit-actions button{border:0;border-radius:12px;padding:7px 12px;font-weight:900}.hma-chat-edit-save{background:#2563eb;color:#fff}.hma-chat-edit-cancel{background:#f1f5f9;color:#475569}.hma-danger-link{color:#dc2626!important;border-color:#fecaca!important;background:#fff5f5!important}.hma-public input[type=file].hma-chat-file-input{border:0!important;background:transparent!important;padding:0!important}.hma-chat-delete-text{color:#ef6b6b!important;background:transparent!important;border:0!important;padding:0!important}
@media(max-width:850px){.hma-chat-shell{grid-template-columns:1fr}.hma-chat-row{grid-template-columns:0 minmax(0,1fr) 0}.hma-chat-row.is-mine .hma-chat-bubble,.hma-chat-row.is-other .hma-chat-bubble{grid-column:2;max-width:100%!important}.hma-chat-composer{grid-template-columns:40px minmax(0,1fr) 70px}.hma-chat-room{height:420px;background-attachment:scroll!important}}

/* Hermes Attendance v1.2.8 configurable chat background, avatars and cleaner bubbles */
.hma-avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;overflow:hidden;flex:0 0 auto;background:linear-gradient(135deg,#eef4ff,#f8fafc);color:#3157c9;font-weight:950;border:0;box-shadow:0 8px 18px rgba(15,23,42,.08)}
.hma-avatar img{width:100%;height:100%;object-fit:cover;display:block}.hma-avatar--initials{font-size:13px}.hma-employee-identity--avatar{display:flex!important;align-items:center;gap:12px}.hma-employee-identity--avatar h2{line-height:1.5}.hma-profile-avatar--top{box-shadow:0 10px 28px rgba(49,87,201,.16)}
.hma-chat-room{height:520px;overflow-y:auto;overflow-x:hidden;background-color:#f6f8fb!important;background-image:linear-gradient(rgba(255,255,255,.32),rgba(255,255,255,.32)),var(--hma-chat-bg)!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;background-attachment:scroll!important;border:0!important;border-radius:28px!important;box-shadow:inset 0 0 0 1px rgba(226,232,240,.9),0 18px 45px rgba(15,23,42,.06);padding:18px!important;scrollbar-width:thin}
[data-hma-messages-list] .hma-mini-list{min-height:360px;max-height:560px;overflow:auto;background-color:#f6f8fb;background-image:linear-gradient(rgba(255,255,255,.45),rgba(255,255,255,.45)),var(--hma-chat-bg);background-size:100% 100%;background-position:center;background-repeat:no-repeat;border-radius:26px;padding:18px;box-shadow:inset 0 0 0 1px rgba(226,232,240,.9)}
.hma-chat-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(280px,58%) minmax(0,1fr)!important;margin:4px 0}.hma-chat-row.is-mine .hma-chat-bubble{grid-column:2/4!important;justify-self:end;background:#fff!important;border:0!important;border-bottom-right-radius:7px!important}.hma-chat-row.is-other .hma-chat-bubble{grid-column:1/3!important;justify-self:start;background:#eaf4ff!important;border:0!important;border-bottom-left-radius:7px!important}.hma-chat-bubble{width:100%!important;max-width:640px!important;min-width:min(320px,100%)!important;border:0!important;border-radius:20px!important;padding:10px 13px!important;box-shadow:0 10px 28px rgba(15,23,42,.08)!important}.hma-chat-meta{margin-bottom:5px}.hma-chat-meta strong{font-size:12px;color:#172132}.hma-chat-meta span{font-size:11px;color:#64748b}.hma-chat-text{font-size:13px;line-height:2;color:#172132}.hma-chat-delete-text{color:#f87171!important;font-size:11px!important;margin-top:7px!important}.hma-chat-side{min-width:0}.hma-chat-threads{border:0!important;border-radius:24px!important;box-shadow:0 12px 30px rgba(15,23,42,.05)!important}.hma-chat-threads button{min-height:46px!important}.hma-chat-members-box{border:0!important;border-radius:22px!important;box-shadow:0 10px 28px rgba(15,23,42,.05)!important;background:#fff!important}.hma-chat-member-list{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.hma-chat-member{display:inline-flex;align-items:center;gap:6px;background:#f8fafc;border-radius:999px;padding:4px 7px;color:#475569}.hma-chat-member b{font-size:11px}.hma-chat-composer{border:0!important;border-radius:26px!important;box-shadow:0 16px 40px rgba(15,23,42,.08)!important}.hma-chat-composer textarea{background:#fff!important}.hma-chat-file{border:0!important;background:#f1f5f9!important}.hma-chat-composer button{background:#3157c9!important}.hma-chat-edit-form textarea{background:#fff!important}
@media(max-width:850px){.hma-chat-row{grid-template-columns:0 minmax(0,1fr) 0!important}.hma-chat-row.is-mine .hma-chat-bubble,.hma-chat-row.is-other .hma-chat-bubble{grid-column:2!important;max-width:100%!important}.hma-chat-bubble{min-width:0!important}.hma-chat-room{background-size:cover!important}}

/* Hermes Attendance v1.2.9 chat rooms only */
.hma-muted{color:#64748b;font-size:12px;margin:0 0 12px}.hma-chat-composer.is-disabled{opacity:.72}.hma-chat-composer.is-disabled textarea{background:#f8fafc!important;color:#94a3b8}.hma-chat-row.is-admin .hma-chat-bubble{background:#fff7ed!important}.hma-chat-threads button small{white-space:nowrap}.hma-chat-empty{color:#64748b;font-size:12px}.hma-chat-room{contain:content}.hma-chat-bubble{overflow-wrap:anywhere}

/* Hermes Attendance v1.4.0 smart calendar / lightweight CRM */
.hma-smart-calendar-card{background:linear-gradient(180deg,#ffffff,#fbfdff);border:0!important;box-shadow:none!important}
.hma-smart-calendar{gap:10px}.hma-smart-calendar .hma-calendar__weekday{color:#7890ad;font-size:12px;background:#f8fbff;border-radius:14px;padding:10px 0}.hma-smart-day{position:relative;overflow:hidden;border:0!important;box-shadow:none!important;border-radius:20px!important;background:#eef6ff!important;min-height:96px;transition:transform .22s ease,background .22s ease!important}.hma-smart-day:before{content:'';position:absolute;inset:-40%;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.78) 48%,transparent 62%);transform:translateX(120%);transition:.55s ease;pointer-events:none}.hma-smart-day:hover:before,.hma-smart-day.is-selected:before{transform:translateX(-120%)}.hma-smart-day:hover{transform:translateY(-2px) scale(1.01);background:#e9f3ff!important}.hma-smart-day.is-selected{outline:3px solid rgba(79,137,255,.16);background:#e7f1ff!important}.hma-smart-day.is-off,.hma-smart-day.is-absent{background:#fff0f2!important;color:#8b1d2c}.hma-smart-day.is-leave{background:#fff9dd!important}.hma-smart-day.is-present{background:#ecfff4!important}.hma-smart-day.is-holiday-work{background:#f4ecff!important}.hma-smart-day mark{background:transparent;display:flex;gap:4px;align-items:center;min-height:16px}.hma-smart-day mark i{display:inline-flex;width:7px;height:7px;border-radius:50%;background:#4f46e5}.hma-smart-day mark b{display:inline-flex;min-width:18px;height:18px;align-items:center;justify-content:center;border-radius:999px;background:#ff9f1c;color:#fff;font-size:10px;line-height:1}.hma-smart-legend{padding-top:4px}.hma-smart-legend .has-task{background:#fff7ed;color:#c45b08}.hma-day-panel-root{margin-top:18px}.hma-day-expand-panel{background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border:1px solid #e5edfa;border-radius:28px;padding:22px;box-shadow:0 28px 70px rgba(40,74,120,.12);animation:hmaDayZoom .22s ease both}.hma-day-expand-panel.is-loading{color:#64748b;font-weight:900;text-align:center}.hma-day-panel-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}.hma-day-panel-head span{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef4ff;color:#3157c9;font-size:11px;font-weight:900}.hma-day-panel-head h3{margin:8px 0 4px;font-size:21px;color:#172132}.hma-day-panel-head p{margin:0;color:#64748b}.hma-day-panel-head button{width:40px!important;min-height:40px!important;border-radius:14px!important;background:#f8fafc!important;color:#334155!important;padding:0!important}.hma-day-form-grid,.hma-day-form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hma-day-form select[multiple]{min-height:130px}.hma-task-create-box{margin-top:14px;padding:16px;border-radius:22px;background:#f8fbff;border:1px solid #e5edfa}.hma-task-create-box h4,.hma-day-tasks h4{margin:0 0 12px;color:#172132}.hma-save-day-btn{margin-top:12px}.hma-day-tasks{margin-top:18px;display:grid;gap:10px}.hma-task-item{position:relative;background:#fff;border:1px solid #e8eef8;border-radius:18px;padding:13px 14px;transition:.18s ease}.hma-task-item.is-done{opacity:.75;background:#f0fdf4}.hma-task-item.is-saving{opacity:.55}.hma-task-item label{display:flex!important;align-items:center;gap:8px;margin:0!important}.hma-task-item span{display:inline-flex;margin-top:8px;border-radius:999px;background:#eef4ff;color:#3157c9;padding:5px 9px;font-size:11px;font-weight:900}.hma-task-item p{margin:8px 0 0;color:#475569}.hma-task-item small{display:block;margin-top:7px;color:#94a3b8}.hma-empty-text{color:#64748b;margin:0}.hma-project-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hma-project-card{border:1px solid #e8eef8;border-radius:22px;background:#fff;padding:16px}.hma-project-card>span{display:block;width:44px;height:6px;border-radius:99px;background:var(--pcolor);margin-bottom:10px}.hma-progress{height:8px;background:#eef2f7;border-radius:99px;overflow:hidden}.hma-progress i{display:block;height:100%;background:#4f89ff;border-radius:99px}@keyframes hmaDayZoom{from{opacity:0;transform:scale(.96) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}@media(max-width:760px){.hma-day-form-grid,.hma-day-form-row,.hma-project-cards{grid-template-columns:1fr}.hma-smart-day{min-height:78px}}

/* Hermes Attendance v1.4.1 calendar/day modal/date picker polish */
.hma-calendar-today-chip{display:inline-flex!important;align-items:center;gap:6px;background:#eef4ff!important;color:#3157c9!important;border:0!important;border-radius:999px;padding:7px 11px!important;font-size:12px!important;font-weight:900!important;margin-bottom:8px}.hma-smart-day.is-workday,.hma-smart-day.is-not-started{background:#eef7ff!important;color:#24446b}.hma-smart-day.is-off{background:#fff1f2!important;color:#8b1d2c}.hma-smart-day.is-today{box-shadow:inset 0 0 0 2px rgba(37,99,235,.38)!important;outline:4px solid rgba(37,99,235,.08)}.hma-smart-day.is-today strong:after{content:'امروز';display:inline-flex;margin-right:6px;padding:2px 6px;border-radius:999px;background:#2563eb;color:#fff;font-size:9px;vertical-align:middle}.hma-smart-day.is-absent{background:#fff1f2!important}.hma-smart-day.is-workday span,.hma-smart-day.is-not-started span{color:#315f96}.hma-smart-day.is-off span,.hma-smart-day.is-absent span{color:#be123c}.hma-smart-day.is-workday small,.hma-smart-day.is-off small,.hma-smart-day.is-not-started small{display:none!important}.hma-smart-legend{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.hma-smart-legend span{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:900}.hma-smart-legend .is-workday{background:#eef7ff;color:#315f96}.hma-smart-legend .is-off{background:#fff1f2;color:#be123c}.hma-smart-legend .is-present{background:#ecfff4;color:#15803d}.hma-smart-legend .is-absent{background:#fff1f2;color:#be123c}.hma-smart-legend .is-leave{background:#fff9dd;color:#a16207}.hma-smart-legend .is-holiday-work{background:#f4ecff;color:#7e22ce}.hma-smart-legend .is-incomplete{background:#fff7ed;color:#c2410c}.hma-day-modal-backdrop{position:fixed;inset:0;z-index:999999;background:rgba(15,23,42,.32);backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:20px;animation:hmaFadeIn .16s ease both}.hma-day-modal-backdrop .hma-day-expand-panel{width:min(980px,calc(100vw - 34px));max-height:min(86vh,820px);overflow:auto;margin:0;background:rgba(255,255,255,.96);box-shadow:0 34px 100px rgba(15,23,42,.24);border:0}.hma-day-modal-backdrop .hma-day-expand-panel::-webkit-scrollbar{width:8px}.hma-day-modal-backdrop .hma-day-expand-panel::-webkit-scrollbar-thumb{background:#d9e4f5;border-radius:99px}.hma-reminder-row{grid-template-columns:1fr 170px 1.25fr!important}.hma-public input[readonly][data-hma-jalali-picker]{cursor:pointer;background:#fbfdff}.h-birth-overlay.hma-jalali-overlay{position:fixed;inset:0;background:rgba(15,23,42,.35);backdrop-filter:blur(8px);z-index:1000000;display:none;align-items:center;justify-content:center;padding:18px}.h-birth-overlay.hma-jalali-overlay.is-open{display:flex}.hma-jalali-modal{width:min(430px,calc(100vw - 30px));background:#fff;border-radius:28px;padding:16px;box-shadow:0 34px 100px rgba(15,23,42,.25);direction:rtl}.h-birth-modal-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.h-birth-modal-title{margin:0;font-size:18px;color:#172132;font-weight:950}.h-birth-modal-close{border:0!important;background:#f8fafc!important;color:#334155!important;box-shadow:none!important;width:38px!important;min-height:38px!important;border-radius:14px!important;padding:0!important}.h-birth-picker-toolbar{display:grid;grid-template-columns:42px 1fr 1fr 42px;gap:8px;margin-bottom:12px}.h-birth-nav{background:#eef4ff!important;color:#3157c9!important;box-shadow:none!important;border:0!important;border-radius:14px!important;padding:0!important;min-height:42px!important}.h-birth-picker-toolbar select{min-height:42px!important;border:1px solid #dce6f7!important;border-radius:14px!important;background:#fff!important;color:#172132!important;padding:0 10px!important}.h-birth-weekdays,.h-birth-days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.h-birth-weekdays span{text-align:center;color:#7890ad;font-size:12px;font-weight:900;padding:5px 0}.h-birth-empty{min-height:38px}.h-birth-day{min-height:40px!important;border:0!important;border-radius:14px!important;background:#f3f8ff!important;color:#172132!important;box-shadow:none!important;padding:0!important;font-weight:900!important}.h-birth-day:hover{background:#e7f1ff!important;transform:translateY(-1px)}.h-birth-day.is-selected{background:#3157c9!important;color:#fff!important}.h-birth-note{margin-top:10px;color:#64748b;font-size:12px;text-align:center}.hma-day-modal-backdrop .hma-alert{width:min(520px,calc(100vw - 34px));background:#fff;border:0;box-shadow:0 30px 80px rgba(15,23,42,.22)}@keyframes hmaFadeIn{from{opacity:0}to{opacity:1}}@media(max-width:760px){.hma-reminder-row{grid-template-columns:1fr!important}.hma-day-modal-backdrop{padding:10px;align-items:flex-end}.hma-day-modal-backdrop .hma-day-expand-panel{max-height:88vh;border-radius:24px 24px 16px 16px}.h-birth-overlay.hma-jalali-overlay{align-items:flex-end;padding:10px}.hma-jalali-modal{border-radius:24px 24px 16px 16px}.h-birth-picker-toolbar{grid-template-columns:38px 1fr 1fr 38px}}

/* Hermes Attendance v1.4.2 access gate / holiday color tuning */
.hma-smart-day.is-off,.hma-smart-day.is-off span,.hma-smart-day.is-off strong,.hma-smart-day.is-off em{color:#b4233c!important}
.hma-smart-day.is-off{background:#ffeef1!important}
.hma-smart-day.is-workday,.hma-smart-day.is-not-started{background:#eef7ff!important}
.hma-time-closed-screen{min-height:min(78vh,820px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:34px 26px;background:radial-gradient(circle at top,rgba(79,137,255,.12),transparent 30%),linear-gradient(180deg,#ffffff 0%,#f7fbff 100%)!important}
.hma-time-closed-illustration{width:300px;height:300px;display:flex;align-items:center;justify-content:center;margin:0 auto 10px;color:#1c274c}
.hma-time-closed-illustration svg{width:100%;height:100%}
.hma-time-closed-screen h2{margin:0 0 10px;color:#172132;font-size:30px;font-weight:950}
.hma-time-closed-screen p{max-width:620px;margin:0 auto 18px;color:#64748b;line-height:2}
.hma-time-closed-meta{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.hma-time-closed-meta span{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:#ffffff;border:1px solid #dce6f7;color:#334155;font-weight:900;box-shadow:0 10px 24px rgba(15,23,42,.06)}
@media(max-width:760px){.hma-time-closed-screen{min-height:70vh;padding:24px 18px}.hma-time-closed-illustration{width:220px;height:220px}.hma-time-closed-screen h2{font-size:24px}.hma-time-closed-meta{display:grid;grid-template-columns:1fr}.hma-time-closed-meta span{width:100%}}


/* Hermes Attendance v1.5.0 project/task workspace rebuild */
.hma-project-calendar{gap:14px!important}
.hma-day-card-v3{min-height:190px!important;border-radius:28px!important;background:#eef6ff!important;border:4px solid rgba(91,123,255,.18)!important;box-shadow:none!important;padding:16px!important;position:relative;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important}
.hma-day-card-v3 .hma-day-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;direction:ltr}
.hma-day-card-v3 strong{font-size:54px!important;line-height:.9!important;font-weight:950!important;color:#2b3038!important;letter-spacing:-2px}
.hma-day-card-v3 em{font-size:15px!important;font-weight:900!important;color:#7a8494!important;margin-top:4px!important}
.hma-day-card-v3>span{align-self:flex-start;margin-top:8px;border-radius:12px;padding:6px 12px;background:#3e66e8;color:#fff!important;font-size:13px!important;font-weight:950}
.hma-day-card-v3.is-off{background:#fff0f2!important;border-color:rgba(248,113,113,.22)!important}
.hma-day-card-v3.is-off>span{background:#ff6b7a!important}
.hma-day-card-v3.is-off em,.hma-day-card-v3.is-off strong{color:#9f1239!important}
.hma-day-card-v3 .hma-day-icons{margin-top:auto;min-height:42px;display:flex;align-items:flex-end;gap:14px;direction:ltr}
.hma-cal-icon{position:relative;display:inline-flex!important;align-items:center;justify-content:center;width:38px;height:38px;border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;min-height:0!important;border-radius:12px!important;text-decoration:none!important;cursor:pointer}
.hma-cal-icon svg{width:34px;height:34px;display:block}
.hma-cal-icon b{position:absolute;right:-4px;bottom:-6px;min-width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#30343d;color:#fff;font-size:12px;font-weight:950;line-height:1;border:2px solid #eef6ff}
.hma-cal-icon-note{margin-left:auto!important}
.hma-cal-icon-note b{background:#475569}
.hma-cal-icon-project{margin-right:auto}
.hma-cal-icon:hover{transform:translateY(-2px) scale(1.03);filter:drop-shadow(0 10px 14px rgba(15,23,42,.12))}
.hma-smart-day:before{border-radius:inherit}
.hma-smart-day:hover:before{transform:translateX(-120%)}
.hma-day-card-v3 small{display:none!important}
.hma-project-permission-box{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:center}
.hma-project-permission-box>label:first-child{grid-column:1/-1}
.hma-project-permission-box label:not(:first-child){display:flex;align-items:center;gap:8px;margin:0!important;padding:12px;border-radius:16px;background:#f8fbff;border:1px solid #e5edfa}
.hma-project-permission-box small{grid-column:1/-1}
.hma-people-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;max-height:260px;overflow:auto;padding:8px;border:1px solid #e5edfa;border-radius:18px;background:#fbfdff}
.hma-people-picker label{display:flex!important;align-items:center;gap:8px;border:1px solid #edf2fa;border-radius:16px;padding:8px;background:#fff;margin:0!important}
.hma-people-picker input{width:auto!important;min-height:auto!important}
.hma-people-picker small{display:block;margin:2px 0 0;color:#94a3b8;font-size:11px}
.hma-emp-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:#f8fbff;border:1px solid #e5edfa;color:#334155;font-weight:800}
.hma-emp-avatar-mini,.hma-stack-avatar{border-radius:50%!important;object-fit:cover}
.hma-avatar-stack{display:flex;align-items:center;gap:0;margin:10px 0}.hma-avatar-stack .hma-stack-avatar{margin-left:-8px;border:2px solid #fff;box-shadow:0 6px 14px rgba(15,23,42,.08)}
.hma-create-project-box{border:1px solid #e5edfa;border-radius:24px;background:#fff;padding:14px;margin-bottom:18px}.hma-create-project-box summary{cursor:pointer;font-weight:950;color:#23406c}
.hma-task-row-builder{position:relative;padding:16px;border-radius:22px;background:#f8fbff;border:1px dashed #cbdaf3;margin:12px 0}.hma-task-row-remove{position:absolute;top:10px;left:10px;background:transparent!important;color:#ef4444!important;box-shadow:none!important;min-height:28px!important;padding:0 8px!important}
.hma-project-cards-v2{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important}.hma-project-card-v2{box-shadow:none!important;background:#fff!important}
.hma-project-row-head{display:flex;align-items:center;gap:10px}.hma-project-row-head h4{margin:0;color:#172132}.hma-project-color{width:8px!important;height:48px!important;border-radius:99px;background:var(--pcolor)!important;display:block!important;margin:0!important}.hma-project-link,.hma-open-project{display:inline-flex;margin-top:8px;text-decoration:none;font-weight:900;color:#3157c9}
.hma-panel-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.hma-panel-title-row h3{margin:0;color:#172132}.hma-panel-title-row span{color:#64748b;font-size:12px}
.hma-task-filter-links{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.hma-task-filter-links a{padding:8px 12px;border-radius:999px;background:#eef4ff;color:#3157c9;text-decoration:none;font-weight:900}
.hma-task-list-v2{display:grid;gap:12px}.hma-task-card{background:#fff;border:1px solid #e5edfa;border-radius:22px;padding:16px}.hma-task-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.hma-task-card-head strong{font-size:16px;color:#172132}.hma-task-card-head small{display:block;color:#64748b;margin-top:5px}.hma-task-card-head span{border-radius:999px;background:#eef4ff;color:#3157c9;padding:6px 10px;font-size:11px;font-weight:950;white-space:nowrap}.hma-task-actions{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.hma-task-actions button{min-height:36px!important;border-radius:12px!important;padding:0 12px!important;font-size:12px}.hma-task-actions details{border:1px solid #e5edfa;border-radius:14px;padding:7px;background:#fbfdff}.hma-task-actions summary{cursor:pointer;font-weight:900;color:#334155}
@media(max-width:900px){.hma-day-card-v3{min-height:142px!important;padding:10px!important;border-radius:22px!important}.hma-day-card-v3 strong{font-size:36px!important}.hma-day-card-v3 em{font-size:11px!important}.hma-cal-icon{width:30px;height:30px}.hma-cal-icon svg{width:27px;height:27px}.hma-project-permission-box{grid-template-columns:1fr}}


/* Hermes Attendance v1.5.1 calendar rollback: clean previous style + report icon only */
.hma-smart-calendar:not(.hma-admin-calendar){gap:10px!important}
.hma-smart-calendar .hma-calendar__weekday{color:#7890ad;font-size:12px;background:#f8fbff;border-radius:14px;padding:10px 0}
.hma-day-card-v3{position:relative!important;overflow:hidden!important;min-height:96px!important;border:0!important;box-shadow:none!important;border-radius:20px!important;background:#eef7ff!important;padding:10px!important;transition:transform .22s ease, background .22s ease!important}
.hma-day-card-v3:before{content:'';position:absolute;inset:-40%;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.78) 48%,transparent 62%);transform:translateX(120%);transition:.55s ease;pointer-events:none;border-radius:inherit}
.hma-day-card-v3:hover:before{transform:translateX(-120%)}
.hma-day-card-v3:hover{transform:translateY(-2px) scale(1.01);background:#e9f3ff!important}
.hma-day-card-v3.is-off,.hma-day-card-v3.is-absent{background:#fff1f2!important;color:#8b1d2c}
.hma-day-card-v3.is-present{background:#ecfff4!important}
.hma-day-card-v3.is-leave{background:#fff9dd!important}
.hma-day-card-v3.is-holiday-work{background:#f4ecff!important}
.hma-day-card-v3.is-today{box-shadow:inset 0 0 0 2px rgba(37,99,235,.38)!important;outline:4px solid rgba(37,99,235,.08)!important}
.hma-day-card-v3 .hma-day-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;position:relative;z-index:1}
.hma-day-card-v3 strong{font-size:34px!important;line-height:1!important;color:#30343d!important;font-weight:950!important}
.hma-day-card-v3 em{font-size:12px!important;color:#7b8798!important;font-weight:800!important;direction:ltr!important}
.hma-day-card-v3>span{position:relative;z-index:1;display:inline-flex!important;align-self:flex-start;margin-top:3px;padding:5px 10px;border-radius:999px;background:#3157e7!important;color:#fff!important;font-size:11px!important;font-weight:950!important}
.hma-day-card-v3.is-off>span,.hma-day-card-v3.is-absent>span{background:#fecdd3!important;color:#be123c!important}
.hma-day-card-v3 small{display:none!important}
.hma-day-card-v3 .hma-day-icons{position:relative;z-index:2;display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-top:auto;min-height:36px}
.hma-day-card-v3 .hma-cal-icon-project,
.hma-day-card-v3 .hma-cal-icon-project-done,
.hma-day-card-v3 .hma-cal-icon-task,
.hma-day-card-v3 .hma-cal-icon-task-done{display:none!important}
.hma-day-card-v3 .hma-cal-icon-note{margin:0!important;margin-right:auto!important;width:36px!important;height:36px!important;min-height:36px!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;border-radius:12px!important;color:#1c274c!important;display:inline-flex!important;align-items:center;justify-content:center;cursor:pointer}
.hma-day-card-v3 .hma-cal-icon-note svg{width:34px!important;height:34px!important;display:block;filter:none!important}
.hma-day-card-v3 .hma-cal-icon-note:hover{transform:translateY(-2px) scale(1.04);filter:drop-shadow(0 10px 14px rgba(15,23,42,.14))}
.hma-day-card-v3 .hma-cal-icon-note b{position:absolute;right:-5px;bottom:-5px;min-width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#475569;color:#fff;font-size:11px;font-weight:950;border:2px solid #eef7ff}
.hma-day-card-v3.is-off .hma-day-icons{display:none!important}
.hma-calendar-legend .has-project,.hma-calendar-legend .has-task{display:none!important}
@media(max-width:900px){.hma-day-card-v3{min-height:84px!important}.hma-day-card-v3 strong{font-size:28px!important}.hma-day-card-v3 em{font-size:10px!important}.hma-day-card-v3 .hma-cal-icon-note{width:30px!important;height:30px!important}.hma-day-card-v3 .hma-cal-icon-note svg{width:28px!important;height:28px!important}}

/* v1.5.2 previous day checkout card */
.hma-prev-out-card{background:linear-gradient(180deg,#fff8f1 0%,#fffdf9 100%)!important;border:1px solid #ffd7b8!important;box-shadow:0 18px 44px rgba(249,115,22,.08)!important}
.hma-prev-out-card h3{margin:0 0 6px;color:#9a3412;font-size:21px;font-weight:950}
.hma-prev-out-card p{margin:0 0 14px;color:#7c5b47;line-height:2}
.hma-prev-out-form{display:block!important}
.hma-prev-out-label{display:block;margin:0 0 8px;color:#223047;font-size:13px;font-weight:900}
.hma-prev-out-inline{display:grid;grid-template-columns:minmax(180px,280px) minmax(220px,1fr);gap:12px;align-items:end}
.hma-prev-out-input-wrap{position:relative}
.hma-prev-out-time{width:100%!important;min-height:54px!important;padding:0 16px!important;border-radius:18px!important;border:1px solid #f1c7a7!important;background:linear-gradient(180deg,#ffffff 0%,#fff9f5 100%)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 10px 24px rgba(15,23,42,.04)!important;color:#172132!important;font-weight:900!important;font-size:17px!important;letter-spacing:.5px;text-align:center}
.hma-prev-out-time:focus{outline:none;border-color:#fb923c!important;box-shadow:0 0 0 4px rgba(251,146,60,.14)!important}
.hma-prev-out-time::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.95;transform:scale(1.1)}
.hma-prev-out-submit{min-height:54px!important;border-radius:18px!important;background:linear-gradient(135deg,#f97316 0%,#fb7185 100%)!important;color:#fff!important;font-weight:950!important;box-shadow:0 16px 35px rgba(249,115,22,.26)!important;white-space:nowrap}
.hma-prev-out-submit:hover:not(:disabled){transform:translateY(-1px)}
.hma-prev-out-help{display:block;margin-top:10px;color:#8b6b58;font-size:12px;line-height:1.9}
@media(max-width:760px){.hma-prev-out-inline{grid-template-columns:1fr}.hma-prev-out-time,.hma-prev-out-submit{min-height:50px!important}}

/* Hermes Attendance v1.5.3 calendar rollback and project task/file polish */
.hma-smart-calendar .hma-calendar__weekday{font-size:12px!important;line-height:1.7;white-space:normal!important;padding:9px 4px!important}
.hma-day-card-v3{cursor:pointer!important;border:0!important;box-shadow:none!important;background:#eef7ff!important;border-radius:20px!important;min-height:96px!important;padding:10px!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;text-align:right!important}
.hma-day-card-v3 .hma-day-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;position:relative;z-index:1}
.hma-day-card-v3 strong{font-size:34px!important;line-height:1!important;color:#30343d!important;font-weight:950!important}
.hma-day-card-v3 em{font-size:12px!important;color:#7b8798!important;font-weight:800!important;direction:ltr!important}
.hma-day-card-v3>span{position:relative;z-index:1;display:inline-flex!important;align-self:flex-start;margin-top:3px;padding:5px 10px;border-radius:999px;background:#3157e7!important;color:#fff!important;font-size:11px!important;font-weight:950!important}
.hma-day-card-v3.is-off,.hma-day-card-v3.is-absent{background:#fff1f2!important;color:#8b1d2c!important}
.hma-day-card-v3.is-off>span,.hma-day-card-v3.is-absent>span{background:#fecdd3!important;color:#be123c!important}
.hma-day-card-v3.is-present{background:#ecfff4!important}.hma-day-card-v3.is-leave{background:#fff9dd!important}.hma-day-card-v3.is-holiday-work{background:#f4ecff!important}
.hma-day-card-v3.is-today{box-shadow:inset 0 0 0 2px rgba(37,99,235,.38)!important;outline:4px solid rgba(37,99,235,.08)!important}
.hma-day-card-v3 small{display:none!important}.hma-day-card-v3 .hma-day-icons,.hma-cal-icon{display:none!important}
.hma-day-card-v3:hover{transform:translateY(-2px) scale(1.01)!important;background:#e9f3ff!important}
.hma-day-card-v3:before{content:'';position:absolute;inset:-40%;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.78) 48%,transparent 62%);transform:translateX(120%);transition:.55s ease;pointer-events:none;border-radius:inherit}
.hma-day-card-v3:hover:before{transform:translateX(-120%)}
.hma-day-card-v3.is-off{cursor:default!important}.hma-day-card-v3.is-off:hover{transform:none!important;background:#fff1f2!important}.hma-day-card-v3.is-off:before{display:none!important}
.hma-task-row-builder .hma-task-row-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
.hma-task-row-builder .hma-field--full{grid-column:1/-1!important}
.hma-task-file-input{border:1.5px dashed #d8dee9!important;border-radius:18px!important;background:#fafbfe!important;padding:16px!important;min-height:54px!important;color:#0f766e!important}
.hma-task-file-input::file-selector-button{border:0;background:#10b981;color:#fff;border-radius:13px;padding:9px 14px;font-weight:900;margin-left:12px;cursor:pointer}
.hma-project-builder-form input[type=file]{border:1.5px dashed #d8dee9!important;border-radius:18px!important;background:#fafbfe!important;padding:16px!important;color:#0f766e!important}
.hma-project-builder-form input[type=file]::file-selector-button{border:0;background:#10b981;color:#fff;border-radius:13px;padding:9px 14px;font-weight:900;margin-left:12px;cursor:pointer}
.hma-task-card>a[href*="hma_secure_download"]{display:inline-flex;margin:8px 8px 0 0;padding:8px 12px;border-radius:14px;background:#f0fdf4;color:#047857;text-decoration:none;font-weight:900;font-size:12px}
@media(max-width:900px){.hma-task-row-builder .hma-task-row-grid{grid-template-columns:1fr!important}.hma-smart-calendar .hma-calendar__weekday{font-size:10px!important}.hma-day-card-v3{min-height:84px!important}.hma-day-card-v3 strong{font-size:28px!important}.hma-day-card-v3 em{font-size:10px!important}}

/* Hermes Attendance v1.5.3 checkbox style for public plugin forms */
.hma-public input[type=checkbox],
.hma-employee-panel input[type=checkbox],
.hma-people-picker input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;margin:0 0 0 8px!important;border:0!important;border-radius:9px!important;background-color:#e3e7ef!important;background-position:center!important;background-repeat:no-repeat!important;background-size:19px 19px!important;cursor:pointer!important;transition:background-color .18s ease,box-shadow .18s ease!important;box-shadow:none!important;outline:0!important;vertical-align:middle!important;padding:0!important}
.hma-public input[type=checkbox]:checked,
.hma-employee-panel input[type=checkbox]:checked,
.hma-people-picker input[type=checkbox]:checked{background-color:#475466!important;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")!important;background-position:center!important;background-repeat:no-repeat!important;background-size:19px 19px!important}
.hma-public label:has(input[type=checkbox]),.hma-employee-panel label:has(input[type=checkbox]){align-items:center!important;gap:8px!important}

/* Hermes Attendance v1.5.4 project form layout and picker today */
.hma-create-project-box .hma-field-grid--2,
.hma-project-builder-form > .hma-field-grid--2{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.hma-task-row-builder .hma-task-row-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;align-items:start!important}
.hma-task-row-builder .hma-field--full{grid-column:1/-1!important}
.hma-task-row-builder label{display:block!important;margin-bottom:7px!important;color:#223047!important;font-size:12px!important;font-weight:900!important}
.hma-task-row-builder input,.hma-task-row-builder select,.hma-task-row-builder textarea{width:100%!important}
[data-hma-task-rows]:empty{min-height:78px;border:1.5px dashed #d8e2f4;border-radius:20px;background:#fbfdff;display:flex;align-items:center;justify-content:center;color:#64748b;font-size:13px;font-weight:900;margin:10px 0}
[data-hma-task-rows]:empty:before{content:'برای شروع، روی «ایجاد وظیفه جدید» بزنید.'}
.hma-add-task-btn{margin:10px 0!important}
.h-birth-day.is-today:not(.is-selected){background:#f1eaff!important;color:#6d28d9!important;box-shadow:inset 0 0 0 2px rgba(124,58,237,.18)!important}
.h-birth-day.is-today:not(.is-selected)::after{content:'امروز';display:block;font-size:8px;line-height:1;color:#7c3aed;font-weight:900}
.hma-task-card{display:grid!important;gap:10px!important}
.hma-task-card p{margin:0!important;line-height:1.9!important;color:#475569!important}
.hma-task-card>a{display:inline-flex;align-items:center;width:max-content;margin-left:8px;margin-top:4px;text-decoration:none;font-weight:900;color:#3157c9;background:#eef4ff;border-radius:12px;padding:7px 10px;font-size:12px}
@media(max-width:900px){.hma-create-project-box .hma-field-grid--2,.hma-project-builder-form > .hma-field-grid--2,.hma-task-row-builder .hma-task-row-grid{grid-template-columns:1fr!important}}

/* v1.5.4 project/task form layout + custom time picker */
.hma-public .hma-field-grid{display:grid;gap:16px}.hma-public .hma-field-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}.hma-public .hma-field-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}.hma-public .hma-field--full{grid-column:1/-1}.hma-task-row-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hma-task-row-builder{margin:14px 0;padding:16px;border-radius:22px;background:#fbfdff;border:1px solid #e5ebf5}.hma-add-task-btn{margin:10px 0 14px}.h-birth-day.is-today:not(.is-selected){background:#f2eaff!important;color:#6d28d9!important;box-shadow:inset 0 0 0 1px #d8b4fe!important}.hma-prev-out-time-display{width:100%;min-height:54px!important;padding:0 16px!important;border-radius:18px!important;border:1px solid #f1c7a7!important;background:linear-gradient(180deg,#ffffff 0%,#fff9f5 100%)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 10px 24px rgba(15,23,42,.04)!important;color:#7c5b47!important;font-weight:950!important;font-size:21px!important;letter-spacing:1px;text-align:center!important;direction:ltr}.hma-prev-out-time-display.has-value{color:#172132!important}.hma-time-picker-overlay{position:fixed;inset:0;z-index:1000001;background:rgba(15,23,42,.34);backdrop-filter:blur(8px);display:none;align-items:center;justify-content:center;padding:18px}.hma-time-picker-overlay.is-open{display:flex}.hma-time-picker-modal{width:min(420px,calc(100vw - 30px));background:#fff;border-radius:28px;padding:18px;box-shadow:0 34px 100px rgba(15,23,42,.25);direction:rtl}.hma-time-picker-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.hma-time-picker-head h3{margin:0;color:#172132;font-size:19px;font-weight:950}.hma-time-picker-head button{width:40px!important;min-height:40px!important;padding:0!important;border-radius:14px!important;background:#f8fafc!important;color:#334155!important;box-shadow:none!important}.hma-time-wheel-row{display:grid;grid-template-columns:1fr 22px 1fr;gap:10px;align-items:center}.hma-time-sep{text-align:center;font-size:30px;font-weight:950;color:#94a3b8}.hma-time-wheel{display:grid;gap:8px;text-align:center}.hma-time-wheel button{min-height:38px!important;border-radius:14px!important;background:#eef4ff!important;color:#3157c9!important;box-shadow:none!important}.hma-time-wheel input{height:62px!important;min-height:62px!important;text-align:center!important;font-size:28px!important;font-weight:950!important;border-radius:18px!important;background:#f8fbff!important}.hma-time-wheel span{font-size:12px;font-weight:900;color:#64748b}.hma-time-picker-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.hma-time-picker-actions button{min-height:44px!important;border-radius:15px!important}.hma-time-picker-actions .hma-secondary{background:#f8fafc!important;color:#334155!important;border:1px solid #e5ebf5!important;box-shadow:none!important}@media(max-width:760px){.hma-public .hma-field-grid--2,.hma-public .hma-field-grid--3,.hma-task-row-grid{grid-template-columns:1fr!important}.hma-time-picker-overlay{align-items:flex-end;padding:10px}.hma-time-picker-modal{border-radius:24px 24px 16px 16px}}

/* v1.5.5 OTP/device info and pending previous checkout */
.hma-device-info{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.hma-device-info span{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#f8fbff;border:1px solid #dce6f7;color:#64748b;padding:8px 12px;font-size:12px;font-weight:850}
.hma-device-info strong{color:#172132;direction:ltr;unicode-bidi:plaintext}
.hma-device-info--panel{margin-top:-4px;margin-bottom:14px}
.hma-otp-mobile-line{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border:1px solid #e5ebf5;background:#f8fbff;border-radius:16px;padding:10px 12px;color:#475569;font-weight:850}
.hma-otp-mobile-line strong{color:#172132;direction:ltr}
.hma-otp-mobile-line .hma-secondary{min-height:36px!important;padding:0 12px!important;border-radius:12px!important;box-shadow:none!important}
.hma-otp-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.hma-otp-tools [data-hma-otp-timer]{display:inline-flex;border-radius:999px;background:#eef4ff;color:#3157c9;padding:8px 12px;font-size:12px;font-weight:950}
.hma-otp-tools .hma-secondary{min-height:40px!important;border-radius:13px!important;box-shadow:none!important;background:#f8fafc!important;color:#334155!important;border:1px solid #e5ebf5!important}
.hma-prev-out-pending{background:linear-gradient(180deg,#fff7ed,#ffffff)!important;border-color:#fed7aa!important}
.hma-prev-out-pending h3{color:#9a3412!important}
@media(max-width:760px){.hma-device-info,.hma-otp-tools,.hma-otp-mobile-line{display:grid;grid-template-columns:1fr}.hma-device-info span{justify-content:center}}

/* v1.5.6 checkout visibility polish */
.hma-checkout-primary{background:linear-gradient(135deg,#ef4444 0%,#f97316 100%)!important;box-shadow:0 16px 34px rgba(239,68,68,.22)!important}

/* Hermes Attendance v1.7.2 clean public profile and yearly-row fix */
.hma-device-info--public-only{display:flex!important;gap:10px;align-items:center;justify-content:flex-start;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:10px 12px;margin:12px 0;color:#334155;font-weight:800}.hma-device-info--public-only span{display:inline-flex;gap:6px;align-items:center}.hma-device-info--public-only strong{direction:ltr;unicode-bidi:plaintext;color:#0f172a}.hma-public-stats{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:stretch}.hma-public-stat{min-width:0}.hma-public-stat strong{white-space:nowrap;font-size:15px}@media(max-width:900px){.hma-public-stats{display:flex!important;overflow-x:auto;gap:10px;padding-bottom:6px;scroll-snap-type:x mandatory}.hma-public-stat{min-width:170px;scroll-snap-align:start}.hma-public-stat strong{font-size:14px}}

/* v1.7.7 punch buttons, clean profile stats row, checkout confirmation modal */
.hma-punch-action-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hma-punch-action-buttons button{min-width:132px}
.hma-checkin-primary{background:linear-gradient(135deg,#22c55e 0%,#16a34a 100%)!important;box-shadow:0 16px 34px rgba(34,197,94,.20)!important}
.hma-confirm-backdrop{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.46);backdrop-filter:blur(8px)}
.hma-confirm-backdrop.is-open{display:flex}
.hma-confirm-card{width:min(420px,94vw);background:#fff;border:1px solid #e5ebf5;border-radius:28px;box-shadow:0 30px 80px rgba(15,23,42,.22);padding:24px;text-align:center;animation:hmaConfirmIn .18s ease-out}
.hma-confirm-icon{display:flex;align-items:center;justify-content:center;margin:0 auto 8px;width:150px;height:150px}
.hma-confirm-icon svg{width:150px;height:150px;display:block}
.hma-confirm-card h3{margin:4px 0 8px;color:#172132;font-size:22px;font-weight:950}
.hma-confirm-card p{margin:0;color:#64748b;line-height:2;font-weight:700}
.hma-confirm-actions{display:flex;gap:10px;justify-content:center;margin-top:18px;flex-wrap:wrap}
.hma-confirm-actions button{min-width:130px}
@keyframes hmaConfirmIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.hma-employee-panel .hma-public-stats{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}
.hma-employee-panel .hma-public-stat{min-width:0}
.hma-employee-panel .hma-public-stat strong{white-space:nowrap;font-size:15px}
@media(max-width:900px){
  .hma-punch-action-buttons{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .hma-punch-action-buttons button{width:100%;min-width:0}
  .hma-employee-panel .hma-public-stats{display:flex;overflow-x:auto;gap:10px;padding-bottom:6px;scroll-snap-type:x mandatory}
  .hma-employee-panel .hma-public-stat{min-width:165px;scroll-snap-align:start}
}

/* v1.7.7 auto-checkin + elegant checkout confirmation */
.hma-punch-action-buttons{justify-content:flex-start}
.hma-punch-action-buttons:empty{display:none}
.hma-checkout-confirm .hma-confirm-card{width:min(460px,94vw);padding:26px 24px 22px;border-radius:32px;background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);border:1px solid rgba(226,232,240,.9);box-shadow:0 38px 110px rgba(15,23,42,.28)}
.hma-checkout-confirm .hma-confirm-icon{margin-bottom:10px;border-radius:36px;background:linear-gradient(135deg,#eef4ff 0%,#ffffff 100%);box-shadow:inset 0 0 0 1px #e8eefb}
.hma-checkout-confirm .hma-confirm-card h3{font-size:23px;color:#111827;margin-top:8px}
.hma-checkout-confirm .hma-confirm-card p{font-size:13px;color:#64748b;line-height:2.1;max-width:330px;margin:0 auto}
.hma-checkout-confirm .hma-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}
.hma-checkout-confirm .hma-confirm-actions button{min-height:50px!important;border-radius:17px!important;font-weight:950!important;border:0!important;cursor:pointer!important;transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease!important}
.hma-checkout-confirm .hma-confirm-actions button:hover{transform:translateY(-1px)}
.hma-checkout-confirm .hma-confirm-yes{background:linear-gradient(135deg,#ef4444 0%,#f97316 100%)!important;color:#fff!important;box-shadow:0 18px 36px rgba(239,68,68,.25)!important}
.hma-checkout-confirm .hma-confirm-no{background:#f8fafc!important;color:#334155!important;border:1px solid #e2e8f0!important;box-shadow:0 12px 28px rgba(15,23,42,.06)!important}
.hma-checkout-primary{min-height:50px!important;padding:0 22px!important;border-radius:17px!important;font-size:14px!important}
@media(max-width:520px){.hma-checkout-confirm{align-items:flex-end;padding:10px}.hma-checkout-confirm .hma-confirm-card{border-radius:28px 28px 18px 18px}.hma-checkout-confirm .hma-confirm-actions{grid-template-columns:1fr}.hma-checkout-confirm .hma-confirm-no{order:2}.hma-checkout-confirm .hma-confirm-yes{order:1}}


/* v1.7.9 checkout confirmation borderless polished buttons */
.hma-checkout-confirm .hma-confirm-actions button,
#hmaCheckoutConfirmModal .hma-confirm-actions button{
  appearance:none!important;
  -webkit-appearance:none!important;
  border:0!important;
  outline:0!important;
  min-height:52px!important;
  padding:0 22px!important;
  border-radius:18px!important;
  font-weight:950!important;
  font-size:14px!important;
  line-height:52px!important;
  cursor:pointer!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease!important;
}
.hma-checkout-confirm .hma-confirm-actions button:hover,
#hmaCheckoutConfirmModal .hma-confirm-actions button:hover{
  transform:translateY(-1px)!important;
}
.hma-checkout-confirm .hma-confirm-actions button:active,
#hmaCheckoutConfirmModal .hma-confirm-actions button:active{
  transform:translateY(0)!important;
  filter:saturate(.98) brightness(.98)!important;
}
.hma-checkout-confirm .hma-confirm-yes,
#hmaCheckoutConfirmModal .hma-checkout-primary,
#hmaCheckoutConfirmModal [data-hma-confirm-ok]{
  border:0!important;
  background:linear-gradient(135deg,#ef4444 0%,#f97316 100%)!important;
  color:#fff!important;
  box-shadow:0 18px 36px rgba(239,68,68,.25)!important;
}
.hma-checkout-confirm .hma-confirm-no,
#hmaCheckoutConfirmModal .hma-secondary,
#hmaCheckoutConfirmModal [data-hma-confirm-cancel]{
  border:0!important;
  background:linear-gradient(135deg,#f8fafc 0%,#eef2f7 100%)!important;
  color:#334155!important;
  box-shadow:0 14px 30px rgba(15,23,42,.09)!important;
}
.hma-checkout-confirm .hma-confirm-no:hover,
#hmaCheckoutConfirmModal .hma-secondary:hover,
#hmaCheckoutConfirmModal [data-hma-confirm-cancel]:hover{
  background:linear-gradient(135deg,#eef2f7 0%,#e2e8f0 100%)!important;
  box-shadow:0 18px 34px rgba(15,23,42,.12)!important;
}
.hma-checkout-confirm .hma-confirm-yes:focus-visible,
.hma-checkout-confirm .hma-confirm-no:focus-visible,
#hmaCheckoutConfirmModal .hma-checkout-primary:focus-visible,
#hmaCheckoutConfirmModal .hma-secondary:focus-visible{
  box-shadow:0 0 0 4px rgba(99,102,241,.16), 0 18px 36px rgba(15,23,42,.14)!important;
}

/* Hermes Attendance v1.8.0 short break */
.hma-short-break-widget{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border:1px solid rgba(0,0,0,.08);border-radius:18px;background:rgba(255,255,255,.82);box-shadow:0 8px 22px rgba(0,0,0,.06);margin:8px 0}
.hma-short-break-widget strong{display:block}.hma-short-break-widget small{display:block;color:#667085}.hma-short-break-icon{width:38px;height:38px;border-radius:14px;display:inline-grid;place-items:center;background:rgba(28,39,76,.08);font-size:20px}.hma-break-timer{font-weight:800;color:#1c274c}.hma-break-start,.hma-break-end{white-space:nowrap}


/* Hermes Attendance v1.8.1 project task calendar badges */
.hma-day-task-summary{margin-top:auto;padding:7px;border-radius:14px;background:rgba(255,255,255,.86);border:1px solid rgba(148,163,184,.22);display:grid;gap:5px;width:100%;box-sizing:border-box}
.hma-day-task-title{font-size:11px!important;font-weight:900;color:#1f2937;line-height:1.6;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:right}
.hma-day-task-badges{display:flex;gap:5px;align-items:center;justify-content:flex-start}
.hma-day-task-count,.hma-day-task-done{min-width:22px;height:22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:11px;font-weight:950;line-height:1;box-shadow:0 6px 14px rgba(15,23,42,.14)}
.hma-day-task-count{background:#f59e0b}
.hma-day-task-done{background:#16a34a}
.hma-smart-day.has-calendar-task{align-content:start;gap:6px}
.hma-project-edit-box{margin-top:12px;padding:10px;border-radius:18px;background:#f8fbff;border:1px solid #e5edfa}
.hma-project-edit-box summary{cursor:pointer;font-weight:950;color:#3157c9}

/* Hermes Attendance v1.8.2 clean project/task workspace */
.hma-day-task-summary--compact{margin-top:6px;padding:6px;border-radius:12px;background:rgba(255,255,255,.72);display:flex;align-items:center;justify-content:space-between;gap:6px;box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)}
.hma-day-task-summary--compact .hma-day-task-title{font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:92px;color:#1f2937}
.hma-day-task-badges{display:flex;gap:4px;align-items:center;justify-content:flex-end}
.hma-day-task-count,.hma-day-task-done{min-width:20px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;color:#fff;line-height:1}
.hma-day-task-count{background:linear-gradient(135deg,#f59e0b,#facc15);color:#422006}
.hma-day-task-done{background:linear-gradient(135deg,#16a34a,#22c55e);color:#fff}
.hma-day-expand-panel .hma-day-tasks{margin-top:18px;display:grid;gap:10px}
.hma-task-item-pro{border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff;padding:12px;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.hma-task-item-main{display:flex;justify-content:space-between;gap:10px;align-items:center}
.hma-task-item-main span,.hma-task-card-head>span{border-radius:999px;background:#eef2ff;color:#3730a3;padding:5px 10px;font-size:12px;font-weight:800}
.hma-task-list-clean{display:grid;gap:14px}
.hma-task-card-pro{border-radius:24px;border:1px solid rgba(15,23,42,.08);background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 16px 42px rgba(15,23,42,.08);padding:16px;position:relative;overflow:hidden}
.hma-task-card-pro:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:#94a3b8}
.hma-task-card-pro.is-priority-important:before{background:#f59e0b}
.hma-task-card-pro.is-priority-urgent:before{background:#ef4444}
.hma-task-card-pro.is-done:before{background:#22c55e}
.hma-task-meta-row{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.hma-task-meta-row b{font-size:12px;border-radius:999px;background:#f1f5f9;color:#334155;padding:4px 9px}
.hma-task-people-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:8px 0}
.hma-task-people-row small{border-radius:999px;background:#f8fafc;border:1px solid rgba(15,23,42,.08);padding:3px 7px;color:#64748b}
.hma-task-edit-box{margin-top:12px;border-top:1px dashed rgba(15,23,42,.14);padding-top:10px}
.hma-task-edit-box>summary{cursor:pointer;font-weight:900;color:#2563eb;list-style:none}
.hma-task-edit-form{margin-top:10px;padding:12px;border-radius:18px;background:#f8fafc;border:1px solid rgba(15,23,42,.08)}
.hma-task-files-builder small{display:block;margin-top:6px;color:#64748b}
.hma-task-file-line{display:flex;align-items:center;gap:8px;margin:6px 0!important}
.hma-task-file-remove{border:0;border-radius:999px;width:28px;height:28px;background:#fee2e2;color:#991b1b;cursor:pointer;font-weight:900}
.hma-mini-btn{padding:7px 10px!important;border-radius:12px!important}
.hma-task-files{margin:12px 0}.hma-task-files>strong{display:block;margin-bottom:8px;color:#0f172a}
.hma-task-file-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.hma-task-file-card{display:flex;flex-direction:column;gap:6px;text-decoration:none!important;border:1px solid rgba(15,23,42,.08);background:#fff;border-radius:16px;padding:8px;color:#0f172a;box-shadow:0 8px 24px rgba(15,23,42,.06);transition:.18s ease}
.hma-task-file-card:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(15,23,42,.1)}
.hma-file-thumb{height:82px;border-radius:12px;overflow:hidden;background:#f1f5f9;display:block}.hma-file-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.hma-file-icon{height:82px;border-radius:12px;background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#1d4ed8;display:flex;align-items:center;justify-content:center;font-weight:1000;letter-spacing:.08em}
.hma-file-name{font-weight:800;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hma-task-file-card small{color:#64748b}
.hma-file-preview-backdrop{position:fixed;inset:0;z-index:100000;background:rgba(15,23,42,.72);display:flex;align-items:center;justify-content:center;padding:18px}.hma-file-preview-modal{width:min(920px,96vw);max-height:92vh;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.35);display:flex;flex-direction:column}.hma-file-preview-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid rgba(15,23,42,.08)}.hma-file-preview-head button{border:0;background:#f1f5f9;border-radius:999px;width:34px;height:34px;cursor:pointer;font-size:22px}.hma-file-preview-body{padding:12px;overflow:auto;display:flex;align-items:center;justify-content:center;background:#f8fafc;min-height:320px}.hma-file-preview-body img{max-width:100%;max-height:70vh;border-radius:16px}.hma-file-preview-body iframe{width:100%;height:70vh;border:0;border-radius:16px;background:#fff}.hma-file-preview-actions{padding:12px 16px;border-top:1px solid rgba(15,23,42,.08);text-align:left}.hma-file-preview-actions a{display:inline-flex;border-radius:12px;background:#2563eb;color:#fff!important;text-decoration:none;padding:9px 14px;font-weight:900}
@media (max-width:680px){.hma-task-file-grid{grid-template-columns:1fr 1fr}.hma-day-task-summary--compact .hma-day-task-title{max-width:70px}.hma-file-preview-body{min-height:220px}}


/* Hermes Attendance v1.8.3 missing checkout reason */
.hma-prev-out-reason{margin:14px 0 10px}.hma-prev-out-reason label{display:block;font-weight:900;margin-bottom:8px;color:#334155}.hma-prev-out-reason textarea{width:100%;min-height:96px;border:1px solid #dbe3ef;border-radius:16px;padding:12px 14px;resize:vertical;background:#fff;font-family:inherit;line-height:1.9}.hma-prev-out-submit{margin-top:8px}.hma-prev-out-card .hma-prev-out-help{display:block;margin-top:10px;line-height:1.9;color:#64748b}

/* Hermes Attendance v1.8.4 — MacBook Pro inspired employee dashboard */
.hma-employee-panel-v4{background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(246,249,255,.94))!important;border:1px solid rgba(210,220,238,.9)!important;border-radius:34px!important;box-shadow:0 32px 90px rgba(15,23,42,.12)!important;padding:22px!important;overflow:hidden!important;backdrop-filter:blur(18px)!important}.hma-employee-panel-v4 .hma-public-card{border-radius:28px!important;border:1px solid rgba(226,232,240,.95)!important;box-shadow:0 18px 48px rgba(15,23,42,.07)!important;background:rgba(255,255,255,.88)!important}.hma-mac-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px;border-radius:30px;background:radial-gradient(circle at 8% 10%,rgba(59,130,246,.16),transparent 30%),radial-gradient(circle at 88% 0%,rgba(168,85,247,.12),transparent 28%),linear-gradient(135deg,#fff,#f8fbff);border:1px solid rgba(226,232,240,.95);box-shadow:0 24px 70px rgba(15,23,42,.08);margin-bottom:16px}.hma-mac-hero__identity{display:flex;align-items:center;gap:16px;min-width:0}.hma-profile-avatar--hero,.hma-profile-avatar--profile{border-radius:24px!important;box-shadow:0 16px 35px rgba(15,23,42,.14)!important}.hma-kicker{display:inline-flex!important;align-items:center!important;width:max-content!important;padding:6px 11px!important;border-radius:999px!important;background:rgba(239,246,255,.9)!important;border:1px solid #dbeafe!important;color:#2563eb!important;font-size:11px!important;font-weight:950!important;line-height:1!important}.hma-mac-hero h2{margin:9px 0 3px!important;font-size:26px!important;font-weight:950!important;color:#0f172a!important;letter-spacing:-.3px}.hma-mac-hero p{margin:0!important;color:#64748b!important;font-weight:800!important}.hma-hero-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px}.hma-hero-meta span,.hma-hero-meta small{display:inline-flex!important;border-radius:999px;background:#fff;border:1px solid #e2e8f0;color:#475569;padding:6px 9px;font-size:11px;font-weight:900}.hma-mac-hero__status{display:flex;align-items:flex-end;flex-direction:column;gap:8px;min-width:210px}.hma-live-pill{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:10px 13px;font-size:12px;font-weight:950}.hma-live-pill:before{content:'';width:8px;height:8px;border-radius:99px;background:currentColor}.hma-live-pill.is-live{background:#ecfdf5;color:#047857;border:1px solid #bbf7d0}.hma-live-pill.is-done{background:#eef4ff;color:#3157c9;border:1px solid #d8e3ff}.hma-live-pill.is-idle{background:#f8fafc;color:#64748b;border:1px solid #e2e8f0}.hma-live-clock--v4{margin:0!important}.hma-mac-hero__status small{color:#64748b;font-size:11px;font-weight:800}.hma-mac-hero__status b{direction:ltr;unicode-bidi:plaintext;color:#0f172a}.hma-employee-nav-card-v4{position:sticky;top:10px;z-index:50;margin:0 0 16px!important;padding:10px!important;background:rgba(255,255,255,.76)!important;backdrop-filter:blur(16px)!important}.hma-nav-primary-v4{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hma-nav-primary-v4 a,.hma-mobile-more-v4 summary,.hma-mobile-more-v4 a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:17px;min-height:44px;padding:0 14px;background:#f8fafc;border:1px solid #e2e8f0;color:#334155;font-size:13px;font-weight:950;transition:.18s ease}.hma-nav-primary-v4 a:hover,.hma-mobile-more-v4 summary:hover,.hma-mobile-more-v4 a:hover{transform:translateY(-1px);background:#eef4ff;color:#3157c9}.hma-nav-primary-v4 a.is-active{background:linear-gradient(135deg,#0f172a,#334155);color:#fff;border-color:transparent;box-shadow:0 12px 28px rgba(15,23,42,.18)}.hma-mobile-more-v4{display:none}.hma-employee-content-v4{display:block}.hma-today-layout-v4{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:16px;align-items:start}.hma-action-card-v4{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;background:linear-gradient(135deg,#ffffff,#f8fbff)!important}.hma-action-card-v4 h3,.hma-month-mini-v4 h3,.hma-today-tasks-v4 h3,.hma-profile-v4 h3{margin:8px 0 5px!important;color:#0f172a!important;font-size:22px!important;font-weight:950!important}.hma-action-card-v4 p{margin:0!important;color:#64748b!important;line-height:2!important;font-weight:750}.hma-action-card-v4__buttons{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.hma-primary-action-v4{min-width:180px!important;min-height:58px!important;border-radius:20px!important;font-size:18px!important}.hma-done-pill-v4{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 18px;border-radius:18px;background:#ecfdf5;border:1px solid #bbf7d0;color:#047857;font-weight:950}.hma-card-title-v4{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.hma-card-title-v4 a{display:inline-flex;text-decoration:none;border-radius:14px;background:#eef4ff;color:#3157c9;border:1px solid #d8e3ff;padding:9px 11px;font-size:12px;font-weight:950}.hma-public-stats-v4{grid-template-columns:repeat(3,minmax(0,1fr))!important;margin:10px 0!important}.hma-public-stats-v4 .hma-public-stat{background:linear-gradient(180deg,#fff,#fbfdff)!important;border-radius:22px!important}.hma-mini-month-line{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.hma-mini-month-line span{display:inline-flex;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;color:#64748b;padding:7px 10px;font-size:12px;font-weight:900}.hma-today-tasks-v4{min-height:260px}.hma-task-preview-list-v4{display:grid;gap:10px}.hma-task-preview-list-v4 article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:13px;border-radius:20px;background:#f8fafc;border:1px solid #e2e8f0}.hma-task-preview-list-v4 strong{display:block;color:#0f172a;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hma-task-preview-list-v4 small{display:block;color:#64748b;font-size:11px;font-weight:800;margin-top:4px}.hma-task-preview-list-v4 span{border-radius:999px;background:#eef4ff;color:#3157c9;padding:7px 9px;font-size:11px;font-weight:950}.hma-task-preview-list-v4 em{font-style:normal;color:#64748b;font-size:11px;font-weight:900;white-space:nowrap}.hma-quick-links-v4{display:grid!important;gap:10px!important;padding:14px!important}.hma-quick-links-v4 a{display:block;text-decoration:none;border-radius:20px;padding:15px;background:linear-gradient(135deg,#f8fafc,#fff);border:1px solid #e2e8f0;color:#334155}.hma-quick-links-v4 strong{display:block;color:#0f172a;font-size:15px;font-weight:950}.hma-quick-links-v4 span{display:block;color:#64748b;margin-top:5px;font-size:12px;font-weight:800;line-height:1.8}.hma-prev-out-card-v4{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start;background:linear-gradient(135deg,#fff7ed,#fff)!important}.hma-prev-out-card-v4 h3{margin:8px 0 6px!important;color:#9a3412!important;font-size:22px!important;font-weight:950!important}.hma-prev-out-card-v4 p{color:#7c2d12!important;line-height:2!important}.hma-prev-out-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hma-prev-out-grid .hma-prev-out-reason{grid-column:1/-1}.hma-prev-out-card-v4 textarea{min-height:90px!important}.hma-requests-grid-v4{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.hma-section-card-v4{overflow:hidden}.hma-profile-v4{display:grid;gap:16px}.hma-profile-head-v4{display:flex;gap:16px;align-items:center;background:linear-gradient(135deg,#fff,#f8fbff)!important}.hma-profile-section-v4 h3{margin:0 0 14px!important}.hma-profile-grid-v4{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.hma-profile-item-v4{border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc;padding:12px;min-width:0}.hma-profile-item-v4 span{display:block;color:#64748b;font-size:11px;font-weight:900;margin-bottom:6px}.hma-profile-item-v4 strong{display:block;color:#0f172a;font-size:14px;font-weight:950;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hma-profile-details-v4{border:1px solid #e2e8f0;border-radius:20px;background:#fff;padding:13px;margin-top:12px}.hma-profile-details-v4 summary{cursor:pointer;font-weight:950;color:#0f172a}.hma-account-cards-v4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.hma-account-cards-v4 div{border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc;padding:12px}.hma-account-cards-v4 strong,.hma-account-cards-v4 span{display:block}.hma-account-cards-v4 strong{color:#0f172a;margin-bottom:8px}.hma-account-cards-v4 span{color:#64748b;font-size:12px;font-weight:850;direction:ltr;unicode-bidi:plaintext;margin-top:4px}.hma-smart-calendar-card{overflow-x:auto}.hma-task-list-clean .hma-task-card-pro{border-radius:24px!important;border:1px solid #e2e8f0!important;background:#fff!important;box-shadow:0 14px 32px rgba(15,23,42,.05)!important}.hma-task-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.hma-task-card-head span{border-radius:999px;background:#eef4ff;color:#3157c9;padding:7px 10px;font-size:11px;font-weight:950}.hma-task-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important}.hma-task-actions button{min-height:40px!important;border-radius:14px!important;font-size:12px!important}.hma-empty-text{margin:0;color:#64748b;font-weight:850;line-height:2}.hma-alert-v4{border-radius:20px!important}.hma-public .hma-profile-v4 input,.hma-public .hma-profile-v4 textarea{background:#f8fafc!important}
@media(max-width:1100px){.hma-today-layout-v4{grid-template-columns:1fr}.hma-requests-grid-v4{grid-template-columns:1fr}.hma-profile-grid-v4{grid-template-columns:repeat(2,minmax(0,1fr))}.hma-prev-out-card-v4{grid-template-columns:1fr}.hma-action-card-v4{grid-template-columns:1fr}.hma-action-card-v4__buttons{justify-content:stretch}.hma-primary-action-v4{width:100%!important}.hma-mac-hero{align-items:flex-start}.hma-mac-hero__status{align-items:flex-start}}
@media(max-width:760px){.hma-public{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;background:#f7f9fd!important}.hma-employee-panel-v4{border-radius:0!important;border:0!important;box-shadow:none!important;padding:12px 12px 92px!important;background:linear-gradient(180deg,#f7f9fd,#fff)!important}.hma-mac-hero{display:block;border-radius:26px;padding:16px}.hma-mac-hero__identity{align-items:flex-start}.hma-profile-avatar--hero{width:62px!important;height:62px!important;border-radius:21px!important}.hma-mac-hero h2{font-size:21px!important}.hma-mac-hero__status{margin-top:14px;min-width:0;align-items:stretch}.hma-live-clock--v4{justify-content:space-between!important}.hma-employee-nav-card-v4{position:fixed!important;right:10px!important;left:10px!important;bottom:10px!important;top:auto!important;margin:0!important;padding:8px!important;border-radius:24px!important;z-index:999999!important;box-shadow:0 20px 50px rgba(15,23,42,.22)!important}.hma-nav-primary-v4{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:6px!important}.hma-nav-primary-v4 a{min-height:48px!important;border-radius:17px!important;font-size:11px!important;padding:0 6px!important}.hma-nav-primary-v4 .hma-nav-more-item{display:none!important}.hma-mobile-more-v4{display:block!important;position:relative}.hma-mobile-more-v4 summary{position:absolute;left:0;bottom:0;width:calc(25% - 5px);height:48px;list-style:none;font-size:11px!important;padding:0!important}.hma-mobile-more-v4 summary::-webkit-details-marker{display:none}.hma-mobile-more-v4[open] div{position:absolute;left:0;right:0;bottom:58px;display:grid;gap:7px;background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:10px;box-shadow:0 20px 50px rgba(15,23,42,.18)}.hma-mobile-more-v4 a{display:flex;width:100%;justify-content:center}.hma-nav-primary-v4:after{content:'';display:block}.hma-nav-primary-v4 a:nth-child(1){grid-column:1}.hma-nav-primary-v4 a:nth-child(2){grid-column:2}.hma-nav-primary-v4 a:nth-child(3){grid-column:3}.hma-nav-primary-v4 a:nth-child(4){grid-column:4}.hma-action-card-v4,.hma-month-mini-v4,.hma-today-tasks-v4,.hma-quick-links-v4,.hma-prev-out-card-v4,.hma-profile-head-v4,.hma-profile-section-v4{border-radius:24px!important;padding:15px!important}.hma-action-card-v4 h3,.hma-month-mini-v4 h3,.hma-today-tasks-v4 h3,.hma-profile-v4 h3{font-size:18px!important}.hma-public-stats-v4{display:grid!important;grid-template-columns:1fr!important;overflow:visible!important}.hma-public-stats-v4 .hma-public-stat{min-width:0!important}.hma-mini-month-line{display:grid}.hma-task-preview-list-v4 article{grid-template-columns:1fr;align-items:start}.hma-task-preview-list-v4 span,.hma-task-preview-list-v4 em{width:max-content}.hma-quick-links-v4{grid-template-columns:1fr!important}.hma-prev-out-grid{grid-template-columns:1fr}.hma-profile-grid-v4,.hma-account-cards-v4{grid-template-columns:1fr}.hma-card-title-v4{align-items:center}.hma-card-title-v4 a{font-size:11px;padding:8px 10px}.hma-calendar{min-width:680px}.hma-smart-calendar-card{padding:12px!important}.hma-task-card-head{display:grid}.hma-task-actions{display:grid!important;grid-template-columns:1fr!important}.hma-task-actions button,.hma-task-actions details{width:100%!important}.hma-live-clock{width:100%}.hma-public input,.hma-public select,.hma-public textarea,.hma-public button{font-size:16px!important}}
@media(max-width:380px){.hma-nav-primary-v4 a,.hma-mobile-more-v4 summary{font-size:10px!important}.hma-mac-hero__identity{gap:10px}.hma-profile-avatar--hero{width:54px!important;height:54px!important}.hma-mac-hero h2{font-size:19px!important}.hma-employee-panel-v4{padding-left:8px!important;padding-right:8px!important}}
/* v1.8.4 mobile bottom nav layout fix */
@media(max-width:760px){.hma-employee-nav-card-v4{display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:6px!important}.hma-nav-primary-v4{display:contents!important}.hma-nav-primary-v4:after{display:none!important}.hma-nav-primary-v4 a:nth-child(n+5){display:none!important}.hma-mobile-more-v4{display:block!important;position:relative!important;grid-column:5!important}.hma-mobile-more-v4 summary{position:static!important;width:100%!important;height:auto!important;min-height:48px!important}.hma-mobile-more-v4[open] div{position:absolute!important;left:0!important;right:auto!important;bottom:58px!important;width:min(280px,calc(100vw - 32px))!important;transform:translateX(0)!important}}

/* Hermes Attendance v1.8.5 — live chat badge, request spacing, kanban tasks */
.hma-nav-badge,
.hma-chat-room-badge{
  min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:linear-gradient(135deg,#ff3b5f,#f43f5e);color:#fff!important;font-size:11px!important;font-weight:1000;line-height:22px;display:inline-flex;align-items:center;justify-content:center;position:relative;margin-inline-start:7px;box-shadow:0 8px 18px rgba(244,63,94,.34);isolation:isolate;vertical-align:middle;
}
.hma-nav-badge:empty{display:none!important}
.hma-nav-badge:not(:empty)::before,
.hma-chat-room-badge::before{
  content:"";position:absolute;inset:-7px;border-radius:999px;background:rgba(244,63,94,.28);z-index:-1;animation:hmaPulseBadge 1.55s ease-out infinite;
}
.hma-nav-badge:not(:empty)::after,
.hma-chat-room-badge::after{
  content:"";position:absolute;inset:-13px;border-radius:999px;border:1px solid rgba(244,63,94,.22);z-index:-2;animation:hmaPulseBadge 1.55s ease-out infinite .35s;
}
@keyframes hmaPulseBadge{0%{transform:scale(.72);opacity:.75}70%{transform:scale(1.25);opacity:0}100%{transform:scale(1.25);opacity:0}}
.hma-chat-threads button span{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}.hma-chat-threads button .hma-chat-room-badge{margin-inline-start:auto;flex:0 0 auto}

.hma-history-section{margin-top:22px;padding-top:18px;border-top:1px solid rgba(148,163,184,.20)}
.hma-history-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:16px}.hma-history-head h4{margin:0!important;font-size:17px!important;font-weight:1000!important;color:#0f172a!important}.hma-history-head span{color:#64748b;font-size:12px;font-weight:850;line-height:1.8}.hma-history-list{display:grid!important;gap:12px!important;margin:0!important}.hma-history-list details{border:1px solid #e2e8f0!important;border-radius:20px!important;background:linear-gradient(180deg,#fff,#f8fafc)!important;padding:0!important;overflow:hidden;box-shadow:0 12px 28px rgba(15,23,42,.045)}.hma-history-list details summary{list-style:none;cursor:pointer;padding:15px 16px!important;font-weight:950!important;color:#172033!important;display:flex!important;align-items:center;justify-content:space-between;gap:10px}.hma-history-list details summary::-webkit-details-marker{display:none}.hma-history-list details summary:after{content:"⌄";width:28px;height:28px;border-radius:999px;background:#eef4ff;color:#3157c9;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.hma-history-list details[open] summary:after{transform:rotate(180deg)}.hma-history-list details p{margin:0!important;padding:0 16px 11px!important;line-height:1.95!important;color:#526174!important}.hma-history-list details p:last-child{padding-bottom:16px!important}.hma-history-list button[data-hma-advance-receive]{background:linear-gradient(135deg,#16a34a,#22c55e)!important;color:#fff!important;border:0!important;border-radius:15px!important;min-height:42px!important;padding:0 14px!important;font-weight:950!important}

.hma-requests-grid-v4 form button,
.hma-section-card-v4 form button[type="submit"],
.hma-section-card-v4 form button:not(.hma-secondary){background:linear-gradient(135deg,#4f89ff,#6d67ff)!important;color:#fff!important;border:0!important;border-radius:16px!important;min-height:46px!important;padding:0 18px!important;font-weight:950!important;box-shadow:0 14px 28px rgba(79,137,255,.20)!important}.hma-section-card-v4 .hma-secondary{background:#f8fafc!important;color:#334155!important;border:1px solid #dbe3ef!important;border-radius:14px!important}.hma-section-card-v4 [data-hma-advance-receive],.hma-btn-accept{background:linear-gradient(135deg,#16a34a,#22c55e)!important;color:#fff!important}.hma-btn-danger{background:linear-gradient(135deg,#ef4444,#fb7185)!important;color:#fff!important}.hma-btn-progress{background:linear-gradient(135deg,#2563eb,#60a5fa)!important;color:#fff!important}.hma-btn-pause{background:linear-gradient(135deg,#f59e0b,#f97316)!important;color:#fff!important}.hma-btn-complete{background:linear-gradient(135deg,#10b981,#22c55e)!important;color:#fff!important}.hma-btn-return,.hma-btn-refer{background:#f8fafc!important;color:#334155!important;border:1px solid #dbe3ef!important}

.hma-task-board-title{align-items:flex-start!important;gap:16px}.hma-task-board-stats{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.hma-task-board-stats b{display:inline-flex;min-height:32px;align-items:center;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;padding:0 11px;font-size:12px;font-weight:950}.hma-task-board-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:end;flex-wrap:wrap;margin:14px 0 18px;padding:12px;border-radius:22px;background:#f8fbff;border:1px solid #e2e8f0}.hma-task-search,.hma-task-sort{display:grid;gap:6px;min-width:210px}.hma-task-search span,.hma-task-sort span{font-size:11px;color:#64748b;font-weight:950}.hma-task-search input,.hma-task-sort select{height:42px;border-radius:14px;border:1px solid #dbe3ef;background:#fff;padding:0 12px;box-shadow:inset 0 1px 2px rgba(15,23,42,.03)}
.hma-task-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(285px,320px);gap:16px;overflow-x:auto;overflow-y:hidden;padding:4px 2px 16px;scroll-snap-type:x proximity}.hma-task-column{min-height:520px;border-radius:26px;background:linear-gradient(180deg,#f8fafc,#f3f6fb);border:1px solid #e2e8f0;padding:12px;scroll-snap-align:start}.hma-task-column header{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;position:sticky;top:0;z-index:2;padding:10px 10px 12px;border-radius:20px;background:rgba(248,250,252,.94);backdrop-filter:blur(12px)}.hma-task-column header strong{display:block;color:#0f172a;font-weight:1000;font-size:15px}.hma-task-column header small{display:block;color:#64748b;font-size:11px;line-height:1.8;margin-top:3px}.hma-task-column header>span{min-width:30px;height:30px;border-radius:999px;background:#fff;border:1px solid #dbe3ef;display:inline-flex;align-items:center;justify-content:center;color:#3157c9;font-weight:1000}.hma-task-column-body{display:grid;gap:12px;min-height:430px;padding:4px}.hma-task-column.is-drag-over{background:linear-gradient(180deg,#eef4ff,#f8fbff);border-color:#83a8ff;box-shadow:inset 0 0 0 2px rgba(79,137,255,.18)}.hma-task-column-empty{border:1px dashed #cbd5e1;border-radius:18px;color:#94a3b8;text-align:center;padding:18px 10px;font-weight:900;background:rgba(255,255,255,.55)}
.hma-task-kanban-card{cursor:grab;padding-top:38px!important;transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease}.hma-task-kanban-card:active{cursor:grabbing}.hma-task-kanban-card.is-dragging{opacity:.62;transform:rotate(-1deg) scale(.98)}.hma-task-drag-handle{position:absolute;inset:10px 14px auto auto;width:34px;height:22px;border-radius:999px;background:#f1f5f9;color:#64748b;display:flex;align-items:center;justify-content:center;font-weight:1000;letter-spacing:-2px}.hma-status-chip{white-space:nowrap}.hma-status-approved{background:#ecfdf5!important;color:#047857!important}.hma-status-pending_review,.hma-status-done{background:#fff7ed!important;color:#c2410c!important}.hma-status-in_progress{background:#eff6ff!important;color:#1d4ed8!important}.hma-priority-chip.is-priority-urgent{background:#fff1f2!important;color:#be123c!important}.hma-priority-chip.is-priority-important{background:#fffbeb!important;color:#b45309!important}.hma-due-chip.is-overdue{background:#fff1f2!important;color:#be123c!important}.hma-due-chip.is-soon,.hma-due-chip.is-today{background:#fff7ed!important;color:#c2410c!important}.hma-task-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;margin:10px 0}.hma-task-progress>div{height:9px;border-radius:999px;background:#e2e8f0;overflow:hidden}.hma-task-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#60a5fa,#22c55e)}.hma-task-progress span{font-size:12px;color:#334155;font-weight:1000;direction:ltr}.hma-task-card-desc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#526174!important;line-height:1.95!important}.hma-task-activity-line{display:grid;gap:5px;margin:9px 0;color:#64748b;font-size:11px;font-weight:850}.hma-task-actions .hma-btn-status{border:0!important;border-radius:14px!important;min-height:39px!important;padding:0 12px!important;font-weight:950!important;box-shadow:none!important}.hma-task-actions details{border:1px solid #dbe3ef;border-radius:14px;background:#fff;padding:0 10px}.hma-task-actions details summary{min-height:39px;display:flex;align-items:center;cursor:pointer;font-weight:950;color:#334155}.hma-task-card.is-hidden-by-search{display:none!important}
.hma-project-card-v2{display:grid!important;gap:12px!important}.hma-project-card-v2 .hma-progress{height:11px!important;border-radius:999px!important;background:#e2e8f0!important;overflow:hidden!important}.hma-project-card-v2 .hma-progress i{display:block!important;height:100%!important;background:linear-gradient(90deg,#4f89ff,#22c55e)!important;border-radius:999px!important}.hma-project-card-v2 small{line-height:2!important}.hma-open-project{border-radius:15px!important;background:#eef4ff!important;color:#3157c9!important;border:1px solid #d8e3ff!important;padding:9px 12px!important;font-weight:950!important;text-decoration:none!important;text-align:center!important}
@media(max-width:900px){.hma-task-board-toolbar{display:grid}.hma-task-search,.hma-task-sort{min-width:0}.hma-task-board{display:flex;overflow-x:auto;gap:12px}.hma-task-column{min-width:86vw}.hma-task-board-stats{justify-content:flex-start}.hma-history-head{display:grid}.hma-requests-grid-v4{gap:18px!important}}
@media(max-width:760px){.hma-task-board-title{display:grid!important}.hma-task-board{grid-auto-columns:88vw}.hma-task-column{min-width:88vw;min-height:auto}.hma-task-column-body{min-height:260px}.hma-task-kanban-card{padding:34px 13px 13px!important}.hma-task-board-toolbar{padding:10px}.hma-history-list details summary{align-items:flex-start}.hma-history-list details summary:after{margin-top:-3px}.hma-chat-room-badge,.hma-nav-badge{min-width:20px;height:20px;line-height:20px;font-size:10px!important}}

/* Hermes Attendance v1.8.6 — admin employee profile view */
.hma-employee-panel--admin-view{position:relative}
.hma-admin-employee-view-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;padding:14px 16px;border-radius:22px;background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;box-shadow:0 18px 44px rgba(15,23,42,.22)}
.hma-admin-employee-view-bar div{display:grid;gap:4px}.hma-admin-employee-view-bar strong{font-size:14px;font-weight:950}.hma-admin-employee-view-bar span{font-size:12px;color:#cbd5e1;font-weight:800}
.hma-admin-return-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:15px;background:#fff;color:#0f172a!important;text-decoration:none!important;font-size:13px;font-weight:950;white-space:nowrap;box-shadow:0 10px 24px rgba(0,0,0,.18);transition:.18s ease}
.hma-admin-return-btn:hover{transform:translateY(-1px);background:#eff6ff;color:#1d4ed8!important}
@media(max-width:680px){.hma-admin-employee-view-bar{display:grid;text-align:right}.hma-admin-return-btn{width:100%}}

/* Hermes Attendance v1.8.8 — accordion tasks, refined missing checkout, full-width container */
.e-con-inner.hma-attendance-full-container{width:100%!important;max-width:100%!important;flex-basis:100%!important}
.hma-public{width:100%!important;max-width:100%!important}
.hma-employee-panel-v4{width:min(100%,1440px)!important;max-width:1440px!important;margin-inline:auto!important}
.hma-section-card-v4:has(.hma-task-board){max-width:none!important}

.hma-prev-out-card-v8{overflow:visible!important;background:linear-gradient(135deg,#fffaf0,#ffffff)!important;border:1px solid #fed7aa!important}
.hma-prev-out-head-v8{display:grid;gap:7px;margin-bottom:14px}.hma-prev-out-head-v8 h3{margin:0!important}.hma-prev-out-head-v8 p{margin:0!important;color:#64748b!important;line-height:1.9!important}
.hma-prev-out-grid-v8{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
.hma-prev-out-field{min-height:78px;border:1px solid #e2e8f0;border-radius:18px;background:rgba(255,255,255,.86);padding:13px 14px;display:grid;gap:7px;align-content:center;box-shadow:0 12px 26px rgba(15,23,42,.04)}
.hma-prev-out-field label,.hma-prev-out-reason label{font-size:12px!important;color:#64748b!important;font-weight:950!important;margin:0!important}.hma-prev-out-field strong{font-size:18px;color:#0f172a;font-weight:1000;direction:ltr;text-align:right}
.hma-prev-out-field--interactive{border-color:#bfdbfe;background:#f8fbff}.hma-prev-out-time-display{height:auto!important;min-height:34px!important;padding:0!important;border:0!important;background:transparent!important;color:#1d4ed8!important;display:flex!important;justify-content:space-between!important;align-items:center!important;font-weight:1000!important;font-size:17px!important;box-shadow:none!important}.hma-prev-out-time-display i{font-style:normal;background:#eff6ff;border:1px solid #dbeafe;width:34px;height:34px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center}.hma-prev-out-time-display.has-value span{color:#0f172a!important;font-size:20px!important;direction:ltr}.hma-prev-out-reason{grid-column:1/-1!important;margin:0!important}.hma-prev-out-reason textarea{min-height:96px!important;border-radius:18px!important;background:#fff!important}.hma-prev-out-submit{margin-top:14px!important;border-radius:18px!important;min-height:48px!important}
.hma-time-picker-overlay-v8{backdrop-filter:blur(10px);background:rgba(15,23,42,.28)!important}.hma-time-picker-modal-v8{border-radius:28px!important;border:1px solid rgba(226,232,240,.9)!important;box-shadow:0 30px 80px rgba(15,23,42,.28)!important;background:rgba(255,255,255,.98)!important;max-width:430px!important}.hma-time-picker-head{align-items:flex-start!important}.hma-time-picker-head small{display:block;color:#64748b;font-weight:950;margin-bottom:4px}.hma-time-wheel-row{gap:12px!important}.hma-time-wheel{border:1px solid #e2e8f0;border-radius:22px;background:#f8fafc;padding:12px!important}.hma-time-wheel span{order:-2;color:#64748b!important;font-weight:950!important}.hma-time-wheel input{height:46px!important;border-radius:14px!important;background:#fff!important;font-size:24px!important;font-weight:1000!important}.hma-time-wheel button{border-radius:12px!important;background:#fff!important;border:1px solid #e2e8f0!important;color:#3157c9!important}.hma-time-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.hma-time-shortcuts button{height:38px;border-radius:14px;border:1px solid #dbeafe;background:#eff6ff;color:#1d4ed8;font-weight:1000;cursor:pointer}.hma-time-picker-actions button{border-radius:16px!important;min-height:44px!important}

.hma-task-kanban-card.hma-task-accordion-card{cursor:default!important;padding:12px!important;position:relative!important;overflow:visible!important}.hma-task-accordion-card .hma-task-drag-handle{position:absolute!important;top:14px!important;left:14px!important;right:auto!important;width:34px;height:26px;cursor:grab!important;z-index:3;background:#f1f5f9!important;border:1px solid #e2e8f0}.hma-task-accordion-card .hma-task-drag-handle:active{cursor:grabbing!important}
.hma-task-card-summary{width:100%;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px!important;text-align:right!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0 0 0 44px!important;color:inherit!important;cursor:pointer!important}.hma-task-summary-main{display:grid;gap:5px;min-width:0}.hma-task-summary-main strong{font-size:14px;color:#0f172a;font-weight:1000;line-height:1.65}.hma-task-summary-main small{font-size:11px;color:#64748b;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hma-task-summary-side{display:flex;align-items:center;gap:7px}.hma-task-open-icon{width:28px;height:28px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;display:inline-flex;align-items:center;justify-content:center;color:#475569;transition:.18s ease}.hma-task-accordion-card.is-open .hma-task-open-icon{transform:rotate(180deg);background:#eff6ff;color:#1d4ed8}.hma-task-summary-meta{grid-column:1/-1;display:flex;gap:7px;flex-wrap:wrap}.hma-task-mini-activity{grid-column:1/-1;color:#64748b;font-size:11px;font-weight:850}.hma-task-card-body{display:grid;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}.hma-task-card-body[hidden]{display:none!important}.hma-task-accordion-card.is-open{box-shadow:0 20px 45px rgba(15,23,42,.1)!important;border-color:#bfdbfe!important}.hma-task-card-desc{margin:0!important}.hma-task-actions-menu{display:block!important;margin:0!important}.hma-task-action-menu{border:1px solid #dbeafe!important;border-radius:18px!important;background:#f8fbff!important;padding:0!important;overflow:visible}.hma-task-action-menu>summary{list-style:none;min-height:44px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;color:#1d4ed8;font-weight:1000;cursor:pointer}.hma-task-action-menu>summary::-webkit-details-marker{display:none}.hma-task-action-menu>summary:after{content:'⌄';width:26px;height:26px;border-radius:999px;background:#eff6ff;display:inline-flex;align-items:center;justify-content:center}.hma-task-action-menu[open]>summary:after{transform:rotate(180deg)}.hma-task-menu-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border-top:1px solid #dbeafe}.hma-task-menu-panel .hma-btn-status{min-height:36px!important;border-radius:13px!important;font-size:12px!important;padding:0 10px!important}.hma-task-progress-field{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:10px}.hma-task-progress-field span{grid-column:1/-1;color:#64748b;font-size:12px;font-weight:950}.hma-task-progress-field input{width:100%}.hma-task-progress-field output{direction:ltr;font-weight:1000;color:#0f172a}.hma-task-progress-field button{grid-column:1/-1}.hma-task-referral-box{grid-column:1/-1;display:grid;gap:8px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:10px}.hma-task-referral-box label{font-size:12px;color:#64748b;font-weight:950}.hma-task-referral-box select,.hma-task-referral-box textarea{border-radius:12px!important}.hma-task-card .hma-task-edit-box{margin-top:0!important;border-radius:18px!important}.hma-task-card .hma-task-edit-box>summary{font-size:12px!important;color:#475569!important;font-weight:950!important}.hma-task-card.is-saving{opacity:.7;pointer-events:none}

@media(max-width:900px){.hma-employee-panel-v4{max-width:100%!important}.hma-prev-out-grid-v8{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hma-prev-out-field--interactive{grid-column:1/-1}.hma-task-menu-panel{grid-template-columns:1fr}.hma-task-card-summary{padding-left:40px!important}}
@media(max-width:760px){.e-con-inner.hma-attendance-full-container{padding-left:0!important;padding-right:0!important}.hma-prev-out-card-v8{border-radius:24px!important}.hma-prev-out-grid-v8{grid-template-columns:1fr!important}.hma-prev-out-field{min-height:72px}.hma-time-picker-overlay-v8{align-items:flex-end!important}.hma-time-picker-modal-v8{width:100%!important;max-width:none!important;border-radius:28px 28px 0 0!important;margin:0!important}.hma-time-shortcuts{grid-template-columns:repeat(2,1fr)}.hma-task-board{display:flex!important;overflow-x:auto!important}.hma-task-column{min-width:88vw!important}.hma-task-card-summary{grid-template-columns:1fr!important}.hma-task-summary-side{justify-content:space-between}.hma-task-summary-meta{grid-column:auto}.hma-task-mini-activity{grid-column:auto}}

/* Hermes Attendance v1.8.9 — Trello-grade project/task board + secure chat polish */
.hma-trello-board-shell{direction:rtl;background:linear-gradient(135deg,#0f5bd7 0%,#6d5dfc 52%,#8b5cf6 100%);border-radius:28px;padding:18px;box-shadow:0 24px 70px rgba(37,99,235,.22);overflow:hidden}
.hma-trello-board-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#fff;margin-bottom:14px}.hma-trello-board-hero span{display:inline-flex;font-size:11px;font-weight:950;opacity:.8}.hma-trello-board-hero h3{margin:3px 0 4px;color:#fff!important;font-size:21px;font-weight:1000}.hma-trello-board-hero p{margin:0;color:rgba(255,255,255,.82);font-size:12px;font-weight:800;line-height:1.9}.hma-trello-board-hero .hma-task-board-stats b{background:rgba(255,255,255,.18)!important;color:#fff!important;border-color:rgba(255,255,255,.22)!important;backdrop-filter:blur(10px)}
.hma-trello-toolbar{background:rgba(255,255,255,.16)!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:20px!important;padding:10px!important;margin-bottom:14px!important;backdrop-filter:blur(10px)}.hma-trello-toolbar label span{color:#fff!important}.hma-trello-toolbar input,.hma-trello-toolbar select{background:#fff!important;border:0!important;border-radius:14px!important;box-shadow:0 10px 24px rgba(15,23,42,.12)!important}.hma-trello-toolbar .hma-task-filter-links a{background:rgba(255,255,255,.18)!important;color:#fff!important;border-color:rgba(255,255,255,.25)!important}.hma-trello-toolbar .hma-task-filter-links a.is-active{background:#fff!important;color:#1d4ed8!important}
.hma-task-board.hma-trello-board{display:flex!important;gap:14px!important;align-items:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 0 12px!important;scroll-snap-type:x proximity}.hma-trello-list{flex:0 0 300px!important;max-width:300px!important;min-width:300px!important;min-height:410px!important;background:#f1f2f4!important;border:0!important;border-radius:18px!important;padding:10px!important;box-shadow:0 18px 45px rgba(15,23,42,.16)!important;scroll-snap-align:start}.hma-trello-list>header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;padding:8px 8px 10px!important;border:0!important;background:transparent!important}.hma-trello-list>header strong{font-size:14px!important;color:#172033!important;font-weight:1000!important}.hma-trello-list>header small{display:block!important;color:#6b778c!important;font-size:10px!important;font-weight:800!important;margin-top:2px!important}.hma-trello-list>header>span{min-width:24px;height:24px;border-radius:999px;background:#dfe7f4;color:#172033;display:inline-flex;align-items:center;justify-content:center;font-weight:1000;font-size:11px}.hma-trello-list-cards{display:grid!important;gap:10px!important;align-content:start!important;max-height:calc(100vh - 340px);min-height:320px;overflow-y:auto;padding:0 2px 4px!important}.hma-trello-list-cards::-webkit-scrollbar,.hma-task-board.hma-trello-board::-webkit-scrollbar{height:10px;width:9px}.hma-trello-list-cards::-webkit-scrollbar-thumb,.hma-task-board.hma-trello-board::-webkit-scrollbar-thumb{background:rgba(71,85,105,.22);border-radius:999px}.hma-task-column-empty{border:1px dashed #cbd5e1!important;background:rgba(255,255,255,.42)!important;border-radius:14px!important;min-height:56px!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#8491a5!important;font-size:12px!important;font-weight:900!important;padding:10px!important}
.hma-trello-card{position:relative!important;padding:0!important;border:0!important;background:#fff!important;border-radius:14px!important;box-shadow:0 1px 0 rgba(9,30,66,.16),0 8px 18px rgba(9,30,66,.08)!important;overflow:hidden!important;cursor:grab!important;transition:transform .16s ease, box-shadow .16s ease!important}.hma-trello-card:hover{transform:translateY(-1px);box-shadow:0 1px 0 rgba(9,30,66,.18),0 12px 28px rgba(9,30,66,.16)!important}.hma-trello-card.is-dragging{opacity:.62;transform:rotate(-1deg) scale(.98)}.hma-trello-card.is-saving{opacity:.66;pointer-events:none}.hma-trello-cover{height:7px;background:#94a3b8}.hma-trello-card.is-priority-important .hma-trello-cover{background:linear-gradient(90deg,#f59e0b,#f97316)}.hma-trello-card.is-priority-urgent .hma-trello-cover{background:linear-gradient(90deg,#ef4444,#f43f5e)}.hma-trello-card.is-priority-normal .hma-trello-cover{background:linear-gradient(90deg,#60a5fa,#2563eb)}.hma-trello-card-open{all:unset!important;box-sizing:border-box!important;width:100%!important;display:grid!important;gap:8px!important;padding:11px 12px 12px!important;cursor:pointer!important;color:#172033!important}.hma-trello-card-open strong{font-size:13px!important;line-height:1.75!important;font-weight:1000!important;color:#172033!important}.hma-trello-card-open small{font-size:11px!important;color:#6b778c!important;font-weight:850!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hma-trello-label-row,.hma-trello-badges{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.hma-trello-badges i{font-style:normal;background:#f1f5f9;color:#475569;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:950}.hma-trello-card .hma-task-people-row{margin:2px 0 0!important}.hma-trello-card .hma-emp-chip span{display:none}.hma-trello-card .hma-emp-chip{padding:0!important;background:transparent!important;border:0!important}.hma-trello-card .hma-task-progress{margin:0!important}.hma-task-column.is-drag-over,.hma-trello-list.is-drag-over{box-shadow:0 0 0 3px rgba(255,255,255,.85),0 20px 55px rgba(29,78,216,.38)!important}.hma-task-kanban-card.is-hidden-by-search{display:none!important}
.hma-priority-chip{border-radius:999px;padding:4px 8px;font-size:10px;font-weight:1000;background:#e2e8f0;color:#334155}.hma-priority-chip.is-priority-important{background:#ffedd5;color:#c2410c}.hma-priority-chip.is-priority-urgent{background:#fee2e2;color:#be123c}.hma-priority-chip.is-priority-normal{background:#dbeafe;color:#1d4ed8}.hma-due-chip{border-radius:999px;padding:4px 8px;font-size:10px;font-weight:1000;background:#e2e8f0;color:#475569}.hma-due-chip.is-overdue{background:#fee2e2;color:#be123c}.hma-due-chip.is-today,.hma-due-chip.is-soon{background:#fef3c7;color:#b45309}.hma-task-progress{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center}.hma-task-progress>div{height:8px;background:#e8eef7;border-radius:999px;overflow:hidden}.hma-task-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#22c55e)}.hma-task-progress span{font-size:10px;font-weight:1000;color:#334155;direction:ltr}
.hma-trello-modal[hidden]{display:none!important}.hma-trello-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:24px;direction:rtl}.hma-trello-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(10px)}.hma-trello-modal-card{position:relative;width:min(1040px,96vw);max-height:92vh;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 295px;background:#f8fafc;border:1px solid rgba(255,255,255,.55);border-radius:28px;box-shadow:0 40px 120px rgba(15,23,42,.38);animation:hmaTrelloModalIn .18s ease-out}.hma-trello-close{position:absolute;top:12px;left:12px;z-index:4;width:38px;height:38px;border:0;border-radius:999px;background:#e2e8f0;color:#334155;font-size:24px;line-height:1;cursor:pointer}.hma-trello-modal-main{overflow:auto;max-height:92vh;padding:24px 28px 28px}.hma-trello-modal-main header{display:flex;gap:12px;align-items:flex-start;margin-bottom:18px}.hma-trello-card-icon{width:40px;height:40px;border-radius:14px;background:#e0e7ff;color:#3730a3;display:inline-flex;align-items:center;justify-content:center;font-weight:1000}.hma-trello-modal-main h3{margin:0;color:#111827;font-size:22px;font-weight:1000;line-height:1.7}.hma-trello-modal-main header p{margin:0;color:#64748b;font-size:12px;font-weight:850}.hma-trello-modal-main section{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:16px;margin:12px 0;box-shadow:0 10px 26px rgba(15,23,42,.05)}.hma-trello-modal-main h4{margin:0 0 10px;color:#172033;font-size:14px;font-weight:1000}.hma-trello-desc{color:#334155;line-height:2;font-weight:700;margin:0}.hma-trello-modal-side{border-right:1px solid #e2e8f0;background:#f1f5f9;padding:58px 16px 18px;overflow:auto;max-height:92vh}.hma-trello-side-card,.hma-trello-progress-form,.hma-trello-inline-actions,.hma-trello-side-note{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:12px;margin-bottom:10px;box-shadow:0 8px 22px rgba(15,23,42,.05)}.hma-trello-side-card label,.hma-trello-progress-form label{display:block;color:#64748b;font-size:11px;font-weight:1000;margin-bottom:6px}.hma-trello-side-card strong{color:#172033;font-size:13px;font-weight:1000}.hma-trello-progress-form{display:grid;gap:8px}.hma-trello-progress-form input[type=range]{width:100%;accent-color:#2563eb}.hma-trello-progress-form output{direction:ltr;font-weight:1000;color:#172033}.hma-trello-progress-form button,.hma-trello-comment-form button,.hma-trello-inline-actions button{border:0;border-radius:13px;background:#2563eb;color:#fff;padding:10px 13px;font-weight:1000;cursor:pointer}.hma-trello-inline-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hma-trello-inline-actions .is-danger{background:#ef4444}.hma-trello-side-note{color:#64748b;font-size:12px;line-height:1.9;font-weight:800}.hma-trello-comment-form{display:grid;gap:8px;margin:12px 0}.hma-trello-comment-form textarea{width:100%;min-height:82px;border:1px solid #cbd5e1;border-radius:16px;padding:12px;background:#fff;resize:vertical;line-height:1.9}.hma-trello-comments-list,.hma-trello-activity-list{display:grid;gap:10px}.hma-trello-comment,.hma-trello-activity-item{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:flex-start}.hma-comment-body,.hma-trello-activity-item>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:10px 12px}.hma-comment-body strong,.hma-trello-activity-item strong{display:block;color:#172033;font-size:12px;font-weight:1000}.hma-comment-body p,.hma-trello-activity-item p{margin:4px 0;color:#334155;line-height:1.9;font-size:12px;font-weight:750}.hma-comment-body small,.hma-trello-activity-item small{font-size:10px;color:#94a3b8;font-weight:800}.hma-comment-avatar{width:34px;height:34px;border-radius:999px;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:#dbeafe;color:#1d4ed8;font-weight:1000}.hma-activity-dot{width:12px;height:12px;border-radius:999px;background:#2563eb;margin-top:11px;box-shadow:0 0 0 5px rgba(37,99,235,.1)}.hma-muted{color:#94a3b8;font-weight:850;margin:0}.hma-modal-open{overflow:hidden}@keyframes hmaTrelloModalIn{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.hma-tab-links [data-hma-badge],.hma-nav-badge,.hma-chat-room-badge{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:20px!important;height:20px!important;border-radius:999px!important;background:#ef4444!important;color:#fff!important;font-size:10px!important;font-weight:1000!important;padding:0 6px!important;margin-inline-start:5px!important;box-shadow:0 0 0 0 rgba(239,68,68,.45);animation:hmaPulseBadge 1.65s ease-out infinite}.hma-tab-links [data-hma-badge]:empty,.hma-nav-badge:empty,.hma-chat-room-badge:empty{display:none!important;animation:none!important}.hma-chat-room-badge{min-width:18px!important;height:18px!important}.hma-chat-row.is-pending .hma-chat-bubble{opacity:.72}.hma-chat-row.is-pending.is-error .hma-chat-bubble{border-color:#fecaca!important;background:#fff1f2!important}@keyframes hmaPulseBadge{0%{box-shadow:0 0 0 0 rgba(239,68,68,.45)}70%{box-shadow:0 0 0 10px rgba(239,68,68,0)}100%{box-shadow:0 0 0 0 rgba(239,68,68,0)}}
.hma-open-project-chat{background:#eef2ff!important;color:#3730a3!important}.hma-project-card-v2{border-radius:22px!important}.hma-project-card-v2 .hma-progress{height:9px;border-radius:999px;background:#e8eef7;overflow:hidden}.hma-project-card-v2 .hma-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#22c55e)}
@media(max-width:900px){.hma-trello-board-shell{border-radius:22px;padding:12px}.hma-trello-board-hero{display:block}.hma-trello-board-hero .hma-task-board-stats{display:flex;overflow-x:auto;margin-top:10px}.hma-trello-toolbar{display:grid!important;gap:8px!important}.hma-task-board.hma-trello-board{gap:10px!important}.hma-trello-list{flex-basis:86vw!important;min-width:86vw!important;max-width:86vw!important;min-height:360px!important}.hma-trello-list-cards{max-height:none;min-height:260px}.hma-trello-modal{align-items:flex-end;padding:0}.hma-trello-modal-card{width:100vw;max-height:94vh;grid-template-columns:1fr;border-radius:26px 26px 0 0}.hma-trello-modal-side{border-right:0;border-top:1px solid #e2e8f0;max-height:none;padding:14px 16px 24px}.hma-trello-modal-main{max-height:58vh;padding:22px 16px}.hma-trello-close{top:10px;left:10px}}
@media(max-width:520px){.hma-trello-list{flex-basis:92vw!important;min-width:92vw!important;max-width:92vw!important}.hma-trello-modal-main h3{font-size:18px}.hma-trello-modal-main section{padding:12px;border-radius:16px}.hma-trello-inline-actions{grid-template-columns:1fr}.hma-trello-card-open{padding:10px!important}}


/* Hermes Attendance v1.8.10 — robust Trello modal viewport fix */
html:has(.hma-trello-modal.is-open),
body.hma-modal-open{
  overflow:hidden!important;
}
body > .hma-trello-modal{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  z-index:2147483000!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px!important;
  overflow:hidden!important;
  direction:rtl!important;
  transform:none!important;
}
body > .hma-trello-modal.is-open{
  display:flex!important;
}
body > .hma-trello-modal[hidden]{
  display:none!important;
}
body > .hma-trello-modal .hma-trello-modal-backdrop{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  background:rgba(15,23,42,.62)!important;
  backdrop-filter:blur(12px)!important;
}
body > .hma-trello-modal .hma-trello-modal-card{
  position:relative!important;
  width:min(1080px,calc(100vw - 48px))!important;
  height:min(820px,calc(100dvh - 48px))!important;
  max-width:calc(100vw - 48px)!important;
  max-height:calc(100dvh - 48px)!important;
  margin:auto!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 300px!important;
}
body > .hma-trello-modal .hma-trello-modal-main,
body > .hma-trello-modal .hma-trello-modal-side{
  max-height:none!important;
  height:100%!important;
  min-height:0!important;
  overflow:auto!important;
  -webkit-overflow-scrolling:touch!important;
}
body > .hma-trello-modal .hma-trello-close{
  position:absolute!important;
  top:14px!important;
  left:14px!important;
  z-index:10!important;
}
body.admin-bar > .hma-trello-modal{
  top:32px!important;
  height:calc(100dvh - 32px)!important;
}
body.admin-bar > .hma-trello-modal .hma-trello-modal-backdrop{
  top:32px!important;
  height:calc(100dvh - 32px)!important;
}
@media(max-width:782px){
  body.admin-bar > .hma-trello-modal{top:46px!important;height:calc(100dvh - 46px)!important;}
  body.admin-bar > .hma-trello-modal .hma-trello-modal-backdrop{top:46px!important;height:calc(100dvh - 46px)!important;}
}
@media(max-width:900px){
  body > .hma-trello-modal{
    align-items:flex-end!important;
    justify-content:center!important;
    padding:0!important;
  }
  body > .hma-trello-modal .hma-trello-modal-card{
    width:100vw!important;
    height:min(94dvh,calc(100dvh - 10px))!important;
    max-width:100vw!important;
    max-height:94dvh!important;
    grid-template-columns:1fr!important;
    grid-template-rows:minmax(0,1fr) auto!important;
    border-radius:28px 28px 0 0!important;
  }
  body > .hma-trello-modal .hma-trello-modal-main{
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    overflow:auto!important;
  }
  body > .hma-trello-modal .hma-trello-modal-side{
    height:auto!important;
    max-height:34dvh!important;
    overflow:auto!important;
    border-right:0!important;
    border-top:1px solid #e2e8f0!important;
  }
}
@media(max-width:520px){
  body > .hma-trello-modal .hma-trello-modal-card{
    height:96dvh!important;
    max-height:96dvh!important;
    border-radius:24px 24px 0 0!important;
  }
  body > .hma-trello-modal .hma-trello-close{
    top:10px!important;
    left:10px!important;
  }
}

/* Hermes Attendance v1.8.11 — Trello-like project/task board */
.hma-project-boards-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(290px,1fr))!important;gap:16px!important}
.hma-project-board-card{position:relative!important;overflow:hidden!important;padding-top:18px!important;border:0!important;border-radius:24px!important;background:#fff!important;box-shadow:0 18px 46px rgba(15,23,42,.08)!important}
.hma-project-cover{height:10px;border-radius:999px;background:linear-gradient(90deg,var(--pcolor,#4f89ff),#8b5cf6);margin-bottom:14px}
.hma-project-board-card h4{margin:0;color:#172033;font-size:18px;font-weight:1000}.hma-project-board-card p{min-height:44px;color:#64748b;line-height:1.85}.hma-project-card-metrics{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.hma-project-card-metrics b,.hma-project-card-metrics span{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;background:#f1f5f9;color:#475569;padding:0 10px;font-size:11px;font-weight:950}.hma-project-card-metrics b{background:#e0edff;color:#1d4ed8}.hma-project-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.hma-board-create-note{margin:10px 0;color:#64748b;font-size:12px;font-weight:800;line-height:1.8}.hma-trello-create-board{border:1px solid #e2e8f0!important;border-radius:24px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;padding:14px!important;margin-bottom:18px}.hma-trello-create-board summary{cursor:pointer;font-weight:1000;color:#172033}
.hma-trello-board-shell-v11{background:linear-gradient(135deg,#1d4ed8 0%,#7c3aed 46%,#0f172a 100%)!important;padding:18px!important;border-radius:30px!important;box-shadow:0 30px 80px rgba(29,78,216,.18)!important;overflow:hidden}.hma-trello-board-shell-v11 .hma-trello-board-hero{color:#fff!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:24px!important;padding:18px!important;backdrop-filter:blur(14px)}.hma-trello-board-shell-v11 .hma-trello-board-hero h3,.hma-trello-board-shell-v11 .hma-trello-board-hero p{color:#fff!important}.hma-board-project-strip{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:14px 0;padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);color:#fff}.hma-board-project-strip strong{display:block;color:#fff;font-size:15px}.hma-board-project-strip small{display:block;color:rgba(255,255,255,.78);font-size:12px;margin-top:3px}.hma-board-project-strip a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;border-radius:13px;padding:0 12px;background:#fff!important;color:#1d4ed8!important;text-decoration:none!important;font-weight:950}.hma-trello-board-v11{display:flex!important;gap:14px!important;align-items:flex-start!important;overflow-x:auto!important;padding:4px 2px 12px!important;scroll-snap-type:x proximity}.hma-trello-board-v11 .hma-trello-list{flex:0 0 304px!important;min-width:304px!important;max-width:304px!important;background:#f1f2f4!important;border:0!important;border-radius:18px!important;box-shadow:0 12px 30px rgba(15,23,42,.16)!important;scroll-snap-align:start}.hma-trello-board-v11 .hma-trello-list header{background:transparent!important;border-bottom:0!important;padding:12px 12px 6px!important}.hma-trello-board-v11 .hma-trello-list header strong{font-size:14px!important;color:#172033!important}.hma-trello-board-v11 .hma-trello-list header small{font-size:10px!important;color:#64748b!important}.hma-trello-board-v11 .hma-trello-list header>span{background:#dfe3ea!important;color:#172033!important;border-radius:999px!important;min-width:26px!important;height:26px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-weight:1000!important}.hma-trello-board-v11 .hma-trello-list-cards{padding:4px 9px 8px!important;max-height:64vh!important;overflow-y:auto!important}.hma-trello-board-v11 .hma-trello-card{border-radius:12px!important;border:0!important;margin-bottom:8px!important;box-shadow:0 1px 0 rgba(9,30,66,.25),0 2px 8px rgba(9,30,66,.08)!important;background:#fff!important;transition:transform .14s ease,box-shadow .14s ease}.hma-trello-board-v11 .hma-trello-card:hover{transform:translateY(-1px);box-shadow:0 1px 0 rgba(9,30,66,.25),0 8px 18px rgba(9,30,66,.14)!important}.hma-trello-board-v11 .hma-trello-cover{height:7px!important;border-radius:12px 12px 0 0!important;margin:0!important;background:linear-gradient(90deg,#2563eb,#8b5cf6)}.hma-trello-board-v11 .hma-task-column-empty{margin:6px 9px 10px!important;padding:12px!important;border-radius:12px!important;background:rgba(255,255,255,.55)!important;color:#64748b!important;font-size:12px!important;text-align:center!important}.hma-trello-add-card{width:calc(100% - 18px)!important;margin:0 9px 10px!important;min-height:38px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#44546f!important;text-align:right!important;padding:0 12px!important;box-shadow:none!important;font-weight:900!important}.hma-trello-add-card:hover{background:#dcdfe4!important;color:#172033!important}.hma-trello-add-card-form{margin:0 9px 10px;padding:8px;border-radius:12px;background:#fff;box-shadow:0 8px 20px rgba(9,30,66,.18);display:grid;gap:8px}.hma-trello-add-card-form[hidden]{display:none!important}.hma-trello-add-card-form textarea,.hma-trello-add-card-form input,.hma-trello-add-card-form select{width:100%!important;max-width:none!important;border:1px solid #d0d7de!important;border-radius:10px!important;background:#fff!important;padding:9px 10px!important;min-height:40px!important;box-shadow:none!important}.hma-trello-add-card-form textarea[name=title]{min-height:72px!important;resize:vertical!important}.hma-quick-card-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hma-trello-add-card-form details{border:1px solid #e5e7eb;border-radius:10px;padding:8px;background:#f8fafc}.hma-trello-add-card-form summary{font-weight:950;color:#334155;cursor:pointer}.hma-quick-card-actions{display:flex;gap:8px}.hma-quick-card-actions button{min-height:36px!important;border-radius:10px!important;padding:0 12px!important}.hma-quick-card-actions button[type=submit]{background:#0c66e4!important;color:#fff!important}.hma-quick-card-actions [data-hma-quick-card-cancel]{background:#f1f5f9!important;color:#334155!important;box-shadow:none!important}.hma-task-row-builder-v11{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:16px!important;box-shadow:0 8px 20px rgba(15,23,42,.05)!important}.hma-task-row-compact{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;align-items:start}.hma-task-row-compact details{grid-column:1/-1;border:1px solid #e2e8f0;border-radius:14px;padding:10px;background:#f8fafc}.hma-task-row-compact summary{cursor:pointer;font-weight:1000;color:#334155}.hma-task-row-compact label{display:block;margin:0 0 6px;font-size:11px;font-weight:950;color:#64748b}.hma-task-row-compact input,.hma-task-row-compact select,.hma-task-row-compact textarea{width:100%!important;max-width:none!important}.hma-admin-project-board-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.hma-admin-project-board-card{position:relative;background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:16px;box-shadow:0 14px 34px rgba(15,23,42,.06)}.hma-admin-project-board-card h3{margin:0 0 8px;color:#172033}.hma-admin-project-board-card p{color:#64748b;min-height:42px}.hma-admin-project-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
@media(max-width:900px){.hma-board-project-strip{display:grid}.hma-trello-board-v11 .hma-trello-list{flex-basis:86vw!important;min-width:86vw!important;max-width:86vw!important}.hma-task-row-compact{grid-template-columns:1fr}.hma-quick-card-meta{grid-template-columns:1fr}.hma-trello-board-shell-v11{padding:12px!important;border-radius:22px!important}.hma-trello-board-v11 .hma-trello-list-cards{max-height:none!important}}

/* Hermes Attendance v1.8.12 — Trello Card Back, attachments, checklist and board menu */
.hma-trello-board-shell{--hma-board-bg:#00a3bf;background:linear-gradient(135deg,var(--hma-board-bg),#22c7d7)!important;position:relative!important;overflow:hidden!important}
.hma-board-menu-open{border:0!important;border-radius:8px!important;background:rgba(255,255,255,.24)!important;color:#fff!important;min-height:34px!important;padding:0 14px!important;font-weight:900!important;box-shadow:none!important}
.hma-board-menu{position:absolute;top:0;left:0;width:360px;max-width:calc(100% - 22px);height:100%;z-index:30;background:#f4f5f7;color:#172b4d;box-shadow:18px 0 60px rgba(9,30,66,.25);transform:translateX(-104%);transition:.22s ease;overflow:auto;border-radius:0 22px 22px 0;direction:rtl}
.hma-board-menu.is-open{transform:translateX(0)}
.hma-board-menu header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #dfe1e6;background:#fff;font-weight:1000}.hma-board-menu header button{border:0;background:transparent;font-size:24px;cursor:pointer;color:#44546f}.hma-board-menu section{padding:16px 18px;border-bottom:1px solid #dfe1e6}.hma-board-menu h4{margin:0 0 8px;font-size:14px;font-weight:1000;color:#172b4d}.hma-board-menu p,.hma-board-menu li{font-size:12px;line-height:1.9;color:#44546f;font-weight:750}.hma-board-bg-options{display:flex;gap:8px;flex-wrap:wrap}.hma-board-bg-options button{width:42px;height:32px;border:0;border-radius:8px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.7),0 3px 10px rgba(9,30,66,.16);cursor:pointer}.hma-board-bg-options button:nth-child(1){background:#00a3bf}.hma-board-bg-options button:nth-child(2){background:#0079bf}.hma-board-bg-options button:nth-child(3){background:#89609e}.hma-board-bg-options button:nth-child(4){background:#4bbf6b}.hma-board-activity-list{display:grid;gap:10px}.hma-board-activity-list>div{background:#fff;border:1px solid #dfe1e6;border-radius:12px;padding:10px}.hma-board-activity-list strong{font-size:12px;color:#172b4d}.hma-board-activity-list p{margin:3px 0}.hma-board-activity-list small{font-size:10px;color:#6b778c}
.hma-cardback .hma-trello-modal-card{width:min(1120px,96vw)!important;grid-template-columns:minmax(0,1fr) 292px!important;background:#f4f5f7!important;border-radius:12px!important;border:0!important;box-shadow:0 30px 90px rgba(9,30,66,.45)!important}.hma-cardback-main{background:#f4f5f7!important;color:#172b4d!important}.hma-cardback-header{border-bottom:0!important;margin-bottom:10px!important}.hma-cardback-header h3{color:#172b4d!important;font-size:22px!important}.hma-cardback-header p{color:#5e6c84!important}.hma-cardback-addbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid #dfe1e6;border-radius:12px;padding:10px 12px;margin:10px 0 12px;box-shadow:0 1px 1px rgba(9,30,66,.09)}.hma-cardback-addbar span{font-weight:1000;color:#44546f;margin-left:4px}.hma-cardback-addbar button{border:0;border-radius:8px;background:#091e420f;color:#172b4d;min-height:32px;padding:0 11px;font-weight:900;cursor:pointer}.hma-cardback-addbar button:hover{background:#091e4224}.hma-cardback-panel{background:#fff;border:1px solid #dfe1e6;border-radius:12px;padding:12px;margin:8px 0 12px;box-shadow:0 10px 24px rgba(9,30,66,.13)}.hma-cardback-panel[hidden]{display:none!important}.hma-cardback-panel form{display:grid;gap:10px}.hma-cardback-panel input,.hma-cardback-panel select,.hma-cardback-panel textarea{width:100%!important;max-width:none!important;border:1px solid #dfe1e6!important;border-radius:8px!important;padding:9px!important;background:#fff!important}.hma-cardback-panel button,.hma-cardback-section button,.hma-cardback-attach-actions button{border:0!important;border-radius:8px!important;background:#0c66e4!important;color:#fff!important;font-weight:900!important;min-height:34px!important;padding:0 12px!important;cursor:pointer!important}.hma-cardback-section{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:8px 0 14px!important;margin:0!important}.hma-cardback-section h4{display:flex;align-items:center;gap:8px;margin:0 0 8px!important;font-size:15px!important;color:#172b4d!important}.hma-cardback-section h4:before{content:'▦';width:26px;height:26px;border-radius:6px;background:#dfe1e6;color:#44546f;display:inline-flex;align-items:center;justify-content:center;font-size:12px}.hma-cardback-meta-strip{display:flex!important;align-items:flex-start;gap:12px;flex-wrap:wrap;background:#fff!important;border:1px solid #dfe1e6!important;border-radius:12px!important;padding:12px!important;margin:8px 0 14px!important}.hma-cardback-meta-strip>div{min-width:145px}.hma-cardback-meta-strip small{display:block;color:#6b778c;font-size:11px;font-weight:900;margin-bottom:6px}.hma-card-labels{display:flex;gap:6px;flex-wrap:wrap}.hma-card-label{display:inline-flex;align-items:center;min-height:22px;border-radius:4px;padding:0 9px;color:#fff;font-size:11px;font-weight:1000}.hma-card-label.is-priority-normal{background:#6b778c}.hma-card-label.is-priority-important{background:#0c66e4}.hma-card-label.is-priority-urgent{background:#e34935}.hma-card-label.is-fix{background:#f59e0b;color:#172b4d}.hma-card-label.is-paused{background:#8590a2}.hma-cardback-desc-form{display:grid;gap:8px}.hma-cardback-desc-form textarea{width:100%!important;min-height:88px!important;border:1px solid #dfe1e6!important;border-radius:8px!important;background:#fff!important;padding:10px!important;resize:vertical}.hma-cardback-empty{margin:0;color:#6b778c;background:#fff;border:1px dashed #c7d1db;border-radius:12px;padding:12px;font-weight:800}.hma-cardback-checklist{display:grid;gap:8px}.hma-cardback-checklist-head{display:flex;align-items:center;justify-content:space-between;color:#172b4d}.hma-cardback-mini-progress{height:8px;border-radius:999px;background:#dfe1e6;overflow:hidden}.hma-cardback-mini-progress i{display:block;height:100%;background:#0c66e4;border-radius:inherit}.hma-cardback-checkitem{display:flex;gap:9px;align-items:flex-start;background:#fff;border:1px solid #dfe1e6;border-radius:10px;padding:10px;cursor:pointer}.hma-cardback-checkitem input{margin-top:3px}.hma-cardback-checkitem.is-done span{text-decoration:line-through;color:#6b778c}.hma-cardback-add-checkitem{display:grid;grid-template-columns:1fr auto;gap:8px}.hma-cardback-add-checkitem input{border:1px solid #dfe1e6!important;border-radius:8px!important;padding:9px!important}.hma-cardback-attachment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-bottom:10px}.hma-cardback-attachment,.hma-cardback-link{display:grid;grid-template-columns:52px 1fr;gap:10px;align-items:center;text-decoration:none!important;background:#fff;border:1px solid #dfe1e6;border-radius:12px;padding:8px;color:#172b4d!important}.hma-cardback-thumb{width:52px;height:42px;border-radius:8px;background:#dfe1e6;overflow:hidden;display:block}.hma-cardback-thumb img{width:100%;height:100%;object-fit:cover}.hma-cardback-fileicon{width:52px;height:42px;border-radius:8px;background:#091e420f;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:1000;color:#44546f}.hma-cardback-attachment strong,.hma-cardback-link strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hma-cardback-attachment small,.hma-cardback-link small{font-size:10px;color:#6b778c;font-weight:800}.hma-cardback-link-list{display:grid;gap:8px;margin-bottom:10px}.hma-cardback-link span{width:52px;height:42px;display:flex;align-items:center;justify-content:center;background:#e9f2ff;border-radius:8px}.hma-cardback-attach-actions{display:grid;gap:9px;background:#fff;border:1px solid #dfe1e6;border-radius:12px;padding:10px}.hma-cardback-attach-actions form{display:grid;gap:8px}.hma-cardback-attach-actions input[type=url],.hma-cardback-attach-actions input:not([type=file]){width:100%!important;border:1px solid #dfe1e6!important;border-radius:8px!important;padding:9px!important}.hma-cardback-filepick{display:block;border:1px dashed #a6c5e2;border-radius:10px;background:#f7fbff;padding:12px;text-align:center;color:#0c66e4;font-weight:1000;cursor:pointer}.hma-cardback-filepick input{display:block;margin:0 auto 8px}.hma-cardback-comments .hma-cardback-tabs{display:flex;gap:6px;margin-bottom:10px}.hma-cardback-tabs button{background:#091e420f!important;color:#44546f!important}.hma-cardback-tabs button.is-active{background:#0c66e4!important;color:#fff!important}.hma-cardback-side{background:#e9edf3!important;border-right:1px solid #dfe1e6!important}.hma-cardback-side .hma-trello-side-card,.hma-cardback-side .hma-trello-progress-form{border-radius:10px!important;border:1px solid #dfe1e6!important;box-shadow:0 1px 1px rgba(9,30,66,.1)!important}.hma-admin-trello-settings ul{margin:0;padding-right:18px}.hma-admin-trello-settings li{margin:0 0 8px;line-height:1.85;color:#44546f}
@media(max-width:900px){.hma-cardback .hma-trello-modal-card{grid-template-columns:1fr!important;border-radius:16px 16px 0 0!important}.hma-cardback-addbar{overflow-x:auto;flex-wrap:nowrap}.hma-cardback-meta-strip{display:grid!important;grid-template-columns:1fr 1fr}.hma-cardback-side{border-right:0!important}.hma-board-menu{position:fixed;top:0;bottom:0;height:auto;z-index:1000001}.hma-cardback-add-checkitem{grid-template-columns:1fr}.hma-cardback-attachment-grid{grid-template-columns:1fr}}

/* Hermes Attendance v1.8.13 — Trello final polish */
.hma-trello-board-shell .h-birth-overlay.hma-jalali-overlay,
.h-birth-overlay.hma-jalali-overlay{z-index:2147483000!important}.hma-jalali-modal{z-index:2147483001!important}.hma-cardback .hma-trello-modal-card{overflow:visible!important}.hma-cardback-main{overflow:auto!important}.hma-board-menu-open{background:linear-gradient(135deg,#6e5dc6,#0c66e4)!important;color:#fff!important;border:0!important;border-radius:12px!important;padding:9px 14px!important;font-weight:1000!important;box-shadow:0 10px 22px rgba(80,70,190,.28)!important}.hma-board-menu-open:hover{filter:brightness(1.05);transform:translateY(-1px)}.hma-board-menu header strong:before{content:'☰ ';color:#6e5dc6}.hma-board-stickers{display:flex;gap:8px;flex-wrap:wrap}.hma-board-stickers span{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;background:#f1f2f4;color:#172b4d;padding:0 10px;font-size:12px;font-weight:900}.hma-cardback-attachment-wrap{position:relative;display:block}.hma-cardback-delete-attachment{position:absolute!important;top:-7px!important;left:-7px!important;width:24px!important;min-height:24px!important;border-radius:999px!important;background:#e34935!important;color:#fff!important;border:2px solid #fff!important;box-shadow:0 8px 20px rgba(227,73,53,.28)!important;font-size:16px!important;line-height:18px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:3!important;cursor:pointer!important}.hma-cardback-delete-attachment:hover{background:#c9372c!important}.hma-cardback-filepick input[type=file],.hma-cardback-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.hma-cardback-filepick{position:relative!important;display:grid!important;gap:8px!important;border:1px dashed #85b8ff!important;border-radius:12px!important;background:#f7fbff!important;padding:14px!important;text-align:center!important;cursor:pointer!important;color:#0c66e4!important}.hma-filepick-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;border-radius:10px!important;background:#e9f2ff!important;color:#0c66e4!important;font-weight:1000!important;padding:0 14px!important}.hma-cardback-filepick small{color:#5e6c84!important;font-weight:800!important}.hma-cardback-filepick small.has-file{color:#172b4d!important}.hma-cardback-attachment-grid,.hma-cardback-link-list{padding-top:6px}.hma-cardback-attachment,.hma-cardback-link{box-shadow:0 1px 1px rgba(9,30,66,.08)!important}.hma-trello-board-hero span{color:#e9f2ff!important;font-weight:1000!important}.hma-board-project-strip .hma-open-project-chat:before{content:'💬 ';}.hma-board-menu section h4{color:#172b4d!important;font-weight:1000!important}.hma-board-menu section ul{margin:0;padding-right:18px;color:#44546f}.hma-board-menu section li{margin:0 0 8px}.hma-trello-add-card-form.is-open{animation:hmaFadeIn .16s ease both}@media(max-width:760px){.hma-board-menu-open{width:100%;justify-content:center}.hma-cardback-delete-attachment{top:2px!important;left:2px!important}.hma-cardback-filepick{padding:12px!important}.h-birth-overlay.hma-jalali-overlay{align-items:flex-end!important}}

/* Hermes Attendance v1.8.14 — professional task modal, board menu and speed fixes */
.hma-trello-card.is-loading-card{opacity:.68;filter:saturate(.8);pointer-events:none}
.hma-cardback-loading{min-height:220px;display:flex;align-items:center;justify-content:center;color:#44546f;font-weight:800;background:#f7f8fb;border-radius:18px;border:1px solid #dfe5f2}
.hma-cardback .hma-cardback-section{background:#fff;border:1px solid #dfe5f2;border-radius:16px;box-shadow:0 8px 22px rgba(23,43,77,.05);color:#172b4d}
.hma-cardback .hma-cardback-section h4{color:#172b4d;border-bottom:1px solid #edf1f7;padding-bottom:8px;margin-bottom:12px}
.hma-cardback .hma-cardback-meta-strip{background:#f7f8fb;box-shadow:none}
.hma-cardback .hma-cardback-panel{background:#f8fafc;border:1px solid #dfe5f2;border-radius:16px;box-shadow:0 14px 34px rgba(23,43,77,.08)}
.hma-cardback button,.hma-cardback-addbar button,.hma-cardback-add-checkitem button,.hma-cardback-attach-actions button,.hma-trello-comment-form button,.hma-trello-progress-form button{border:0;border-radius:12px;background:#0c66e4;color:#fff;font-weight:800;box-shadow:0 8px 18px rgba(12,102,228,.18);cursor:pointer;transition:.18s ease}
.hma-cardback button:hover,.hma-cardback-addbar button:hover,.hma-cardback-add-checkitem button:hover,.hma-cardback-attach-actions button:hover,.hma-trello-comment-form button:hover,.hma-trello-progress-form button:hover{filter:brightness(.96);transform:translateY(-1px)}
.hma-cardback .hma-trello-close{background:#eef2f7;color:#172b4d;box-shadow:none}
.hma-cardback-delete-attachment{background:#fff1f0!important;color:#de350b!important;box-shadow:none!important;width:28px;height:28px;border-radius:999px!important;display:inline-flex;align-items:center;justify-content:center}
.hma-cardback-filepick{background:#f7f8fb;border:1px dashed #b8c4d8;border-radius:14px;padding:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;cursor:pointer}
.hma-cardback-filepick input[type=file]{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;overflow:hidden!important}
.hma-filepick-button{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:9px 14px;background:#e9f2ff;color:#0c66e4;font-weight:900}
.hma-cardback-filepick small{color:#5e6c84}.hma-cardback-filepick small.has-file{color:#172b4d;font-weight:800}
.hma-card-label,.hma-priority-chip,.hma-due-chip{box-shadow:none!important}.hma-card-label.is-priority-urgent,.hma-priority-chip.is-priority-urgent{background:#ffebe6;color:#bf2600}.hma-card-label.is-priority-important,.hma-priority-chip.is-priority-important{background:#fff4ce;color:#7f5f01}.hma-card-label.is-priority-normal,.hma-priority-chip.is-priority-normal{background:#e9f2ff;color:#0c66e4}
.hma-trello-modal-card{max-height:min(88vh,920px);overflow:auto}.hma-modal-open{overflow:hidden}
.hma-board-menu-open,[data-hma-board-menu-toggle].hma-board-menu-open{background:linear-gradient(135deg,#5e4db2,#0c66e4)!important;color:#fff!important;border:0!important;border-radius:14px!important;padding:10px 16px!important;font-weight:900!important;box-shadow:0 12px 26px rgba(12,102,228,.24)!important}
.hma-project-board-menu,[data-hma-board-menu]{position:fixed!important;top:0!important;right:0!important;bottom:0!important;width:min(420px,92vw)!important;z-index:100020!important;background:#fff!important;border-radius:24px 0 0 24px!important;box-shadow:-22px 0 60px rgba(9,30,66,.22)!important;transform:translateX(110%);transition:transform .22s ease;overflow:auto;padding:20px!important}
.hma-project-board-menu.is-open,[data-hma-board-menu].is-open{transform:translateX(0)!important}
.hma-board-menu-backdrop{position:fixed;inset:0;z-index:100010;background:rgba(9,30,66,.38);backdrop-filter:blur(2px)}
body.hma-board-menu-is-open{overflow:hidden}
.hma-task-quick-create-global{background:#fff;border:1px solid #dfe5f2;border-radius:18px;padding:12px 16px;margin:14px 0;box-shadow:0 12px 30px rgba(23,43,77,.06)}
.hma-task-quick-create-global summary{font-weight:900;cursor:pointer;color:#0c66e4}.hma-task-quick-create-global form{display:grid;grid-template-columns:minmax(180px,260px) 1fr;gap:12px;align-items:start;margin-top:12px}.hma-task-quick-create-global textarea{min-height:54px}.hma-task-quick-create-global .hma-quick-card-actions{grid-column:1/-1}
@media(max-width:720px){.hma-project-board-menu,[data-hma-board-menu]{width:100%!important;border-radius:22px 22px 0 0!important;top:8vh!important;transform:translateY(110%)}.hma-project-board-menu.is-open,[data-hma-board-menu].is-open{transform:translateY(0)!important}.hma-task-quick-create-global form{grid-template-columns:1fr}.hma-trello-modal-card{max-height:92vh;border-radius:22px 22px 0 0}}


/* v1.8.15 unified work/projects workspace */
.hma-workspace-head{align-items:center;justify-content:space-between;gap:16px}
.hma-workspace-actions span{display:inline-flex;align-items:center;min-height:32px;border-radius:999px;background:#e9f2ff;color:#0c66e4;padding:0 12px;font-weight:900;font-size:12px}
.hma-project-boards-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px!important;align-items:stretch}
.hma-project-board-card{min-height:220px;display:flex!important;flex-direction:column;justify-content:space-between;border:1px solid rgba(9,30,66,.12)!important;background:#fff!important;box-shadow:0 10px 24px rgba(9,30,66,.08)!important;overflow:hidden;transition:transform .16s ease,box-shadow .16s ease}
.hma-project-board-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(9,30,66,.14)!important}
.hma-project-board-card .hma-project-cover{height:54px!important;margin:-1px -1px 12px!important;border-radius:22px 22px 0 0!important;background:linear-gradient(135deg,var(--pcolor,#0c66e4),#36c2cf)!important}
.hma-project-card-actions{margin-top:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hma-project-card-actions .hma-open-project{flex:1;justify-content:center;text-align:center;background:#0c66e4!important;color:#fff!important;border-radius:12px!important;min-height:40px;font-weight:1000}.hma-board-communication-note{display:inline-flex;align-items:center;min-height:32px;border-radius:999px;background:#f1f2f4;color:#44546f;padding:0 10px;font-size:12px;font-weight:900}.hma-nav-primary-v4 a[href*="hma_section=projects"] span:before{content:'▥ ';font-weight:900}.hma-task-quick-create-global{display:none!important}.hma-board-project-strip .hma-open-project-chat{display:none!important}
@media(max-width:760px){.hma-project-boards-grid{grid-template-columns:1fr!important}.hma-project-board-card{min-height:190px}.hma-workspace-head{align-items:flex-start;flex-direction:column}}

/* v1.8.16 project cards + guest workspace */
.hma-project-boards-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;align-items:stretch!important}.hma-project-board-card{min-height:240px;max-width:none!important}.hma-project-cover{height:62px;border-radius:18px 18px 8px 8px;background:linear-gradient(135deg,var(--pcolor,#0c66e4),#6e5dc6);margin:-4px -4px 12px}.hma-project-board-card h4{min-height:42px}.hma-guest-invite-box{margin:12px 0;padding:14px;border:1px solid #dfe1e6;border-radius:16px;background:#fff}.hma-guest-invite-box summary{cursor:pointer;font-weight:900;color:#0c66e4}.hma-guest-task-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:220px;overflow:auto;padding:10px;border:1px solid #e6e8ee;border-radius:12px;background:#f7f8fa}.hma-guest-task-list label{display:flex;gap:6px;align-items:center;font-size:13px}.hma-guest-link-box{margin-top:12px;background:#e9f2ff;border:1px solid #bcd6ff;border-radius:12px;padding:10px}.hma-guest-link-box input{width:100%;direction:ltr;text-align:left;margin-top:6px}.hma-guest-body{margin:0;background:#f6f8fb}.hma-guest-public{max-width:1280px;margin:0 auto;padding:22px}.hma-guest-login-card{max-width:520px;margin:8vh auto;background:#fff;border:1px solid #dfe1e6;border-radius:28px;padding:28px;box-shadow:0 20px 60px rgba(9,30,66,.12)}.hma-guest-login-card form{display:grid;gap:12px;margin-top:18px}.hma-guest-shell{display:grid;gap:18px}.hma-guest-top{display:flex;gap:16px;align-items:center;justify-content:space-between;background:#fff;border:1px solid #dfe1e6;border-radius:24px;padding:18px;box-shadow:0 10px 30px rgba(9,30,66,.08)}.hma-guest-avatar-upload{display:inline-flex;align-items:center;gap:8px;border:1px solid #dfe1e6;border-radius:12px;padding:9px 12px;background:#f7f8fa;cursor:pointer}.hma-guest-avatar-upload input{display:none}.hma-guest-task-board .hma-trello-card{cursor:grab}.hma-task-column.is-drag-over{outline:3px solid rgba(12,102,228,.35);outline-offset:3px}.hma-guest-project-card .hma-project-card-actions a{background:#0c66e4!important;color:#fff!important}.hma-field-grid--2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hma-field--full{grid-column:1/-1}@media(max-width:1024px){.hma-project-boards-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:640px){.hma-project-boards-grid{grid-template-columns:1fr!important}.hma-guest-top{display:grid}.hma-field-grid--2{grid-template-columns:1fr}.hma-guest-task-list{grid-template-columns:1fr}}
/* v1.8.17 project workspace fixes */
.hma-project-boards-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
.hma-project-board-card{display:flex!important;flex-direction:column!important;min-height:270px!important;overflow:hidden!important;}
.hma-project-date-line{display:flex!important;gap:8px!important;flex-wrap:wrap!important;color:#44546f!important;font-weight:850!important;margin-top:5px!important;}
.hma-project-date-line b{color:#172b4d!important;}
.hma-project-card-members{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-top:auto!important;background:#f7f8fa!important;border:1px solid #dfe1e6!important;border-radius:14px!important;padding:8px 10px!important;}
.hma-project-card-members>span{font-size:12px!important;font-weight:950!important;color:#44546f!important;}
.hma-project-board-card .hma-project-card-actions{margin-top:12px!important;}
.hma-guest-link-create-btn{background:#0c66e4!important;color:#fff!important;border:0!important;border-radius:13px!important;min-height:42px!important;padding:0 16px!important;font-weight:1000!important;}
.hma-guest-link-box{margin-top:12px!important;background:#e9f2ff!important;border:1px solid #bcd6ff!important;border-radius:14px!important;padding:12px!important;color:#172b4d!important;}
.hma-guest-link-box.is-loading{background:#f7f8fa!important;border-color:#dfe1e6!important;color:#44546f!important;}
.hma-guest-link-box.is-error{background:#fff1f0!important;border-color:#ffbdad!important;color:#ae2e24!important;}
.hma-guest-link-row{display:flex!important;gap:8px!important;align-items:center!important;margin-top:8px!important;}
.hma-guest-link-row input{flex:1!important;direction:ltr!important;text-align:left!important;min-height:40px!important;border-radius:10px!important;border:1px solid #bcd6ff!important;background:#fff!important;}
.hma-guest-link-row button{min-height:40px!important;border-radius:10px!important;background:#172b4d!important;color:#fff!important;border:0!important;padding:0 12px!important;font-weight:950!important;}
.hma-guest-link-box small{display:block!important;margin-top:8px!important;font-weight:850!important;}.hma-guest-link-box small.is-success{color:#1f845a!important}.hma-guest-link-box small.is-warn{color:#a54800!important}
@media(max-width:1024px){.hma-project-boards-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){.hma-project-boards-grid{grid-template-columns:1fr!important}.hma-guest-link-row{flex-direction:column!important;align-items:stretch!important}}

/* v1.8.18 project board polish */
.hma-project-boards-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;align-items:stretch!important}
.hma-project-board-card{aspect-ratio:1/1!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:8px!important;border-radius:10px!important;padding:10px!important;cursor:pointer!important;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease!important;border:1px solid #dfe1e6!important;background:#fff!important}
.hma-project-board-card:hover{transform:translateY(-2px)!important;box-shadow:0 12px 32px rgba(9,30,66,.15)!important;border-color:#0c66e4!important}
.hma-project-cover{height:54px!important;min-height:54px!important;border-radius:10px!important;background:linear-gradient(135deg,var(--pcolor,#0c66e4),#6e5dc6)!important;margin:0!important;display:flex!important;align-items:flex-end!important;justify-content:flex-start!important;padding:8px!important;color:#fff!important;font-weight:950!important;font-size:12px!important}
.hma-project-cover span{background:rgba(255,255,255,.18)!important;border:1px solid rgba(255,255,255,.25)!important;border-radius:10px!important;padding:3px 8px!important;backdrop-filter:blur(8px)!important}
.hma-project-board-card h4{font-size:15px!important;line-height:1.5!important;min-height:0!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.hma-project-date-line{display:block!important;line-height:1.7!important;font-size:10.5px!important;color:#626f86!important;white-space:normal!important}
.hma-project-board-card p{font-size:11.5px!important;line-height:1.7!important;min-height:0!important;margin:0!important;color:#626f86!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.hma-project-card-members{margin-top:auto!important;border-radius:10px!important;padding:6px 8px!important;min-height:34px!important}
.hma-project-card-members .hma-avatar-stack{max-width:118px!important;overflow:hidden!important}
.hma-project-card-metrics{gap:5px!important;margin:6px 0 0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.hma-project-card-metrics b,.hma-project-card-metrics span{min-height:24px!important;border-radius:10px!important;padding:0 6px!important;font-size:10px!important;justify-content:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.hma-project-board-card .hma-progress{height:7px!important;border-radius:10px!important;margin-top:2px!important}
.hma-project-card-actions{display:none!important}.hma-project-link{display:none!important}
.hma-board-project-strip,.hma-task-board-toolbar,.hma-trello-list,.hma-trello-card,.hma-cardback-section,.hma-cardback-panel,.hma-board-menu,.hma-guest-invite-box,.hma-open-project,.hma-board-communication-note,.hma-board-view-pill,.hma-board-name-pill,.hma-board-visibility,.hma-task-filter-links a,.hma-task-search input,.hma-task-sort select{border-radius:10px!important}
.hma-board-star{background:transparent!important;border:0!important;box-shadow:none!important;color:#f5b700!important;font-size:22px!important;line-height:1!important;width:34px!important;height:34px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;cursor:pointer!important}
.hma-board-star.is-starred,.hma-board-star[aria-pressed="true"]{color:#f5b700!important;text-shadow:0 2px 10px rgba(245,183,0,.35)!important}
.hma-board-star.is-starred::before,.hma-board-star[aria-pressed="true"]::before{content:'★'!important}.hma-board-star.is-starred,.hma-board-star[aria-pressed="true"]{font-size:0!important}.hma-board-star.is-starred::before,.hma-board-star[aria-pressed="true"]::before{font-size:22px!important}
.hma-guest-invite-dropdown{position:relative!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;display:inline-flex!important;align-items:center!important}
.hma-guest-invite-dropdown>summary{list-style:none!important;display:inline-flex!important;align-items:center!important;min-height:36px!important;border-radius:10px!important;background:#0c66e4!important;color:#fff!important;border:1px solid #0c66e4!important;padding:0 12px!important;font-weight:950!important;cursor:pointer!important;white-space:nowrap!important}.hma-guest-invite-dropdown>summary::-webkit-details-marker{display:none!important}
.hma-guest-invite-dropdown[open]>summary{background:#0747a6!important}
.hma-guest-invite-dropdown form{position:absolute!important;top:44px!important;left:0!important;z-index:99950!important;width:min(620px,calc(100vw - 24px))!important;background:#fff!important;border:1px solid #dfe1e6!important;border-radius:10px!important;padding:14px!important;box-shadow:0 20px 60px rgba(9,30,66,.22)!important;color:#172b4d!important}
.hma-task-board-toolbar{display:flex!important;align-items:flex-end!important;gap:10px!important;flex-wrap:wrap!important;background:#ffffffd9!important;border:1px solid #dfe1e6!important;padding:10px!important}.hma-task-board-toolbar label{margin:0!important}.hma-task-filter-links{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;margin-inline-start:auto!important}.hma-task-search{flex:1 1 280px!important}.hma-task-sort{flex:0 0 190px!important}.hma-task-search input,.hma-task-sort select{min-height:38px!important}
.hma-trello-list,.hma-trello-list header,.hma-trello-add-card,.hma-trello-add-card-form,.hma-trello-modal-card,.hma-file-card,.hma-attachment-card,.hma-checklist-item,.hma-priority-chip,.hma-due-chip,.hma-trello-badges i{border-radius:10px!important}
.hma-invite-member,.hma-join-board,.hma-automation-btn{display:none!important}
@media(max-width:1180px){.hma-project-boards-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:920px){.hma-project-boards-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hma-guest-invite-dropdown form{left:auto!important;right:0!important}}
@media(max-width:640px){.hma-project-boards-grid{grid-template-columns:1fr!important}.hma-project-board-card{aspect-ratio:auto!important;min-height:220px!important}.hma-task-board-toolbar{display:grid!important}.hma-task-filter-links{margin-inline-start:0!important}.hma-task-sort{flex:1 1 auto!important}.hma-guest-invite-dropdown form{position:fixed!important;left:12px!important;right:12px!important;top:86px!important;width:auto!important;max-height:calc(100vh - 110px)!important;overflow:auto!important}}

/* v1.8.19 project card square layout + board header/filter polish + guest invite stability */
.hma-project-boards-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}
.hma-project-board-card{
  position:relative!important;
  aspect-ratio:1/1!important;
  min-height:0!important;
  height:auto!important;
  overflow:visible!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  border-radius:10px!important;
  padding:10px!important;
  cursor:pointer!important;
}
.hma-project-board-card .hma-project-cover{
  height:54px!important;
  min-height:54px!important;
  margin:0!important;
  border-radius:10px!important;
  background:linear-gradient(135deg,var(--pcolor,#0c66e4),color-mix(in srgb,var(--pcolor,#0c66e4) 58%,#ffffff 42%))!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:0 10px!important;
}
.hma-project-board-card .hma-project-cover span{display:none!important}
.hma-project-board-card h4{
  min-height:0!important;
  margin:0!important;
  font-size:14px!important;
  line-height:1.55!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.hma-project-date-line{font-size:10px!important;line-height:1.55!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.hma-project-board-card p{-webkit-line-clamp:2!important;font-size:11px!important;line-height:1.55!important;min-height:0!important}
.hma-project-card-members{min-height:30px!important;margin-top:auto!important;padding:5px 7px!important;border-radius:10px!important}
.hma-project-card-members>span{font-size:10px!important}.hma-project-card-members .hma-stack-avatar{width:22px!important;height:22px!important}.hma-project-card-members .hma-avatar-stack{max-width:96px!important}
.hma-project-card-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;margin:4px 0 0!important}
.hma-project-card-metrics b,.hma-project-card-metrics span{min-height:22px!important;font-size:9.5px!important;border-radius:10px!important;padding:0 5px!important}
.hma-project-board-card .hma-progress{height:6px!important;margin:2px 0!important;border-radius:10px!important}
.hma-project-board-card .hma-project-edit-box{position:absolute!important;top:8px!important;left:8px!important;z-index:30!important;margin:0!important}
.hma-project-board-card .hma-project-edit-box>summary{list-style:none!important;width:34px!important;height:34px!important;border-radius:10px!important;background:rgba(255,255,255,.95)!important;border:1px solid #dfe1e6!important;color:#172b4d!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:0!important;box-shadow:0 8px 24px rgba(9,30,66,.16)!important;cursor:pointer!important}
.hma-project-board-card .hma-project-edit-box>summary:before{content:'⚙';font-size:16px!important}.hma-project-board-card .hma-project-edit-box>summary::-webkit-details-marker{display:none!important}
.hma-project-board-card .hma-project-edit-box form{position:fixed!important;inset:auto 50% 50% auto!important;transform:translate(50%,50%)!important;width:min(760px,calc(100vw - 28px))!important;max-height:calc(100vh - 70px)!important;overflow:auto!important;z-index:100060!important;background:#fff!important;border:1px solid #dfe1e6!important;border-radius:10px!important;padding:16px!important;box-shadow:0 30px 90px rgba(9,30,66,.28)!important;cursor:default!important}
.hma-project-board-card .hma-project-edit-box[open]:after{content:'';position:fixed;inset:0;background:rgba(9,30,66,.36);z-index:100050;cursor:default!important}
.hma-project-board-card .hma-project-edit-box[open]>summary{z-index:100070!important;position:relative!important}
.hma-trello-board-shell-v11{border-radius:10px!important;padding:0!important;border:1px solid rgba(255,255,255,.22)!important;box-shadow:0 18px 60px rgba(9,30,66,.14)!important;background:linear-gradient(135deg,var(--hma-board-bg,#00a3bf),color-mix(in srgb,var(--hma-board-bg,#00a3bf) 70%,#0f172a 30%))!important}
.hma-trello-board-shell-v11 .hma-trello-board-hero{margin:0!important;border:0!important;border-radius:10px 10px 0 0!important;background:rgba(255,255,255,.10)!important;padding:14px!important}
.hma-board-project-strip{margin:0!important;border-radius:0!important;border-left:0!important;border-right:0!important;background:rgba(255,255,255,.12)!important}
.hma-trello-board-v11{padding:14px!important}
.hma-task-board-toolbar{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 12px!important;display:grid!important;grid-template-columns:minmax(240px,1fr) 190px auto!important;align-items:end!important;gap:8px!important}
.hma-task-search input,.hma-task-sort select,.hma-task-filter-links a{min-height:40px!important;height:40px!important;border-radius:10px!important;box-sizing:border-box!important}.hma-task-filter-links{display:flex!important;align-items:center!important;gap:6px!important;justify-content:flex-end!important;margin:0!important}.hma-task-filter-links a{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 12px!important}
.hma-task-search,.hma-task-sort{flex:none!important}.hma-task-search label,.hma-task-sort label{display:grid!important;gap:5px!important;margin:0!important}.hma-task-search input{width:100%!important}.hma-task-sort select{width:100%!important}
.hma-guest-invite-dropdown form{cursor:default!important}.hma-guest-link-box.is-error{background:#fff1f0!important;border-color:#ffbdad!important;color:#ae2e24!important}.hma-guest-link-box.is-loading{background:#f7f8fa!important;border-color:#dfe1e6!important;color:#44546f!important}
@media(max-width:1180px){.hma-project-boards-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:980px){.hma-project-boards-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hma-task-board-toolbar{grid-template-columns:1fr 180px!important}.hma-task-filter-links{grid-column:1/-1;justify-content:flex-start!important}}
@media(max-width:640px){.hma-project-boards-grid{grid-template-columns:1fr!important}.hma-project-board-card{aspect-ratio:auto!important;min-height:190px!important}.hma-task-board-toolbar{grid-template-columns:1fr!important}.hma-task-filter-links{justify-content:flex-start!important}.hma-project-board-card .hma-project-edit-box form{inset:74px 12px auto 12px!important;transform:none!important;width:auto!important;max-height:calc(100vh - 96px)!important}}


/* v1.8.20 hard override: project cards, board filters, settings modal, guest invite */
.hma-project-boards-grid,
.hma-employee-panel .hma-project-boards-grid,
.hma-public .hma-project-boards-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
}
.hma-project-board-card,
.hma-employee-panel .hma-project-board-card{
  position:relative!important;
  aspect-ratio:1/1!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  border-radius:10px!important;
  padding:10px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  box-shadow:0 8px 24px rgba(9,30,66,.10)!important;
  cursor:pointer!important;
}
.hma-project-board-card .hma-project-cover{
  height:48px!important;
  min-height:48px!important;
  margin:0!important;
  border-radius:10px!important;
  background:linear-gradient(135deg,var(--pcolor,#0c66e4),color-mix(in srgb,var(--pcolor,#0c66e4) 62%,#fff 38%))!important;
}
.hma-project-board-card h4{font-size:14px!important;line-height:1.45!important;margin:0!important;min-height:auto!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.hma-project-board-card p{font-size:11px!important;line-height:1.45!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;min-height:0!important}
.hma-project-date-line{font-size:10px!important;line-height:1.45!important;display:grid!important;gap:2px!important;margin:0!important;color:#44546f!important}
.hma-project-card-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;margin:0!important}
.hma-project-card-metrics b,.hma-project-card-metrics span{font-size:9.5px!important;min-height:22px!important;padding:0 5px!important;border-radius:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.hma-project-card-members{margin-top:auto!important;min-height:30px!important;padding:5px 7px!important;border-radius:10px!important;overflow:hidden!important}
.hma-project-card-members>span{font-size:10px!important}.hma-project-card-members .hma-stack-avatar{width:22px!important;height:22px!important}.hma-project-card-members .hma-avatar-stack{max-width:92px!important;overflow:hidden!important}
.hma-project-board-card .hma-progress{height:6px!important;margin:0!important;border-radius:10px!important}
.hma-project-board-card .hma-project-card-actions{display:none!important}
.hma-project-board-card .hma-project-edit-box{position:absolute!important;top:8px!important;left:8px!important;z-index:35!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.hma-project-board-card .hma-project-edit-box>summary{list-style:none!important;width:34px!important;height:34px!important;border-radius:10px!important;background:rgba(255,255,255,.96)!important;border:1px solid #dfe1e6!important;color:#172b4d!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:0!important;box-shadow:0 8px 22px rgba(9,30,66,.14)!important;cursor:pointer!important}
.hma-project-board-card .hma-project-edit-box>summary::-webkit-details-marker{display:none!important}
.hma-project-board-card .hma-project-edit-box>summary:before{content:'⚙';font-size:16px!important}
.hma-project-board-card .hma-project-edit-box[open]{z-index:100080!important}
.hma-project-board-card .hma-project-edit-box[open]:after{content:''!important;position:fixed!important;inset:0!important;background:rgba(9,30,66,.38)!important;z-index:100050!important;cursor:default!important}
.hma-project-board-card .hma-project-edit-box form{position:fixed!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(760px,calc(100vw - 28px))!important;max-height:calc(100vh - 72px)!important;overflow:auto!important;z-index:100070!important;background:#fff!important;border:1px solid #dfe1e6!important;border-radius:10px!important;padding:16px!important;box-shadow:0 30px 90px rgba(9,30,66,.30)!important;cursor:default!important;color:#172b4d!important}
.hma-project-board-card .hma-project-edit-box form:before{content:'تنظیمات پروژه';display:block!important;margin:-16px -16px 14px!important;padding:12px 16px!important;background:#f7f8fa!important;border-bottom:1px solid #dfe1e6!important;border-radius:10px 10px 0 0!important;font-weight:1000!important;color:#172b4d!important}
.hma-trello-board-shell-v11{border-radius:10px!important;padding:0!important;overflow:hidden!important}
.hma-trello-board-shell-v11 .hma-trello-board-hero{margin:0!important;border:0!important;border-radius:10px 10px 0 0!important;padding:12px 14px!important;background:rgba(255,255,255,.10)!important}
.hma-board-project-strip{margin:0!important;border-radius:0!important;border-left:0!important;border-right:0!important;background:rgba(255,255,255,.12)!important;padding:10px 14px!important}
.hma-trello-board-v11{padding:14px!important}
.hma-task-board-toolbar{display:grid!important;grid-template-columns:minmax(260px,1fr) 190px auto!important;align-items:end!important;gap:8px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 12px!important}
.hma-task-search,.hma-task-sort{min-width:0!important}.hma-task-search label,.hma-task-sort label{display:grid!important;gap:5px!important;margin:0!important;color:#fff!important;font-size:12px!important;font-weight:900!important}.hma-task-search input,.hma-task-sort select{width:100%!important;height:40px!important;min-height:40px!important;border-radius:10px!important;box-sizing:border-box!important}.hma-task-filter-links{display:flex!important;align-items:end!important;justify-content:flex-end!important;gap:6px!important;margin:0!important;flex-wrap:wrap!important}.hma-task-filter-links a{height:40px!important;min-height:40px!important;border-radius:10px!important;padding:0 12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}
.hma-guest-invite-dropdown form{cursor:default!important}.hma-guest-link-box.is-error{background:#fff1f0!important;border-color:#ffbdad!important;color:#ae2e24!important}.hma-guest-link-box.is-loading{background:#f7f8fa!important;border-color:#dfe1e6!important;color:#44546f!important}
@media(max-width:1180px){.hma-project-boards-grid,.hma-employee-panel .hma-project-boards-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:980px){.hma-project-boards-grid,.hma-employee-panel .hma-project-boards-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hma-task-board-toolbar{grid-template-columns:1fr 180px!important}.hma-task-filter-links{grid-column:1/-1;justify-content:flex-start!important}}
@media(max-width:640px){.hma-project-boards-grid,.hma-employee-panel .hma-project-boards-grid{grid-template-columns:1fr!important}.hma-project-board-card{aspect-ratio:auto!important;min-height:190px!important}.hma-project-board-card .hma-project-edit-box form{top:74px!important;left:12px!important;right:12px!important;transform:none!important;width:auto!important;max-height:calc(100vh - 96px)!important}.hma-task-board-toolbar{grid-template-columns:1fr!important}.hma-task-filter-links{justify-content:flex-start!important}}


/* v1.8.21 project settings modal + guest ajax polish */
.hma-project-settings-open{overflow:hidden!important}
.hma-project-settings-overlay{position:fixed!important;inset:0!important;z-index:100500!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;direction:rtl!important}
.hma-project-settings-backdrop{position:absolute!important;inset:0!important;background:rgba(9,30,66,.52)!important;backdrop-filter:blur(8px)!important}
.hma-project-settings-dialog{position:relative!important;width:min(920px,calc(100vw - 28px))!important;max-height:min(82vh,760px)!important;overflow:hidden!important;background:#fff!important;border:1px solid #dfe1e6!important;border-radius:18px!important;box-shadow:0 28px 90px rgba(9,30,66,.28)!important;display:flex!important;flex-direction:column!important}
.hma-project-settings-dialog>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:16px 18px!important;border-bottom:1px solid #e6e8ee!important;background:linear-gradient(180deg,#fff,#f7f8fa)!important}
.hma-project-settings-dialog>header span{display:block!important;color:#626f86!important;font-size:12px!important;font-weight:900!important;margin-bottom:4px!important}
.hma-project-settings-dialog>header h3{margin:0!important;color:#172b4d!important;font-size:18px!important;font-weight:1000!important}
.hma-project-settings-dialog>header button{width:38px!important;height:38px!important;min-height:38px!important;border:0!important;border-radius:10px!important;background:#f1f2f4!important;color:#172b4d!important;font-size:24px!important;line-height:1!important;padding:0!important;cursor:pointer!important}
.hma-project-settings-body{padding:18px!important;overflow:auto!important;background:#fff!important}
.hma-project-settings-body .hma-board-create-form{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.hma-project-settings-body button[type=submit]{border-radius:10px!important;min-height:42px!important;background:#0c66e4!important;color:#fff!important;border:0!important;padding:0 16px!important;font-weight:1000!important}
.hma-project-edit-box[open]{open:false!important}
.hma-project-edit-box>summary{position:relative!important;z-index:3!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:32px!important;border-radius:10px!important;padding:0 10px!important;background:#f1f2f4!important;color:#172b4d!important;font-size:11px!important;font-weight:1000!important;cursor:pointer!important;list-style:none!important}
.hma-project-edit-box>summary::-webkit-details-marker{display:none!important}
.hma-guest-login-card button.is-loading,.hma-guest-task-card.is-dragging{opacity:.65!important}
@media(max-width:700px){.hma-project-settings-overlay{align-items:flex-end!important;padding:0!important}.hma-project-settings-dialog{width:100%!important;max-height:90vh!important;border-radius:18px 18px 0 0!important}}

/* v1.8.23 guest OTP hardening */
.hma-guest-otp-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:-4px;padding:10px 12px;border:1px solid #dbeafe;background:#eff6ff;border-radius:10px;color:#1d4ed8;font-weight:800}
.hma-guest-otp-tools [data-hma-guest-otp-timer]{font-size:13px}
.hma-guest-otp-tools button.hma-secondary{min-height:38px;border-radius:10px;padding:0 12px;box-shadow:none}
.hma-guest-login-card input[name="otp"]{font-size:22px;letter-spacing:7px;text-align:center;font-weight:950;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}

/* v1.8.25 guest workspace: project cards like employee boards + clean header/avatar modal */
.hma-guest-public{max-width:1440px!important;padding:22px!important}
.hma-guest-shell-v1825{gap:18px!important}
.hma-guest-top-v1825{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;background:#fff!important;border:1px solid #dfe1e6!important;border-radius:18px!important;padding:18px 20px!important;box-shadow:0 10px 34px rgba(9,30,66,.08)!important;color:#172b4d!important}
.hma-guest-identity{display:flex!important;align-items:center!important;gap:14px!important;min-width:0!important}
.hma-guest-avatar{width:64px!important;height:64px!important;border-radius:18px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(135deg,#0c66e4,#6e5dc6)!important;color:#fff!important;font-size:24px!important;font-weight:1000!important;overflow:hidden!important;box-shadow:0 10px 26px rgba(12,102,228,.20)!important;flex:0 0 auto!important}
.hma-guest-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.hma-guest-identity h2{margin:2px 0 4px!important;font-size:20px!important;font-weight:1000!important;color:#172b4d!important}
.hma-guest-identity p{margin:0!important;color:#626f86!important;font-size:13px!important;font-weight:800!important;line-height:1.8!important}
.hma-guest-actions{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}
.hma-guest-avatar-btn,.hma-guest-logout-btn{border:1px solid #dfe1e6!important;border-radius:10px!important;min-height:40px!important;padding:0 14px!important;font-weight:950!important;cursor:pointer!important;box-shadow:none!important;background:#f7f8fa!important;color:#172b4d!important}
.hma-guest-avatar-btn:hover{background:#e9f2ff!important;border-color:#85b8ff!important;color:#0c66e4!important}
.hma-guest-logout-btn{background:#fff!important;color:#ae2e24!important;border-color:#ffd5d2!important}
.hma-guest-logout-btn:hover{background:#fff1f0!important}
.hma-guest-projects-section{background:#fff!important;border:1px solid #e6e8ee!important;border-radius:18px!important;padding:20px!important;box-shadow:0 10px 34px rgba(9,30,66,.06)!important}
.hma-project-boards-grid--guest{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;align-items:stretch!important}
.hma-guest-project-card-v1825{aspect-ratio:1/1!important;min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important;gap:8px!important;border-radius:12px!important;padding:10px!important;background:#fff!important;border:1px solid #dfe1e6!important;box-shadow:0 8px 22px rgba(9,30,66,.08)!important;cursor:pointer!important;overflow:hidden!important;color:#172b4d!important}
.hma-guest-project-card-v1825:hover{transform:translateY(-2px)!important;box-shadow:0 14px 34px rgba(9,30,66,.16)!important;border-color:#0c66e4!important}
.hma-guest-project-card-v1825 .hma-project-cover{height:50px!important;min-height:50px!important;margin:0!important;border-radius:10px!important;background:linear-gradient(135deg,var(--pcolor,#0c66e4),color-mix(in srgb,var(--pcolor,#0c66e4) 45%,#ffffff))!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.30)!important}
.hma-guest-project-card-v1825 h4{font-size:14px!important;line-height:1.45!important;margin:0!important;color:#172b4d!important;font-weight:1000!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.hma-guest-project-card-v1825 p{font-size:11px!important;line-height:1.55!important;margin:0!important;color:#626f86!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;min-height:auto!important}
.hma-guest-project-card-v1825 .hma-project-date-line{font-size:10px!important;line-height:1.45!important;color:#44546f!important}
.hma-guest-project-card-v1825 .hma-project-card-members{margin-top:auto!important;min-height:30px!important;padding:5px 7px!important;border-radius:10px!important;background:#f7f8fa!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;overflow:hidden!important}
.hma-guest-project-card-v1825 .hma-project-card-members>span{font-size:10px!important;color:#626f86!important;font-weight:950!important}.hma-guest-project-card-v1825 .hma-stack-avatar{width:22px!important;height:22px!important}.hma-guest-project-card-v1825 .hma-avatar-stack{max-width:100px!important;overflow:hidden!important}
.hma-guest-project-card-v1825 .hma-progress{height:6px!important;border-radius:10px!important;background:#f1f2f4!important;margin:0!important;overflow:hidden!important}.hma-guest-project-card-v1825 .hma-progress i{display:block!important;height:100%!important;background:#0c66e4!important;border-radius:10px!important}
.hma-guest-project-card-v1825 .hma-project-card-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;margin:0!important}.hma-guest-project-card-v1825 .hma-project-card-metrics b,.hma-guest-project-card-v1825 .hma-project-card-metrics span{font-size:9.5px!important;min-height:22px!important;padding:0 5px!important;border-radius:10px!important;background:#f1f2f4!important;color:#44546f!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}.hma-guest-project-card-v1825 .hma-project-card-metrics b{background:#e9f2ff!important;color:#0c66e4!important}
.hma-guest-avatar-modal[hidden]{display:none!important}.hma-guest-avatar-modal{position:fixed!important;inset:0!important;z-index:100900!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;direction:rtl!important}.hma-guest-avatar-backdrop{position:absolute!important;inset:0!important;background:rgba(9,30,66,.45)!important;backdrop-filter:blur(6px)!important}.hma-guest-avatar-dialog{position:relative!important;width:min(440px,calc(100vw - 28px))!important;background:#fff!important;border:1px solid #dfe1e6!important;border-radius:18px!important;box-shadow:0 24px 80px rgba(9,30,66,.28)!important;padding:22px!important;color:#172b4d!important}.hma-guest-avatar-dialog h3{margin:0 0 8px!important;font-size:18px!important;font-weight:1000!important}.hma-guest-avatar-dialog p{margin:0 0 16px!important;color:#626f86!important;font-weight:800!important;line-height:1.8!important}.hma-guest-avatar-close{position:absolute!important;top:10px!important;left:10px!important;width:36px!important;height:36px!important;border:0!important;border-radius:10px!important;background:#f1f2f4!important;color:#172b4d!important;font-size:22px!important;line-height:1!important;padding:0!important;cursor:pointer!important}.hma-guest-avatar-picker{display:flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;border-radius:12px!important;background:#0c66e4!important;color:#fff!important;font-weight:1000!important;cursor:pointer!important}.hma-guest-avatar-picker input{display:none!important}.hma-guest-avatar-status{margin-top:12px!important;border-radius:12px!important;background:#f7f8fa!important;border:1px solid #dfe1e6!important;padding:11px 12px!important;color:#44546f!important;font-weight:850!important;font-size:13px!important;line-height:1.7!important}
body.hma-guest-avatar-open{overflow:hidden!important}
@media(max-width:1120px){.hma-project-boards-grid--guest{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){.hma-guest-public{padding:12px!important}.hma-guest-top-v1825{display:grid!important;padding:14px!important}.hma-guest-actions{justify-content:stretch!important}.hma-guest-actions button{flex:1 1 auto!important}.hma-project-boards-grid--guest{grid-template-columns:1fr!important}.hma-guest-project-card-v1825{aspect-ratio:auto!important;min-height:210px!important}.hma-guest-avatar-modal{align-items:flex-end!important;padding:0!important}.hma-guest-avatar-dialog{width:100%!important;border-radius:18px 18px 0 0!important}}

/* v1.8.28 security/login/project permission polish */
.hma-password-login-form,.hma-password-profile-box form{display:grid;gap:12px}.hma-password-login-form .hma-login-switch{margin-top:4px}.hma-password-profile-box{border:1px solid #dfe1e6!important;border-radius:12px!important;padding:12px!important;background:#f7f8fa!important}.hma-project-permission-box{border:1px solid #dfe1e6!important;border-radius:10px!important;padding:12px!important;background:#f7f8fa!important}.hma-project-permission-box select{width:100%;min-height:42px}.hma-project-permission-box details{margin-top:10px;background:#fff;border:1px solid #e6e8ee;border-radius:10px;padding:10px}.hma-project-permission-box summary{cursor:pointer;font-weight:900;color:#172b4d}.hma-project-edit-box[open]{background:#fff!important;border:1px solid #dfe1e6!important;border-radius:10px!important;box-shadow:0 16px 42px rgba(9,30,66,.13)!important;padding:14px!important}.hma-project-edit-box>summary{cursor:pointer;font-weight:900;color:#0c66e4}.hma-board-create-form button[type=submit],.hma-password-profile-box button[type=submit]{border-radius:10px!important;min-height:42px!important}

/* v1.8.29 — Project settings polish, gradient tones, requested icons */
.hma-inline-svg{width:18px!important;height:18px!important;display:inline-block!important;vertical-align:middle!important;flex:0 0 auto!important;color:#1C274C!important}
.hma-nav-primary-v4 a{gap:8px!important}
.hma-nav-primary-v4 a .hma-inline-svg{width:20px!important;height:20px!important;opacity:.92!important}
.hma-workspace-head{align-items:center!important;gap:16px!important}
.hma-workspace-actions span{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;padding:0 16px!important;border-radius:999px!important;background:linear-gradient(135deg,#eef4ff,#f7f8ff)!important;color:#172b4d!important;border:1px solid #dfe8ff!important;font-weight:1000!important;box-shadow:0 8px 20px rgba(9,30,66,.06)!important}
.hma-project-cover{background:linear-gradient(135deg,color-mix(in srgb,var(--pcolor,#0c66e4) 36%,#fff),var(--pcolor,#0c66e4) 58%,color-mix(in srgb,var(--pcolor,#0c66e4) 72%,#111827))!important;position:relative!important;overflow:hidden!important}
.hma-project-cover:after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 15% 20%,rgba(255,255,255,.38),transparent 34%),linear-gradient(90deg,transparent,rgba(255,255,255,.10));pointer-events:none!important}
.hma-project-card-star{position:absolute!important;top:10px!important;left:10px!important;z-index:3!important;width:34px!important;height:34px!important;border:0!important;background:rgba(255,255,255,.92)!important;border-radius:999px!important;color:#f5b700!important;font-size:20px!important;line-height:1!important;box-shadow:0 8px 20px rgba(9,30,66,.16)!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;padding:0!important}
.hma-project-card-star[aria-pressed="true"],.hma-project-card-star.is-starred{background:#fff8db!important;color:#f5a800!important}
.hma-project-board-card.is-starred{outline:2px solid rgba(245,183,0,.45)!important;box-shadow:0 18px 40px rgba(245,183,0,.12),0 14px 34px rgba(9,30,66,.10)!important}
.hma-board-star{background:transparent!important;border:0!important;box-shadow:none!important;color:#a6b0c2!important;font-size:23px!important;line-height:1!important;width:36px!important;height:36px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;cursor:pointer!important;border-radius:999px!important}
.hma-board-star:hover{background:rgba(255,255,255,.18)!important;color:#f5b700!important}.hma-board-star.is-starred,.hma-board-star[aria-pressed="true"]{color:#f5b700!important;text-shadow:0 2px 10px rgba(245,183,0,.35)!important}
.hma-board-view-pill{display:inline-flex!important;align-items:center!important;gap:8px!important}.hma-board-view-pill .hma-inline-svg{width:22px!important;height:22px!important;color:#1C274C!important}
.hma-project-edit-box>summary{font-size:0!important;gap:0!important;padding:0!important;width:36px!important;height:36px!important;border-radius:12px!important;background:rgba(255,255,255,.96)!important;border:1px solid #dfe1e6!important;box-shadow:0 8px 22px rgba(9,30,66,.14)!important;color:#1C274C!important}
.hma-project-edit-box>summary .hma-inline-svg{width:21px!important;height:21px!important}.hma-project-edit-box>summary span{display:none!important}.hma-project-edit-box>summary:before{content:none!important}
.hma-project-settings-overlay{position:fixed!important;inset:0!important;z-index:100100!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;direction:rtl!important}.hma-project-settings-backdrop{position:absolute!important;inset:0!important;background:rgba(23,43,77,.55)!important;backdrop-filter:blur(7px)!important}.hma-project-settings-dialog{position:relative!important;width:min(920px,calc(100vw - 36px))!important;max-height:calc(100vh - 58px)!important;overflow:hidden!important;background:#fff!important;border:1px solid #dfe1e6!important;border-radius:22px!important;box-shadow:0 30px 90px rgba(9,30,66,.34)!important;color:#172b4d!important}.hma-project-settings-dialog>header{height:auto!important;min-height:78px!important;padding:18px 22px!important;border-bottom:1px solid #edf0f5!important;background:linear-gradient(180deg,#fff,#f8fafc)!important;display:flex!important;align-items:center!important;justify-content:space-between!important}.hma-project-settings-dialog>header span{font-size:12px!important;color:#6b778c!important;font-weight:900!important}.hma-project-settings-dialog>header h3{margin:4px 0 0!important;font-size:23px!important;font-weight:1000!important;color:#172b4d!important}.hma-project-settings-dialog>header button{width:40px!important;height:40px!important;border:0!important;border-radius:12px!important;background:#f1f2f4!important;color:#172b4d!important;font-size:24px!important;cursor:pointer!important}.hma-project-settings-body{padding:20px 22px 22px!important;max-height:calc(100vh - 150px)!important;overflow:auto!important}.hma-project-settings-body form{display:grid!important;gap:18px!important;padding:0!important;margin:0!important}.hma-project-settings-body .hma-field-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}.hma-project-settings-body p,.hma-project-settings-body .hma-field--full{margin:0!important}.hma-project-settings-body label{display:block!important;margin-bottom:7px!important;font-size:12px!important;font-weight:1000!important;color:#44546f!important}.hma-project-settings-body input,.hma-project-settings-body select,.hma-project-settings-body textarea{width:100%!important;min-height:44px!important;border:1px solid #dfe1e6!important;border-radius:12px!important;background:#fff!important;color:#172b4d!important;padding:0 12px!important;box-shadow:inset 0 1px 0 rgba(9,30,66,.02)!important}.hma-project-settings-body textarea{min-height:84px!important;padding:12px!important;resize:vertical!important}.hma-project-settings-body .hma-field--full{grid-column:1/-1!important}.hma-project-settings-body .hma-employee-picker{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;background:#f8fafc!important;border:1px solid #e6e8ee!important;border-radius:16px!important;padding:12px!important}.hma-project-permission-box{grid-column:1/-1!important;background:#f8fafc!important;border:1px solid #e6e8ee!important;border-radius:16px!important;padding:14px!important}.hma-project-permission-box details{margin-top:10px!important;background:#fff!important;border-radius:12px!important}.hma-project-settings-body button[type=submit]{justify-self:end!important;min-width:170px!important;min-height:46px!important;border-radius:12px!important;background:#0c66e4!important;color:#fff!important;border:0!important;font-weight:1000!important;box-shadow:0 12px 26px rgba(12,102,228,.23)!important}.hma-project-color-select{font-weight:900!important}.hma-color-hint{display:block!important;margin-top:6px!important;color:#6b778c!important;font-size:11px!important}.hma-project-settings-body .hma-project-color-select option{font-weight:900!important}
@media(max-width:760px){.hma-project-settings-overlay{align-items:flex-end!important;padding:0!important}.hma-project-settings-dialog{width:100%!important;max-height:92vh!important;border-radius:22px 22px 0 0!important}.hma-project-settings-body .hma-field-grid{grid-template-columns:1fr!important}.hma-project-settings-body .hma-employee-picker{grid-template-columns:1fr!important}}

/* Hermes Attendance v1.8.30 — employee break buttons */
.hma-dynamic-break-widget{display:grid!important;gap:12px!important;border:1px solid rgba(12,102,228,.18)!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;border-radius:18px!important;padding:14px!important}.hma-break-widget-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.hma-break-widget-head strong{font-weight:1000;color:#172b4d}.hma-break-widget-head small{color:#5e6c84;font-weight:800}.hma-break-action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.hma-break-action-card{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;padding:10px;border:1px solid #e5ebf5;border-radius:16px;background:#fff;box-shadow:0 8px 18px rgba(9,30,66,.04)}.hma-break-action-card button{grid-column:1/-1}.hma-break-action-card.is-open{border-color:#bfdbfe;background:#eff6ff}.hma-break-type-icon{width:42px;height:42px;border-radius:14px;background:#eef4ff;border:1px solid #dbe7ff;display:inline-flex;align-items:center;justify-content:center;font-size:20px;overflow:hidden}.hma-break-type-icon img{width:100%;height:100%;object-fit:cover}.hma-day.is-before-start{opacity:.14!important;pointer-events:none!important;background:transparent!important;border-color:transparent!important}

/* v1.8.31 — project settings professional layout, color tone picker, guest/project admin polish */
.hma-workspace-actions span{display:inline-flex!important;align-items:center!important;gap:8px!important;border:1px solid #dfe7f3!important;background:#f8fbff!important;color:#172b4d!important;border-radius:12px!important;padding:9px 13px!important;font-weight:1000!important;box-shadow:0 6px 18px rgba(9,30,66,.05)!important}
.hma-inline-svg{width:20px!important;height:20px!important;display:inline-block!important;vertical-align:middle!important;color:#1C274C!important;flex:0 0 auto!important}.hma-tab-btn .hma-inline-svg,.hma-board-view-pill .hma-inline-svg{margin-inline-end:6px!important}.hma-board-view-pill{display:inline-flex!important;align-items:center!important;gap:7px!important}.hma-project-edit-box>summary{display:inline-flex!important;align-items:center!important;gap:7px!important;background:#fff!important;border:1px solid #dfe7f3!important;border-radius:12px!important;color:#172b4d!important;padding:9px 12px!important;box-shadow:0 6px 16px rgba(9,30,66,.06)!important;cursor:pointer!important}.hma-project-edit-box>summary::-webkit-details-marker{display:none!important}.hma-project-edit-box>summary .hma-inline-svg{width:21px!important;height:21px!important}.hma-project-card-star,.hma-board-star{background:transparent!important;border:0!important;box-shadow:none!important;color:#f5b700!important;font-size:25px!important;line-height:1!important;padding:2px 4px!important;min-width:auto!important;min-height:auto!important}.hma-project-card-star:not(.is-starred),.hma-board-star:not(.is-starred){color:#7a869a!important}.hma-project-board-card.is-starred{order:-10!important;outline:2px solid rgba(245,183,0,.38)!important;box-shadow:0 18px 45px rgba(245,183,0,.14),0 10px 28px rgba(9,30,66,.10)!important}.hma-project-board-card.is-starred:before{content:'پروژه ستاره‌دار';position:absolute!important;top:12px!important;left:12px!important;background:rgba(255,248,225,.95)!important;color:#8a5a00!important;border:1px solid rgba(245,183,0,.38)!important;border-radius:999px!important;padding:4px 9px!important;font-size:11px!important;font-weight:1000!important;z-index:4!important}
.hma-project-cover{background:linear-gradient(135deg,color-mix(in srgb,var(--pcolor,#0c66e4) 78%,#fff 22%),var(--pcolor,#0c66e4),color-mix(in srgb,var(--pcolor,#0c66e4) 78%,#000 22%))!important}.hma-project-cover span{background:rgba(255,255,255,.24)!important;border:1px solid rgba(255,255,255,.35)!important;color:#fff!important;border-radius:999px!important;padding:5px 10px!important;font-size:11px!important;font-weight:1000!important}
.hma-project-settings-overlay{z-index:100600!important;align-items:center!important}.hma-project-settings-dialog{width:min(980px,calc(100vw - 42px))!important;border-radius:24px!important;background:#fff!important;overflow:hidden!important;border:1px solid #dfe7f3!important;box-shadow:0 30px 95px rgba(9,30,66,.34)!important}.hma-project-settings-dialog>header{min-height:84px!important;padding:18px 24px!important;background:linear-gradient(180deg,#ffffff,#f8fbff)!important;border-bottom:1px solid #e9eef7!important}.hma-project-settings-dialog>header>div{display:grid!important;gap:3px!important}.hma-project-settings-dialog>header span{font-size:12px!important;color:#626f86!important;font-weight:900!important}.hma-project-settings-dialog>header h3{font-size:24px!important;margin:0!important;color:#172b4d!important;line-height:1.3!important}.hma-project-settings-dialog>header button{background:#f1f5fb!important;color:#172b4d!important;border:1px solid #e2e8f4!important;border-radius:13px!important;width:42px!important;height:42px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:1000!important;box-shadow:none!important}.hma-project-settings-body{padding:22px 24px 24px!important;background:#fff!important;max-height:calc(100vh - 160px)!important;overflow:auto!important}.hma-project-settings-body .hma-board-create-form{display:grid!important;gap:18px!important}.hma-project-settings-body .hma-field-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 18px!important}.hma-project-settings-body p,.hma-project-settings-body .hma-field--full{margin:0!important}.hma-project-settings-body label{font-size:12px!important;color:#44546f!important;font-weight:1000!important;margin:0 0 7px!important;display:block!important}.hma-project-settings-body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.hma-project-settings-body select,.hma-project-settings-body textarea{width:100%!important;height:auto!important;min-height:46px!important;border:1px solid #dfe7f3!important;background:#fff!important;border-radius:13px!important;color:#172b4d!important;padding:10px 13px!important;font-size:14px!important;font-weight:800!important;box-shadow:inset 0 1px 0 rgba(9,30,66,.02)!important;outline:none!important}.hma-project-settings-body textarea{min-height:94px!important;resize:vertical!important;line-height:1.8!important}.hma-project-settings-body input:focus,.hma-project-settings-body select:focus,.hma-project-settings-body textarea:focus{border-color:#85b8ff!important;box-shadow:0 0 0 3px rgba(12,102,228,.13)!important}.hma-project-settings-body .hma-field--full,.hma-project-settings-body p.hma-field--full{grid-column:1/-1!important}.hma-project-settings-body .hma-employee-picker{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;background:#f8fbff!important;border:1px solid #e6edf7!important;border-radius:18px!important;padding:12px!important;max-height:230px!important;overflow:auto!important}.hma-project-settings-body .hma-employee-picker label{display:flex!important;align-items:center!important;gap:9px!important;background:#fff!important;border:1px solid #e6edf7!important;border-radius:14px!important;padding:9px 10px!important;margin:0!important;min-height:50px!important}.hma-project-permission-box{grid-column:1/-1!important;background:#f8fbff!important;border:1px solid #e6edf7!important;border-radius:18px!important;padding:16px!important;display:grid!important;grid-template-columns:minmax(250px,360px) 1fr!important;gap:12px!important;align-items:start!important}.hma-project-permission-box>label{grid-column:1/-1!important}.hma-project-permission-box details{background:#fff!important;border:1px solid #e6edf7!important;border-radius:14px!important;padding:0!important;overflow:hidden!important}.hma-project-permission-box summary{padding:13px 15px!important;cursor:pointer!important;font-weight:1000!important;color:#172b4d!important;list-style:none!important}.hma-project-permission-box summary::-webkit-details-marker{display:none!important}.hma-project-settings-body button[type=submit]{justify-self:end!important;min-height:48px!important;min-width:180px!important;border-radius:14px!important;background:#0c66e4!important;color:#fff!important;border:0!important;font-weight:1000!important;font-size:14px!important;box-shadow:0 13px 30px rgba(12,102,228,.24)!important}.hma-project-color-palette{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.hma-project-color-swatch{display:grid!important;grid-template-columns:34px 1fr!important;grid-template-rows:auto auto!important;column-gap:9px!important;align-items:center!important;text-align:right!important;background:#fff!important;border:1px solid #e1e8f3!important;border-radius:14px!important;padding:9px!important;cursor:pointer!important;color:#172b4d!important;box-shadow:none!important}.hma-project-color-swatch i{grid-row:1/3!important;width:34px!important;height:34px!important;border-radius:12px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--swatch) 72%,#fff 28%),var(--swatch),color-mix(in srgb,var(--swatch) 74%,#000 26%))!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)!important}.hma-project-color-swatch span{font-weight:1000!important;font-size:12px!important}.hma-project-color-swatch small{font-size:10px!important;color:#6b778c!important;font-weight:800!important}.hma-project-color-swatch.is-active{border-color:#0c66e4!important;background:#e9f2ff!important;box-shadow:0 0 0 3px rgba(12,102,228,.10)!important}.hma-color-hint{display:block!important;margin-top:7px!important;color:#626f86!important;font-size:11px!important;font-weight:800!important}
@media(max-width:760px){.hma-project-settings-overlay{align-items:flex-end!important;padding:0!important}.hma-project-settings-dialog{width:100%!important;max-height:92vh!important;border-radius:24px 24px 0 0!important}.hma-project-settings-body .hma-field-grid{grid-template-columns:1fr!important}.hma-project-settings-body .hma-employee-picker{grid-template-columns:1fr!important}.hma-project-permission-box{grid-template-columns:1fr!important}.hma-project-color-palette{grid-template-columns:1fr!important}}

/* v1.8.32 — password strength + project no-assignee state */
.hma-password-strength{display:inline-flex!important;align-items:center!important;gap:8px!important;margin-top:8px!important;border-radius:10px!important;padding:7px 10px!important;font-weight:950!important;background:#f1f2f4!important;color:#44546f!important;border:1px solid #dfe1e6!important}
.hma-password-strength.is-weak{background:#fff1f0!important;color:#ae2e24!important;border-color:#ffd5d2!important}
.hma-password-strength.is-medium{background:#fff7d6!important;color:#7f5f01!important;border-color:#f5cd47!important}
.hma-password-strength.is-good{background:#e9f2ff!important;color:#0c66e4!important;border-color:#85b8ff!important}
.hma-password-strength.is-excellent{background:#dcfff1!important;color:#216e4e!important;border-color:#7ee2b8!important}
[data-hma-password-submit]:disabled{opacity:.55!important;cursor:not-allowed!important;filter:grayscale(.25)!important}
.hma-board-no-assignee-note{border:1px dashed #dfe1e6!important;background:#f7f8fa!important;color:#44546f!important;border-radius:10px!important;padding:10px 12px!important;font-size:12px!important;font-weight:900!important;line-height:1.8!important}
.hma-trello-add-card-form details summary{cursor:pointer!important;font-weight:950!important;color:#172b4d!important}


/* Hermes password visibility field */
.hma-password-input-wrap{display:flex;align-items:center;gap:6px;position:relative;width:100%}
.hma-password-input-wrap input{width:100%;padding-left:42px!important}
.hma-password-toggle{position:absolute;left:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;color:#475569;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}
.hma-password-toggle:hover,.hma-password-toggle.is-visible{background:#eef2ff;color:#1d4ed8}
.hma-password-toggle svg{width:20px;height:20px;display:block}
.hma-admin-password-box{border:1px solid #e2e8f0;border-radius:16px;padding:12px;background:#f8fafc}


/* Hermes Attendance password fields aligned with main Hermes account password UI */
.form-row.hs-password-row,.hma-password-field{position:relative;overflow:visible}
.hma-password-input-wrap{display:block;position:relative;width:100%}
.hma-password-input-wrap input.hs-account-password{width:100%;max-width:none!important;border-radius:15px!important;border:1px solid #c7c7c7!important;padding-inline-end:56px!important;padding-right:14px!important;padding-left:56px!important;height:48px!important;line-height:48px!important;background:#fff!important}
.hma-password-input-wrap input.hs-account-password:focus{border-color:#77a2ff!important;box-shadow:0 0 0 4px rgba(79,137,255,.13)!important;outline:0!important}
button.hs-pass-toggle{position:absolute;top:50%;inset-inline-end:8px;transform:translateY(-50%);width:40px;height:40px;border:0!important;background:transparent!important;padding:0!important;cursor:pointer;outline:none;z-index:7;display:inline-flex!important;align-items:center;justify-content:center;box-shadow:none!important;min-height:40px!important;border-radius:12px!important}
button.hs-pass-toggle::before{content:"";width:24px;height:24px;display:block;background-repeat:no-repeat;background-size:24px 24px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.5'%3E%3Cpath d='M14 2.75C15.9068 2.75 17.2615 2.75159 18.2892 2.88976C19.2952 3.02503 19.8749 3.27869 20.2981 3.7019C20.7852 4.18904 20.9973 4.56666 21.1147 5.23984C21.2471 5.9986 21.25 7.08092 21.25 9C21.25 9.41422 21.5858 9.75 22 9.75C22.4142 9.75 22.75 9.41422 22.75 9L22.75 8.90369C22.7501 7.1045 22.7501 5.88571 22.5924 4.98199C22.417 3.97665 22.0432 3.32568 21.3588 2.64124C20.6104 1.89288 19.6615 1.56076 18.489 1.40314C17.3498 1.24997 15.8942 1.24998 14.0564 1.25H14C13.5858 1.25 13.25 1.58579 13.25 2C13.25 2.41421 13.5858 2.75 14 2.75Z' fill='%231C274C'/%3E%3Cpath d='M2.00001 14.25C2.41422 14.25 2.75001 14.5858 2.75001 15C2.75001 16.9191 2.75289 18.0014 2.88529 18.7602C3.00275 19.4333 3.21477 19.811 3.70191 20.2981C4.12512 20.7213 4.70476 20.975 5.71085 21.1102C6.73852 21.2484 8.09318 21.25 10 21.25C10.4142 21.25 10.75 21.5858 10.75 22C10.75 22.4142 10.4142 22.75 10 22.75H9.94359C8.10583 22.75 6.6502 22.75 5.51098 22.5969C4.33856 22.4392 3.38961 22.1071 2.64125 21.3588C1.95681 20.6743 1.58304 20.0233 1.40762 19.018C1.24992 18.1143 1.24995 16.8955 1.25 15.0964L1.25001 15C1.25001 14.5858 1.58579 14.25 2.00001 14.25Z' fill='%231C274C'/%3E%3Cpath d='M22 14.25C22.4142 14.25 22.75 14.5858 22.75 15L22.75 15.0963C22.7501 16.8955 22.7501 18.1143 22.5924 19.018C22.417 20.0233 22.0432 20.6743 21.3588 21.3588C20.6104 22.1071 19.6615 22.4392 18.489 22.5969C17.3498 22.75 15.8942 22.75 14.0564 22.75H14C13.5858 22.75 13.25 22.4142 13.25 22C13.25 21.5858 13.5858 21.25 14 21.25C15.9068 21.25 17.2615 21.2484 18.2892 21.1102C19.2952 20.975 19.8749 20.7213 20.2981 20.2981C20.7852 19.811 20.9973 19.4333 21.1147 18.7602C21.2471 18.0014 21.25 16.9191 21.25 15C21.25 14.5858 21.5858 14.25 22 14.25Z' fill='%231C274C'/%3E%3Cpath d='M9.94359 1.25H10C10.4142 1.25 10.75 1.58579 10.75 2C10.75 2.41421 10.4142 2.75 10 2.75C8.09319 2.75 6.73852 2.75159 5.71085 2.88976C4.70476 3.02503 4.12512 3.27869 3.70191 3.7019C3.21477 4.18904 3.00275 4.56666 2.88529 5.23984C2.75289 5.9986 2.75001 7.08092 2.75001 9C2.75001 9.41422 2.41422 9.75 2.00001 9.75C1.58579 9.75 1.25001 9.41422 1.25001 9L1.25 8.90369C1.24995 7.10453 1.24992 5.8857 1.40762 4.98199C1.58304 3.97665 1.95681 3.32568 2.64125 2.64124C3.38961 1.89288 4.33856 1.56076 5.51098 1.40314C6.65019 1.24997 8.10584 1.24998 9.94359 1.25Z' fill='%231C274C'/%3E%3C/g%3E%3Cpath d='M12 10.75C11.3096 10.75 10.75 11.3096 10.75 12C10.75 12.6904 11.3096 13.25 12 13.25C12.6904 13.25 13.25 12.6904 13.25 12C13.25 11.3096 12.6904 10.75 12 10.75Z' fill='%231C274C'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.89243 14.0598C5.29747 13.3697 5 13.0246 5 12C5 10.9754 5.29748 10.6303 5.89242 9.94021C7.08037 8.56222 9.07268 7 12 7C14.9273 7 16.9196 8.56222 18.1076 9.94021C18.7025 10.6303 19 10.9754 19 12C19 13.0246 18.7025 13.3697 18.1076 14.0598C16.9196 15.4378 14.9273 17 12 17C9.07268 17 7.08038 15.4378 5.89243 14.0598ZM9.25 12C9.25 10.4812 10.4812 9.25 12 9.25C13.5188 9.25 14.75 10.4812 14.75 12C14.75 13.5188 13.5188 14.75 12 14.75C10.4812 14.75 9.25 13.5188 9.25 12Z' fill='%231C274C'/%3E%3C/svg%3E")}
button.hs-pass-toggle.is-on::before,button.hs-pass-toggle.is-visible::before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3L21 21' stroke='%231C274C' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M2 12C3.5 8 7 5 12 5C17 5 20.5 8 22 12' stroke='%231C274C' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3Cpath d='M12 9a3 3 0 0 1 3 3' stroke='%231C274C' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E")}
button.hs-pass-toggle:hover{background:rgba(238,244,255,.9)!important}
.hma-password-strength{display:inline-flex!important;align-items:center!important;gap:8px!important;margin-top:8px!important;border-radius:10px!important;padding:7px 10px!important;font-weight:950!important;background:#f1f2f4!important;color:#44546f!important;border:1px solid #dfe1e6!important}
.hma-password-strength.is-weak{background:#fff1f0!important;color:#ae2e24!important;border-color:#ffd5d2!important}
.hma-password-strength.is-medium{background:#fff7d6!important;color:#7f5f01!important;border-color:#f5cd47!important}
.hma-password-strength.is-good{background:#e9f2ff!important;color:#0c66e4!important;border-color:#85b8ff!important}
.hma-password-strength.is-excellent{background:#dcfff1!important;color:#216e4e!important;border-color:#7ee2b8!important}
.hma-password-profile-box form button[type=submit]{border:0;border-radius:16px;background:linear-gradient(135deg,#4f89ff 0%,#6d67ff 100%);color:#fff;font-weight:950;min-height:44px;padding:0 18px;cursor:pointer}

/* Hermes password fields - matched with main account profile UI */
.hma-profile-password-row{direction:rtl;margin-left:-12px;margin-right:-12px;display:flex;flex-wrap:wrap;align-items:flex-start}.hma-profile-password-row .col-md-4{box-sizing:border-box;padding-left:12px;padding-right:12px;flex:0 0 33.333%;max-width:33.333%}.hms-password-field .form-label,.hma-password-field .form-label{display:block;margin:0 0 12px;color:#65748b;font-size:16px;font-weight:900;text-align:right}.hms-pass-wrap{position:relative;display:block;width:100%;height:72px;border-radius:13px;background:#f3f5f8;overflow:hidden}.hms-pass-wrap input.woocommerce-Input,.hms-pass-wrap input.form-control,.hms-pass-wrap input.hma-password-input{width:100%!important;height:72px!important;border:0!important;background:#f3f5f8!important;border-radius:13px!important;box-shadow:none!important;outline:none!important;padding:0 62px 0 22px!important;color:#4f5f78!important;font-size:16px!important;font-weight:800!important;line-height:72px!important;text-align:right}.hms-pass-wrap input::placeholder{color:#98a3b8!important;opacity:1!important}.hms-pass-toggle{position:absolute!important;right:19px!important;left:auto!important;top:50%!important;transform:translateY(-50%)!important;width:28px!important;height:28px!important;min-height:28px!important;border:0!important;background:transparent!important;padding:0!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;box-shadow:none!important;z-index:5!important}.hms-pass-toggle::before{display:none!important;content:none!important}.hms-pass-toggle svg{width:20px!important;height:17px!important;display:block!important}.hms-pass-toggle.is-on svg path,.hms-pass-toggle.is-visible svg path{stroke-opacity:.95!important}.hma-password-profile-note small{display:block;color:#8491a6;font-weight:800;line-height:1.9}.hma-password-profile-note{padding:0 12px;margin-top:-4px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.hma-profile-details-v4 .hermes-account-section-title h3{margin:0 0 8px;font-size:26px;font-weight:950;color:#60708a}.hma-profile-details-v4 .hermes-account-section-title p{margin:0 0 28px;font-size:16px;font-weight:800;color:#65748b}.hma-profile-details-v4 .text-end{text-align:left}.hma-profile-details-v4 .btn.btn-info{border:0;border-radius:13px;background:#58a0f4;color:#fff;font-size:18px;font-weight:950;min-height:54px;padding:0 28px;cursor:pointer;box-shadow:none}.hma-profile-details-v4 .btn.btn-info:hover{background:#4293ef}.hma-alert.is-success{background:#e7fff4!important;border-color:#92e9bd!important;color:#157347!important}.hma-alert.is-error{background:#fff1f0!important;border-color:#ffccc7!important;color:#a8071a!important}@media(max-width:900px){.hma-profile-password-row .col-md-4{flex:0 0 100%;max-width:100%;margin-bottom:18px}.hms-pass-wrap,.hms-pass-wrap input.woocommerce-Input,.hms-pass-wrap input.form-control{height:62px!important;line-height:62px!important}}
