:root {
    --bg: #f6f8fc;
    --panel: #ffffff;
    --card: #ffffff;
    --muted: #5b667a;
    --text: #0f172a;
    --line: rgba(0, 0, 0, 0.678);
    --primary: #2563eb;
    --success: #16a34a;
    --warn: #f59e0b;

    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #8eb3ab;
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Topbar ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand__title {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: .2px;
}

.brand__sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ===== Cards ===== */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

/* ===== Form ===== */
.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 2px solid var(--line);
    background: #fff;
    color: var(--text);
    outline: none;
}

.field input:focus {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.hint {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(91, 102, 122, .95);
}

.form__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.form__row--small {
    margin-top: 2px;
    gap: 12px;
}

.divider {
    width: 1px;
    height: 28px;
    background: var(--line);
}

.spacer {
    flex: 1;
}

/* ===== Buttons ===== */
.btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    transition: .15s ease;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 23, 42, .18);
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn--primary {
    background: rgb(37, 100, 235);
    border-color: rgb(37, 100, 235);
    color: #ffffff;
}

.btn--success {
    background: rgb(22, 163, 74);
    border-color: rgb(22, 163, 74);
    color: #ffffff;
}

.btn--ghost {
    background: #fff;
}

/* ===== Status & Progress ===== */
.status {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.progress {
    position: relative;
    height: 34px;
    border-radius: 12px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: #fff;
    margin-bottom: 14px;
}

.progress__bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(37, 99, 235, .85), rgba(22, 163, 74, .85));
    width: 0%;
    transition: width .15s linear;
}

.progress__text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    color: #0f172a;
    text-shadow: none;
}

.hidden {
    display: none;
}

/* ===== Grid ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width:1100px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width:900px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width:720px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:520px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.item {
    position: relative;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
    min-height: 140px;
    cursor: pointer;
    transition: .12s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.item:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 23, 42, .18);
}

.item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: #fff;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
}

.check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    user-select: none;
}

.item.selected {
    border-color: rgba(22, 163, 74, .55);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .12), 0 10px 24px rgba(15, 23, 42, .06);
}

.item.selected .check {
    background: rgba(22, 163, 74, .90);
    border-color: rgba(22, 163, 74, .90);
    color: #062012;
}

/* ===== Meta ===== */
.meta {
    padding: 10px 10px 12px 10px;
}

.meta .title {
    font-size: 12px;
    color: rgba(15, 23, 42, .92);
    font-weight: 800;
    line-height: 1.25;
    min-height: 30px;
}

.meta .small {
    margin-top: 6px;
    font-size: 11px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.mini__value {
    font-weight: 900;
    color: var(--text);
}

.select {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    outline: none;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    color: rgba(91, 102, 122, .92);
    font-size: 12px;
    padding: 6px 0 18px;
}


/* ===== Buscas rápidas ===== */
.quick__title {
    font-weight: 900;
    margin-bottom: 10px;
    color: rgba(15, 23, 42, .88);
}

.quick__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qbtn {
    border: 1px solid rgba(15, 23, 42, .14);
    background: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    color: rgba(15, 23, 42, .86);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    transition: .15s ease;
}

.qbtn:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, .35);
}

.qbtn.active {
    background: rgba(37, 99, 235, .10);
    border-color: rgba(37, 99, 235, .35);
    color: #103a9e;
}


#btnCarregarMais{
    background-color: #ffd900;
    color: #000;
    border-color: #744d09;
}