:root {
    --bg: #f7f8f8;
    --line: #e1e5e8;
    --text: #2f3437;
    --muted: #728089;
    --brand-dark: #505050;
    --accent: #f07030;
    --accent-soft: #fff1eb;
    --card: #ffffff;
    --danger: #d93025;
    --shadow: 0 1px 2px rgba(47, 52, 55, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.45; background: var(--bg); color: var(--text); user-select: none; }
input, select, textarea, [contenteditable="true"] { user-select: text; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.login-body { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.login-card { width: 360px; background: #fff; padding: 24px; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(15, 23, 42, .16); }
.login-card h1 { font-size: 22px; margin: 0 0 18px; }
.login-card-note { margin: -8px 0 16px; color: var(--muted); }
.login-links { display: flex; justify-content: flex-end; margin-top: 14px; }
.login-links a { color: var(--accent); font-weight: 700; }
.login-links a:hover { text-decoration: underline; }
.app-shell { min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); background: #fff; padding: 10px 16px; }
.app-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { display: inline-flex; align-items: center; color: var(--brand-dark); }
.brand-logo-img { display: block; width: auto; height: 38px; max-width: min(520px, 62vw); object-fit: contain; object-position: left center; }
.app-title { min-width: 0; overflow: hidden; color: #111827; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 10px; color: #334155; font-size: 12px; }
.round-icon-button { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #0f172a; font-weight: 800; cursor: pointer; }
.round-icon-button svg { width: 17px; height: 17px; }
.round-icon-button:hover { border-color: #cbd5e1; box-shadow: 0 0 0 3px rgba(240, 112, 48, .12); }
.avatar { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border: 0; border-radius: 50%; color: #fff; background: var(--accent); font-weight: 800; line-height: 1; padding: 0; }
.avatar.has-image { background: transparent; }
.avatar img, .account-face img, .profile-avatar-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.account-menu { position: relative; display: flex; align-items: center; }
.account-trigger { cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .52); }
.account-trigger:hover, .account-menu.open .account-trigger { box-shadow: 0 0 0 3px rgba(240, 112, 48, .16); }
.account-dropdown { position: absolute; top: calc(100% + 12px); right: 0; z-index: 120; display: none; width: 304px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 18px 42px rgba(15, 23, 42, .18); padding: 16px; }
.account-menu.open .account-dropdown { display: block; }
.account-summary { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.account-summary strong, .account-summary span, .account-summary small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-summary strong { color: #111827; font-size: 14px; }
.account-summary span { color: #475569; }
.account-summary small { width: fit-content; max-width: 100%; margin-top: 5px; border-radius: 5px; background: #eef4ff; color: #2457c5; padding: 3px 6px; font-size: 11px; }
.account-face { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.account-links { display: grid; gap: 4px; padding: 14px 0 0; }
.account-links a { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 42px; border-radius: 7px; padding: 7px 8px; color: #0f172a; }
.account-links a:hover { background: #f8fafc; color: var(--accent); }
.account-link-group { margin: 10px 2px 3px; padding-top: 10px; border-top: 1px solid var(--line); color: #64748b; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.account-links-secondary { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.menu-icon { display: grid; place-items: center; color: #0f172a; }
.menu-icon svg { width: 18px; height: 18px; }
.logout { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.tabs { display: flex; align-items: center; gap: 14px; min-height: 48px; overflow-x: auto; overflow-y: hidden; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tabs a { flex: 0 0 auto; display: flex; align-items: center; min-height: 48px; border-bottom: 2px solid transparent; color: #263545; }
.tabs .active { color: var(--brand-dark); border-bottom-color: var(--accent); font-weight: 700; }
.content { min-height: calc(100vh - 105px); padding: 22px 24px 28px; }
.page-title { margin: 0 0 16px; font-size: 24px; color: #111827; }
.page-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.view-switch { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.view-switch a { min-width: 78px; padding: 8px 12px; color: #475569; text-align: center; font-weight: 800; }
.view-switch a + a { border-left: 1px solid var(--line); }
.view-switch a.is-active { background: var(--accent); color: #fff; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.panel-title { margin: -16px -16px 14px; padding: 10px 14px; border-radius: 8px 8px 0 0; background: #fff; border-bottom: 1px solid var(--line); color: #111827; font-weight: 800; }
.admin-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.admin-shortcut { display: grid; gap: 6px; min-height: 92px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; color: inherit; text-decoration: none; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.admin-shortcut:hover, .admin-shortcut:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); outline: none; }
.admin-shortcut strong { color: #111827; }
.admin-shortcut span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.filter-panel { padding-top: 16px; }
.collapsible-panel-title { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.collapsible-panel-label { display: inline-flex; align-items: center; gap: 8px; }
.small-icon-button { width: 20px; height: 20px; min-height: 20px; border: 0; border-radius: 0; background: transparent; color: #52677a; padding: 0; font-size: 16px; line-height: 1; cursor: pointer; }
.small-icon-button:hover { color: var(--accent); background: transparent; }
.filter-panel.is-collapsed { padding-bottom: 0; }
.filter-panel.is-collapsed #top-filter-content { display: none; }
.filter-panel.is-collapsed #kanban-filter-content { display: none; }
.grid { width: 100%; border-collapse: collapse; background: #fff; }
.grid th, .grid td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; font-size: 13px; }
.grid th { background: #f8fafc; font-weight: 700; color: #334155; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { min-height: 96px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 16px; box-shadow: var(--shadow); }
.metric-card span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.metric-card strong { display: block; color: #111827; font-size: 28px; line-height: 1.1; }
.dashboard-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; align-items: start; gap: 16px; }
.dashboard-widget { position: relative; grid-column: span 3; min-width: 0; min-height: 156px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 16px; box-shadow: var(--shadow); cursor: grab; transition: grid-column .24s ease, min-height .24s ease, box-shadow .18s ease, transform .34s cubic-bezier(.22, 1, .36, 1), border-color .18s ease, opacity .16s ease; }
.dashboard-widget:hover, .dashboard-widget.is-selected { border-color: #cbd5e1; box-shadow: 0 8px 22px rgba(15, 23, 42, .10); }
.dashboard-widget.is-dragging { cursor: grabbing; }
.dashboard-widget.is-drag-proxy { position: fixed; z-index: 3000; margin: 0; pointer-events: none; cursor: grabbing; opacity: .96; transform: scale(1.015); box-shadow: 0 22px 48px rgba(15, 23, 42, .24); transition: box-shadow .16s ease, opacity .16s ease; }
.dashboard-widget-placeholder { grid-column: span 3; min-height: 156px; border: 2px dashed #f26322; border-radius: 8px; background: rgba(242, 99, 34, .08); box-shadow: inset 0 0 0 1px rgba(242, 99, 34, .08); transition: grid-column .24s ease, min-height .24s ease, transform .34s cubic-bezier(.22, 1, .36, 1), background .18s ease, border-color .18s ease; }
.dashboard-widget-placeholder.dashboard-widget--1 { grid-column: span 1; }
.dashboard-widget-placeholder.dashboard-widget--2 { grid-column: span 2; }
.dashboard-widget-placeholder.dashboard-widget--3 { grid-column: span 3; }
body.is-dashboard-dragging { cursor: grabbing; user-select: none; }
.dashboard-widget.is-resizing { z-index: 4; cursor: default; border-color: var(--accent); box-shadow: 0 14px 34px rgba(15, 23, 42, .18); transition: border-color .18s ease, box-shadow .18s ease; }
.dashboard-drag-preview { z-index: 5000; overflow: hidden; border: 1px solid #cbd5e1 !important; border-radius: 8px; background: #fff; box-shadow: 0 18px 42px rgba(15, 23, 42, .24) !important; opacity: .94; pointer-events: none; transform: scale(.98); }
.dashboard-drag-preview .dashboard-widget-resize-handle,
.dashboard-drag-preview .dashboard-layout-resize-handle { display: none !important; }
.dashboard-widget-resize-handle { position: absolute; z-index: 3; background: transparent; opacity: 0; touch-action: none; outline: none; transition: opacity .12s ease; }
.dashboard-widget:hover .dashboard-widget-resize-handle,
.dashboard-widget.is-selected .dashboard-widget-resize-handle,
.dashboard-widget.is-resizing .dashboard-widget-resize-handle { opacity: 1; }
.dashboard-widget-resize-handle.is-left, .dashboard-widget-resize-handle.is-right { top: 22px; bottom: 22px; width: 12px; cursor: ew-resize; }
.dashboard-widget-resize-handle.is-left { left: -6px; }
.dashboard-widget-resize-handle.is-right { right: -6px; }
.dashboard-widget-resize-handle.is-top, .dashboard-widget-resize-handle.is-bottom { right: 22px; left: 22px; height: 12px; cursor: ns-resize; }
.dashboard-widget-resize-handle.is-top { top: -6px; }
.dashboard-widget-resize-handle.is-bottom { bottom: -6px; }
.dashboard-widget-resize-handle.is-top-left, .dashboard-widget-resize-handle.is-top-right,
.dashboard-widget-resize-handle.is-bottom-left, .dashboard-widget-resize-handle.is-bottom-right { z-index: 5; width: 28px; height: 28px; }
.dashboard-widget-resize-handle.is-top-left { top: -10px; left: -10px; cursor: nwse-resize; }
.dashboard-widget-resize-handle.is-bottom-right { right: -10px; bottom: -10px; cursor: nwse-resize; }
.dashboard-widget-resize-handle.is-top-right { top: -10px; right: -10px; cursor: nesw-resize; }
.dashboard-widget-resize-handle.is-bottom-left { bottom: -10px; left: -10px; cursor: nesw-resize; }
.dashboard-widget--1 { grid-column: span 1; }
.dashboard-widget--2 { grid-column: span 2; }
.dashboard-widget--3 { grid-column: span 3; }
.dashboard-widget .panel-title { margin-bottom: 12px; }
.dashboard-widget .dashboard-grid, .dashboard-widget .quick-actions { margin-bottom: 0; }
.dashboard-operational-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dashboard-operational-metrics a { display: grid; gap: 6px; min-height: 82px; border: 1px solid var(--line); border-radius: 6px; padding: 12px; color: #334155; text-decoration: none; }
.dashboard-operational-metrics a:hover { border-color: var(--accent); }
.dashboard-operational-metrics span { color: var(--muted); font-size: 12px; font-weight: 700; }
.dashboard-operational-metrics strong { color: #111827; font-size: 26px; }
.dashboard-risk-list, .dashboard-project-consumption { display: grid; gap: 8px; }
.dashboard-risk-list a { display: grid; gap: 3px; border-left: 3px solid #dc2626; background: #fef2f2; padding: 9px 10px; color: #7f1d1d; text-decoration: none; }
.dashboard-risk-list a:hover { background: #fee2e2; }
.dashboard-risk-list span, .dashboard-project-consumption span { color: var(--muted); font-size: 12px; }
.dashboard-project-consumption > div { display: grid; gap: 4px; }
.dashboard-late-list { display: grid; gap: 8px; }
.dashboard-late-list > div { display: grid; gap: 3px; border-left: 3px solid #f97316; background: #fff7ed; padding: 9px 10px; }
.dashboard-late-list span { color: #9a3412; font-size: 12px; }
.dashboard-birthday-list { display: grid; gap: 8px; }
.dashboard-birthday-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left: 3px solid var(--accent); background: #fff7ed; padding: 9px 10px; }
.dashboard-birthday-list span { color: #9a3412; font-size: 12px; font-weight: 800; }
.dashboard-widget-action { margin: 0 0 10px; }
.notification-menu { position: relative; }
.notification-dropdown { position: absolute; top: calc(100% + 12px); right: 0; z-index: 130; display: none; width: 320px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 18px 42px rgba(15, 23, 42, .18); padding: 12px; }
.notification-menu.open .notification-dropdown { display: grid; gap: 10px; }
.notification-badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; line-height: 17px; text-align: center; }
.notification-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.notification-item { display: grid; gap: 3px; border-left: 3px solid #f97316; background: #fff7ed; padding: 8px 10px; }
.notification-item.is-read { border-left-color: #cbd5e1; background: #f8fafc; color: #64748b; }
.notification-item span { font-size: 12px; color: #475569; }
.notification-dropdown .actions { justify-content: flex-end; }
.kanban-confirm-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(15, 23, 42, .35); padding: 24px; }
.kanban-confirm-overlay[hidden] { display: none; }
.kanban-confirm-modal { width: min(760px, 100%); background: #fff; border-top: 4px solid var(--accent); box-shadow: 0 24px 70px rgba(15, 23, 42, .28); padding: 20px; }
.kanban-confirm-modal h2 { margin: 0 0 8px; font-size: 20px; }
.kanban-confirm-modal .actions { justify-content: flex-end; margin-top: 14px; }
.kanban-confirm-modal textarea { resize: vertical; min-height: 84px; }
.kanban-confirm-modal .span-3 { grid-column: 1 / -1; }
.public-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.public-link-card { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; }
.public-link-card input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.public-link-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.public-link-inline input { flex: 1 1 320px; min-width: 260px; height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.danger-zone { border-color: #fecaca; }
.btn.danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.public-form-shell { width: min(920px, calc(100% - 32px)); margin: 28px auto; }
.public-form-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.public-form-brand img { height: 42px; width: auto; }
.public-form-shell .panel { box-shadow: var(--shadow); }
.dashboard-layout-editor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; align-items: start; gap: 12px; margin-bottom: 20px; }
.profile-permission-group { margin: 18px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px; box-shadow: var(--shadow); }
.profile-permission-group h2 { margin: 0 0 8px; font-size: 16px; color: #111827; }
.profile-permission-description { margin: -2px 0 12px; color: var(--muted); font-size: 13px; }
.permission-group-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.btn.small { min-height: 30px; padding: 5px 9px; font-size: 12px; }
.dashboard-layout-item { position: relative; grid-column: span 3; display: grid; gap: 14px; min-width: 0; min-height: 156px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px; cursor: grab; user-select: none; transition: grid-column .18s ease, min-height .18s ease, box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.dashboard-layout-item--1 { grid-column: span 1; }
.dashboard-layout-item--2 { grid-column: span 2; }
.dashboard-layout-item--3 { grid-column: span 3; }
.dashboard-layout-item:hover, .dashboard-layout-item.is-selected { border-color: #cbd5e1; box-shadow: 0 8px 22px rgba(15, 23, 42, .10); }
.dashboard-layout-item.is-dragging { opacity: .62; cursor: grabbing; transform: scale(.985); }
.dashboard-layout-item.is-disabled { background: #f8fafc; opacity: .65; }
.dashboard-layout-toggle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; }
.dashboard-layout-toggle strong, .dashboard-layout-toggle small { display: block; }
.dashboard-layout-toggle small { margin-top: 3px; color: var(--muted); }
.dashboard-layout-item.is-resizing { z-index: 4; cursor: default; border-color: var(--accent); box-shadow: 0 14px 34px rgba(15, 23, 42, .18); transition: border-color .18s ease, box-shadow .18s ease; }
.dashboard-layout-resize-handle { position: absolute; z-index: 3; background: transparent; opacity: 0; touch-action: none; outline: none; transition: opacity .12s ease; }
.dashboard-layout-item:hover .dashboard-layout-resize-handle,
.dashboard-layout-item.is-selected .dashboard-layout-resize-handle,
.dashboard-layout-item.is-resizing .dashboard-layout-resize-handle { opacity: 1; }
.dashboard-layout-resize-handle.is-left, .dashboard-layout-resize-handle.is-right { top: 22px; bottom: 22px; width: 12px; cursor: ew-resize; }
.dashboard-layout-resize-handle.is-left { left: -6px; }
.dashboard-layout-resize-handle.is-right { right: -6px; }
.dashboard-layout-resize-handle.is-top, .dashboard-layout-resize-handle.is-bottom { right: 22px; left: 22px; height: 12px; cursor: ns-resize; }
.dashboard-layout-resize-handle.is-top { top: -6px; }
.dashboard-layout-resize-handle.is-bottom { bottom: -6px; }
.dashboard-layout-resize-handle.is-top-left, .dashboard-layout-resize-handle.is-top-right,
.dashboard-layout-resize-handle.is-bottom-left, .dashboard-layout-resize-handle.is-bottom-right { z-index: 5; width: 28px; height: 28px; }
.dashboard-layout-resize-handle.is-top-left { top: -10px; left: -10px; cursor: nwse-resize; }
.dashboard-layout-resize-handle.is-bottom-right { right: -10px; bottom: -10px; cursor: nwse-resize; }
.dashboard-layout-resize-handle.is-top-right { top: -10px; right: -10px; cursor: nesw-resize; }
.dashboard-layout-resize-handle.is-bottom-left { bottom: -10px; left: -10px; cursor: nesw-resize; }
.profile-workspace { max-width: 994px; margin: 0 auto; padding: 0; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: stretch; }
.profile-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); padding: 20px; }
.profile-card > header { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.profile-avatar-preview { flex: 0 0 auto; display: grid; place-items: center; width: 84px; height: 84px; min-width: 84px; min-height: 84px; overflow: hidden; border-radius: 50%; background: var(--accent); color: #fff; font-size: 24px; font-weight: 800; }
.profile-card h2, .profile-card p { margin: 0; }
.profile-card h2 { color: #111827; font-size: 20px; }
.profile-card p { color: var(--muted); }
.profile-card header span { display: inline-flex; width: fit-content; margin-top: 8px; border-radius: 4px; background: #dbeafe; color: #1d4ed8; padding: 3px 7px; font-size: 11px; }
.profile-form { display: grid; gap: 14px; }
.profile-form label { display: grid; gap: 7px; color: #334155; font-weight: 700; }
.profile-form input:not([type="checkbox"]) { width: 100%; min-height: 40px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; padding: 8px 10px; color: #111827; font: inherit; }
.profile-form input[type="file"] { padding: 7px 10px; }
.profile-form input:disabled { background: #f8fafc; color: #334155; }
.profile-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 112, 48, .16); outline: 0; }
.profile-remove-row { min-height: 50px; display: flex; align-items: center; }
.check-label { display: inline-flex !important; grid-template-columns: none !important; align-items: center; gap: 10px; color: #334155; font-weight: 700; }
.profile-form footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.profile-selected-file[hidden] { display: none; }
.profile-info { min-height: 314px; }
.profile-info h2 { margin-bottom: 18px; }
.profile-info dl { display: grid; gap: 8px; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.profile-info dt { color: var(--muted); }
.profile-info dd { margin: 0 0 6px; color: #111827; font-weight: 800; }
.profile-reset-form { display: grid; gap: 10px; }
.profile-reset-form .btn { justify-self: start; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dashboard-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; border-radius: 8px; padding: 12px; }
.dashboard-status.is-ok { border: 1px solid #bbf7d0; background: #ecfdf3; color: #166534; }
.dashboard-status.is-warning { border: 1px solid #fed7aa; background: #fff7ed; color: #9a3412; }
.dashboard-status.is-error { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; }
.dashboard-status strong { font-size: 12px; letter-spacing: .04em; }
.pending-days { display: flex; flex-wrap: wrap; gap: 8px; }
.pending-days a { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; color: #334155; font-weight: 800; text-decoration: none; }
.pending-days a:hover { border-color: var(--accent); color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 12px; }
.compact-form { grid-template-columns: repeat(5, minmax(140px, 1fr)); align-items: end; }
.field label { display: block; color: #475569; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 6px; color: #111827; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 112, 48, .16); outline: 0; }
.actions { display: flex; gap: 8px; margin-top: 16px; }
.btn { border: 1px solid var(--accent); border-radius: 8px; padding: 8px 12px; background: var(--accent); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.btn.secondary { border-color: var(--line); background: #fff; color: #334155; }
.btn.danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.btn.small { padding: 6px 10px; font-size: 12px; border-radius: 4px; }
.apontamento-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.apontamento-toolbar .actions { margin-top: 0; }
.keyword-search-form { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.keyword-search-form input[type="search"] { width: min(340px, 36vw); height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; }
.kanban-filter-actions { align-items: center; }
.kanban-filter-search { width: min(340px, 36vw); height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; }
.apontamento-summary-panel { margin-top: 12px; }
.apontamento-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 10px; }
.summary-metric { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 12px; }
.summary-metric span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.summary-metric strong { display: block; margin-top: 6px; color: #0f172a; font-size: 24px; }
.consultant-total-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; margin-top: 12px; }
.consultant-total-list div { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 8px 0 0; }
.consultant-total-list span { color: #334155; font-weight: 700; }
.consultant-total-list strong { color: #0f172a; }
.month-nav { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; }
.month-nav span { min-width: 110px; text-align: center; font-size: 14px; }
.apontamentos-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.apontamentos-grid { width: 100%; border-collapse: collapse; background: #fff; min-width: 1180px; }
.apontamentos-grid th { background: #f8fafc; border-bottom: 1px solid var(--line); color: #334155; font-size: 13px; padding: 9px 8px; text-align: left; }
.apontamentos-grid td { height: 48px; border-bottom: 1px solid #d9e2ec; padding: 7px 8px; font-size: 13px; vertical-align: middle; }
.apontamentos-grid tbody tr:hover td { background: #f7fbff; }
.apontamentos-grid input, .apontamentos-grid select, .apontamentos-grid textarea { width: 100%; height: 34px; min-width: 86px; padding: 6px 7px; border: 1px solid #bcccdc; border-radius: 4px; font: inherit; background: #fff; }
.apontamentos-grid select { appearance: none; -webkit-appearance: none; padding-right: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background-color: #fff; background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%); background-position: calc(100% - 14px) 14px, calc(100% - 9px) 14px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.apontamentos-grid input:disabled, .apontamentos-grid select:disabled, .apontamentos-grid textarea:disabled { background: #f4f6f8; color: #334e68; border-color: transparent; }
.apontamentos-grid select:disabled { appearance: none; -webkit-appearance: none; padding-right: 7px; background-image: none; }
.apontamentos-grid select.native-select-hidden { position: absolute; width: 1px; min-width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ts-select { position: relative; width: 100%; min-width: 118px; }
.ts-select-input { width: 100%; height: 34px; overflow: hidden; border: 1px solid #d8e0ea; border-radius: 6px; background: #f6f8fa; color: #52677a; padding: 0 30px 0 10px; text-overflow: ellipsis; white-space: nowrap; }
.ts-select::after { content: ""; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.ts-select.is-open .ts-select-input { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(240, 112, 48, .14); outline: 0; }
.ts-select.is-open::after { transform: translateY(-35%) rotate(225deg); }
.ts-select.is-disabled .ts-select-input { border-color: transparent; background: #f4f6f8; color: #52677a; cursor: default; }
.ts-select.is-disabled::after { display: none; }
.ts-select-menu { position: absolute; z-index: 80; top: calc(100% + 4px); left: 0; display: none; min-width: 100%; max-height: 230px; overflow-y: auto; border: 1px solid #d8e0ea; border-radius: 8px; background: #fff; padding: 4px; box-shadow: 0 14px 32px rgba(15, 23, 42, .18); }
.ts-select.is-open-up .ts-select-menu { top: auto; bottom: calc(100% + 4px); box-shadow: 0 -14px 32px rgba(15, 23, 42, .16); }
.ts-select.is-open .ts-select-menu { display: grid; gap: 2px; }
.ts-select-option { width: 100%; border: 0; border-radius: 6px; background: transparent; color: #334155; padding: 8px 10px; text-align: left; cursor: pointer; white-space: nowrap; }
.ts-select-option:hover, .ts-select-option.is-active { background: var(--accent-soft); color: #9a3412; }
.ts-select-option.is-selected { font-weight: 700; color: #9a3412; }
.ts-select-empty { padding: 9px 10px; color: var(--muted); font-size: 12px; }
.apontamentos-grid textarea { min-width: 240px; resize: none; }
.inline-grid th:nth-child(1), .inline-grid td:nth-child(1) { width: 150px; }
.inline-grid th:nth-child(2), .inline-grid th:nth-child(3), .inline-grid th:nth-child(4), .inline-grid th:nth-child(5), .inline-grid th:nth-child(6) { width: 86px; }
.inline-grid th:nth-child(7), .inline-grid th:nth-child(8), .inline-grid th:nth-child(9) { width: 180px; }
.inline-grid th:nth-child(10) { width: 120px; }
.inline-grid th:nth-child(12), .inline-grid th:nth-child(13) { width: 120px; }
.inline-grid th:nth-child(14) { width: 112px; }
.inline-grid th:nth-child(15) { width: 190px; }
.date-cell { width: 120px; white-space: nowrap; }
.row-status-pending td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
.row-status-launched td:first-child { box-shadow: inset 4px 0 0 #3b82f6; }
.row-status-approved td:first-child { box-shadow: inset 4px 0 0 #22c55e; }
.row-status-adjusted td:first-child { box-shadow: inset 4px 0 0 #8b5cf6; }
.row-status-closed td:first-child { box-shadow: inset 4px 0 0 #64748b; }
.log-row.row-status-pending td:first-child { border-left: 4px solid #f59e0b; }
.log-row.row-status-launched td:first-child { border-left: 4px solid #3b82f6; }
.log-row.row-status-approved td:first-child { border-left: 4px solid #22c55e; }
.log-row.row-status-adjusted td:first-child { border-left: 4px solid #8b5cf6; }
.log-row.row-status-closed td:first-child { border-left: 4px solid #64748b; }
.description-cell { min-width: 260px; max-width: 420px; }
.row-actions { position: relative; width: 72px; white-space: nowrap; }
.row-actions form { display: block; }
.actions-menu { position: relative; width: 34px; }
.actions-menu summary { list-style: none; }
.actions-menu summary::-webkit-details-marker { display: none; }
.actions-menu-trigger { display: grid; place-items: center; width: 34px; height: 32px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #334155; cursor: pointer; font-size: 21px; font-weight: 800; line-height: 1; }
.actions-menu-trigger:hover, .actions-menu[open] .actions-menu-trigger { border-color: var(--accent); color: var(--accent); }
.actions-menu-content { position: absolute; z-index: 30; top: 36px; right: 0; display: grid; min-width: 180px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 5px; box-shadow: 0 12px 28px rgba(15, 23, 42, .18); }
.actions-menu-item { width: 100%; border: 0; border-radius: 5px; background: transparent; padding: 8px 10px; color: #334155; cursor: pointer; text-align: left; font-weight: 700; }
.actions-menu-item:hover { background: #f8fafc; color: #111827; }
.actions-menu-item.is-danger { color: var(--danger); }
.actions-menu-item.is-danger:hover { background: #fef2f2; }
.row-actions .adjust-inline-form { display: grid; grid-template-columns: 62px 42px minmax(70px, 1fr); gap: 4px; margin-top: 5px; }
.inline-adjust-cell { display: grid; grid-template-columns: minmax(72px, 1fr) auto; gap: 4px; align-items: center; }
.inline-adjust-cell input { min-width: 72px; }
.approval-cell { width: 72px; text-align: center !important; }
.approval-cell input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }
.apontamentos-grid thead th[draggable="true"],
.apontamentos-grid thead th[draggable="true"] * { cursor: grab !important; user-select: none; }
.apontamentos-grid thead th.column-dragging,
.apontamentos-grid thead th.column-dragging * { opacity: .45; cursor: grabbing !important; }
.apontamentos-grid thead th.column-drop-target { box-shadow: inset 3px 0 0 var(--accent); }
.apontamentos-grid tbody tr.date-group-end > td { border-bottom: 3px solid #94a3b8; }
.apontamentos-grid tbody tr.date-group-end:last-child > td { border-bottom-color: #64748b; }
.compact-form .filter-search { min-width: min(100%, 320px); grid-column: span 2; }
.segmented-setting { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.segmented-setting label input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-setting label span { display: block; padding: 9px 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; }
.segmented-setting label input:checked + span { color: #fff; background: var(--accent); border-color: var(--accent); }
.apontamentos-grid thead th[data-column-key] { position: relative; padding-right: 30px; }
.column-title-text { pointer-events: none; }
.column-filter-button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; padding: 0; border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer !important; font-size: 10px; }
.apontamentos-grid thead th[draggable="true"] .column-filter-button { cursor: pointer !important; }
.column-filter-button:hover, .column-filter-button.is-active { background: #fff; color: var(--accent); border-color: var(--line); }
.column-filter-button.is-active { box-shadow: inset 0 -2px 0 var(--accent); }
.excel-filter-popup { position: fixed; z-index: 1200; width: 300px; max-height: 380px; padding: 10px; border: 1px solid #aeb8c6; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .22); color: #111827; }
.excel-filter-title { margin-bottom: 8px; font-weight: 800; }
.excel-filter-search { width: 100%; margin-bottom: 8px; }
.excel-filter-commands { display: flex; gap: 6px; margin-bottom: 6px; }
.excel-filter-commands button { padding: 4px 7px; border: 0; background: transparent; color: #1d4ed8; cursor: pointer; }
.excel-filter-freeze { width: 100%; margin: 0 0 8px; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; color: #334155; padding: 7px 9px; cursor: pointer; font-weight: 700; text-align: left; }
.excel-filter-freeze:hover, .excel-filter-freeze.is-active { border-color: var(--accent); background: #fff7ed; color: #9a3412; }
.excel-filter-options { max-height: 220px; overflow: auto; border: 1px solid var(--line); padding: 5px; }
.excel-filter-options label { display: flex; align-items: center; gap: 7px; min-height: 28px; padding: 3px 5px; cursor: pointer; }
.excel-filter-options label:hover { background: #f1f5f9; }
.excel-filter-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 9px; }
.apontamentos-grid .is-frozen-column { position: sticky; z-index: 4; background: #fff; box-shadow: 2px 0 0 #cbd5e1; }
.apontamentos-grid thead .is-frozen-column { z-index: 8; background: #f8fafc; }
.apontamentos-grid tbody tr:hover .is-frozen-column { background: #f7fbff; }
.apontamentos-grid tbody tr.editing-row .is-frozen-column { background: #fffdf5; }
.apontamentos-grid tbody tr.new-row .is-frozen-column { background: #fbfdff; }
.apontamentos-grid tbody tr.locked-row .is-frozen-column { background: #fafafa; }
.row-actions .close-inline-form { display: grid; grid-template-columns: repeat(2, minmax(76px, 1fr)); gap: 4px; margin-top: 5px; }
.adjust-inline-form input, .adjust-inline-form select { min-width: 0; }
.close-inline-form select { min-width: 0; }
.new-row td { background: #fbfdff; }
.editing-row td { background: #fffdf5; }
.dirty-row td { box-shadow: inset 0 -2px 0 #f7c948; }
.row-saved td { box-shadow: inset 0 -2px 0 #22c55e; }
.row-error td { background: #fff7f7; box-shadow: inset 0 -2px 0 var(--danger); }
.locked-row td { background: #fafafa; }
.status-badge { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-new { background: #f1f5f9; color: #475569; }
.status-pending { background: #fff7ed; color: #9a3412; }
.status-launched { background: #eff6ff; color: #1d4ed8; }
.status-approved { background: #ecfdf3; color: #166534; }
.status-adjusted { background: #f5f3ff; color: #5b21b6; }
.status-closed { background: #eef2f7; color: #0f172a; }
.inline-message { padding: 10px 12px; min-height: 38px; }
.availability-diagnostic { display: grid; gap: 8px; margin: 0; border-bottom: 1px solid var(--line); background: #fff7ed; color: #9a3412; padding: 14px 16px; }
.availability-diagnostic strong { color: #7c2d12; }
.availability-diagnostic .btn { width: max-content; }
.availability-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.availability-facts span { border: 1px solid #fed7aa; border-radius: 8px; background: #fff; padding: 5px 8px; color: #7c2d12; font-size: 12px; font-weight: 800; }
.summary-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: -4px 0 16px; }
.summary-strip > div { display: flex; align-items: center; gap: 8px; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 12px; box-shadow: var(--shadow); }
.summary-strip span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.summary-strip strong { color: #111827; font-size: 16px; }
.summary-strip small { color: var(--muted); font-weight: 800; }
.activity-progress { display: grid; gap: 10px; margin-bottom: 16px; }
.activity-progress-summary { display: flex; align-items: baseline; gap: 10px; }
.activity-progress-summary strong { color: #111827; font-size: 24px; }
.activity-progress-summary span { color: var(--muted); }
.activity-progress-track { height: 14px; overflow: hidden; border: 1px solid #fed7aa; border-radius: 7px; background: #fff7ed; }
.activity-progress-track span { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.activity-indicators { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr) minmax(260px, .7fr); gap: 18px; align-items: end; }
.activity-metrics { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 8px; }
.activity-metrics > div { min-height: 70px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px; }
.activity-metrics span, .activity-metrics strong { display: block; }
.activity-metrics span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.activity-metrics strong { margin-top: 6px; color: #111827; font-size: 17px; }
.activity-situation.is-good { border-color: #bbf7d0; background: #ecfdf3; }
.activity-situation.is-good strong { color: #166534; }
.activity-situation.is-warning { border-color: #fde68a; background: #fffbeb; }
.activity-situation.is-warning strong { color: #a16207; }
.activity-situation.is-danger { border-color: #fecaca; background: #fef2f2; }
.activity-situation.is-danger strong { color: #991b1b; }
.activity-progress-track.consumption.is-good { border-color: #bbf7d0; background: #ecfdf3; }
.activity-progress-track.consumption.is-good span { background: #22c55e; }
.activity-progress-track.consumption.is-warning { border-color: #fde68a; background: #fffbeb; }
.activity-progress-track.consumption.is-warning span { background: #eab308; }
.activity-progress-track.consumption.is-danger { border-color: #fecaca; background: #fef2f2; }
.activity-progress-track.consumption.is-danger span { background: #dc2626; }
.activity-progress-track.real { border-color: #fed7aa; background: #fff7ed; }
.activity-progress-note { margin: 0 0 16px; }
.activity-list-panel { padding: 0; overflow: hidden; }
.activity-list-grid { min-width: 1320px; }
.activity-list-grid td { vertical-align: middle; }
.activity-risk-badge { display: inline-flex; align-items: center; min-height: 26px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; white-space: nowrap; font-size: 11px; font-weight: 800; }
.activity-risk-badge.is-good { border-color: #bbf7d0; background: #ecfdf3; color: #166534; }
.activity-risk-badge.is-warning { border-color: #fde68a; background: #fffbeb; color: #a16207; }
.activity-risk-badge.is-danger { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.activity-risk-badge.is-neutral { background: #f8fafc; color: #475569; }
.progress-display { position: relative; min-width: 100px; height: 24px; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 5px; background: #f1f5f9; color: #334155; font-size: 11px; font-weight: 800; }
.progress-display span { display: block; height: 100%; min-width: 0; background: #dbeafe; transition: width .2s ease; }
.progress-display::after { position: absolute; inset: 0; display: grid; place-items: center; content: attr(data-progress) '%'; color: #334155; }
.hours-consumed-display { position: relative; min-width: 112px; height: 24px; overflow: hidden; border: 1px solid #bbf7d0; border-radius: 5px; background: #f0fdf4; color: #166534; font-size: 11px; font-weight: 800; }
.hours-consumed-display span { display: block; height: 100%; min-width: 0; background: #86efac; transition: width .2s ease; }
.hours-consumed-display::after { position: absolute; inset: 0; display: grid; place-items: center; content: attr(data-label); color: #334155; }
.hours-consumed-display.is-neutral { border-color: #cbd5e1; background: #f8fafc; }
.hours-consumed-display.is-neutral span { background: #e2e8f0; }
.hours-consumed-display.is-warning { border-color: #fde68a; background: #fffbeb; }
.hours-consumed-display.is-warning span { background: #fde68a; }
.hours-consumed-display.is-danger { border-color: #fecaca; background: #fef2f2; }
.hours-consumed-display.is-danger span { background: #fecaca; }
.progress-stepper { display: grid; grid-template-columns: 28px minmax(58px, 1fr) 28px; align-items: center; min-width: 116px; }
.progress-stepper button { display: grid; place-items: center; width: 28px; height: 34px; border: 1px solid #bcccdc; background: #fff; color: #334155; cursor: pointer; font-size: 18px; line-height: 1; }
.progress-stepper button:first-child { border-radius: 4px 0 0 4px; }
.progress-stepper button:last-child { border-radius: 0 4px 4px 0; }
.progress-stepper button:hover:not(:disabled) { position: relative; z-index: 1; border-color: var(--accent); color: var(--accent); }
.progress-stepper button:disabled { cursor: default; background: #f4f6f8; color: #94a3b8; }
.progress-stepper input[type="number"] { min-width: 0; border-radius: 0; text-align: center; }
.progress-stepper input[type="number"]::-webkit-inner-spin-button, .progress-stepper input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.kanban-board { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban-column { min-width: 230px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.kanban-column.is-over { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 112, 48, .14); }
.kanban-column-header { display: flex; align-items: center; justify-content: space-between; min-height: 42px; border-bottom: 3px solid #94a3b8; padding: 8px 10px; color: #111827; }
.kanban-column-header span { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; background: #fff; font-weight: 800; }
.kanban-column.is-fazendo .kanban-column-header { border-bottom-color: #3b82f6; }
.kanban-column.is-bloqueio .kanban-column-header { border-bottom-color: #dc2626; }
.kanban-column.is-testes .kanban-column-header { border-bottom-color: #eab308; }
.kanban-column.is-concluido .kanban-column-header { border-bottom-color: #22c55e; }
.kanban-dropzone { display: grid; align-content: start; gap: 8px; min-height: 420px; padding: 8px; }
.kanban-card { cursor: grab; border: 1px solid #d8dee6; border-radius: 8px; background: #fff; padding: 10px; box-shadow: var(--shadow); }
.kanban-card.is-dragging { opacity: .45; }
.kanban-card.is-readonly { border-left: 3px solid #94a3b8; cursor: default; }
.kanban-card > strong, .kanban-card > span { display: block; overflow-wrap: anywhere; }
.kanban-card > span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.kanban-card-owner { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.kanban-card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 9px; }
.kanban-card-metrics small { border: 1px solid var(--line); border-radius: 5px; background: #f8fafc; padding: 4px; color: #475569; text-align: center; }
.kanban-running { margin-top: 8px; border-left: 3px solid #3b82f6; background: #eff6ff; padding: 6px 8px; color: #1d4ed8; font-size: 12px; font-weight: 800; }
.kanban-mobile-move { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; font-weight: 800; }
.kanban-mobile-move select { width: 100%; margin-top: 3px; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; padding: 6px; }
.kanban-message { margin-bottom: 12px; border-radius: 6px; padding: 10px 12px; }
.kanban-message.is-success { background: #ecfdf3; color: #166534; }
.kanban-message.is-warning { border: 1px solid #fde68a; background: #fffbeb; color: #a16207; }
.kanban-message.is-error { background: #fef2f2; color: #991b1b; }
.kanban-busy .kanban-card { pointer-events: none; }
.workflow-config-grid { min-width: 980px; }
.workflow-config-grid input:not([type="checkbox"]), .workflow-config-grid select { width: 100%; min-width: 150px; border: 1px solid #cbd5e1; border-radius: 5px; padding: 7px; background: #fff; }
.workflow-admin-override { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; }
.profile-privileges { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 10px; }
.profile-privileges label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; }
.profile-privileges strong, .profile-privileges small { display: block; }
.profile-privileges small { margin-top: 3px; color: var(--muted); }
.flow-grid { display: grid; gap: 16px; }
.flow-note { margin: -4px 0 12px; }
.report-note { margin: 12px 0 0; }
.integration-status { display: grid; gap: 4px; border-radius: 8px; padding: 12px; margin-bottom: 14px; }
.integration-status.is-ok { border: 1px solid #bbf7d0; background: #ecfdf3; color: #166534; }
.integration-status.is-warning { border: 1px solid #fed7aa; background: #fff7ed; color: #9a3412; }
.integration-status strong { font-size: 15px; }
.integration-facts { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 12px; margin: 0 0 12px; }
.integration-facts dt { color: var(--muted); font-weight: 800; }
.integration-facts dd { margin: 0; overflow-wrap: anywhere; }
.integration-grid { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.integration-grid-wide { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.integration-grid > div { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; }
.integration-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.integration-grid strong { display: block; margin-top: 6px; color: #111827; font-size: 18px; }
.integration-pending-list { list-style: none; margin: 8px 0 0; padding: 0; }
.integration-pending-list li { border-top: 1px solid #e3e8ef; padding: 8px 0; }
.integration-pending-list li:first-child { border-top: 0; }
.integration-pending-list b, .integration-pending-list small { display: block; }
.integration-pending-list small { color: #64748b; margin-top: 2px; }
.integration-diff { margin-top: 6px; max-width: 280px; }
.integration-diff summary { cursor: pointer; color: #475569; font-size: 12px; font-weight: 800; }
.integration-diff ul { margin: 6px 0 0; padding-left: 16px; color: #475569; font-size: 12px; }
.integration-diff li { margin-bottom: 3px; overflow-wrap: anywhere; }
.integration-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 12px 0; }
.integration-checklist > div { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px; }
.integration-checklist strong, .integration-checklist span, .integration-checklist small { display: block; }
.integration-checklist span { margin-top: 4px; font-weight: 800; color: #0f172a; }
.integration-checklist small { margin-top: 3px; color: #64748b; }
.success-text { color: #2f6b2f; }
.warning-text { color: #a16207; }
.error-text { color: #9b1c1c; }
.alert { padding: 10px 12px; border-radius: 6px; margin-bottom: 12px; }
.alert.error { background: #fef2f2; color: #9b1c1c; }
.alert.success { background: #ecfdf3; color: #166534; }
.app-popup-overlay { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 18px; background: rgba(15, 23, 42, .32); }
.app-popup-overlay[hidden] { display: none; }
.app-popup { width: min(440px, 100%); border-top: 4px solid #f59e0b; background: #fff; box-shadow: 0 18px 50px rgba(15, 23, 42, .28); padding: 18px; }
.app-popup-overlay.is-error .app-popup { border-top-color: #dc2626; }
.app-popup-overlay.is-success .app-popup { border-top-color: #16a34a; }
.app-popup-title { margin-bottom: 8px; font-size: 18px; font-weight: 800; color: #111827; }
.app-popup-message { color: #374151; line-height: 1.45; white-space: pre-wrap; }
.app-popup-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.muted { color: var(--muted); }
@media (max-width: 800px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    .top-actions { align-self: stretch; justify-content: flex-end; }
    .account-dropdown { right: 0; width: min(304px, calc(100vw - 32px)); }
    .page-heading-row { align-items: stretch; flex-direction: column; }
    .view-switch { width: 100%; }
    .view-switch a { flex: 1; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-widgets, .dashboard-layout-editor { grid-template-columns: 1fr; }
    .dashboard-widget--1, .dashboard-widget--2, .dashboard-widget--3,
    .dashboard-layout-item--1, .dashboard-layout-item--2, .dashboard-layout-item--3 { grid-column: span 1; }
    .dashboard-operational-metrics { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .compact-profile-form { grid-template-columns: 1fr; }
    .integration-grid { grid-template-columns: 1fr; }
    .activity-indicators { grid-template-columns: 1fr; }
    .activity-metrics { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
    .profile-privileges { grid-template-columns: 1fr; }
    .form-grid, .compact-form { grid-template-columns: 1fr; }
    .apontamento-toolbar { align-items: stretch; flex-direction: column; }
    .apontamento-summary-grid { grid-template-columns: 1fr; }
    .month-nav { justify-content: space-between; flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .activity-metrics { grid-template-columns: 1fr; }
}
