/* ===========================================================================
   IZP 360 — Design System (Instituto Zeca Pagodinho)
   Paleta: verde petróleo + dourado. Estilo SaaS editorial e limpo.
   =========================================================================== */
:root {
    --primary: #0f4c3a;
    --primary-2: #17604a;
    --primary-3: #0a3528;
    --accent: #eab308;
    --accent-soft: #fef3c7;
    --ink: #16241f;
    --muted: #5b6b64;
    --line: #e4eae6;
    --bg: #f5f7f6;
    --card: #ffffff;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --success: #16a34a;
    --success-soft: #dcfce7;
    --info: #0891b2;
    --info-soft: #cffafe;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(16, 40, 32, .06);
    --shadow: 0 4px 16px rgba(16, 40, 32, .08);
    --shadow-lg: 0 12px 32px rgba(16, 40, 32, .14);
    --sidebar-w: 264px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }

/* ---------- Layout ---------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--primary-3) 0%, var(--primary) 70%, var(--primary-2) 100%);
    color: #dcebe5;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 50;
    overflow-y: auto;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-mark {
    width: 40px; height: 40px; border-radius: 11px;
    background: var(--accent); color: var(--primary-3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px;
    box-shadow: 0 4px 14px rgba(234,179,8,.35);
}
.brand-logo {
    display: block;
    width: 100%;
    max-width: 212px;
    height: auto;
    margin: 0 auto;
}
.brand-name { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.1; }
.brand-sub { font-size: 11px; color: #9fc3b5; letter-spacing: .4px; }

.nav { padding: 14px 12px 28px; flex: 1; }
.nav-group { margin-bottom: 18px; }
.nav-title {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px;
    color: #7fae9d; font-weight: 700; padding: 4px 10px 8px;
}
.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 11px; border-radius: 10px;
    color: #cfe3da; font-weight: 500; font-size: 13.5px;
    transition: background .15s, color .15s;
    position: relative;
}
.nav-item .ico { width: 20px; text-align: center; font-size: 15px; }
.nav-item .ico.icone-amarelo { filter: sepia(1) saturate(9) hue-rotate(-38deg) brightness(1.05) contrast(1.05); }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: rgba(234,179,8,.16); color: #fff; font-weight: 600; }
.nav-item.active::before {
    content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
    width: 4px; border-radius: 0 4px 4px 0; background: var(--accent);
}
.nav-item.disabled { color: #6f9185; cursor: not-allowed; opacity: .65; }
.nav-item.disabled:hover { background: transparent; color: #6f9185; }
.nav-tag {
    margin-left: auto; font-size: 9px; text-transform: uppercase; letter-spacing: .5px;
    background: rgba(255,255,255,.1); color: #9fc3b5;
    padding: 2px 6px; border-radius: 20px; font-weight: 700;
}

.sidebar-foot {
    padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08);
    font-size: 11px; color: #7fae9d; line-height: 1.5;
}

/* ---------- Main ---------- */
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }

.topbar {
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: 14px 28px; display: flex; align-items: center; gap: 16px;
    position: sticky; top: 0; z-index: 40;
}
.topbar h1 { font-size: 19px; font-weight: 700; margin: 0; flex: 1; }
.topbar .crumb { font-size: 12px; color: var(--muted); display: block; margin-top: 1px; }

.search { position: relative; }
.search input {
    border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 8px 34px;
    font-size: 13px; width: 220px; background: var(--bg); outline: none; transition: border .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,76,58,.1); background: #fff; }
.search .sico { position: absolute; left: 11px; top: 9px; color: var(--muted); font-size: 14px; }

.user-menu { position: relative; }
.user-btn {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 50px; padding: 5px 12px 5px 5px;
    background: #fff; transition: box-shadow .15s;
}
.user-btn:hover { box-shadow: var(--shadow-sm); }
.avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
.user-btn .uname { font-size: 13px; font-weight: 600; }
.user-btn .uprof { font-size: 11px; color: var(--muted); }
.user-dd {
    position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 210px; padding: 6px; display: none;
}
.user-dd.open { display: block; }
.user-dd a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 13px; }
.user-dd a:hover { background: var(--bg); }

.content { padding: 26px 28px 40px; }

