/* =========================================================
   TSTT Solicitações - folha de estilos
   Identidade TROI: azul #0b4f9c / navy #1f2f7a / azul claro #1a8fd0 / vermelho #e3141b
   ========================================================= */
:root {
  --primary: #0b4f9c; --primary-dark: #083b75; --navy: #1f2f7a; --sky: #1a8fd0; --accent: #e3141b;
  --bg: #f3f5f9; --surface: #ffffff; --border: #e3e8ef; --text: #1e293b; --muted: #64748b; --muted-2: #94a3b8;
  --success: #16a34a; --warning: #f59e0b; --danger: #dc2626; --info: #0891b2;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.06);
  --sidenav-w: 256px; --topbar-h: 64px; --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .75rem; }
img { max-width: 100%; }
code { background: #eef2f7; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
pre { background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: var(--radius-sm); overflow: auto; font-size: 12.5px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .tiny { font-size: .78rem; } .bold { font-weight: 600; }
.text-center { text-align: center; } .text-right { text-align: right; } .nowrap { white-space: nowrap; }
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .grow { flex: 1; }
.hidden { display: none !important; }
.ico { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.ico.sm { width: 14px; height: 14px; } .ico.lg { width: 24px; height: 24px; } .ico.xl { width: 32px; height: 32px; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; align-items: flex-start; }
.sidenav { width: 256px; width: var(--sidenav-w); flex: 0 0 256px; flex-basis: var(--sidenav-w); background: #1f2f7a; background: linear-gradient(180deg, #0b3f85 0%, #1f2f7a 100%); color: #dbe7f7; position: sticky; top: 0; height: 100vh; z-index: 40; display: flex; flex-direction: column; transition: transform .25s ease; }
.sidenav .brand { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidenav .brand img { width: 42px; height: 42px; background: #fff; border-radius: 10px; padding: 3px; }
.sidenav .brand b { display: block; font-size: 1.15rem; letter-spacing: .5px; color: #fff; }
.sidenav .brand span { display: block; font-size: .75rem; opacity: .75; }
.sidenav nav { padding: 12px 12px; flex: 1; overflow-y: auto; }
.sidenav nav .section { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .55; padding: 14px 12px 6px; }
.sidenav nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: #dbe7f7; font-weight: 500; margin-bottom: 2px; transition: background .15s; }
.sidenav nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.sidenav nav a.active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.sidenav nav a .count { margin-left: auto; background: var(--accent); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 10px; font-weight: 700; }
.sidenav .user { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 10px; }
.sidenav .user .name { font-size: .85rem; font-weight: 600; color: #fff; line-height: 1.2; }
.sidenav .user .role { font-size: .72rem; opacity: .7; }
.sidenav .user a.out { margin-left: auto; color: #dbe7f7; opacity: .8; }
.main { flex: 1 1 auto; min-width: 0; width: 100%; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 30; }
.topbar h1 { font-size: 1.15rem; margin: 0; }
.topbar .crumb { color: var(--muted); font-size: .85rem; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.content { padding: 24px; flex: 1; }
.navoverlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 35; }
@media (max-width: 1024px) {
  .sidenav { position: fixed; top: 0; left: 0; bottom: 0; transform: translateX(-100%); }
  body.nav-open .sidenav { transform: translateX(0); }
  body.nav-open .navoverlay { display: block; }
  .menu-btn { display: inline-flex; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
}

/* ---------- avatar ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--primary)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: .7rem; } .avatar.lg { width: 72px; height: 72px; font-size: 1.5rem; } .avatar.xl { width: 110px; height: 110px; font-size: 2rem; }
.avatar.red { background: linear-gradient(135deg, #f0464c, var(--accent)); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card .card-head h3 { margin: 0; flex: 1; }
.card .card-body { padding: 18px; }
.card.pad { padding: 18px; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.card { min-width: 0; max-width: 100%; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.main-side { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.grid.side-main { grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr); }
@media (max-width: 1440px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid.cols-2, .grid.cols-3, .grid.main-side, .grid.side-main { grid-template-columns: 1fr; } .grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; } .kpi { padding: 12px; gap: 10px; } .kpi .kval { font-size: 1.25rem; } }

/* ---------- KPI ---------- */
.kpi { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.kpi .kico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #e8f0fb; color: var(--primary); }
.kpi .kico.red { background: #fde8e9; color: var(--accent); } .kpi .kico.green { background: #e6f6ec; color: var(--success); } .kpi .kico.amber { background: #fef3e2; color: #b45309; } .kpi .kico.purple { background: #efe9fb; color: #6d28d9; } .kpi .kico.cyan { background: #e0f4f8; color: var(--info); }
.kpi .kico .ico { width: 22px; height: 22px; }
.kpi .kval { font-size: 1.55rem; font-weight: 700; line-height: 1.1; }
.kpi .klabel { color: var(--muted); font-size: .8rem; }
.kpi .ksub { font-size: .75rem; color: var(--muted-2); margin-top: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--border); background: #fff; color: var(--text); font-weight: 600; font-size: .88rem; cursor: pointer; font-family: inherit; line-height: 1.2; transition: all .15s; white-space: nowrap; }
.btn:hover { background: #f8fafc; text-decoration: none; border-color: #cbd5e1; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; } .btn.primary:hover { background: var(--primary-dark); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.accent:hover { background: #c50f16; }
.btn.success { background: var(--success); border-color: var(--success); color: #fff; }
.btn.danger { background: #fff; border-color: #fecaca; color: var(--danger); } .btn.danger:hover { background: #fef2f2; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: #eef2f7; }
.btn.sm { padding: 6px 11px; font-size: .8rem; border-radius: 7px; } .btn.xs { padding: 4px 8px; font-size: .75rem; border-radius: 6px; }
.btn.icon { padding: 8px; } .btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.primary):not(.accent):not(.success).loading::after { border-color: #cbd5e1; border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: .74rem; font-weight: 600; background: color-mix(in srgb, var(--bc, #64748b) 14%, #fff); color: var(--bc, #64748b); border: 1px solid color-mix(in srgb, var(--bc, #64748b) 30%, #fff); white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--bc, #64748b); }
.badge.plain::before { display: none; }
.badge.solid { background: var(--bc); color: #fff; border-color: var(--bc); } .badge.solid::before { background: rgba(255,255,255,.7); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .72rem; font-weight: 600; background: #eef2f7; color: var(--muted); }
.pill.projeto { background: #efe9fb; color: #6d28d9; } .pill.suporte { background: #e0f4f8; color: #0e7490; }
.pill.ok { background: #e6f6ec; color: var(--success); } .pill.risco { background: #fef3e2; color: #b45309; } .pill.estourado { background: #fde8e9; color: var(--danger); } .pill.pausado { background: #eef2f7; color: var(--muted); } .pill.triagem { background: #ede9fe; color: #6d28d9; } .pill.concluido { background: #e6f6ec; color: var(--success); }

/* ---------- forms ---------- */
label { display: block; font-size: .82rem; font-weight: 600; color: #334155; margin-bottom: 4px; }
label > input, label > select, label > textarea { margin-top: 4px; }
input, select, textarea { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; font-size: .9rem; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(26,143,208,.18); }
input[type=checkbox], input[type=radio] { width: auto; padding: 0; margin: 0 6px 0 0; vertical-align: -1px; }
input[type=color] { padding: 2px 4px; height: 38px; width: 60px; }
input[type=file] { padding: 7px; }
textarea { min-height: 100px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid h3 { margin: 6px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: span 1; } }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .88rem; cursor: pointer; }
.help { font-size: .76rem; color: var(--muted); font-weight: 400; margin-top: 3px; }
.caps-aviso { font-size: .78rem; color: #b45309; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 6px; padding: 4px 8px; margin-top: 5px; font-weight: 600; }
.field-error { color: var(--danger); font-size: .78rem; margin-top: 3px; }
.input-icon { position: relative; } .input-icon .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); } .input-icon input { padding-left: 38px; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 22px; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--success); } .switch input:checked + span::before { transform: translateX(18px); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); background: #f8fafc; white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f8fafc; }
.table.compact td, .table.compact th { padding: 7px 10px; }
.table a.row-link { color: var(--text); font-weight: 600; }
.table a.row-link:hover { color: var(--primary); }
.table .num { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) {
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; padding: 6px 0; background: #fff; }
  .table.responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 12px; border: 0; }
  .table.responsive td::before { content: attr(data-label); font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 600; flex-shrink: 0; }
  .table.responsive td.actions { justify-content: flex-end; }
}

/* ---------- alerts / toasts ---------- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: .88rem; margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.alert.info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.toasts { position: fixed; right: 16px; top: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast { background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 10px; font-size: .88rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: slidein .25s ease; border-left: 4px solid var(--sky); }
.toast.success { border-left-color: var(--success); } .toast.error { border-left-color: var(--accent); }
@keyframes slidein { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 620px; max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 900px; }
.modal .modal-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal .modal-head h3 { margin: 0; flex: 1; }
.modal .modal-body { padding: 20px; }
.modal .modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active, .tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tab-panel { display: none; } .tab-panel.active { display: block; }

/* ---------- timeline / chat ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline .item { position: relative; margin-bottom: 16px; }
.timeline .item::before { content: ''; position: absolute; left: -22px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--border); }
.timeline .item.sys::before { background: var(--muted-2); }
.timeline .item .when { font-size: .74rem; color: var(--muted); }
.timeline .item .what { font-size: .88rem; white-space: pre-wrap; }
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 520px; overflow-y: auto; padding: 4px; }
.msg { display: flex; gap: 10px; max-width: 85%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble { background: #f1f5f9; padding: 10px 14px; border-radius: 14px 14px 14px 4px; font-size: .9rem; white-space: pre-wrap; word-break: break-word; }
.msg.mine .bubble { background: var(--primary); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg.interna .bubble { background: #fef3c7; border: 1px dashed #f59e0b; }
.msg .meta { font-size: .72rem; color: var(--muted); margin-top: 3px; }
.msg.mine .meta { text-align: right; }

/* ---------- misc ---------- */
.progress { height: 8px; background: #e2e8f0; border-radius: 8px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 8px; transition: width .3s; }
.progress.ok > span { background: var(--success); } .progress.risco > span { background: var(--warning); } .progress.estourado > span { background: var(--danger); }
.list-plain { list-style: none; padding: 0; margin: 0; } .list-plain li { padding: 8px 0; border-bottom: 1px solid var(--border); } .list-plain li:last-child { border-bottom: 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: .88rem; }
.dl dt { color: var(--muted); font-weight: 500; } .dl dd { margin: 0; font-weight: 500; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .ico { width: 40px; height: 40px; color: #cbd5e1; margin-bottom: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filters label { margin: 0; min-width: 140px; flex: 1; } .filters label input, .filters label select { padding: 8px 10px; }
.filters .btn { height: 38px; }
.pagehead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pagehead h2 { margin: 0; flex: 1; font-size: 1.25rem; }
.pagination { display: flex; gap: 4px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 11px; border: 1px solid var(--border); border-radius: 7px; font-size: .82rem; background: #fff; }
.pagination .cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.dropzone { border: 2px dashed #cbd5e1; border-radius: 10px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; background: #f8fafc; }
.dropzone:hover, .dropzone.over { border-color: var(--sky); background: #eff6ff; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: .84rem; flex-wrap: wrap; }
.file-list li .fname { flex: 1; min-width: 140px; word-break: break-all; }
.file-list li select { width: auto; padding: 5px 28px 5px 8px; font-size: .8rem; }
.attach { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; margin-bottom: 8px; font-size: .86rem; }
.attach .ico { color: var(--primary); } .attach .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-box { position: relative; height: 260px; width: 100%; overflow: hidden; }
.chart-box canvas { max-width: 100% !important; }
.sla-row { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.stars { display: inline-flex; gap: 2px; } .stars .ico { width: 20px; height: 20px; color: #f59e0b; fill: #f59e0b; } .stars .ico.off { fill: none; color: #cbd5e1; }
.rate { display: inline-flex; gap: 4px; direction: rtl; } .rate input { display: none; } .rate label { cursor: pointer; margin: 0; } .rate label .ico { width: 30px; height: 30px; color: #cbd5e1; }
.rate input:checked ~ label .ico, .rate label:hover .ico, .rate label:hover ~ label .ico { color: #f59e0b; fill: #f59e0b; }
.notice-bar { background: linear-gradient(90deg, #0b4f9c, #1a8fd0); color: #fff; padding: 10px 24px; font-size: .86rem; display: flex; gap: 10px; align-items: center; }
.calendar-wrap { overflow-x: auto; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; min-width: 520px; }
.calendar .dow { font-size: .7rem; text-transform: uppercase; color: var(--muted); text-align: center; padding: 4px 0; }
.calendar .day { min-height: 80px; border: 1px solid var(--border); border-radius: 8px; padding: 4px 6px; font-size: .78rem; background: #fff; }
.calendar .day.other { background: #f8fafc; color: var(--muted-2); } .calendar .day.today { border-color: var(--sky); box-shadow: inset 0 0 0 1px var(--sky); }
.calendar .day .n { font-weight: 700; margin-bottom: 3px; }
.calendar .ev { display: block; background: #e8f0fb; color: var(--primary); border-radius: 4px; padding: 1px 5px; margin-bottom: 2px; font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar .ev.confirmada { background: #e6f6ec; color: var(--success); } .calendar .ev.solicitada { background: #fef3e2; color: #b45309; }
@media (max-width: 760px) { .calendar .day { min-height: 50px; } .calendar .ev { font-size: .6rem; } }
/* barra de rolagem espelhada acima do quadro: a do rodapé fica longe do conteúdo */
.kanban-topo { overflow-x: auto; overflow-y: hidden; height: 14px; margin-bottom: 6px; }
.kanban-topo > div { height: 1px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kanban .col { background: #eef2f7; border-radius: 10px; padding: 10px; align-self: start; min-height: 90px; }
.kanban .col h4 { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: 8px; position: sticky; top: 0; background: #eef2f7; padding: 2px 0 6px; z-index: 1; }
.kanban .col .vazio { font-size: .76rem; color: var(--muted); padding: 6px 2px; }
.kanban .kcard { background: #fff; border-radius: 8px; padding: 10px; margin-bottom: 8px; box-shadow: var(--shadow); font-size: .82rem; }
.kanban .kcard a { color: var(--text); font-weight: 600; display: block; }

/* ---------- auth ---------- */
.auth-body { background: radial-gradient(1200px 600px at 10% -10%, #1a8fd0 0%, transparent 55%), radial-gradient(900px 500px at 110% 110%, #e3141b 0%, transparent 50%), linear-gradient(160deg, #0b3f85, #1f2f7a); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { background: #fff; border-radius: 18px; padding: 34px; width: 100%; max-width: 440px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.auth-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.auth-brand img { height: 72px; }
.auth-brand h1 { font-size: 1.3rem; margin: 0; color: var(--navy); } .auth-brand p { margin: 0; color: var(--muted); font-size: .85rem; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-links { display: flex; justify-content: space-between; font-size: .84rem; margin-top: 8px; flex-wrap: wrap; gap: 8px; }
.auth-foot { text-align: center; color: rgba(255,255,255,.75); font-size: .78rem; margin-top: 16px; }

/* ---------- print ---------- */
@media print { .sidenav, .topbar, .no-print { display: none !important; } .main { margin: 0; } .content { padding: 0; } .card { box-shadow: none; } }

/* ---------- editor HTML ---------- */
.rich { border: 1px solid #cbd5e1; border-radius: 9px; overflow: hidden; background: #fff; }
.rich .rich-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.rich .rich-bar button { border: 1px solid transparent; background: none; padding: 4px 8px; border-radius: 6px; cursor: pointer; font: inherit; font-size: .85rem; min-width: 30px; color: var(--text); }
.rich .rich-bar button:hover, .rich .rich-bar button.active { background: #e8f0fb; border-color: #bfdbfe; color: var(--primary); }
.rich .rich-bar .sep { width: 1px; background: var(--border); margin: 4px 4px; }
.rich .rich-area { min-height: 160px; max-height: 480px; overflow: auto; padding: 12px 14px; outline: none; font-size: .92rem; line-height: 1.55; }
.rich .rich-area:focus { box-shadow: inset 0 0 0 2px rgba(26,143,208,.25); }
.rich .rich-area img { max-width: 100%; }
.rich .rich-area h2 { font-size: 1.15rem; color: var(--primary); }
.rich textarea { border: 0; border-radius: 0; min-height: 260px; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label.check { border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px 5px 8px; background: #fff; font-size: .82rem; }
.chips label.check:has(input:checked) { background: #e8f0fb; border-color: var(--primary); color: var(--primary); }
@media (max-width: 560px) { .topbar { gap: 8px; } .topbar .btn.primary .lbl { display: none; } .topbar .btn.primary { padding: 8px 10px; } .topbar h1 { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* seletor de competência dentro do card de horas */
.kcomp { border: 1px solid var(--border); border-radius: 6px; font-size: .7rem; padding: 0 2px; margin-left: 6px; color: var(--muted); background: #fff; width: 104px; max-width: 104px; height: 20px; line-height: 1; vertical-align: middle; }
.kcomp::-webkit-calendar-picker-indicator { padding: 0; margin: 0; opacity: .5; }
.kcomp:hover { border-color: var(--primary); color: var(--primary); }

/* busca rápida no topo: a mesma em todas as telas, com atalho / */
.busca-topo { display: flex; align-items: center; gap: 6px; background: #f1f5f9; border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; margin-right: 8px; max-width: 320px; flex: 1 1 180px; color: var(--muted); }
.busca-topo input { border: 0; background: none; padding: 2px 0; font-size: .85rem; width: 100%; height: auto; }
.busca-topo input:focus { outline: 0; }
.busca-topo:focus-within { border-color: var(--primary); background: #fff; }
@media (max-width: 760px) { .busca-topo { display: none; } }

/* barrinha de proporção nas tabelas de ranking */
.barra { display: block; height: 5px; border-radius: 4px; background: #e2e8f0; overflow: hidden; margin-bottom: 3px; min-width: 48px; }
.barra span { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

/* faixa do modo "ver como o usuário" */
.vercomo-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fef3c7;border-bottom:1px solid #fcd34d;color:#78350f;padding:8px 24px;font-size:.84rem}
.vercomo-bar .btn{margin-left:auto}
