:root{--bg:#f5f7fb;--panel:#fff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--blue:#2563eb;--green:#16a34a;--red:#ef4444;--orange:#f59e0b;--sidebar:#0f172a;--shadow:0 8px 25px rgba(15,23,42,.06)}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}.sidebar{position:fixed;left:0;top:0;bottom:0;width:250px;background:linear-gradient(180deg,#0f172a,#111827);color:#fff;padding:18px;display:flex;flex-direction:column;gap:22px}.brand{display:flex;align-items:center;gap:10px;font-size:18px}.brand-icon{width:30px;height:30px;border-radius:10px;background:#1d4ed8;display:grid;place-items:center}nav{display:flex;flex-direction:column;gap:6px}nav a{padding:12px;border-radius:10px;color:#cbd5e1}nav a:hover,nav a.active{background:#1d4ed8;color:#fff}.userbox{margin-top:auto;display:flex;gap:10px;align-items:center;padding:12px;border-radius:14px;background:rgba(255,255,255,.08)}.avatar{width:36px;height:36px;border-radius:50%;background:#334155;display:grid;place-items:center}.userbox small{display:block;color:#cbd5e1}.main{margin-left:250px;padding:24px}.auth-main{min-height:100vh;display:grid;place-items:center;padding:20px}.topbar{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:22px}.topbar h1{margin:0;font-size:26px}.search{max-width:360px;width:100%;padding:11px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}.btn{border:0;border-radius:12px;padding:11px 14px;background:var(--blue);color:#fff;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:8px}.btn.secondary{background:#e5e7eb;color:#111827}.btn.danger{background:var(--red)}.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(5,minmax(0,1fr))}.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:18px}.stat{display:flex;gap:14px;align-items:center}.stat .icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#eff6ff;color:var(--blue);font-size:22px}.stat b{font-size:26px}.stat span{display:block;color:var(--muted);font-size:13px}.table-card{overflow:auto;padding:0}.table-title{padding:18px 20px;border-bottom:1px solid var(--line);font-weight:800}table{border-collapse:collapse;width:100%;background:#fff}th,td{text-align:left;padding:13px 16px;border-bottom:1px solid var(--line);font-size:14px}th{color:#374151;font-size:13px;background:#fbfdff}.badge{display:inline-flex;align-items:center;justify-content:center;min-width:26px;padding:4px 8px;border-radius:8px;font-size:12px;font-weight:800}.badge.green{background:#dcfce7;color:#166534}.badge.blue{background:#dbeafe;color:#1e40af}.badge.orange{background:#ffedd5;color:#9a3412}.badge.red{background:#fee2e2;color:#991b1b}.badge.gray{background:#f3f4f6;color:#374151}.badge.slate{background:#e2e8f0;color:#334155}.progress{height:8px;background:#e5e7eb;border-radius:999px;overflow:hidden;min-width:120px}.progress div{height:100%;background:var(--green)}.progress.red div{background:var(--red)}.cards3{grid-template-columns:1fr 1fr 1fr}.mini-list{display:grid;gap:12px}.mini-item{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center}.muted{color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field span{font-weight:700;font-size:13px;color:#374151}input,select,textarea{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.alert{padding:12px 14px;border-radius:12px;margin-bottom:16px;background:#dcfce7;color:#166534;border:1px solid #bbf7d0}.alert.error{background:#fee2e2;color:#991b1b;border-color:#fecaca}.kanban{display:grid;grid-template-columns:repeat(4,minmax(230px,1fr)) 300px;gap:14px}.column{background:#f8fafc;border:1px solid var(--line);border-radius:16px;padding:12px;min-height:320px}.column h3{margin:0 0 12px;font-size:15px}.task-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px;margin-bottom:10px;box-shadow:0 4px 16px rgba(15,23,42,.04)}.task-card b{display:block;margin-bottom:7px}.task-meta{display:flex;justify-content:space-between;gap:10px;color:#6b7280;font-size:12px}.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:16px 0}.tabs a{padding:12px 10px;color:#64748b}.tabs a.active{color:#1d4ed8;border-bottom:2px solid #1d4ed8}.login-card{width:100%;max-width:420px}.login-card h1{margin-top:0}.empty{padding:25px;text-align:center;color:#64748b}.mobile-only{display:none}@media(max-width:900px){.sidebar{position:static;width:auto;min-height:auto}.sidebar nav{display:grid;grid-template-columns:repeat(2,1fr)}.userbox{display:none}.main{margin-left:0;padding:14px}.stats,.cards3,.form-grid,.kanban{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.search{max-width:none}.desktop-wide{display:none}.mobile-only{display:block}th,td{padding:10px}.card{padding:14px}}

/* Project overview / task tree view */
.project-hero h1{font-size:30px;margin-bottom:8px}.project-pills{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;color:#374151}.deadline{color:#ef4444}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.project-overview{display:grid;gap:16px}.overview-main{display:grid;gap:16px}.project-summary-grid{grid-template-columns:1.25fr .85fr}.project-info-card h3,.progress-card h3,.people-card h3{margin-top:0}.progress-row{display:flex;gap:10px;align-items:center}.big-progress{display:flex;align-items:flex-end;gap:12px;margin:12px 0}.big-progress b{font-size:40px;line-height:1}.big-progress span{color:var(--muted);padding-bottom:7px}.status-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.status-strip span{padding:10px;border:1px solid var(--line);border-radius:12px;background:#fbfdff;color:#475569}.danger-text{color:#b91c1c!important}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-head h2,.section-head h3{margin:0}.people-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.person-chip{display:inline-flex;align-items:center;padding:8px 11px;background:#eef2ff;color:#3730a3;border-radius:999px;font-weight:800;font-size:13px}.task-tree-head{margin-top:4px}.task-tree{display:grid;gap:12px}.task-node{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}.task-node summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 16px}.task-node summary::-webkit-details-marker{display:none}.task-title-block{display:flex;align-items:center;gap:12px;min-width:0}.task-title-block b{display:block;font-size:16px}.task-title-block small{display:block;color:var(--muted);margin-top:3px}.chev{width:28px;height:28px;display:grid;place-items:center;border-radius:10px;background:#eff6ff;color:#1d4ed8;font-weight:900;flex:0 0 auto}.task-node:not([open]) .chev{transform:rotate(-90deg)}.task-summary-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.task-date,.subtask-date{color:#64748b;font-size:13px;white-space:nowrap}.edit-link{font-weight:800;color:#1d4ed8;padding:4px 2px}.task-node-body{border-top:1px solid var(--line);padding:14px 16px 16px;background:#fbfdff}.task-details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;color:#475569;font-size:14px;margin-bottom:10px}.task-comment{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;color:#475569}.progress.compact{min-width:0;margin:8px 0 12px}.subtasks{display:grid;gap:8px}.subtask-row{display:grid;grid-template-columns:28px 1fr 120px 120px 80px;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px}.subtask-row:hover{border-color:#bfdbfe;background:#f8fbff}.check{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#f1f5f9;color:#64748b;font-weight:900}.check.done{background:#dcfce7;color:#166534}.subtask-title{font-weight:700}.subtask-actions{margin-top:12px}.empty.inline{padding:12px;text-align:left;background:#fff;border:1px dashed var(--line);border-radius:12px}
@media(max-width:900px){.project-summary-grid{grid-template-columns:1fr}.status-strip{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-direction:column}.task-node summary{align-items:flex-start;flex-direction:column}.task-summary-meta{justify-content:flex-start}.task-details-grid{grid-template-columns:1fr}.subtask-row{grid-template-columns:28px 1fr;align-items:start}.subtask-row .badge,.subtask-row .subtask-date,.subtask-row .muted{grid-column:2}.big-progress{align-items:flex-start;flex-direction:column}.project-pills{display:grid;gap:8px}.hero-actions{width:100%}.hero-actions .btn{flex:1;justify-content:center}}

/* Sortable tables */
.sortable-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  position: relative;
}
.sortable-th::after {
  content: "↕";
  opacity: .35;
  font-size: 12px;
  margin-left: 6px;
}
.sortable-th.sort-asc::after {
  content: "↑";
  opacity: .9;
}
.sortable-th.sort-desc::after {
  content: "↓";
  opacity: .9;
}
.sortable-th:focus {
  outline: 2px solid rgba(37, 99, 235, .35);
  outline-offset: 2px;
}
.form-grid.single{grid-template-columns:1fr}
.checkbox-field label{font-weight:600;color:#334155;display:flex;gap:8px;align-items:center}
.link-danger{background:none;border:0;color:#dc2626;font-weight:800;cursor:pointer;padding:0;margin-left:10px}
.link-danger:hover{text-decoration:underline}
@media (max-width: 900px){section.grid[style]{grid-template-columns:1fr!important}}

/* Collapsible sidebar */
.sidebar-toggle{margin-left:auto;border:0;background:rgba(255,255,255,.1);color:#fff;border-radius:10px;width:34px;height:34px;display:grid;place-items:center;cursor:pointer;font-size:16px}.sidebar-toggle:hover{background:rgba(255,255,255,.18)}.nav-icon{width:24px;display:inline-grid;place-items:center;font-size:18px;flex:0 0 24px}.sidebar nav a{display:flex;align-items:center;gap:10px}.sidebar,.main{transition:width .2s ease,margin-left .2s ease,padding .2s ease}.sidebar-collapsed .sidebar{width:82px;padding:18px 12px;align-items:center}.sidebar-collapsed .main{margin-left:82px}.sidebar-collapsed .brand{width:100%;justify-content:center}.sidebar-collapsed .brand-icon{margin:0}.sidebar-collapsed .sidebar-toggle{position:absolute;right:-17px;top:19px;background:#1d4ed8;box-shadow:0 8px 20px rgba(15,23,42,.2)}.sidebar-collapsed .nav-text{display:none}.sidebar-collapsed .sidebar nav{width:100%;align-items:center}.sidebar-collapsed .sidebar nav a{justify-content:center;width:46px;height:46px;padding:0}.sidebar-collapsed .userbox{justify-content:center;width:46px;padding:8px}.sidebar-collapsed .avatar{width:34px;height:34px}.sidebar-collapsed .brand strong{display:none}
@media(max-width:900px){.sidebar-toggle{display:none}.sidebar-collapsed .sidebar{width:auto;padding:18px;align-items:stretch}.sidebar-collapsed .main{margin-left:0}.sidebar-collapsed .nav-text{display:inline}.sidebar-collapsed .sidebar nav a{justify-content:flex-start;width:auto;height:auto;padding:12px}.sidebar-collapsed .userbox{display:none}}

/* Task detail page and comments */
.link-blue{color:#1d4ed8;font-weight:800}.task-title-link{color:#1d4ed8;font-weight:800}.task-title-link:hover{text-decoration:underline}.task-view-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}.task-view-main{display:grid;gap:16px}.task-view-side{display:grid;gap:16px}.task-passport h3,.comments-card h3{margin-top:0}.task-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.task-info-grid>div{border:1px solid var(--line);background:#fbfdff;border-radius:12px;padding:12px}.task-info-grid .full{grid-column:1/-1}.task-info-grid span{display:block;font-size:12px;margin-bottom:4px}.task-info-grid b{font-size:14px}.task-description-box{margin-top:14px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px}.task-description-box p{margin:6px 0}.chat-list{display:grid;gap:10px;margin:14px 0;max-height:520px;overflow:auto;padding-right:4px}.chat-message{display:flex;justify-content:flex-start}.chat-message.mine{justify-content:flex-end}.chat-bubble{max-width:78%;background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:10px 12px}.chat-message.mine .chat-bubble{background:#eff6ff;border-color:#bfdbfe}.chat-meta{display:flex;gap:10px;justify-content:space-between;color:#64748b;font-size:12px;margin-bottom:6px}.chat-meta b{color:#111827}.chat-text{white-space:normal;line-height:1.45}.chat-form{border-top:1px solid var(--line);padding-top:14px}.side-subtasks{display:grid;gap:10px;margin-top:12px}.side-subtask{border:1px solid var(--line);border-radius:12px;padding:10px;background:#fbfdff}.side-subtask-title{display:block;font-weight:800;color:#1d4ed8;margin-bottom:7px}.subtask-row{grid-template-columns:28px 1fr 120px 120px 80px 44px}.subtask-row .edit-link{text-align:right}
@media(max-width:900px){.task-view-grid{grid-template-columns:1fr}.task-info-grid{grid-template-columns:1fr}.chat-bubble{max-width:100%}.task-view-topbar .hero-actions{width:100%}.task-view-topbar .btn{flex:1;justify-content:center}.subtask-row{grid-template-columns:28px 1fr}.subtask-row .edit-link{grid-column:2;text-align:left}.subtask-row .badge,.subtask-row .subtask-date,.subtask-row .muted{grid-column:2}}


.task-title-link + .chat-indicator,
.side-subtask-title + .chat-indicator,
.subtask-title + .chat-indicator { margin-left: 6px; }
.chat-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
  opacity: .55;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}
.chat-indicator.unread {
  opacity: 1;
  color: #dc2626;
  font-weight: 800;
}
.chat-indicator.unread span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  box-shadow: 0 8px 18px rgba(220,38,38,.25);
}
.task-heading-with-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* User profile and avatars */
.profile-link{color:#fff}.profile-link:hover{background:rgba(255,255,255,.14)}
.avatar{overflow:hidden;font-weight:900;color:#fff;text-transform:uppercase;flex:0 0 auto}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.avatar.has-photo{background:transparent}.avatar.mini{width:28px;height:28px;font-size:11px;display:inline-grid;vertical-align:middle;margin-right:7px}.avatar.xl{width:92px;height:92px;font-size:28px}.avatar.chat-avatar{width:34px;height:34px;margin-top:4px;background:#475569}.user-chip{display:inline-flex;align-items:center;gap:7px;vertical-align:middle;min-width:0}.user-chip .avatar{margin-right:0}.user-chip.compact{font-size:13px;gap:5px}.user-chip.compact .avatar{width:24px;height:24px;font-size:10px}.person-chip.user-chip{gap:7px;padding:6px 10px}.person-chip.user-chip .avatar{background:#3730a3}.profile-grid{display:grid;grid-template-columns:360px minmax(0,1fr);gap:16px;align-items:start}.profile-avatar-preview{display:flex;gap:16px;align-items:center}.profile-avatar-preview h3{margin:0 0 4px}.profile-avatar-preview p{margin:0}.chat-message{gap:8px;align-items:flex-start}.chat-message.mine{flex-direction:row-reverse}.chat-message.mine .chat-avatar{display:none}
td .user-chip{white-space:nowrap}.mini-item .user-chip{justify-content:flex-end}.sidebar-collapsed .profile-link{padding:8px}.sidebar-collapsed .profile-link .avatar{margin:0}
@media(max-width:900px){.profile-grid{grid-template-columns:1fr}.profile-avatar-preview{align-items:flex-start}.mini-item .user-chip{justify-content:flex-start}}

/* Password reset */
.auth-links{margin:14px 0 0;text-align:center}.auth-links a{color:#1d4ed8;font-weight:800}.auth-links a:hover{text-decoration:underline}.debug-box{margin-top:14px;background:#0f172a;color:#dbeafe;border-radius:12px;padding:12px;white-space:pre-wrap;overflow:auto;font-size:12px;max-height:260px}


/* Attendance */
.attendance-form-card .table-title{margin-bottom:14px}.attendance-form{grid-template-columns:260px 180px 150px 1fr auto;align-items:end}.readonly-box{min-height:42px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;padding:9px 12px;display:flex;align-items:center}.attendance-scroll{overflow:auto;border:1px solid var(--line);border-radius:14px}.attendance-calendar{min-width:980px;border-collapse:separate;border-spacing:0}.attendance-calendar th,.attendance-calendar td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:7px;text-align:center}.attendance-calendar th:last-child,.attendance-calendar td:last-child{border-right:0}.attendance-calendar tr:last-child td{border-bottom:0}.attendance-calendar .employee-col{position:sticky;left:0;background:#fff;z-index:2;text-align:left;min-width:190px}.attendance-calendar thead .employee-col{z-index:3;background:#f8fafc}.attendance-calendar thead th{background:#f8fafc;font-size:12px;color:#475569}.attendance-calendar .day-col{min-width:46px}.attendance-calendar .day-col span{display:block;font-weight:900;color:#111827}.attendance-calendar .day-col small{display:block;color:#64748b;font-size:10px}.attendance-calendar .weekend{background:#fff7ed}.attendance-calendar .day-cell{height:42px;color:#94a3b8}.attendance-calendar .day-cell.has-hours{background:#eff6ff;color:#1d4ed8;font-weight:900}.attendance-calendar .day-cell.weekend.has-hours{background:#ffedd5;color:#c2410c}.attendance-calendar .cell-note{color:#f97316;margin-left:2px}.attendance-calendar .total-cell{background:#f0fdf4;color:#166534;font-size:15px}.attendance-form .field.full{grid-column:span 2}.attendance-form .field.full:last-child{grid-column:auto}.hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:1100px){.attendance-form{grid-template-columns:1fr 1fr}.attendance-form .field.full,.attendance-form .field.full:last-child{grid-column:1/-1}}@media(max-width:700px){.attendance-form{grid-template-columns:1fr}.attendance-calendar{min-width:860px}.attendance-calendar .employee-col{min-width:150px}.topbar .hero-actions{width:100%;justify-content:stretch}.topbar .hero-actions .btn{flex:1;justify-content:center}}

.attendance-limit-note{margin:-6px 0 14px;font-size:13px}
.attendance-calendar .day-cell.editable-day{cursor:pointer;position:relative}
.attendance-calendar .day-cell.editable-day:hover{outline:2px solid #2563eb;outline-offset:-2px;background:#dbeafe}
.attendance-calendar .day-cell.locked-day{background:#f8fafc;color:#cbd5e1;cursor:not-allowed;opacity:.75}
.attendance-calendar .day-cell.locked-day.has-hours{background:#f1f5f9;color:#64748b}
.attendance-calendar .day-cell.weekend.locked-day{background:#f8fafc;color:#cbd5e1}
.attendance-calendar .day-cell.weekend.locked-day.has-hours{background:#f1f5f9;color:#64748b}
.attendance-calendar .add-hours-mark{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;border:1px dashed #94a3b8;color:#64748b;font-weight:900}

/* v0.3.7 Attendance period selector */
.attendance-period-card { margin-bottom: 16px; }
.period-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.period-form .field { min-width: 160px; margin: 0; }
.period-form .period-submit { min-width: auto; }
.attendance-topbar { gap: 12px; }
@media (max-width: 720px) {
  .period-form { display: grid; grid-template-columns: 1fr 1fr; }
  .period-form .period-submit { grid-column: 1 / -1; }
  .period-form .period-submit .btn { width: 100%; }
  .attendance-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
}
.attendance-calendar-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.attendance-title-period-form{display:inline-flex;align-items:center;gap:8px;margin:0}
.attendance-title-period-form select{height:34px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 10px;font-weight:800;color:#111827}
.attendance-title-period-form .btn.small{height:34px;padding:0 12px}
@media(max-width:700px){.attendance-calendar-title{align-items:flex-start;flex-direction:column}.attendance-title-period-form,.attendance-title-period-form select{width:100%}}

/* v0.4.1 Live search for Projects and Tasks */
.list-topbar{align-items:center}.title-with-search{display:flex;align-items:center;gap:14px;min-width:0;flex:1}.title-with-search h1{white-space:nowrap}.live-search-wrap{position:relative;min-width:260px;max-width:420px;width:100%}.live-search-wrap .search{padding-right:40px;max-width:none}.search-clear{display:none;position:absolute;right:7px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:0;border-radius:999px;background:#e5e7eb;color:#475569;font-size:20px;line-height:1;cursor:pointer}.live-search-wrap.has-value .search-clear{display:grid;place-items:center}.search-clear:hover{background:#cbd5e1;color:#111827}.live-search-empty-row td{background:#fff}
@media(max-width:900px){.list-topbar{align-items:stretch}.title-with-search{width:100%;align-items:stretch;flex-direction:column}.live-search-wrap{max-width:none;width:100%}}

/* v0.4.2 Comment attachments */
.comment-upload-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 0}.file-upload-label{display:inline-flex;align-items:center;gap:8px;border:1px dashed var(--line);border-radius:12px;padding:9px 12px;background:#f8fafc;color:#334155;font-weight:800;cursor:pointer}.file-upload-label:hover{background:#eef2ff;border-color:#c7d2fe}.file-upload-label input{display:none}.comment-attachments{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap}.comment-image-link{display:block;width:120px;height:86px;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#f8fafc}.comment-image-link img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .15s ease}.comment-image-link:hover img{transform:scale(1.04)}.comment-file-link{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:9px 11px;color:#1d4ed8;font-weight:800;max-width:260px}.comment-file-link span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.comment-file-link small{color:#64748b;font-weight:700}.file-icon{font-size:18px}.image-lightbox{position:fixed;inset:0;background:rgba(15,23,42,.86);display:none;align-items:center;justify-content:center;z-index:9999;padding:24px}.image-lightbox.open{display:flex}.image-lightbox img{max-width:min(1100px,96vw);max-height:90vh;border-radius:16px;box-shadow:0 20px 70px rgba(0,0,0,.4);background:#fff}.image-lightbox button{position:absolute;right:20px;top:16px;border:0;background:rgba(255,255,255,.15);color:#fff;width:42px;height:42px;border-radius:999px;font-size:28px;line-height:1;cursor:pointer}.image-lightbox button:hover{background:rgba(255,255,255,.25)}
@media(max-width:700px){.comment-image-link{width:96px;height:74px}.comment-file-link{max-width:100%}.comment-upload-row{align-items:flex-start;flex-direction:column}}

/* v0.5.0 filters, quick status, files, history, archive */
.filters-card{margin-bottom:16px}.filters-grid{display:grid;grid-template-columns:1.2fr repeat(5,minmax(140px,1fr)) auto;gap:12px;align-items:end}.filters-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:800;color:#475569}.filters-grid input,.filters-grid select,.quick-status-select{border:1px solid var(--line);border-radius:11px;background:#fff;min-height:38px;padding:0 10px;color:#111827}.check-filter{flex-direction:row!important;align-items:center!important;gap:8px!important}.check-filter input{min-height:auto}.filter-actions{display:flex;gap:8px;align-items:center}.quick-status-form{margin:0}.quick-status-select{font-weight:800;min-width:145px}.archived-row{opacity:.65;background:#f8fafc}.checkbox-field .checkline{display:flex;align-items:center;gap:8px;min-height:42px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;padding:0 12px}.inline-upload-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0 12px}.task-files-list{margin-top:12px}.task-history-card .history-list{display:grid;gap:10px}.history-item{border:1px solid var(--line);border-radius:12px;padding:10px;background:#f8fafc}.history-item small{display:block;color:#64748b;margin-top:2px}.task-files-card,.project-files-card{margin-top:16px}.link-blue{color:#1d4ed8;font-weight:800}@media(max-width:1200px){.filters-grid{grid-template-columns:1fr 1fr 1fr}.filter-actions{grid-column:1/-1}}@media(max-width:720px){.filters-grid{grid-template-columns:1fr}.filter-actions{display:grid}.filter-actions .btn{width:100%}.quick-status-select{width:100%}}

/* v0.5.1 */
.multi-select { min-height: 150px; }
.assignee-chips { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.mention { background:#dbeafe; color:#1d4ed8; padding:1px 5px; border-radius:999px; font-weight:700; }
.mention-hint { margin-top:6px; font-size:12px; color:#64748b; }


/* v0.5.2 AppRox-inspired clean dashboard redesign */
:root{
  --bg:#f7f9fc;
  --panel:#ffffff;
  --text:#202938;
  --muted:#7c8798;
  --line:#edf1f7;
  --blue:#3156ff;
  --blue2:#6d3df5;
  --green:#16b28b;
  --red:#ff4d67;
  --orange:#ffb84d;
  --sidebar:#111827;
  --shadow:0 18px 45px rgba(16,24,40,.05);
}
body{background:var(--bg);color:var(--text);font-size:14px;}
.sidebar{width:236px;background:#111827;padding:20px 16px;gap:26px;box-shadow:14px 0 40px rgba(15,23,42,.08)}
.brand{height:34px;font-size:17px;letter-spacing:.1px}.brand-icon{width:12px;height:12px;border-radius:999px;background:linear-gradient(135deg,#ff4d67,#3156ff);font-size:0}.brand-icon::after{content:'';display:block;width:4px;height:4px;border-radius:50%;background:#fff;opacity:.8}.sidebar-toggle{background:rgba(255,255,255,.06);color:#cbd5e1}.sidebar-toggle:hover{background:rgba(255,255,255,.12);color:#fff}
.sidebar nav{gap:5px}.sidebar nav::before{content:'MAIN';font-size:10px;font-weight:900;letter-spacing:.18em;color:#6b7280;margin:10px 8px 8px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;color:#aeb8c9;font-weight:650;font-size:13px}.sidebar nav a:hover,.sidebar nav a.active{background:#1d2740;color:#fff}.nav-icon{width:20px;text-align:center;opacity:.9}.userbox{background:#162033;border:1px solid rgba(255,255,255,.05);border-radius:16px}.avatar{background:linear-gradient(135deg,#6376ff,#2dd4bf);color:#fff;font-weight:900;overflow:hidden}.avatar.mini{width:30px;height:30px;font-size:12px}.main{margin-left:236px;padding:0 22px 28px}.app-header{height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 -22px 18px;padding:0 22px;background:#fff;border-bottom:1px solid #eef2f7;position:sticky;top:0;z-index:20}.app-header-left{display:flex;align-items:center;gap:14px}.app-menu-btn{width:34px;height:34px;border:0;background:#fff;color:#7c8798;border-radius:10px;font-size:20px;cursor:pointer}.app-menu-btn:hover{background:#f1f5f9;color:#111827}.app-global-search{display:flex;align-items:center;gap:8px;min-width:260px;max-width:360px;width:30vw;background:#fff;border:1px solid #edf1f7;border-radius:999px;height:36px;padding:0 14px;color:#9aa4b5}.app-global-search input{height:32px;border:0;padding:0;background:transparent;color:#94a3b8}.app-global-search input:disabled{opacity:1}.app-header-user{display:flex;align-items:center;gap:9px;color:#334155;font-weight:800}.topbar{margin:4px 0 20px}.topbar h1{font-size:21px;font-weight:900;letter-spacing:-.02em}.card,.table-card,.column,.task-node{border:0;border-radius:8px;box-shadow:0 12px 28px rgba(15,23,42,.035);background:#fff}.card{padding:20px}.table-title{padding:17px 20px;font-size:15px;border-bottom:1px solid #eef2f7;background:#fff}.btn{background:#3156ff;border-radius:8px;box-shadow:0 8px 20px rgba(49,86,255,.16);min-height:38px}.btn:hover{filter:brightness(.98);transform:translateY(-1px)}.btn.secondary{background:#f3f6fb;color:#475569;box-shadow:none}.btn.danger{background:#ff4d67}.stats{gap:14px}.stat{min-height:88px}.stat .icon{width:42px;height:42px;border-radius:12px;background:#eef2ff;color:#3156ff}.stat b{font-size:25px;color:#222b3a}.stat span{font-size:12px;text-transform:none;color:#7c8798}table{background:#fff}th{background:#f8fafc;color:#667085;text-transform:none;font-size:12px;font-weight:900}td{color:#344054}th,td{border-bottom:1px solid #edf1f7}.table-card tr:hover td{background:#fbfdff}.badge{border-radius:999px;min-width:28px;font-weight:900}.badge.green{background:#e8f8f3;color:#0f8f71}.badge.blue{background:#eef4ff;color:#3156ff}.badge.orange{background:#fff4df;color:#b76b00}.badge.red{background:#ffe9ee;color:#d92d4a}.badge.gray{background:#f3f5f8;color:#667085}.progress{height:7px;background:#edf1f7}.progress div{background:#16b28b}.tabs{border:0;background:#fff;border-radius:12px;padding:6px;box-shadow:0 10px 25px rgba(15,23,42,.035)}.tabs a{border-radius:9px;padding:10px 14px;font-weight:800}.tabs a.active{border:0;background:#eef2ff;color:#3156ff}.search,input,select,textarea{border-color:#edf1f7;border-radius:10px}.search:focus,input:focus,select:focus,textarea:focus{outline:3px solid rgba(49,86,255,.12);border-color:#bdcaff}.dashboard-hero{display:grid;grid-template-columns:minmax(360px,1.2fr) minmax(260px,.85fr) minmax(220px,.55fr);gap:16px;margin-bottom:16px}.hero-banner{position:relative;overflow:hidden;min-height:158px;border-radius:8px;background:radial-gradient(circle at 85% 15%,rgba(255,255,255,.24),transparent 26%),linear-gradient(135deg,#2b22d8,#6d3df5);color:#fff;padding:28px 30px;box-shadow:0 20px 45px rgba(49,38,216,.18)}.hero-banner:after{content:'';position:absolute;right:-30px;bottom:-45px;width:180px;height:180px;border:1px solid rgba(255,255,255,.18);border-radius:50%}.hero-eyebrow{display:block;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.12em;opacity:.82}.hero-banner h2{margin:9px 0 8px;font-size:24px;line-height:1.15}.hero-banner p{margin:0 0 16px;color:rgba(255,255,255,.82);max-width:520px}.hero-btn{background:#ff4d67;box-shadow:none}.hero-balance-card{background:#fff;border-radius:8px;padding:22px;box-shadow:var(--shadow);min-height:158px;position:relative;overflow:hidden}.hero-balance-card:after{content:'';position:absolute;right:-42px;top:-42px;width:130px;height:130px;border-radius:50%;background:radial-gradient(circle,#fff2f7,#fff 70%)}.hero-balance-card span,.hero-mini-grid span{display:block;color:#7c8798;font-size:12px;font-weight:900;text-transform:uppercase}.hero-balance-card b{display:block;margin:14px 0 6px;font-size:30px}.hero-balance-card small{color:#16b28b;font-weight:800}.hero-mini-grid{display:grid;gap:14px}.hero-mini-grid div{background:#fff;border-radius:8px;padding:18px 20px;box-shadow:var(--shadow);min-height:72px}.hero-mini-grid b{font-size:24px;display:block;margin-top:8px}.task-card{border:0;border-radius:8px;box-shadow:0 10px 24px rgba(15,23,42,.04)}.column{background:#f8fafc}.task-node summary{border-radius:8px}.people-list .person-chip,.user-chip{border-radius:999px;background:#f4f7ff}.comment-bubble,.history-item,.task-comment{border-color:#edf1f7}.sidebar-collapsed .sidebar{width:76px}.sidebar-collapsed .main{margin-left:76px}.sidebar-collapsed .brand{justify-content:center}.sidebar-collapsed .sidebar nav a{justify-content:center}.sidebar-collapsed .sidebar nav::before,.sidebar-collapsed .nav-text{display:none}.sidebar-collapsed .sidebar-toggle{margin-left:0}.sidebar-collapsed .userbox{justify-content:center}.sidebar-collapsed .app-header{margin-left:-22px}
@media(max-width:1180px){.dashboard-hero{grid-template-columns:1fr 1fr}.hero-mini-grid{grid-column:1/-1;grid-template-columns:1fr 1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.sidebar{position:static;width:auto;box-shadow:none;border-radius:0}.sidebar nav::before{display:none}.main{margin-left:0;padding:0 14px 18px}.app-header{margin:0 -14px 14px;padding:0 14px}.app-global-search{display:none}.dashboard-hero,.hero-mini-grid{grid-template-columns:1fr}.sidebar-collapsed .main{margin-left:0}.sidebar-collapsed .nav-text{display:inline}.sidebar-collapsed .sidebar{width:auto}.sidebar-collapsed .sidebar nav a{justify-content:flex-start}}


/* v0.5.3 interface fixes */
body{font-size:15.5px}.topbar h1{font-size:23px}th,td{font-size:15px}.table-title{font-size:16px}.sidebar nav a{font-size:14px}.field span{font-size:14px}.btn{font-size:14px}.badge{font-size:13px}.muted,small{font-size:13px}.app-global-search{display:none!important}.brand .sidebar-toggle{display:none!important}.app-header-left{min-width:44px}.app-menu-btn{display:inline-grid;place-items:center}.dashboard-hero{display:none!important}.sidebar-collapsed .brand{justify-content:center}.sidebar-collapsed .sidebar-toggle{display:none!important}.sidebar-collapsed .app-header{margin-left:-22px}
@media(max-width:900px){
  body{font-size:15px;overflow-x:hidden}.app-header{height:56px;position:sticky;top:0;z-index:60}.app-header-user span{display:none}.app-menu-btn{background:#f8fafc;border:1px solid #edf1f7;color:#111827}.sidebar{position:fixed!important;left:0;top:0;bottom:0;width:270px!important;max-width:86vw;z-index:80;transform:translateX(-105%);transition:transform .22s ease;box-shadow:18px 0 45px rgba(15,23,42,.25);padding:18px!important;align-items:stretch!important}.sidebar nav{display:flex!important;grid-template-columns:none!important}.sidebar .nav-text{display:inline!important}.sidebar nav a{justify-content:flex-start!important;width:auto!important;height:auto!important;padding:12px!important}.sidebar .userbox{display:flex!important}.sidebar-collapsed .sidebar{transform:translateX(-105%);width:270px!important}.mobile-menu-open .sidebar{transform:translateX(0)!important}.mobile-menu-backdrop{display:none;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:70}.mobile-menu-open .mobile-menu-backdrop{display:block}.main{margin-left:0!important;padding:0 14px 18px!important}.sidebar-collapsed .main{margin-left:0!important}.stats{grid-template-columns:1fr!important}.cards3{grid-template-columns:1fr!important}.table-card{overflow:auto}.sidebar-collapsed .nav-text{display:inline!important}.sidebar-collapsed .sidebar nav::before{display:none!important}
}

/* v0.5.5 attendance salary-hour summaries */
.attendance-summary-grid{grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px}
.attendance-summary-card{display:flex;flex-direction:column;gap:6px}
.attendance-summary-card span{font-size:13px;color:#64748b;font-weight:800;text-transform:uppercase;letter-spacing:.02em}
.attendance-summary-card b{font-size:28px;line-height:1;color:#111827}
.attendance-summary-card small{color:#64748b;font-size:12px}
.attendance-summary-card.overtime b{color:#b91c1c}
.attendance-summary-card.sunday b{color:#c2410c}
.attendance-calendar .regular-cell{background:#f8fafc;color:#334155;font-size:14px}
.attendance-calendar .overtime-cell{background:#fef2f2;color:#b91c1c;font-size:14px}
.attendance-calendar .sunday-cell{background:#ffedd5;color:#c2410c;font-size:14px}
.badge.regular-badge{background:#e2e8f0;color:#334155}
.badge.overtime-badge{background:#fee2e2;color:#991b1b}
.badge.sunday-badge{background:#ffedd5;color:#9a3412}
@media(max-width:900px){.attendance-summary-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.attendance-summary-grid{grid-template-columns:1fr}}

/* v0.5.7 attendance planned hours in total card */
.attendance-total-card .summary-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.attendance-total-card .summary-card-head span:first-child{margin-top:1px}
.attendance-total-card .planned-hours{font-size:12px!important;line-height:1.2;color:#64748b;font-weight:800;text-transform:none;letter-spacing:0;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:5px 9px;white-space:nowrap}
@media(max-width:560px){.attendance-total-card .summary-card-head{flex-direction:column;gap:6px}.attendance-total-card .planned-hours{align-self:flex-start}}

/* v0.5.14 Mention autocomplete in task comments */
.mention-input-wrap{position:relative;width:100%}
.mention-input-wrap textarea{width:100%}
.mention-suggestions{position:absolute;left:0;right:0;bottom:calc(100% + 8px);z-index:40;background:#fff;border:1px solid rgba(17,24,39,.12);border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.18);padding:6px;max-height:280px;overflow:auto}
.mention-suggestion-item{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;text-align:left;border-radius:11px;padding:9px 10px;cursor:pointer;color:var(--text,#111827)}
.mention-suggestion-item:hover,.mention-suggestion-item.active{background:rgba(37,99,235,.08)}
.mention-suggestion-avatar{width:34px;height:34px;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;background:linear-gradient(135deg,#e0e7ff,#f1f5f9);font-weight:800;color:#334155;font-size:13px}
.mention-suggestion-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.mention-suggestion-main{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.mention-suggestion-main b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mention-suggestion-main small{font-size:12px;color:var(--muted,#64748b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
@media (max-width:700px){.mention-suggestions{bottom:auto;top:calc(100% + 8px);max-height:230px}}

.app-header-right{display:flex;align-items:center;gap:12px;margin-left:auto}.notif-wrap{position:relative}.notif-btn{width:38px;height:38px;border:1px solid #edf1f7;background:#fff;border-radius:12px;color:#334155;font-size:18px;display:inline-grid;place-items:center;cursor:pointer;position:relative}.notif-btn:hover{background:#f8fafc}.notif-badge{position:absolute;right:-5px;top:-6px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#ff4d67;color:#fff;font-size:11px;font-weight:900;display:grid;place-items:center;box-shadow:0 6px 14px rgba(255,77,103,.25)}.notif-menu{position:absolute;right:0;top:48px;width:360px;max-width:calc(100vw - 28px);background:#fff;border:1px solid #eef2f7;border-radius:16px;box-shadow:0 24px 60px rgba(15,23,42,.16);z-index:100;overflow:hidden}.notif-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #eef2f7}.notif-head b{font-size:15px}.notif-head a{font-size:12px;font-weight:800;color:#3156ff}.notif-list{max-height:410px;overflow:auto}.notif-item{display:flex;gap:10px;padding:12px 14px;border-bottom:1px solid #f1f5f9;color:#334155}.notif-item:hover{background:#f8fafc}.notif-item.unread{background:#f5f7ff}.notif-item.unread:hover{background:#eef2ff}.notif-item span{min-width:0;display:block}.notif-item b{display:block;font-size:13px;color:#111827;margin-bottom:4px}.notif-item small{display:block;color:#64748b;line-height:1.3;max-height:38px;overflow:hidden}.notif-item em{display:block;margin-top:5px;color:#94a3b8;font-size:11px;font-style:normal}.notif-empty{padding:22px;color:#94a3b8;text-align:center;font-weight:700}
@media(max-width:900px){.app-header-right{gap:8px}.notif-menu{right:-54px;width:330px}.notif-btn{width:36px;height:36px}}

/* v0.5.28 — attendance reconciliation with archived paper table photo */
.attendance-recon-help h3{margin-top:0}.attendance-recon-upload{grid-template-columns:180px 160px 1fr}.attendance-recon-selected .section-head{margin-bottom:8px}.attendance-recon-photo{display:block;max-width:100%;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#f8fafc;margin-top:12px}.attendance-recon-photo img{display:block;max-width:100%;max-height:520px;object-fit:contain;margin:auto}.attendance-recon-file{margin-top:12px}.attendance-recon-table-card .table-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.attendance-recon-legend{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line);color:#64748b;font-size:13px}.recon-dot{width:16px;height:16px;border-radius:5px;display:inline-block;border:1px solid rgba(15,23,42,.08)}.recon-dot.match{background:#dcfce7}.recon-dot.mismatch{background:#fef9c3}.recon-dot.empty{background:#fff}.attendance-recon-table .recon-cell{min-width:58px;padding:4px;text-align:center}.attendance-recon-table .recon-cell input{height:30px;width:46px;min-width:46px;text-align:center;padding:0 4px;border-radius:8px;font-size:13px;background:rgba(255,255,255,.82)}.attendance-recon-table .recon-cell small{display:block;margin-top:2px;font-size:10px;color:#64748b;line-height:1.1}.attendance-recon-table .recon-match{background:#dcfce7!important}.attendance-recon-table .recon-mismatch,.attendance-recon-table .recon-photo_only{background:#fef9c3!important}.attendance-recon-table .recon-empty{background:#fff!important}.attendance-recon-table .weekend.recon-empty{background:#fff7ed!important}@media(max-width:900px){.attendance-recon-upload{grid-template-columns:1fr}.attendance-recon-table-card .table-title{align-items:flex-start;flex-direction:column}.attendance-recon-table-card .table-title .btn{width:100%;justify-content:center}}

/* v0.5.29 — attendance AI OCR reconciliation */
.attendance-ocr-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--line,#e5e7eb)}
.attendance-ocr-form .muted{font-size:13px}
.recon-cell.recon-photo_only{background:#fff7ed}
.recon-cell.recon-photo_only input{border-color:#fdba74;background:#fff7ed}

/* v0.5.30 — restored checkbox styles */

/* Task description checklist: compact green checkboxes */
.task-checklist,
.checklist-list {
  margin: 8px 0 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.task-checklist-item,
.checklist-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  min-height: 24px !important;
  padding: 2px 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

.task-checklist-item input[type="checkbox"],
.checklist-item input[type="checkbox"],
.task-checklist input[type="checkbox"],
.checklist-list input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  flex: 0 0 18px !important;
  border: 2px solid #19b879 !important;
  border-radius: 5px !important;
  background: #fff !important;
  cursor: pointer !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
}

.task-checklist-item input[type="checkbox"]:checked,
.checklist-item input[type="checkbox"]:checked,
.task-checklist input[type="checkbox"]:checked,
.checklist-list input[type="checkbox"]:checked {
  background: #19b879 !important;
  border-color: #19b879 !important;
}

.task-checklist-item input[type="checkbox"]:checked::after,
.checklist-item input[type="checkbox"]:checked::after,
.task-checklist input[type="checkbox"]:checked::after,
.checklist-list input[type="checkbox"]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 1px !important;
  width: 5px !important;
  height: 10px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

.task-checklist-text,
.checklist-text,
.task-checklist-item span,
.checklist-item span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  color: #122033 !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}

.task-checklist-item.is-done .task-checklist-text,
.checklist-item.is-done .checklist-text,
.task-checklist-item input[type="checkbox"]:checked + span,
.checklist-item input[type="checkbox"]:checked + span {
  color: #6b7280 !important;
  text-decoration: line-through !important;
}

/* Profile / assignee forms: checkbox and text on one left-aligned line */
label.field.checkbox-field {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 28px !important;
  padding: 4px 0 !important;
  margin: 4px 0 10px !important;
  text-align: left !important;
}

label.field.checkbox-field > input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  order: 1 !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid #19b879 !important;
  border-radius: 5px !important;
  background: #fff !important;
  position: relative !important;
  cursor: pointer !important;
}

label.field.checkbox-field > input[type="checkbox"]:checked {
  background: #19b879 !important;
  border-color: #19b879 !important;
}

label.field.checkbox-field > input[type="checkbox"]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 1px !important;
  width: 5px !important;
  height: 10px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

label.field.checkbox-field > span {
  order: 2 !important;
  display: inline-block !important;
  flex: 0 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #374151 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

/* Remember-me checkbox on login */
.remember-row input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  flex: 0 0 18px !important;
  accent-color: #19b879 !important;
  margin: 0 !important;
}

.login-honeypot{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* v0.5.84 - employee list and editor modal */
.employees-topbar{align-items:center}.employees-table-card{width:100%;overflow:auto}.employees-table{min-width:1160px}.employees-table .employee-name-column{width:260px;min-width:260px}.employee-name-link{color:#3156ff}.employee-name-link:hover{text-decoration:underline}
.employee-modal{position:fixed;inset:0;z-index:2100;display:none;align-items:center;justify-content:center;padding:20px}.employee-modal.open{display:flex}.employee-modal-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;padding:0;background:rgba(15,23,42,.5);backdrop-filter:blur(3px);cursor:default}.employee-modal-card{position:relative;z-index:1;display:flex;flex-direction:column;width:min(860px,100%);max-height:calc(100dvh - 40px);overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 28px 80px rgba(15,23,42,.3)}
.employee-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px 16px;border-bottom:1px solid var(--line)}.employee-modal-header h2{margin:0;font-size:21px}.employee-modal-header p{margin:5px 0 0;color:var(--muted);font-size:13px}.employee-modal-close{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:0;border-radius:50%;background:#f1f5f9;color:#475569;font-size:25px;line-height:1;cursor:pointer}.employee-modal-close:hover{background:#e2e8f0;color:#111827}
.employee-modal-form{display:flex;flex:1;min-height:0;flex-direction:column}.employee-modal-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px 22px}.employee-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-modal-error{grid-column:1/-1;margin-bottom:16px}.employee-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.employee-option{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:#344054;font-size:13px;font-weight:800;cursor:pointer}.employee-option input[type="checkbox"]{flex:0 0 18px;width:18px!important;height:18px!important;margin:0;accent-color:#3156ff}.employee-role-note{margin:14px 0 0;font-size:12px;line-height:1.45}.employee-modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid var(--line);background:#fff}.employee-modal-actions .btn{min-width:120px;justify-content:center}.employee-modal-actions .employee-delete-button{margin-right:auto}
.employee-login-lock{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:14px 22px;background:#fff7ed;border-bottom:1px solid #fed7aa;color:#9a3412}.employee-login-lock div{display:grid;gap:3px}.employee-login-lock span{font-size:12px}.employee-login-lock form{margin:0;flex:0 0 auto}.employee-login-lock .btn{min-height:36px;padding:8px 12px;box-shadow:none}
@media(max-width:700px){.employee-modal{align-items:flex-end;padding:0}.employee-modal-card{width:100%;max-height:100dvh;height:100dvh;border:0;border-radius:0}.employee-modal-header{padding:16px}.employee-modal-body{padding:16px}.employee-form-grid,.employee-options-grid{grid-template-columns:1fr}.employee-modal-actions{display:grid;grid-template-columns:1fr 1fr;padding:12px 16px}.employee-modal-actions .btn{width:100%;min-width:0}.employee-modal-actions .employee-delete-button{grid-column:1/-1;margin-right:0}.employees-topbar .hero-actions{display:grid;grid-template-columns:1fr 1fr}.employees-topbar .hero-actions .btn{width:100%}.employee-login-lock{align-items:stretch;flex-direction:column;padding:12px 16px}.employee-login-lock .btn{width:100%;justify-content:center}}
.employees-tabs{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;overflow-x:auto;white-space:nowrap}.employees-tabs a{flex:0 0 auto;width:auto}.employee-roles-card{width:100%;overflow:auto}.employee-roles-table{min-width:860px}.employee-roles-table td:first-child{min-width:230px}.role-permissions-table{min-width:980px}.role-permissions-table th:not(:first-child),.role-permissions-table td:not(:first-child){text-align:center}.role-permission-cell input{width:20px;height:20px;margin:0;accent-color:#2563eb}.role-permission-cell input:disabled{opacity:.55}.employee-roles-actions{display:flex;justify-content:flex-end;margin-top:14px}.employee-roles-actions .btn{min-width:190px;justify-content:center}
@media(max-width:700px){.employee-roles-actions{position:sticky;bottom:0;z-index:5;padding:10px 0;background:var(--bg)}.employee-roles-actions .btn{width:100%}}

/* v0.5.31 — urgency / priority colors
   1 = висока = red, 2 = середня = yellow, 3 = низька = green */
.badge.red,
.priority-high {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

/* Existing PHP may return class "orange" for priority 2, so keep orange as yellow. */
.badge.orange,
.badge.yellow,
.priority-medium {
  background: #fef9c3 !important;
  color: #854d0e !important;
}

.badge.green,
.priority-low {
  background: #dcfce7 !important;
  color: #166534 !important;
}


/* v0.5.32.1 — final checkbox alignment fix for profile / assignee forms */
form label.field.checkbox-field,
.card form label.field.checkbox-field,
main form label.field.checkbox-field {
  display: block !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 8px 0 !important;
  padding: 0 !important;
}

form label.field.checkbox-field > span,
.card form label.field.checkbox-field > span,
main form label.field.checkbox-field > span {
  display: none !important;
}

form label.field.checkbox-field > label,
.card form label.field.checkbox-field > label,
main form label.field.checkbox-field > label {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

form label.field.checkbox-field > label input[type="checkbox"],
.card form label.field.checkbox-field > label input[type="checkbox"],
main form label.field.checkbox-field > label input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  flex: 0 0 18px !important;
  margin: 1px 0 0 0 !important;
  padding: 0 !important;
  border: 2px solid #19b879 !important;
  border-radius: 5px !important;
  background: #fff !important;
  position: relative !important;
  cursor: pointer !important;
}

form label.field.checkbox-field > label input[type="checkbox"]:checked,
.card form label.field.checkbox-field > label input[type="checkbox"]:checked,
main form label.field.checkbox-field > label input[type="checkbox"]:checked {
  background: #19b879 !important;
  border-color: #19b879 !important;
}

form label.field.checkbox-field > label input[type="checkbox"]:checked::after,
.card form label.field.checkbox-field > label input[type="checkbox"]:checked::after,
main form label.field.checkbox-field > label input[type="checkbox"]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 1px !important;
  width: 5px !important;
  height: 10px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

form label.field.checkbox-field > label span,
.card form label.field.checkbox-field > label span,
main form label.field.checkbox-field > label span {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

/* v0.5.32 — working Saturdays in attendance calendar */
.attendance-calendar th.working-saturday {
  background: #dcfce7 !important;
  color: #166534 !important;
  border-bottom-color: #bbf7d0 !important;
}

.attendance-calendar th.working-saturday span,
.attendance-calendar th.working-saturday small {
  color: #166534 !important;
}

.attendance-calendar .day-cell.working-saturday {
  background: #f0fdf4 !important;
}

.attendance-calendar .day-cell.working-saturday.has-hours {
  background: #dcfce7 !important;
  color: #166534 !important;
}

.attendance-calendar .day-cell.working-saturday.locked-day {
  background: #f0fdf4 !important;
  color: #86a887 !important;
}

.attendance-working-saturday-note {
  display: flex !important;
  align-items: center !important;
  gap: 8px 12px !important;
  flex-wrap: wrap !important;
}

.attendance-working-saturday-note b {
  color: #166534 !important;
}

@media(max-width:700px){
  .attendance-working-saturday-note {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}


/* v0.5.34 — task list checkbox filters */
.task-list-options-card {
  margin: -6px 0 16px !important;
  padding: 12px 16px !important;
}

.task-list-options {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
}

.check-filter {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-direction: row !important;
  gap: 9px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

.check-filter input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid #19b879 !important;
  border-radius: 5px !important;
  background: #fff !important;
  position: relative !important;
  cursor: pointer !important;
}

.check-filter input[type="checkbox"]:checked {
  background: #19b879 !important;
  border-color: #19b879 !important;
}

.check-filter input[type="checkbox"]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 1px !important;
  width: 5px !important;
  height: 10px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

.check-filter span {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* v0.5.37 — kanban card badges in separate row */
.kanban-card .kanban-card-meta {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.kanban-card .kanban-assignees {
  min-width: 0 !important;
  overflow: hidden !important;
}

.kanban-card .kanban-date {
  white-space: nowrap !important;
  color: #64748b !important;
}

.kanban-card .kanban-badge-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 10px !important;
  padding-top: 8px !important;
  border-top: 1px solid #edf1f7 !important;
}

.kanban-card .kanban-badge-row .badge {
  max-width: 100% !important;
  white-space: normal !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

@media(max-width:700px){
  .kanban-card .kanban-card-meta {
    grid-template-columns: 1fr auto !important;
  }
  .kanban-card .kanban-date {
    grid-column: 1 / -1 !important;
  }
}

/* v0.5.38 — task list pagination and total counter */
.task-list-options {
  justify-content: space-between !important;
  width: 100% !important;
}

.task-list-options-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.task-list-total {
  margin-left: auto !important;
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.task-list-total b {
  color: #111827 !important;
  font-size: 15px !important;
}

.pagination-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  padding: 14px 16px !important;
  border-top: 1px solid #edf1f7 !important;
  background: #fff !important;
}

.pagination-info {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.pagination-links {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.page-link,
.page-gap {
  min-width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  border: 1px solid #edf1f7 !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.page-link:hover {
  background: #eef2ff !important;
  color: #3156ff !important;
  border-color: #dbe4ff !important;
}

.page-link.active {
  background: #3156ff !important;
  color: #fff !important;
  border-color: #3156ff !important;
  box-shadow: 0 8px 18px rgba(49,86,255,.18) !important;
}

.page-gap {
  border-color: transparent !important;
  background: transparent !important;
  color: #94a3b8 !important;
}

@media(max-width:700px){
  .task-list-options {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  .task-list-total {
    margin-left: 0 !important;
  }
  .pagination-wrap {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  .pagination-links {
    justify-content: flex-start !important;
  }
}


/* v0.5.40 — mobile collapsible task filters */
.task-filter-summary {
  display: none;
}

.task-filter-details {
  width: 100%;
}

.task-filter-details > form.filters-grid {
  margin-top: 0;
}

@media(max-width:900px){
  .task-mobile-filter-panel {
    padding: 0 !important;
    overflow: hidden !important;
  }

  .task-filter-summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    cursor: pointer !important;
    list-style: none !important;
    user-select: none !important;
    color: #111827 !important;
    font-weight: 900 !important;
  }

  .task-filter-summary::-webkit-details-marker {
    display: none !important;
  }

  .task-filter-summary::after {
    content: "⌄" !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 999px !important;
    background: #eef2ff !important;
    color: #3156ff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    transition: transform .18s ease !important;
  }

  .task-filter-summary b {
    margin-left: auto !important;
    margin-right: 2px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  .task-filter-details[open] .task-filter-summary {
    border-bottom: 1px solid #edf1f7 !important;
  }

  .task-filter-details[open] .task-filter-summary::after {
    transform: rotate(180deg) !important;
  }

  .task-filter-details[open] .task-filter-summary b {
    font-size: 0 !important;
  }

  .task-filter-details[open] .task-filter-summary b::after {
    content: "Згорнути" !important;
    font-size: 12px !important;
  }

  .task-filter-details > form.filters-grid {
    padding: 14px 16px 16px !important;
  }

  .task-filter-details:not([open]) > form.filters-grid {
    display: none !important;
  }

  .filters-card + .task-list-options-card {
    margin-top: 12px !important;
  }
}

/* v0.5.43 — project manual order and drag sorting */
.project-order-note {
  margin: -4px 0 14px !important;
  padding: 12px 16px !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.project-order-col {
  width: 92px !important;
  white-space: nowrap !important;
}

.project-order-cell {
  width: 92px !important;
  white-space: nowrap !important;
  color: #64748b !important;
  font-weight: 900 !important;
}

.project-drag-handle {
  width: 30px !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 8px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9px !important;
  background: #f8fafc !important;
  color: #3156ff !important;
  cursor: grab !important;
  user-select: none !important;
}

.project-order-number {
  display: inline-flex !important;
  min-width: 28px !important;
  justify-content: center !important;
}

tr.project-dragging {
  opacity: .55 !important;
}

tr.project-drag-over td {
  background: #eef2ff !important;
}

body.project-order-saving #projectsTable {
  opacity: .72 !important;
  pointer-events: none !important;
}

@media(max-width:700px){
  .project-order-note {
    font-size: 12px !important;
  }
  .project-order-col,
  .project-order-cell {
    width: 76px !important;
  }
  .project-drag-handle {
    width: 28px !important;
    height: 28px !important;
    margin-right: 5px !important;
  }
}

/* v0.5.44 — project passport order field */
.project-passport-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:10px 0 16px;
}
.project-passport-grid>div{
  border:1px solid var(--line,#edf1f7);
  background:#fbfdff;
  border-radius:12px;
  padding:10px 12px;
}
.project-passport-grid span{
  display:block;
  font-size:12px;
  line-height:1.2;
  margin-bottom:4px;
}
.project-passport-grid b{
  display:block;
  font-size:14px;
  color:#111827;
}
@media(max-width:700px){.project-passport-grid{grid-template-columns:1fr}}


/* v0.5.49 — compact dashboard stats on mobile */
.dashboard-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .dashboard-stats .card.stat {
    min-height: 78px !important;
    padding: 12px 14px !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .dashboard-stats .stat .icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
    font-size: 17px !important;
    flex: 0 0 36px !important;
  }

  .dashboard-stats .stat b {
    display: block !important;
    font-size: 22px !important;
    line-height: 1.05 !important;
  }

  .dashboard-stats .stat span {
    display: block !important;
    margin-top: 4px !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
  }
}

/* v0.5.50 — project order column: arrows only, no numeric value */
.project-order-col,
.project-order-cell {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  text-align: center !important;
}

.project-order-cell {
  color: #64748b !important;
}

.project-order-cell .project-drag-handle {
  margin-right: 0 !important;
}

.project-order-number {
  display: none !important;
}

@media(max-width:700px){
  .project-order-col,
  .project-order-cell {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
  }
}

/* v0.5.51 — modern illustrated profile style */
.profile-page-topbar{margin-bottom:16px}
.profile-modern-card{
  position:relative;
  max-width:760px;
  margin:0 auto 24px;
  padding:26px 30px 28px 30px!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 20px 55px rgba(15,23,42,.08)!important;
  overflow:hidden;
}
.profile-modern-card:before{
  content:'';
  position:absolute;
  right:-80px;
  top:-90px;
  width:240px;
  height:240px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(20,184,166,.10),rgba(49,86,255,.06) 48%,transparent 70%);
  pointer-events:none;
}
.profile-modern-badge{
  position:absolute;
  left:26px;
  top:24px;
  width:44px;
  height:44px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#13b8a6,#0f8f85);
  color:#fff;
  font-weight:900;
  font-size:22px;
  box-shadow:0 12px 24px rgba(19,184,166,.24);
}
.profile-modern-head{
  padding-left:66px;
  margin-bottom:18px;
  min-height:48px;
}
.profile-modern-head h2{
  margin:0 0 4px;
  color:#102a63;
  font-size:25px;
  line-height:1.15;
  letter-spacing:-.02em;
}
.profile-modern-head p{margin:0;font-size:13px}
.profile-modern-form{
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  gap:20px 28px;
  align-items:start;
}
.profile-modern-avatar-col{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  padding-top:4px;
}
.profile-modern-avatar-wrap{
  width:150px;
  height:150px;
  border-radius:999px;
  padding:5px;
  background:linear-gradient(135deg,#e0f2fe,#ccfbf1);
  box-shadow:0 14px 36px rgba(15,23,42,.11);
}
.avatar.profile-modern-avatar,
.profile-modern-avatar-wrap .avatar{
  width:140px!important;
  height:140px!important;
  border-radius:999px!important;
  font-size:42px!important;
}
.profile-modern-photo-link{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  color:#3156ff;
  font-weight:800;
  cursor:pointer;
  margin-top:2px;
}
.profile-modern-photo-link input{display:none!important}
.profile-modern-photo-link span:hover{text-decoration:underline}
.profile-modern-remove-photo{
  display:flex;
  align-items:center;
  gap:8px;
  color:#64748b;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}
.profile-modern-remove-photo input{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  margin:0!important;
  accent-color:#13b8a6;
}
.profile-modern-fields{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
}
.profile-modern-field{
  display:grid!important;
  gap:4px!important;
  margin:0!important;
}
.profile-modern-field span{
  color:#102a63!important;
  font-weight:800!important;
  font-size:14px!important;
  line-height:1.2!important;
}
.profile-modern-field input{
  height:42px!important;
  border:2px solid #dbe4f0!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#1f2a44!important;
  font-weight:700!important;
  padding:0 13px!important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.03)!important;
}
.profile-modern-field input:focus{
  border-color:#14b8a6!important;
  outline:4px solid rgba(20,184,166,.12)!important;
}
.profile-modern-field input[readonly]{background:#f8fafc!important;color:#64748b!important}
.profile-modern-checks{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 22px;
  margin-top:2px;
  padding-top:14px;
  border-top:1px solid #edf1f7;
}
.profile-modern-check{
  display:flex!important;
  align-items:flex-start!important;
  gap:11px!important;
  min-height:28px;
  margin:0!important;
  color:#102a63!important;
  font-weight:800!important;
  line-height:1.3!important;
  cursor:pointer;
}
.profile-modern-check input[type="checkbox"]{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:21px!important;
  height:21px!important;
  min-width:21px!important;
  max-width:21px!important;
  flex:0 0 21px!important;
  margin:0!important;
  padding:0!important;
  border:2px solid #13b8a6!important;
  border-radius:6px!important;
  background:#fff!important;
  position:relative!important;
  cursor:pointer!important;
  box-shadow:0 8px 18px rgba(19,184,166,.12)!important;
}
.profile-modern-check input[type="checkbox"]:checked{
  background:#13b8a6!important;
  border-color:#13b8a6!important;
}
.profile-modern-check input[type="checkbox"]:checked:after{
  content:''!important;
  position:absolute!important;
  left:6px!important;
  top:2px!important;
  width:6px!important;
  height:11px!important;
  border:solid #fff!important;
  border-width:0 2px 2px 0!important;
  transform:rotate(45deg)!important;
}
.profile-modern-check input[disabled]{opacity:1!important;cursor:not-allowed!important}
.profile-modern-check.muted-check{cursor:default!important}
.profile-modern-check span{display:block!important;font-size:15px!important;color:#102a63!important}
.profile-modern-actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  margin-top:4px;
}
.profile-modern-actions .btn{min-width:116px;justify-content:center}
@media(max-width:760px){
  .profile-modern-card{padding:22px 18px 22px!important;margin-left:0;margin-right:0}
  .profile-modern-badge{left:18px;top:20px;width:40px;height:40px;font-size:20px}
  .profile-modern-head{padding-left:52px;margin-bottom:14px}
  .profile-modern-head h2{font-size:21px}
  .profile-modern-form{grid-template-columns:1fr;gap:16px}
  .profile-modern-avatar-col{padding-top:0}
  .profile-modern-avatar-wrap{width:132px;height:132px}
  .avatar.profile-modern-avatar,.profile-modern-avatar-wrap .avatar{width:122px!important;height:122px!important;font-size:36px!important}
  .profile-modern-checks{grid-template-columns:1fr;gap:11px}
  .profile-modern-actions{justify-content:stretch}
  .profile-modern-actions .btn{width:100%}
}
@media(max-width:420px){
  .profile-modern-card{padding:20px 14px!important;border-radius:14px!important}
  .profile-modern-field input{height:40px!important}
}


/* v0.5.53.1 — mobile attendance summary and worker calendar */
@media(max-width:700px){
  .attendance-summary-grid{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 10px !important;
  }
  .attendance-summary-card{
    padding: 13px 12px !important;
    min-height: 112px !important;
  }
  .attendance-summary-card span{
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
  .attendance-summary-card b{
    font-size: 24px !important;
  }
  .attendance-summary-card small{
    font-size: 11px !important;
    line-height: 1.25 !important;
  }
  .attendance-total-card .summary-card-head{
    gap: 5px !important;
  }
  .attendance-total-card .planned-hours{
    font-size: 10px !important;
    padding: 3px 7px !important;
  }
}

.worker-calendar-wrap{
  padding: 14px 16px 18px;
}
.worker-calendar-weekdays{
  display:grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.worker-calendar-weekdays div{
  text-align:center;
  font-size:12px;
  font-weight:900;
  color:#64748b;
}
.worker-attendance-calendar{
  display:grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 7px;
}
.worker-attendance-day{
  min-height: 86px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  padding: 8px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  position:relative;
  cursor: default;
  text-align:left;
  box-shadow: 0 8px 20px rgba(15,23,42,.035);
}
.worker-attendance-day.editable-day{
  cursor:pointer;
}
.worker-attendance-day.editable-day:hover{
  border-color:#3156ff;
  box-shadow: 0 10px 24px rgba(49,86,255,.14);
}
.worker-attendance-day.is-empty{
  visibility:hidden;
  box-shadow:none;
}
.worker-attendance-day.locked-day{
  background:#f8fafc;
  color:#94a3b8;
}
.worker-attendance-day.has-hours{
  background:#eff6ff;
  border-color:#bfdbfe;
}
.worker-attendance-day.working-saturday{
  background:#f0fdf4;
  border-color:#bbf7d0;
}
.worker-attendance-day.working-saturday.has-hours{
  background:#dcfce7;
  color:#166534;
}
.worker-attendance-day.is-sunday{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#c2410c;
}
.worker-day-number{
  font-size:16px;
  font-weight:900;
  line-height:1;
}
.worker-day-week{
  font-size:11px;
  font-weight:800;
  color:#64748b;
}
.worker-day-hours{
  align-self:stretch;
  text-align:center;
  font-size:14px;
  font-weight:900;
  color:#3156ff;
  background:rgba(49,86,255,.08);
  border-radius:10px;
  padding:5px 3px;
}
.worker-attendance-day.working-saturday .worker-day-hours{
  color:#166534;
  background:rgba(22,163,74,.10);
}
.worker-attendance-day.is-sunday .worker-day-hours{
  color:#c2410c;
  background:rgba(249,115,22,.10);
}
.worker-attendance-day.locked-day .worker-day-hours{
  color:#94a3b8;
  background:#f1f5f9;
}
.worker-day-note{
  position:absolute;
  right:7px;
  top:5px;
  color:#f97316;
  font-weight:900;
}
.worker-calendar-legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:12px;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}
.worker-calendar-legend span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.legend-dot{
  width:12px;
  height:12px;
  border-radius:4px;
  display:inline-block;
  border:1px solid rgba(15,23,42,.1);
  background:#fff;
}
.legend-dot.workday{background:#eff6ff;}
.legend-dot.saturday{background:#dcfce7;}
.legend-dot.sunday{background:#fff7ed;}
.legend-dot.locked{background:#f1f5f9;}
@media(max-width:700px){
  .worker-calendar-wrap{
    padding: 12px 10px 14px !important;
  }
  .worker-calendar-weekdays{
    gap:4px;
  }
  .worker-attendance-calendar{
    gap:4px;
  }
  .worker-attendance-day{
    min-height: 66px;
    border-radius: 10px;
    padding: 6px 4px;
  }
  .worker-day-number{
    font-size: 13px;
  }
  .worker-day-week{
    font-size: 9px;
  }
  .worker-day-hours{
    font-size: 11px;
    padding: 4px 2px;
    border-radius: 8px;
  }
  .worker-calendar-legend{
    font-size: 11px;
    gap: 7px 10px;
  }
}
@media(max-width:380px){
  .worker-attendance-day{
    min-height: 60px;
    padding: 5px 3px;
  }
  .worker-day-hours{
    font-size: 10px;
  }
}

/* v0.5.54 — force attendance summary cards into 2 columns on mobile */
@media(max-width:700px){
  section.grid.attendance-summary-grid,
  section.grid.attendance-summary-grid[style],
  .attendance-summary-grid,
  .attendance-summary-grid[style]{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  .attendance-summary-grid .attendance-summary-card{
    min-width:0 !important;
    padding:12px 10px !important;
    min-height:108px !important;
  }
  .attendance-summary-grid .attendance-summary-card span{
    font-size:10.5px !important;
    line-height:1.15 !important;
    word-break:normal !important;
  }
  .attendance-summary-grid .attendance-summary-card b{
    font-size:23px !important;
    line-height:1.05 !important;
  }
  .attendance-summary-grid .attendance-summary-card small{
    font-size:10.5px !important;
    line-height:1.2 !important;
  }
}


/* v0.5.55 — attendance date and hours in two columns on all screens */
.attendance-form .attendance-date-field,
.attendance-form .attendance-hours-field{
  grid-column:auto !important;
}

@media(max-width:700px){
  .attendance-form{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:12px !important;
  }
  .attendance-form > .field:not(.attendance-date-field):not(.attendance-hours-field){
    grid-column:1 / -1 !important;
  }
  .attendance-form .attendance-date-field{
    grid-column:1 !important;
  }
  .attendance-form .attendance-hours-field{
    grid-column:2 !important;
  }
  .attendance-form .attendance-date-field input,
  .attendance-form .attendance-hours-field input{
    width:100% !important;
    min-width:0 !important;
  }
}

@media(max-width:380px){
  .attendance-form{
    gap:10px !important;
  }
  .attendance-form .attendance-date-field span,
  .attendance-form .attendance-hours-field span{
    font-size:12px !important;
  }
  .attendance-form .attendance-date-field input,
  .attendance-form .attendance-hours-field input{
    padding:10px 9px !important;
    font-size:14px !important;
  }
}


/* v0.5.55 — date and hours fields side-by-side in attendance form */
.attendance-form .attendance-date-field,
.attendance-form .attendance-hours-field{
  min-width:0 !important;
}

@media(min-width:701px){
  .attendance-form .attendance-date-field,
  .attendance-form .attendance-hours-field{
    grid-column:auto !important;
  }
}

@media(max-width:700px){
  .attendance-form{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
  }
  .attendance-form > .field:not(.attendance-date-field):not(.attendance-hours-field),
  .attendance-form > input[type="hidden"] + .field,
  .attendance-form .field.full{
    grid-column:1 / -1 !important;
  }
  .attendance-form .attendance-date-field{
    grid-column:1 / 2 !important;
  }
  .attendance-form .attendance-hours-field{
    grid-column:2 / 3 !important;
  }
  .attendance-form .attendance-date-field input,
  .attendance-form .attendance-hours-field input{
    width:100% !important;
  }
}

/* v0.5.57 — attendance entry modal and compact monthly records */
body.modal-open{overflow:hidden}
.attendance-modal{position:fixed;inset:0;z-index:2000;display:none;align-items:center;justify-content:center;padding:18px}
.attendance-modal.open{display:flex}
.attendance-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(3px)}
.attendance-modal-card{position:relative;z-index:1;width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 28px 80px rgba(15,23,42,.28);padding:20px}
.attendance-modal-card h3{margin:0 0 6px;font-size:20px;color:#111827}
.attendance-modal-note{margin:0 0 14px;font-size:13px;line-height:1.35}
.attendance-modal-close{position:absolute;right:12px;top:12px;width:34px;height:34px;border:0;border-radius:999px;background:#f1f5f9;color:#334155;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center}
.attendance-modal-close:hover{background:#e2e8f0;color:#111827}
.attendance-modal-form{display:grid;gap:12px}
.attendance-modal-form .field{margin:0}
.attendance-modal-form .readonly-box{min-height:42px}
.attendance-modal-form textarea{resize:vertical;min-height:86px}
.attendance-modal-actions{margin-top:4px;justify-content:flex-start;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.attendance-modal-actions .btn{justify-content:center;width:100%}
.attendance-record-row.record-hidden{display:none!important}
.attendance-records-more{padding:14px 16px;border-top:1px solid var(--line);display:flex;justify-content:center;background:#fff}
.attendance-records-more .btn{min-width:180px;justify-content:center}
.attendance-records-table td{vertical-align:middle}
@media(max-width:700px){.attendance-modal{align-items:flex-end;padding:0}.attendance-modal-card{width:100%;border-radius:18px 18px 0 0;padding:18px}.attendance-modal-actions{grid-template-columns:1fr}.attendance-records-table th:nth-child(4),.attendance-records-table td:nth-child(4){display:none}.attendance-records-table td,.attendance-records-table th{padding:10px 8px;font-size:13px}}

/* v0.5.58 — extra bottom spacing and compact form rows */
.main {
  padding-bottom: 58px !important;
}

.compact-fields {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(118px, max-content)) !important;
  gap: 14px !important;
  align-items: end !important;
  justify-content: start !important;
  width: 100% !important;
}

.compact-fields.full {
  grid-column: 1 / -1 !important;
}

.compact-fields .field {
  width: auto !important;
  min-width: 118px !important;
  margin: 0 !important;
}

.compact-fields .field span {
  white-space: nowrap !important;
}

.compact-fields input,
.compact-fields select {
  width: 100% !important;
  min-height: 42px !important;
}

.compact-fields .compact-field-priority {
  min-width: 96px !important;
  width: 96px !important;
}

.compact-fields .compact-field-order {
  min-width: 96px !important;
  width: 96px !important;
}

.compact-fields .compact-field-date {
  min-width: 150px !important;
  width: 150px !important;
}

.compact-fields .compact-field-status {
  min-width: 180px !important;
  width: 180px !important;
}

@media (max-width: 900px) {
  .main {
    padding-bottom: 52px !important;
  }

  .sidebar {
    padding-bottom: 52px !important;
  }

  .compact-fields {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)) !important;
    gap: 12px !important;
  }

  .compact-fields .field,
  .compact-fields .compact-field-priority,
  .compact-fields .compact-field-order,
  .compact-fields .compact-field-date,
  .compact-fields .compact-field-status {
    width: auto !important;
    min-width: 0 !important;
  }
}

@media (max-width: 420px) {
  .compact-fields {
    grid-template-columns: 1fr 1fr !important;
  }

  .compact-fields .compact-field-status,
  .compact-fields .compact-field-date {
    grid-column: auto !important;
  }
}

/* v0.5.60 — admin analytics for working hours */
.attendance-admin-kpi-grid{
  grid-template-columns:repeat(6,minmax(150px,1fr)) !important;
  gap:14px !important;
}
.admin-kpi-card b{
  font-size:28px;
}
.attendance-admin-control-card{
  padding:18px !important;
}
.attendance-admin-control-head{
  margin-bottom:14px;
}
.attendance-admin-control-head h3{
  margin:0;
  font-size:18px;
}
.attendance-admin-control-list{
  display:grid;
  gap:10px;
}
.attendance-control-row{
  display:grid;
  grid-template-columns:minmax(210px,1.1fr) minmax(180px,1fr) 92px;
  align-items:center;
  gap:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbfdff;
}
.attendance-control-person b{
  display:block;
  color:#111827;
  font-size:14px;
  margin-bottom:3px;
}
.attendance-control-person small{
  display:block;
  color:#64748b;
  font-size:12px;
  line-height:1.35;
}
.attendance-control-progress{
  height:10px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
  position:relative;
}
.attendance-control-progress span{
  display:block;
  height:100%;
  width:0;
  background:#16a34a;
  border-radius:999px;
}
.attendance-control-percent{
  text-align:right;
  display:grid;
  gap:2px;
}
.attendance-control-percent b{
  font-size:16px;
  color:#111827;
}
.attendance-control-percent span{
  font-size:12px;
  font-weight:800;
  color:#166534;
}
.attendance-control-row.status-risk .attendance-control-progress span{background:#ef4444}
.attendance-control-row.status-risk .attendance-control-percent span{color:#991b1b}
.attendance-control-row.status-warn .attendance-control-progress span{background:#f59e0b}
.attendance-control-row.status-warn .attendance-control-percent span{color:#854d0e}
.attendance-control-row.status-over .attendance-control-progress span{background:#6d3df5}
.attendance-control-row.status-over .attendance-control-percent span{color:#5b21b6}
@media(max-width:1300px){.attendance-admin-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}}
@media(max-width:760px){.attendance-admin-kpi-grid{grid-template-columns:1fr 1fr !important}.attendance-control-row{grid-template-columns:1fr;gap:8px}.attendance-control-percent{text-align:left;display:flex;gap:8px;align-items:center}.attendance-admin-control-card{padding:14px !important}}


/* v0.5.61 — compact admin working-hours KPI only */
.attendance-admin-kpi-grid-compact{
  grid-template-columns:repeat(3,minmax(180px,1fr)) !important;
}
@media(max-width:760px){
  .attendance-admin-kpi-grid-compact{grid-template-columns:1fr 1fr !important;}
  .attendance-admin-kpi-grid-compact .admin-kpi-card:last-child{grid-column:1 / -1;}
}

/* v0.5.62 — employee groups and attendance group selector */
.attendance-title-period-form .attendance-group-select {
  min-width: 170px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0 10px;
  font-weight: 800;
  color: #111827;
}
.employee-groups-page .table-card table td,
.employee-groups-page .table-card table th {
  vertical-align: middle;
}
@media(max-width:900px){
  .employee-groups-page[style]{grid-template-columns:1fr!important;}
  .attendance-title-period-form{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%;}
  .attendance-title-period-form select,
  .attendance-title-period-form .attendance-group-select{width:100%;min-width:0;}
}
@media(max-width:520px){
  .attendance-title-period-form{grid-template-columns:1fr;}
}

/* v0.5.64 — лікарняний та відпустка у робочих годинах */
.attendance-absence-options{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:2px;
}
.attendance-absence-check{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border:1px solid var(--border,#dbe3ee);
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  font-weight:600;
}
.attendance-absence-check input{
  width:18px;
  height:18px;
  margin:0;
}
.attendance-calendar .day-cell.absence-sick,
.worker-attendance-day.absence-sick{
  background:#fff1c7 !important;
  box-shadow:inset 0 0 0 1px #e6b94c;
}
.attendance-calendar .day-cell.absence-vacation,
.worker-attendance-day.absence-vacation{
  background:#dff3ff !important;
  box-shadow:inset 0 0 0 1px #69b9e7;
}
.attendance-calendar .day-cell .absence-mark{
  font-size:12px;
  line-height:1;
}
.worker-attendance-day.absence-sick .worker-day-hours,
.worker-attendance-day.absence-vacation .worker-day-hours{
  font-size:11px;
  font-weight:700;
}
.absence-sick-badge{
  background:#fff1c7 !important;
  color:#7b5a00 !important;
  border:1px solid #e6b94c;
}
.absence-vacation-badge{
  background:#dff3ff !important;
  color:#075b86 !important;
  border:1px solid #69b9e7;
}
@media(max-width:700px){
  .attendance-absence-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .attendance-absence-check{justify-content:flex-start;padding:10px;}
}

/* v0.5.72 — admin service center */
.service-tabs{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;margin:0 0 18px;overflow-x:auto;white-space:nowrap}
.service-tabs a{flex:0 0 auto;width:auto}
.service-status-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}
.service-status-item{display:grid;gap:8px;min-height:128px;align-content:start}
.service-status-item span{color:#667085;font-size:12px;font-weight:900;text-transform:uppercase}
.service-status-item b{font-size:20px;color:#111827;overflow-wrap:anywhere}
.service-status-item small{color:#64748b}
.service-info-section{margin-top:0}.service-info-section .section-head{margin-bottom:14px}
.service-info-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.service-info-list>div{padding:14px;border:1px solid var(--line);border-radius:8px;background:#fbfdff}
.service-info-list b,.service-info-list span{display:block}.service-info-list span{margin-top:5px;color:#64748b;font-size:13px;line-height:1.45}
.service-backup-settings{margin-bottom:16px}.service-backup-settings p{margin:7px 0 0}
.service-backup-actions{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:18px}
.service-retention-form{display:flex;align-items:flex-end;gap:10px}.service-retention-form .field{width:230px}.service-retention-form input{height:40px}
.service-backup-table .table-title{display:flex;justify-content:space-between;gap:12px}
.service-download-column{width:66px}.service-download-button{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:8px;background:#eef2ff;color:#3156ff;font-size:22px;font-weight:900;line-height:1}
.service-download-button:hover{background:#3156ff;color:#fff}.service-user-agent{max-width:460px;overflow-wrap:anywhere}
@media(max-width:1100px){.service-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.service-info-list{grid-template-columns:1fr}}
@media(max-width:700px){.service-status-grid{grid-template-columns:1fr}.service-backup-actions,.service-retention-form{align-items:stretch;flex-direction:column}.service-retention-form .field,.service-backup-actions form,.service-backup-actions .btn{width:100%}.service-download-column{width:52px}}

/* v0.5.74 — attendance actions above the mobile keyboard */
.attendance-modal-card{max-height:calc(100dvh - 36px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:700px){
  .attendance-modal-card{max-height:100vh;max-height:100dvh}
  .attendance-modal-actions{position:sticky;top:0;z-index:4;grid-template-columns:1fr 1fr!important;margin:0;padding:8px 0 10px;background:#fff;border-bottom:1px solid var(--line)}
}

/* v0.5.75 — department purchase orders */
.sidebar{overflow-y:auto}
.orders-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.orders-photo-toggle{display:inline-flex;align-items:center;gap:8px;font-weight:800;color:#475569;white-space:nowrap}.orders-photo-toggle input{width:18px;height:18px;margin:0}
.orders-table-card{overflow:auto}.orders-table{min-width:1680px}.orders-table th,.orders-table td{vertical-align:middle}.orders-table th{white-space:nowrap}.orders-table .order-photo-col{display:none;width:84px;min-width:84px;text-align:center}.orders-table-card.show-order-photos .order-photo-col{display:table-cell}.order-table-photo{display:block;width:58px;height:48px;object-fit:cover;border-radius:7px;border:1px solid var(--line);margin:auto}.order-no-photo{color:#94a3b8}.order-name-link{display:inline-block;min-width:190px;max-width:320px;color:#1d4ed8;font-weight:900}.order-external-link{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#eef2ff;color:#3156ff;font-size:20px;font-weight:900}.order-external-link:hover{background:#3156ff;color:#fff}.order-note-cell{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-quick-form{margin:0}.order-inline-select{width:138px;min-width:138px;height:36px;padding:6px 28px 6px 10px;border:0;border-radius:999px;font-size:13px;font-weight:900;cursor:pointer}.order-pill{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}
.orders-table .order-actions-col{width:58px;min-width:58px;text-align:center;padding-left:8px;padding-right:8px}.order-row-menu{position:relative;display:inline-block}.order-row-menu>summary{list-style:none;width:36px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:#fff;color:#475569;font-size:21px;font-weight:900;letter-spacing:0;cursor:pointer}.order-row-menu>summary::-webkit-details-marker{display:none}.order-row-menu>summary:hover,.order-row-menu[open]>summary{background:#f3f6fb;color:#111827}.order-row-menu-popover{position:absolute;right:0;top:40px;z-index:40;width:150px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 16px 36px rgba(15,23,42,.16);text-align:left}.orders-table tbody tr:nth-last-child(-n+3) .order-row-menu-popover{top:auto;bottom:40px}.order-row-menu-popover form{margin:0}.order-delete-action{width:100%;min-height:36px;padding:8px 10px;border:0;border-radius:6px;background:#fff;color:#dc2626;font:inherit;font-weight:800;text-align:left;cursor:pointer}.order-delete-action:hover{background:#fef2f2}
.order-urgency-1{background:#fee2e2!important;color:#991b1b!important}.order-urgency-2{background:#fef3c7!important;color:#854d0e!important}.order-urgency-3{background:#dcfce7!important;color:#166534!important}
.order-status-not_done{background:#fee2e2!important;color:#991b1b!important}.order-status-processing{background:#fef3c7!important;color:#854d0e!important}.order-status-on_the_way{background:#dcfce7!important;color:#166534!important}.order-status-arrived{background:#dbeafe!important;color:#1e40af!important}
.order-photo-upload input[type=file]{padding:9px}.order-current-photo{display:flex;align-items:center;gap:14px;margin-top:8px}.order-current-photo img{width:110px;height:82px;object-fit:cover;border:1px solid var(--line);border-radius:8px}.order-current-photo .checkline{display:flex;align-items:center;gap:8px}.order-current-photo .checkline input{width:18px;height:18px}
.order-view-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.order-view-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.6fr);gap:16px}.order-view-content{display:grid;grid-template-columns:minmax(220px,360px) 1fr;gap:20px}.order-view-photo{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:8px;background:#f8fafc}.order-view-photo img{width:100%;height:100%;object-fit:contain}.order-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.order-details-grid>div{padding:12px;border:1px solid var(--line);border-radius:8px;background:#fbfdff}.order-details-grid span,.order-view-note>span{display:block;color:#64748b;font-size:12px;font-weight:900;margin-bottom:5px}.order-details-grid b{overflow-wrap:anywhere}.order-text-link{color:#1d4ed8}.order-view-note{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.order-view-note p{margin:0;line-height:1.55}.order-history .section-head{margin-bottom:14px}.order-history-list{display:grid;gap:10px}.order-history-item{padding:12px;border:1px solid var(--line);border-radius:8px;background:#fbfdff}.order-history-item>div{display:flex;justify-content:space-between;gap:10px}.order-history-item span{color:#64748b;font-size:11px;text-align:right}.order-history-item p{margin:8px 0 0;color:#475569;line-height:1.4}.order-history-item del{color:#991b1b}.order-history-item ins{color:#166534;text-decoration:none;font-weight:800}.order-history-item strong{padding:0 7px}.order-form-grid textarea{resize:vertical}
@media(max-width:1050px){.orders-topbar{align-items:stretch}.orders-toolbar{justify-content:space-between}.order-view-layout{grid-template-columns:1fr}.order-view-content{grid-template-columns:280px 1fr}}
@media(max-width:700px){.orders-toolbar{display:grid;grid-template-columns:1fr}.orders-toolbar .btn{justify-content:center}.order-view-content{grid-template-columns:1fr}.order-view-photo{max-height:300px}.order-details-grid{grid-template-columns:1fr}.order-history-item>div{display:grid}.order-history-item span{text-align:left}}

/* v0.5.76 — order quick editing and expanded details */
.app-version{margin-top:3px!important;color:#94a3b8!important;font-size:10px!important;font-weight:700;line-height:1.2;letter-spacing:0}
.order-view-layout{grid-template-columns:1fr}
.order-view-content{grid-template-columns:200px minmax(0,1fr);align-items:start}
.order-view-photo,.order-view-photo-placeholder{width:200px;height:200px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}
.order-view-photo{aspect-ratio:auto}
.order-view-photo img{display:block;width:100%;height:100%;object-fit:contain}
.order-view-photo-placeholder{display:grid;place-items:center;padding:16px;color:#94a3b8;text-align:center}
.order-view-photo-placeholder span{font-size:13px;font-weight:800}
.order-details-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-content:start}
.order-detail-tile{min-width:0;min-height:78px}
.order-detail-select{display:block;width:100%;min-width:0;height:36px;padding:6px 30px 6px 10px;border:1px solid transparent;border-radius:8px;font-size:13px;font-weight:900;cursor:pointer}
.order-detail-tile .order-pill{display:inline-flex;margin-bottom:0}
.order-history-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.order-comments .section-head{margin-bottom:14px}
.order-comment-list{display:grid;gap:10px}
.order-comment-item{padding:13px 14px;border:1px solid var(--line);border-radius:8px;background:#fbfdff}
.order-comment-item>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.order-comment-item time{color:#64748b;font-size:11px;white-space:nowrap}
.order-comment-item p{margin:8px 0 0;color:#334155;line-height:1.55;overflow-wrap:anywhere}
.order-comment-form{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.order-comment-form textarea{resize:vertical}
.order-comment-form .form-actions{margin-top:12px}
.alert.warning{background:#fef3c7;color:#854d0e;border-color:#fde68a}
@media(max-width:1200px){.order-details-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.order-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-history-list{grid-template-columns:1fr}}
@media(max-width:700px){.order-view-content{grid-template-columns:1fr}.order-view-photo,.order-view-photo-placeholder{width:200px;height:200px;max-height:none;margin:0 auto}.order-details-grid{grid-template-columns:1fr}.order-comment-item>div{align-items:flex-start;display:grid;gap:3px}}

/* v0.5.78 — recent tracked shipments on the dashboard */
.dashboard-shipments{margin-top:16px}
.dashboard-shipments-title{display:flex;align-items:center;justify-content:space-between;gap:16px}
.dashboard-shipments-title a{color:#3156ff;font-size:13px;font-weight:900;white-space:nowrap}
.dashboard-shipment-link{color:#1d4ed8;font-weight:900}
.dashboard-tracking-number{display:inline-block;padding:5px 8px;border-radius:6px;background:#f1f5f9;color:#334155;font-family:Consolas,"Courier New",monospace;font-size:13px;font-weight:800;white-space:nowrap}
@media(max-width:700px){.dashboard-shipments-title{align-items:flex-start}.dashboard-shipments table{min-width:760px}}

/* v0.5.80 — product image preview before saving an order */
.order-link-preview{margin-top:10px;width:200px}
.order-link-preview[hidden]{display:none}
.order-link-preview-frame{position:relative;width:200px;height:200px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#f8fafc}
.order-link-preview-frame img{display:block;width:100%;height:100%;object-fit:contain}
.order-link-preview-remove{position:absolute;top:7px;right:7px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#fff;color:#b42318;box-shadow:0 2px 10px rgba(15,23,42,.2);font-size:22px;font-weight:900;line-height:1;cursor:pointer}
.order-link-preview-remove:hover{background:#fee2e2}
.order-link-preview-status{display:block;margin-top:7px;color:#166534;font-size:12px;font-weight:800}
.order-link-preview-status[hidden]{display:none}
.order-link-preview-status.is-muted{color:#64748b}
@media(max-width:700px){.order-link-preview{margin-left:auto;margin-right:auto}}

/* v0.5.97 — keep yesterday's attendance target visible on mobile */
.planned-hours-break{display:none}
@media(max-width:700px){
  .attendance-total-card .planned-hours{white-space:normal!important;line-height:1.35!important}
  .attendance-total-card .planned-hours-separator{display:none!important}
  .attendance-total-card .planned-hours-break{display:block}
}

/* ===== v0.6.0: безпека, 2FA, сесії, облік часу, RFID ===== */
.nav-logout-form{margin:0}
.nav-logout{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border:0;border-radius:10px;background:transparent;color:#aeb8c9;font:inherit;font-weight:650;font-size:13px;cursor:pointer;text-align:left}
.nav-logout:hover{background:#1d2740;color:#fff}
.sidebar-collapsed .nav-logout{justify-content:center}
.btn.small{min-height:30px;padding:6px 10px;font-size:12px}
.link-button{border:0;background:none;padding:0;color:#3156ff;font:inherit;font-weight:700;cursor:pointer}
.link-button:hover{text-decoration:underline}
.table-wrap{overflow:auto}
.table-wrap table th,.table-wrap table td{white-space:nowrap}
.compact-topbar{margin:0 0 12px}
.compact-topbar h2{margin:0}
.totp-setup{display:grid;grid-template-columns:auto 1fr;gap:24px;align-items:start;margin-top:12px}
.totp-qr{background:#fff;border:1px solid #edf1f7;border-radius:12px;padding:8px;min-width:216px;min-height:216px;display:grid;place-items:center}
.totp-secret{font-size:16px;letter-spacing:.08em;background:#f3f6fb;padding:6px 10px;border-radius:8px;word-break:break-all}
.recovery-codes{font-size:16px;line-height:1.7;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:14px 18px;columns:2;max-width:420px}
.setup-steps{padding-left:20px;line-height:1.6}
.audit-details{max-width:520px;max-height:320px;overflow:auto;font-size:12px;background:#f8fafc;border-radius:8px;padding:10px;white-space:pre-wrap}
.header-timer{display:inline-flex;align-items:center;gap:6px;margin-right:12px;padding:6px 12px;border-radius:999px;background:#e8f8f3;color:#0f8f71;font-size:12px;font-weight:800;white-space:nowrap}
.header-timer:hover{background:#d1f2e7}
.task-time-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start;margin-bottom:10px}
.task-time-actions form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.task-time-manual summary{cursor:pointer;color:#3156ff;font-weight:700;padding:9px 0}
.task-time-manual .form-grid{margin-top:10px;min-width:320px}
.task-time-table{margin-top:10px}
.task-time-table td,.task-time-table th{padding:8px 10px}
.time-project-row td{background:#f8fafc}
.attendance-lock-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.attendance-lock-note{max-width:420px}
.rfid-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.rfid-actions form{margin:0}
.rfid-secret{margin-top:8px;font-size:12px;word-break:break-all;max-width:420px}
.inline-form{display:flex;gap:8px;align-items:center}
.inline-form select{min-width:200px}
@media(max-width:900px){.totp-setup{grid-template-columns:1fr}.recovery-codes{columns:1}.header-timer{display:none}}
@media print{.sidebar,.app-header,.topbar .btn,.actions{display:none!important}.main{margin:0!important}}

/* v0.6.5: години у клітинках відпустки/лікарняного — дрібним шрифтом, без збільшення рядка */
.attendance-calendar .day-cell .absence-cell{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;gap:1px}
.attendance-calendar .day-cell .absence-hours{font-size:10px;font-weight:800;line-height:1;color:#0f172a}
.worker-attendance-day .absence-hours{display:block;font-size:10px;font-weight:800;line-height:1.1;margin-top:1px;color:#0f172a}
.attendance-absence-hint{font-size:12px;margin:-4px 0 4px}