/* ---------- Flash ---------- */
.flash { margin-bottom: 18px; }
.flash .msg {
    padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; font-size: 13.5px; font-weight: 500;
    border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
}
.flash .msg.sucesso { border-color: #bbf7d0; background: var(--success-soft); color: #14532d; }
.flash .msg.erro { border-color: #fecaca; background: var(--danger-soft); color: #7f1d1d; }

/* ---------- Cards / stats ---------- */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 20px;
}
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-h h2, .card-h h3 { margin: 0; font-size: 15px; font-weight: 700; }
.card-h .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.stat {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat .s-ico {
    width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 19px; margin-bottom: 12px;
}
.stat .s-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat .s-value { font-size: 26px; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.stat .s-delta { font-size: 11.5px; color: var(--success); font-weight: 600; margin-top: 4px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
    color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid #eef2f0; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #fafcfb; }
.tbl .cell-main { font-weight: 600; }
.tbl .cell-sub { font-size: 12px; color: var(--muted); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
    border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
    background: #eef2f0; color: #46554e;
}
.badge.green { background: var(--success-soft); color: #14532d; }
.badge.amber { background: var(--warning-soft); color: #92400e; }
.badge.red { background: var(--danger-soft); color: #7f1d1d; }
.badge.blue { background: var(--info-soft); color: #155e75; }
.badge.gold { background: var(--accent-soft); color: #854d0e; }
.badge.outline { background: #fff; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    border: 1px solid transparent; border-radius: 10px; padding: 9px 15px;
    font-size: 13px; font-weight: 600; font-family: inherit; transition: all .15s;
    white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--primary-3); }
.btn-accent:hover { background: #d4a506; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 11px 20px; font-size: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: #33453d; }
.field .hint { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.field input, .field select, .field textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
    font-size: 13.5px; font-family: inherit; background: #fff; outline: none; transition: border .15s, box-shadow .15s;
    color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,76,58,.1);
}
.field textarea { resize: vertical; min-height: 76px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; padding: 6px 0; }
.check input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--primary); }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }

.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filterbar select, .filterbar input {
    border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px;
    font-family: inherit; background: #fff; outline: none;
}
.filterbar input:focus, .filterbar select:focus { border-color: var(--primary); }

/* ---------- Impacto / funil ---------- */
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: flex; align-items: center; gap: 12px; }
.funnel-row .f-label { width: 250px; font-size: 13px; font-weight: 500; text-align: right; color: #33453d; }
.funnel-row .f-bar {
    flex: 1; height: 30px; background: #eef2f0; border-radius: 8px; overflow: hidden; position: relative;
}
.funnel-row .f-fill {
    height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--primary), #1e7a5c);
    display: flex; align-items: center; justify-content: flex-end; padding-right: 10px;
    color: #fff; font-weight: 700; font-size: 12.5px; transition: width .5s;
}
.funnel-row:first-child .f-fill { background: linear-gradient(90deg, var(--accent), #f5c33d); color: var(--primary-3); }
.funnel-row .f-num { width: 46px; font-weight: 800; font-size: 14px; color: var(--ink); }

/* ---------- Progress ring / misc ---------- */
.progress { height: 8px; background: #eef2f0; border-radius: 20px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 20px; }

.empty {
    text-align: center; padding: 40px 20px; color: var(--muted);
}
.empty .e-ico { font-size: 34px; margin-bottom: 10px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar h2 { margin: 0; font-size: 18px; }

.pill-freq { display: inline-flex; gap: 6px; }
.pill-freq label {
    cursor: pointer; border: 1px solid var(--line); border-radius: 20px; padding: 5px 13px;
    font-size: 12.5px; font-weight: 600; background: #fff; transition: all .15s;
}
.pill-freq input { display: none; }
.pill-freq input:checked + span { color: #fff; }
.pill-freq label:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
.pill-freq .pf-falta:has(input:checked) { background: var(--danger); border-color: var(--danger); }
.pill-freq .pf-just:has(input:checked) { background: var(--warning); border-color: var(--warning); }

.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }

/* ---------- Login ---------- */
.login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-3), var(--primary) 55%, var(--primary-2));
    padding: 24px;
}
.login-card {
    width: 100%; max-width: 420px; background: #fff; border-radius: 20px;
    box-shadow: var(--shadow-lg); padding: 36px 34px;
}
.login-logo {
    width: 58px; height: 58px; border-radius: 15px; background: var(--primary);
    color: var(--accent); display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 27px; margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(15,76,58,.3);
}
.login-logo-img {
    display: block;
    max-width: 220px;
    width: 80%;
    height: auto;
    margin: 0 auto 18px;
}
.login-card h1 { margin: 0 0 4px; font-size: 22px; }
.login-card .lead { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; text-align: center; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.demo-box {
    margin-top: 22px; background: var(--bg); border: 1px dashed var(--line);
    border-radius: 12px; padding: 14px; font-size: 12.5px; color: var(--muted);
}
.demo-box code { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 12px; color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===========================================================================
   IZP 360 — Responsivo Mobile (menu recolhível)
   =========================================================================== */
.menu-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: none;
    border: 1px solid var(--line); border-radius: 11px;
    background: var(--card); color: var(--primary);
    font-size: 20px; line-height: 1; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.menu-toggle:hover { background: var(--bg); }
.menu-toggle:active { transform: scale(.96); }
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 45;
    background: rgba(7, 26, 20, .55);
    opacity: 0; visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; }

    .sidebar {
        width: 280px;
        transform: translateX(-105%);
        transition: transform .28s ease;
        box-shadow: 0 20px 50px rgba(7, 26, 20, .45);
    }
    .sidebar.open { transform: translateX(0); }

    .sidebar-overlay { display: block; }
    .sidebar-overlay.show { opacity: 1; visibility: visible; }

    .main { margin-left: 0; }

    .topbar { padding: 10px 14px; gap: 10px; }
    .topbar h1 { font-size: 16px; }
    .search { display: none; }
    .user-btn .uname, .user-btn .uprof { display: none; }
    .user-btn .avatar { width: 34px; height: 34px; font-size: 14px; }
    .user-dd { top: 46px; right: 0; min-width: 180px; }

    .content { padding: 16px 14px 32px; }

    /* Toda grade com colunas fixas vira 1 coluna no mobile (exceto auto-fit/auto-fill) */
    .grid,
    .content [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]) {
        grid-template-columns: 1fr !important;
    }

    .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .toolbar h2 { font-size: 16px; }
    .toolbar .btn, .toolbar .btn-group { align-self: flex-start; }

    .card { padding: 15px; }
    .card-h { flex-wrap: wrap; gap: 8px; }
    .card-h h3 { font-size: 15px; }

    .filterbar { align-items: stretch; }
    .filterbar select, .filterbar input { flex: 1 1 100%; width: 100%; }

    .form-actions { flex-wrap: wrap; }
    .form-actions .btn { flex: 1 1 auto; justify-content: center; }

    .funnel-row { flex-direction: column; align-items: stretch; gap: 3px; }
    .funnel-row .f-label { width: auto; text-align: left; font-size: 12.5px; }
    .funnel-row .f-bar { height: 24px; }

    .table-wrap { -webkit-overflow-scrolling: touch; }
}

/* ---------- Upload de evidências (diário digital) ---------- */
.field-upload {
    margin-top: 8px;
    padding: 14px;
    border: 1.5px dashed var(--line);
    border-radius: 10px;
    background: #fafcfb;
    transition: border-color .15s ease, background .15s ease;
}
.field-upload:hover { border-color: var(--primary); background: #f3faf6; }
.field-upload input[type="file"] {
    width: 100%;
    font-size: 13px;
    color: var(--muted);
    padding: 6px 0;
    cursor: pointer;
}
.field-upload input[type="file"]::file-selector-button {
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    background: var(--accent-soft);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 7px 14px;
    margin-right: 10px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.field-upload input[type="file"]::file-selector-button:hover {
    background: var(--primary);
    color: #fff;
}
.field-upload .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.upload-box { display: block; }
.upload-readonly {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f9f8;
}

.anexos-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}
.anexo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s ease, background .15s ease;
}
.anexo-item:hover {
    border-color: var(--primary);
    background: var(--accent-soft);
}
.anexo-ico { font-size: 18px; line-height: 1; }
.anexo-nome {
    flex: 1;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.anexo-tam {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .topbar { padding: 8px 10px; }
    .topbar h1 { font-size: 15px; }
    .content { padding: 12px 10px 24px; }
    .btn { padding: 9px 13px; font-size: 12.5px; }
    .grid, .grid-2, .grid-3, .grid-4 { gap: 12px; }
    .field input, .field select, .field textarea { font-size: 13px; padding: 8px 10px; }
    .flash .msg { font-size: 12.5px; }
}

/* ---------- Cards de Empregabilidade ---------- */
.k-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.k-card{position:relative;display:flex;flex-direction:column;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:var(--shadow-sm);transition:transform .15s ease,box-shadow .15s ease;overflow:hidden}
.k-card:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(15,76,58,.10)}
.k-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.k-ico{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:21px;flex-shrink:0}
.k-ico.info{background:var(--info-soft)}
.k-ico.accent{background:var(--accent-soft)}
.k-ico.success{background:var(--success-soft)}
.k-ico.warning{background:var(--warning-soft)}
.k-title{font-size:14.5px;font-weight:700;color:var(--text);line-height:1.3;margin:0}
.k-sub{font-size:12px;color:var(--muted);margin-top:2px}
.k-meta{display:flex;flex-wrap:wrap;gap:6px}
.k-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:600;background:#eef2f0;color:#46554e}
.k-chip.dark{background:var(--primary);color:#fff}
.k-chip.gold{background:var(--accent-soft);color:#854d0e}
.k-chip.green{background:var(--success-soft);color:#14532d}
.k-chip.red{background:var(--danger-soft);color:#7f1d1d}
.k-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px dashed var(--line);padding-top:10px}
.k-foot .k-who{font-size:12px;color:var(--muted);font-weight:600}
.k-foot .k-when{font-size:11.5px;color:var(--muted)}
.k-status{margin-left:auto}
.k-feedback{font-size:12.5px;color:#3f4f48;background:#f7f9f8;border:1px solid var(--line);border-radius:9px;padding:8px 10px;line-height:1.45}
.k-feedback b{color:var(--text);font-size:11px;text-transform:uppercase;letter-spacing:.4px;display:block;margin-bottom:3px}
.k-link{position:absolute;inset:0;z-index:1}
.k-top1{border:2px solid #eab308;background:linear-gradient(180deg,#fffbeb,#fff)}
.k-top2{border:2px solid #94a3b8;background:linear-gradient(180deg,#f8fafc,#fff)}
.k-top3{border:2px solid #d97706;background:linear-gradient(180deg,#fff7ed,#fff)}

/* ------------------------------------------------------------------ */
/* IZP 360 — Modal genérico (edição de cards do Inventário Musical)    */
/* ------------------------------------------------------------------ */
.inv-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(8, 32, 25, .55);
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.inv-modal.open { display: flex; }
.inv-modal-box {
    background: var(--card);
    color: var(--ink);
    width: 100%;
    max-width: 660px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 22px 22px 18px;
    animation: invModalIn .18s ease;
}
@keyframes invModalIn {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.inv-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.inv-modal-box h3 { margin: 0 0 3px; font-size: 17px; color: var(--primary); }
.inv-modal-sub { font-size: 12px; color: var(--muted); }
.inv-modal-x {
    border: none; background: var(--bg); color: var(--muted);
    width: 32px; height: 32px; border-radius: 9px; cursor: pointer;
    font-size: 16px; line-height: 1; flex: none;
    transition: background .15s ease, color .15s ease;
}
.inv-modal-x:hover { background: var(--danger-soft); color: var(--danger); }
.inv-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inv-modal-grid .field { margin: 0; }
.inv-modal-grid .field.full { grid-column: 1 / -1; }
.inv-modal-grid label { font-size: 11px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }
.inv-modal-grid input,
.inv-modal-grid select,
.inv-modal-grid textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
}
.inv-modal-grid input:focus,
.inv-modal-grid select:focus,
.inv-modal-grid textarea:focus { outline: 2px solid var(--primary-2); outline-offset: 0; border-color: var(--primary-2); }
.inv-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@media (max-width: 560px) {
    .inv-modal { padding: 16px 10px; }
    .inv-modal-grid { grid-template-columns: 1fr; }
}
