/* ============================================================
   CONTOURLINE — DESIGN SYSTEM v2 (compartilhado)
   ------------------------------------------------------------
   Fonte única de estilo do portal interno. Cada página importa este
   arquivo e adiciona só o CSS específico dela. Carregue SOZINHO (sem o
   contourline-ds.css antigo) para evitar colisão de nomes.
   Tokens + componentes: sidebar, topbar, cards, listas, pills, modais,
   breadcrumb, editor, estados vazios, toast, responsivo. Fonte: Inter.
   ============================================================ */

:root {
  --navy: #10213d; --blue: #2f6fe4; --blue-soft: #eef5ff;
  --green: #20ad6b; --purple: #a855f7; --orange: #f47a20; --gold: #e0a82e;
  --text: #17233c; --muted: #6e7b91; --border: #e3e8f1;
  --bg: #f7faff; --card: #ffffff; --field-bg: #fbfdff;
  --shadow: 0 18px 45px rgba(16, 33, 61, 0.08);
  --shadow-sm: 0 8px 22px rgba(16, 33, 61, 0.05);
  --radius: 18px; --radius-md: 14px; --radius-sm: 10px;
  --sidebar-w: 270px; --transition: 0.18s ease;
  --error: #c0453f;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ===== SIDEBAR ===== */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); padding: 24px 20px; background: rgba(255,255,255,0.86); backdrop-filter: blur(22px); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 10; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; height: 42px; margin-bottom: 30px; }
.brand img { height: 30px; width: auto; }
.menu { display: flex; flex-direction: column; gap: 6px; }
.menu a { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 12px; color: #34425c; font-weight: 500; font-size: 14.5px; transition: var(--transition); cursor: pointer; }
.menu a svg { width: 19px; height: 19px; flex: none; stroke-width: 1.9; }
.menu a:hover { background: #f1f5fc; color: var(--navy); }
.menu a.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.menu a .soon { margin-left: auto; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: #eef1f6; padding: 2px 6px; border-radius: 6px; font-weight: 700; }
.menu a .count { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 1px 8px; border-radius: 999px; }
.divider { height: 1px; background: var(--border); margin: 14px 6px; }
.help { margin-top: auto; display: flex; align-items: center; gap: 10px; justify-content: center; height: 46px; border: 1px solid #b8d0ff; color: var(--blue); background: white; border-radius: 12px; font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.help svg { width: 17px; height: 17px; }

/* ===== PAGE / TOPBAR ===== */
.page { margin-left: var(--sidebar-w); min-height: 100vh; }
.topbar { position: sticky; top: 0; height: 78px; padding: 0 34px; background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 22px; z-index: 5; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--navy); }
.top-search { max-width: 560px; margin-left: auto; flex: 1; height: 48px; background: white; border: 1px solid var(--border); border-radius: 16px; display: flex; align-items: center; gap: 12px; padding: 0 14px; box-shadow: 0 8px 25px rgba(16,33,61,0.04); }
.top-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; stroke-width: 2; }
.top-search input { width: 100%; border: 0; outline: 0; color: var(--text); font-size: 15px; font-family: inherit; background: transparent; }
.top-search kbd { padding: 4px 8px; background: #f4f6fa; border-radius: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.user-area { display: flex; align-items: center; gap: 12px; }
.user-area .u-meta strong { display: block; font-size: 14px; color: var(--navy); }
.user-area .u-meta small { color: var(--muted); font-size: 12px; }
.avatar, .icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--navy); color: white; display: grid; place-items: center; font-weight: 800; flex: none; cursor: pointer; }
.icon-btn { background: white; color: var(--navy); border: 1px solid var(--border); position: relative; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .dot { position: absolute; top: 9px; right: 11px; width: 8px; height: 8px; background: var(--blue); border-radius: 50%; border: 2px solid white; }
.logout-btn, .topbar-back { border: 1px solid var(--border); background: white; color: var(--muted); border-radius: 10px; padding: 9px 13px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.logout-btn:hover, .topbar-back:hover { border-color: #b8d0ff; color: var(--blue); }
.logout-btn.btn-mini-danger:hover { border-color: #f0b4b0; color: var(--error); }

/* ===== LAYOUT / CONTENT ===== */
.content { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding: 34px 36px 50px; }
.content.single { grid-template-columns: 1fr; max-width: 1120px; }
.main-column { min-width: 0; }

/* ===== HERO ===== */
.hero { position: relative; min-height: 200px; padding: 46px 28px; overflow: hidden; border-radius: 26px; background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 58%, #e9f2ff 100%); }
.hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.02; margin: 0 0 14px; letter-spacing: -0.035em; color: var(--navy); }
.hero p { max-width: 460px; margin: 0; font-size: 18px; line-height: 1.5; color: #30415e; }
.hero-art { position: absolute; right: 60px; top: 28px; width: 250px; height: 160px; opacity: 0.95; pointer-events: none; }
.floating-card { position: absolute; display: grid; place-items: center; border-radius: 20px; background: rgba(255,255,255,0.82); border: 1px solid rgba(255,255,255,0.9); box-shadow: var(--shadow); }
.floating-card svg { width: 34px; height: 34px; stroke-width: 1.7; }
.card-a { width: 92px; height: 92px; left: 36px; top: 44px; transform: rotate(-10deg); color: var(--purple); }
.card-b { width: 108px; height: 108px; right: 16px; top: 6px; transform: rotate(11deg); color: var(--blue); }
.card-c { width: 76px; height: 76px; left: 8px; bottom: 0; transform: rotate(8deg); color: var(--orange); }

/* ===== BUSCA GRANDE + DROPDOWN ===== */
.search-large { height: 64px; margin: -32px 28px 22px; position: relative; z-index: 2; background: white; border: 1px solid var(--border); border-radius: 16px; display: flex; align-items: center; gap: 14px; padding: 0 24px; box-shadow: var(--shadow); }
.search-large svg { width: 22px; height: 22px; color: var(--muted); flex: none; stroke-width: 2; }
.search-large input { width: 100%; border: 0; outline: 0; color: var(--text); font-size: 15px; font-family: inherit; background: transparent; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; max-height: 60vh; overflow-y: auto; display: none; }
.search-results.open { display: block; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: 0.15s; }
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: var(--blue-soft); }
.search-result .r-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.search-result .r-icon svg { width: 17px; height: 17px; }
.search-result .r-main { min-width: 0; flex: 1; }
.search-result .r-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.search-result .r-meta { font-size: 12px; color: var(--muted); }
.search-result .r-arrow { color: var(--blue); font-weight: 800; }
.search-empty { padding: 20px 16px; text-align: center; color: var(--muted); font-size: 14px; }

/* ===== FILTROS ===== */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.filters button { padding: 11px 22px; border: 1px solid var(--border); border-radius: 999px; background: white; color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; transition: 0.15s; }
.filters button:hover { border-color: #b8d0ff; }
.filters .selected { background: var(--blue); color: white; border-color: var(--blue); }

/* ===== TÍTULOS / HEADS ===== */
h2.sec-title, .sec-title { margin: 0 0 16px; font-size: 19px; color: var(--navy); font-weight: 700; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-head a, .panel-head a { color: var(--blue); font-size: 14px; font-weight: 700; cursor: pointer; }
.view-head { margin-bottom: 22px; }
.view-head h1 { font-size: 26px; color: var(--navy); margin: 0 0 4px; letter-spacing: -0.02em; }
.view-head p { color: var(--muted); margin: 0; font-size: 15px; }
.cat-title { font-size: 18px; font-weight: 700; color: var(--navy); margin: 26px 0 14px; display: flex; align-items: center; gap: 10px; }
.cat-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.cat-block { margin-bottom: 24px; }

/* ===== QUICK CARDS ===== */
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 34px; }
.quick-card { min-height: 92px; padding: 18px; border-radius: var(--radius); background: white; border: 1px solid var(--border); box-shadow: 0 12px 28px rgba(16,33,61,0.06); display: flex; align-items: center; gap: 14px; transition: 0.2s; cursor: pointer; }
.quick-card:hover, .sector-card:hover, .notice:hover, .list-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-icon, .sector-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.quick-icon svg, .sector-icon svg { width: 24px; height: 24px; stroke-width: 1.9; }
.quick-card h3 { margin: 0 0 6px; font-size: 15px; color: var(--navy); font-weight: 600; }
.quick-card p { margin: 0; color: var(--muted); font-size: 14px; }
.quick-card .q-arrow { margin-left: auto; color: var(--blue); font-weight: 800; }

/* variantes de cor (caixinha do ícone) */
.c-blue   .quick-icon, .c-blue   .sector-icon, .c-blue   .li-icon, .c-blue   .i-icon { background: #edf4ff; color: var(--blue); }
.c-green  .quick-icon, .c-green  .sector-icon, .c-green  .li-icon, .c-green  .i-icon { background: #eafaf2; color: var(--green); }
.c-purple .quick-icon, .c-purple .sector-icon, .c-purple .li-icon, .c-purple .i-icon { background: #f5eaff; color: var(--purple); }
.c-orange .quick-icon, .c-orange .sector-icon, .c-orange .li-icon, .c-orange .i-icon { background: #fff1e8; color: var(--orange); }

/* ===== SECTOR CARDS ===== */
.sector-grid, .card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sector-card { position: relative; min-height: 248px; padding: 18px; border-radius: var(--radius); background: white; border: 1px solid var(--border); box-shadow: 0 10px 26px rgba(16,33,61,0.05); display: flex; flex-direction: column; transition: 0.2s; }
.sector-card .sector-icon { margin-bottom: 14px; }
.sector-card h3 { margin: 0 0 4px; font-size: 16px; color: var(--navy); font-weight: 700; }
.sector-card .s-owner { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.sector-card .s-owner svg { width: 14px; height: 14px; flex: none; stroke-width: 1.9; }
.sector-card .s-owner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sector-card .s-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.sector-card .s-foot { margin-top: auto; padding-top: 16px; }
.sector-card .s-count { font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }

/* ===== BOTÕES ===== */
.access-btn, .outline-btn, .btn-primary, .btn, .btn-secondary { border: 1px solid var(--blue); color: var(--blue); background: white; border-radius: 8px; padding: 8px 12px; font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit; white-space: nowrap; transition: 0.15s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.access-btn:hover, .outline-btn:hover { background: var(--blue); color: white; }
.access-btn.full, .outline-btn.full { width: 100%; padding: 11px; font-size: 13px; }
.btn-primary { background: var(--blue); color: white; padding: 11px 18px; font-size: 13px; border-radius: 10px; }
.btn-primary:hover { background: #2560c8; }
.btn-secondary, .btn-ghost { border-color: var(--border); color: var(--muted); border-radius: 10px; padding: 11px 18px; font-size: 13px; font-weight: 700; }
.btn-small { padding: 8px 14px; font-size: 12px; }

/* ===== LIST CARDS ===== */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.list-card { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 16px; border-radius: var(--radius-md); background: white; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: 0.18s; color: inherit; }
.list-card .li-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue); }
.list-card .li-icon svg { width: 20px; height: 20px; stroke-width: 1.9; }
.list-card .li-main { min-width: 0; flex: 1; }
.list-card .li-title { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.list-card .li-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.list-card .li-fav { color: #cdd5e0; cursor: pointer; flex: none; }
.list-card .li-fav.on { color: var(--gold); }
.list-card .li-fav svg { width: 18px; height: 18px; }

/* estrela favoritar (canto de card) */
.fav-btn { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: white; color: #c3ccda; display: grid; place-items: center; cursor: pointer; transition: 0.15s; z-index: 2; }
.fav-btn svg { width: 17px; height: 17px; stroke-width: 1.9; }
.fav-btn:hover { border-color: var(--gold); color: var(--gold); }
.fav-btn.on { color: var(--gold); border-color: var(--gold); background: #fff8e8; }
.fav-btn.on svg { fill: var(--gold); }

/* ===== RIGHT PANEL ===== */
.right-panel { display: flex; flex-direction: column; gap: 20px; }
.panel { background: white; border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 18px; color: var(--navy); font-weight: 700; }
.notice { border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 12px; transition: 0.2s; }
.tag { display: inline-flex; text-transform: uppercase; font-size: 11px; font-weight: 800; color: white; padding: 5px 10px; border-radius: 8px; margin-bottom: 12px; letter-spacing: 0.03em; }
.blue-tag { background: var(--blue); } .orange-tag { background: var(--orange); } .green-tag { background: var(--green); }
.notice h3 { margin: 0 0 8px; font-size: 15px; color: var(--navy); font-weight: 600; }
.notice p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.notice small { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
.recent-item { display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 10px; padding: 11px 0; cursor: pointer; }
.recent-item > svg { width: 18px; height: 18px; color: var(--blue); }
.recent-item p { margin: 0; font-size: 14px; color: var(--navy); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item .r-kind { background: var(--blue-soft); color: var(--blue); padding: 4px 7px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.recent-item time { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ===== PILLS DE STATUS ===== */
.pill { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.pill-active { color: var(--green); background: #eafaf2; } .pill-active::before { background: var(--green); }
.pill-construction { color: var(--orange); background: #fff1e8; } .pill-construction::before { background: var(--orange); }
.pill-restricted { color: var(--blue); background: var(--blue-soft); } .pill-restricted::before { background: var(--blue); }
.pill-reference { color: var(--muted); background: #f1f4f8; } .pill-reference::before { background: var(--muted); }
.admin-badge { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 2px 7px; border-radius: 999px; font-weight: 700; }

/* status de solicitações */
.st { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; padding: 4px 9px; border-radius: 999px; }
.st-pendente { background: #fff1e8; color: var(--orange); }
.st-em_andamento { background: var(--blue-soft); color: var(--blue); }
.st-concluido { background: #eafaf2; color: var(--green); }
.st-rejeitado { background: #f3f4f6; color: #8a93a3; }

/* ===== BREADCRUMB ===== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 18px; font-size: 14px; }
.crumbs a, .crumbs span { color: var(--muted); }
.crumbs a { cursor: pointer; }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { color: var(--border); }
.crumbs .cur { color: var(--navy); font-weight: 600; }

/* ===== ITEM CARD (conteúdo de setor) ===== */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.item-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 16px; background: white; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: 0.18s; position: relative; }
a.item-card { cursor: pointer; }
a.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0ff; }
.item-card .i-top { display: flex; align-items: center; gap: 0.6rem; }
.item-card .i-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.item-card .i-icon svg { width: 18px; height: 18px; stroke-width: 1.9; }
.item-card .i-title { font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.item-card .i-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.item-card .i-note { font-size: 12px; color: var(--muted); font-style: italic; }
.item-card .i-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.3rem; }
.item-card .i-arrow { color: var(--blue); font-weight: 700; }
.item-card.is-info { background: var(--bg); }
.item-card[data-folder], .item-card[data-file] { cursor: pointer; }
.empty-sector { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius-md); }

/* contatos + info */
.contact-grid, .info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.contact-card { padding: 16px; background: white; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.contact-card .c-name { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.contact-card .c-role { font-size: 12.5px; color: var(--muted); margin-bottom: 0.4rem; }
.contact-card .c-link { display: block; font-size: 13px; color: var(--blue); }
.contact-card .c-link:hover { text-decoration: underline; }
.info-chip { padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); }
.info-chip .k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 0.25rem; }
.info-chip .v { font-size: 14px; color: var(--navy); font-weight: 500; }

/* ===== HEADER DE DETALHE (página de setor) + seletor ===== */
.detail-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.detail-head .h-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.detail-head .h-icon svg { width: 28px; height: 28px; stroke-width: 1.8; }
.detail-head h1 { font-size: 28px; color: var(--navy); margin: 0 0 4px; letter-spacing: -0.025em; }
.detail-head .h-owner { font-size: 14px; color: var(--blue); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.detail-head .h-owner .owner-empty { color: var(--muted); font-weight: 400; font-style: italic; }
.detail-head .h-tagline { font-size: 15px; color: var(--muted); margin-top: 6px; max-width: 46rem; }
.detail-head .h-main { flex: 1; min-width: 0; }
.sector-select select { appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); background: white url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e7b91' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 14px center; border: 1px solid var(--border); border-radius: 10px; padding: 9px 36px 9px 14px; cursor: pointer; }
.owner-edit { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); background: white; color: var(--muted); cursor: pointer; font-size: 0.78rem; }
.owner-edit:hover { border-color: var(--blue); color: var(--blue); }

/* ===== EDITOR ===== */
.edit-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 18px; }
.btn-edit-toggle { display: inline-flex; align-items: center; gap: 0.4rem; padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 700; border: 1px solid var(--blue); background: var(--blue-soft); color: var(--blue); cursor: pointer; font-family: inherit; }
.btn-edit-toggle.on { background: var(--blue); color: white; }
.btn-add { display: inline-flex; align-items: center; gap: 0.3rem; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; border: 1px dashed var(--border); background: transparent; color: var(--navy); cursor: pointer; font-family: inherit; }
.btn-add:hover { border-color: var(--blue); border-style: solid; background: var(--blue-soft); color: var(--blue); }
.item-card.edit { border-style: dashed; }
.item-card .kind-tag { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.edit-tools { display: flex; gap: 0.25rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.edit-tools button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: white; color: var(--muted); cursor: pointer; font-size: 0.85rem; line-height: 1; }
.edit-tools button:hover { border-color: var(--blue); color: var(--blue); }
.edit-tools button[data-act="del"]:hover { border-color: var(--error); color: var(--error); }
.item-card.is-hidden { opacity: 0.62; }
.im-people { max-height: 210px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 0.4rem 0.55rem; margin-top: 0.25rem; background: var(--field-bg); }
.im-people label { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; margin: 0; font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text); cursor: pointer; }
.im-people input[type="checkbox"] { width: auto; padding: 0; margin: 0; flex-shrink: 0; }
.im-current { font-size: 12px; color: var(--muted); margin-top: 0.25rem; }

/* ===== ESTADOS VAZIOS ===== */
.empty, .empty-state, .not-found { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; margin: 0 auto 14px; color: #c3ccda; stroke-width: 1.6; }
.empty h3, .empty-state-title, .not-found h1 { margin: 0 0 6px; color: var(--navy); font-size: 17px; }
.empty p, .empty-state-text, .not-found p { margin: 0 0 14px; font-size: 14px; }

/* ===== REQUEST CARDS ===== */
.req-card { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: white; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.req-card .req-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.req-card h3 { margin: 0; font-size: 15px; color: var(--navy); }
.req-card p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.req-card .req-foot { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(16,33,61,0.42); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-overlay.open, .modal-overlay.active { display: flex; }
.modal { width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; background: white; border-radius: 22px; padding: 28px; box-shadow: 0 30px 80px rgba(16,33,61,0.28); }
.modal h2, .modal-title { margin: 0 0 4px; font-size: 21px; color: var(--navy); font-weight: 700; }
.modal .sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.modal label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 14px 0 6px; }
.modal input, .modal textarea, .modal select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; font: inherit; font-size: 14.5px; color: var(--text); background: var(--field-bg); }
.modal textarea { min-height: 90px; resize: vertical; }
.modal .err, .modal .im-err { color: var(--error); font-size: 13px; margin-top: 10px; min-height: 1em; }
.modal .actions, .modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: white; padding: 13px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); z-index: 200; opacity: 0; transition: 0.25s; pointer-events: none; }
.toast.show { opacity: 1; bottom: 34px; }
.mock-flag { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); background: #fff1e8; padding: 2px 7px; border-radius: 6px; font-weight: 800; margin-left: 8px; }

/* ===== FOOTER ===== */
.site-footer { padding: 24px 36px 40px; color: var(--muted); font-size: 12.5px; text-align: center; }
.page .site-footer, .main-column .site-footer { margin: 0; }

/* ===== RESPONSIVO ===== */
@media (max-width: 1280px) {
  .content { grid-template-columns: 1fr; }
  .right-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .sector-grid, .quick-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .page { margin-left: 0; }
  .mobile-menu { display: block; }
  .top-search { display: none; }
  .user-area .u-meta { display: none; }
  .content { padding: 22px; }
  .hero { padding: 32px 22px; } .hero-art { display: none; }
  .search-large { margin: -24px 12px 22px; }
  .sector-grid, .quick-grid, .card-grid, .right-panel { grid-template-columns: 1fr; }
  .detail-head { flex-direction: column; }
}
