:root {
    --primary: #005f89;
    --primary-dark: #004866;
    --primary-soft: #e7f3f8;

    --accent: #f9aa33;
    --accent-soft: #fff3df;

    --dark: #15171c;
    --dark-2: #202328;

    --text: #1b1d22;
    --muted: #5f6368;
    --bg: #f4f4f4;
    --white: #ffffff;
    --border: #e4e4e4;

    --danger: #dc2626;
    --success: #16a34a;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 8px 20px rgba(21, 23, 28, .06);
    --shadow: 0 18px 38px rgba(21, 23, 28, .09);
    --shadow-dark: 0 24px 70px rgba(0, 0, 0, .32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 117, 168, .08), transparent 28%),
        var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(16, 24, 32, .88), rgba(16, 24, 32, .68)),
        url('../img/bg-embramais.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: "";
    width: 460px;
    height: 460px;
    background: rgba(249, 170, 51, .16);
    filter: blur(80px);
    position: absolute;
    right: -120px;
    top: -120px;
    border-radius: 999px;
}

.login-box {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: var(--radius-lg);
    padding: 42px;
    box-shadow: var(--shadow-dark);
    position: relative;
    z-index: 2;
}

.login-logo {
    max-width: 190px;
    display: block;
    margin-bottom: 26px;
}

.login-brand {
    margin-bottom: 28px;
}

.login-brand span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-soft);
    color: #9a5b00;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: .04em;
}

.login-brand h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.08;
    color: var(--text);
    font-weight: 900;
    letter-spacing: -.04em;
}

.login-brand p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

/* FORM */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text);
}

.form-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: var(--text);
    transition: .2s ease;
}

textarea.form-control {
    padding-top: 13px;
}

.form-control:hover {
    border-color: #cbd5e1;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 117, 168, .12);
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    transition: .2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 117, 168, .18);
}

.btn-primary:hover {
    box-shadow: 0 14px 28px rgba(0, 117, 168, .24);
}

.btn-accent {
    background: var(--accent-soft);
    color: #8a5200;
}

.btn-accent:hover {
    background: var(--accent);
    color: #111;
}

.btn-dark {
    background: #eef2f6;
    color: var(--dark);
}

.btn-dark:hover {
    background: var(--dark);
    color: #fff;
}

.btn-danger {
    background: #fee2e2;
    color: #991b1b;
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-full {
    width: 100%;
}

/* ALERTS */

.alert-error,
.alert-info,
.alert-success,
.alert-warning {
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert-error {
    background: #fff1f2;
    color: #991b1b;
    border-color: #fecdd3;
}

.alert-info {
    background: #eff6ff;
    color: #075985;
    border-color: #bfdbfe;
}

.alert-success {
    background: #ecfdf5;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

/* ADMIN */

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background:
        linear-gradient(180deg, var(--dark), var(--dark-2));
    color: var(--white);
    padding: 26px 18px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-logo {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 24px;
}

.sidebar-logo img {
    max-width: 170px;
    display: block;
    margin-bottom: 18px;
}

.sidebar-logo span {
    display: inline-flex;
    background: rgba(249, 170, 51, .14);
    color: var(--accent);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.sidebar-logo h2 {
    margin: 12px 0 0;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.04em;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu a {
    color: #cbd5e1;
    padding: 13px 14px;
    font-weight: 800;
    font-size: 14px;
    border-radius: 12px;
    transition: .2s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.sidebar-menu a.active {
    box-shadow: inset 3px 0 0 var(--accent);
}

.main {
    flex: 1;
    padding: 34px;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.topbar h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.04em;
}

.topbar p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
}

/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: .2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card::before {
    content: "";
    width: 84px;
    height: 84px;
    background: var(--primary-soft);
    position: absolute;
    right: -22px;
    top: -22px;
    border-radius: 999px;
}

.card::after {
    content: "";
    width: 42px;
    height: 5px;
    background: var(--accent);
    position: absolute;
    top: 0;
    left: 26px;
    border-radius: 0 0 999px 999px;
}

.card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 800;
}

.card strong {
    font-size: 40px;
    line-height: 1;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: -.04em;
    position: relative;
    z-index: 2;
}

/* TABLE */

.table-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

.table th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .04em;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table tr:hover td {
    background: #fbfdff;
}

/* BADGES */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 999px;
    letter-spacing: .03em;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-dark {
    background: #e2e8f0;
    color: #334155;
}

.badge-accent {
    background: var(--accent-soft);
    color: #8a5200;
}

.badge-primary {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

/* PAGE */

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.form-card {
    background: var(--white);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 780px;
    box-shadow: var(--shadow-sm);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
    gap: 16px;
}

/* CLIENT AREA */

.client-area {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(0, 117, 168, .08), transparent 28%),
        var(--bg);
}

.client-header {
    background:
        linear-gradient(120deg, rgba(16, 24, 32, .9), rgba(16, 24, 32, .72)),
        url('../img/bg-embramais.jpg') center/cover no-repeat;
    color: #fff;
    padding: 46px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.client-header::after {
    content: "";
    width: 360px;
    height: 360px;
    background: rgba(249, 170, 51, .14);
    filter: blur(60px);
    position: absolute;
    right: -80px;
    top: -120px;
    border-radius: 999px;
}

.client-header > * {
    position: relative;
    z-index: 2;
}

.client-header span {
    display: inline-flex;
    background: rgba(249, 170, 51, .16);
    color: var(--accent);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 14px;
    letter-spacing: .05em;
}

.client-header h1 {
    margin: 0;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.client-header p {
    margin: 10px 0 0;
    color: #dbe5ee;
    max-width: 720px;
    line-height: 1.6;
}

.client-main {
    padding: 34px 7%;
}

/* CLIENT SUMMARY */

.client-summary {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.summary-card {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    position: relative;
    color: var(--text);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: .2s ease;
}

.summary-card::before {
    content: "";
    width: 38px;
    height: 5px;
    background: var(--accent);
    position: absolute;
    top: 0;
    left: 18px;
    border-radius: 0 0 999px 999px;
}

.summary-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: .04em;
}

.summary-card strong {
    font-size: 32px;
    line-height: 1;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: -.04em;
}

.summary-link:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 117, 168, .28);
    box-shadow: var(--shadow);
}

/* CLIENT FILTERS */

.client-filters {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 26px;
    box-shadow: var(--shadow-sm);
}

/* DOCUMENTS */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.document-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: .2s ease;
    overflow: hidden;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.document-card::before {
    content: "";
    width: 44px;
    height: 5px;
    background: var(--accent);
    position: absolute;
    top: 0;
    left: 24px;
    border-radius: 0 0 999px 999px;
}

.document-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    padding-top: 4px;
}

.document-card-top small {
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
}

.document-card h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.25;
    color: var(--text);
    font-weight: 900;
    letter-spacing: -.03em;
}

.document-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.document-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.document-tags span {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.empty-state {
    grid-column: 1 / -1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 42px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-state h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

/* RESPONSIVO */

@media (max-width: 1200px) {
    .client-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .main {
        padding: 24px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .cards,
    .grid-2,
    .grid-4,
    .client-filters {
        grid-template-columns: 1fr;
    }

    .client-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .login-box {
        padding: 30px;
        border-radius: 18px;
    }

    .client-summary,
    .documents-grid {
        grid-template-columns: 1fr;
    }

    .client-main {
        padding: 24px;
    }

    .client-header {
        padding: 36px 24px;
    }
}
.client-nav {
    width: 86%;
    max-width: 1400px;
    margin: -24px auto 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px;
    display: flex;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    position: relative;
    z-index: 20;
}

.client-nav a {
    flex: 1;
    text-align: center;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--muted);
    transition: all .25s ease;
}

.client-nav a:hover {
    background: #f5f7fa;
    color: var(--primary);
}

.client-nav a.active {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .client-nav {
        width: calc(100% - 24px);
        margin-top: 16px;
        flex-direction: column;
    }
}

.form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.form-card-large {
    width: 100%;
    max-width: 900px;
}

.form-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.form-header h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
}

.form-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}
.form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.form-card-large {
    width: 100%;
    max-width: 900px;
}

.form-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.form-header h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 900;
    color: var(--text);
}

.form-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.form-footer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.upload-box {
    min-height: 130px;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    cursor: pointer;
    transition: .2s ease;
    text-align: left;
}

.upload-box:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.upload-box input {
    display: none;
}

.upload-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.upload-box strong {
    display: block;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 4px;
}

.upload-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.file-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.file-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
}

.file-item span {
    color: var(--muted);
    font-size: 12px;
}


.os-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.os-detail-main {
    display: grid;
    gap: 20px;
}

.os-detail-card,
.os-side-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.os-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.os-detail-header > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.os-detail-header small {
    color: var(--muted);
    font-weight: 700;
}

.os-detail-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.os-detail-card p {
    color: var(--muted);
    line-height: 1.7;
}

.os-side-card {
    margin-bottom: 20px;
}

.os-side-card h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 900;
}

.os-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.os-info-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.os-info-list li:last-child {
    border-bottom: 0;
}

.os-info-list span {
    color: var(--muted);
    font-size: 13px;
}

.os-info-list strong {
    font-size: 13px;
    text-align: right;
}

.timeline {
    position: relative;
    display: grid;
    gap: 16px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 3px solid var(--primary-soft);
    border-radius: 999px;
    margin-top: 5px;
}

.timeline-content {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.timeline-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.timeline-top strong {
    color: var(--text);
}

.timeline-top small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.timeline-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.attachment-list {
    display: grid;
    gap: 8px;
}

.attachment-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.muted-text {
    color: var(--muted);
    margin: 0;
}

@media (max-width: 1000px) {
    .os-detail-grid {
        grid-template-columns: 1fr;
    }

    .os-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }
}


.attachment-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    display: block;
}

.attachment-item {
    display: block;
}

.attachment-file-icon {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--primary);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.input-password-action {
    grid-template-columns: 1fr auto auto;
}

@media (max-width: 700px) {
    .input-password-action {
        grid-template-columns: 1fr;
    }
}

.admin-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 900px) 340px;
    gap: 22px;
    align-items: start;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 16px;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-section-title span {
    width: 30px;
    height: 30px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.form-section-title strong {
    font-size: 15px;
    font-weight: 900;
    color: var(--text);
}

.input-action {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.form-side-card {
    background:
        linear-gradient(145deg, rgba(21, 23, 28, .96), rgba(32, 35, 40, .96));
    color: #fff;
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 34px;
}

.form-side-card > span {
    display: inline-flex;
    background: rgba(249, 170, 51, .14);
    color: var(--accent);
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    margin-bottom: 16px;
}

.form-side-card h3 {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
}

.form-side-card ul {
    margin: 0;
    padding-left: 18px;
    color: #d1d5db;
    line-height: 1.7;
    font-size: 14px;
}

.side-card-note {
    margin-top: 22px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: 14px;
    color: #e5e7eb;
    line-height: 1.5;
    font-size: 13px;
}

@media (max-width: 1150px) {
    .admin-form-layout {
        grid-template-columns: 1fr;
    }

    .form-side-card {
        position: static;
    }
}

@media (max-width: 700px) {
    .input-action {
        grid-template-columns: 1fr;
    }
}

.dashboard-hero {
    background:
        linear-gradient(135deg, rgba(21, 23, 28, .96), rgba(32, 35, 40, .94));
    color: #fff;
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    box-shadow: var(--shadow);
}

.dashboard-hero span {
    display: inline-flex;
    background: rgba(249, 170, 51, .14);
    color: var(--accent);
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.dashboard-hero h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.dashboard-hero p {
    margin: 10px 0 0;
    color: #d1d5db;
    max-width: 680px;
    line-height: 1.6;
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.dashboard-cards {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 20px;
}

.dashboard-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.status-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: .2s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.status-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
}

.status-card strong {
    display: block;
    font-size: 36px;
    color: var(--primary);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.status-card small {
    color: var(--muted);
    font-weight: 600;
}

.status-card-alert strong {
    color: var(--danger);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}

.dashboard-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.panel-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.panel-header a {
    color: var(--primary);
    font-weight: 900;
    font-size: 13px;
}

.dashboard-list {
    display: grid;
    gap: 10px;
}

.dashboard-list-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    transition: .2s ease;
}

.dashboard-list-item:hover {
    background: var(--primary-soft);
    border-color: rgba(0, 95, 137, .18);
}

.dashboard-list-item strong {
    display: block;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 5px;
}

.dashboard-list-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-list-item small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.empty-mini {
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.table-box-clean {
    box-shadow: none;
}

@media (max-width: 1200px) {
    .dashboard-cards,
    .dashboard-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .dashboard-cards,
    .dashboard-status-grid {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVIDADE GERAL */

@media (max-width: 1200px) {
    .cards,
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .documents-grid,
    .os-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-form-layout,
    .os-detail-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-side-card,
    .os-detail-side {
        position: static;
    }
}

@media (max-width: 900px) {
    .app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 18px;
    }

    .sidebar-logo {
        margin-bottom: 16px;
    }

    .sidebar-logo img {
        max-width: 150px;
    }

    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sidebar-menu a {
        flex: 1 1 auto;
        text-align: center;
        font-size: 13px;
        padding: 11px 12px;
    }

    .main {
        padding: 22px;
    }

    .topbar,
    .dashboard-hero,
    .client-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-hero-actions,
    .page-actions,
    .form-footer {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .client-nav {
        width: calc(100% - 32px);
        flex-direction: column;
        margin-top: 16px;
    }

    .client-filters,
    .grid-2,
    .grid-4,
    .input-action,
    .input-password-action {
        grid-template-columns: 1fr;
    }

    .table-box {
        overflow-x: auto;
    }

    .table {
        min-width: 850px;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 14px;
    }

    .main,
    .client-main {
        padding: 18px;
    }

    .login-box {
        padding: 28px;
        border-radius: 18px;
    }

    .login-brand h1,
    .client-header h1,
    .dashboard-hero h1,
    .topbar h1 {
        font-size: 28px;
    }

    .cards,
    .dashboard-cards,
    .dashboard-status-grid,
    .client-summary,
    .documents-grid,
    .os-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .summary-card,
    .document-card,
    .os-card,
    .form-card,
    .dashboard-panel,
    .os-detail-card,
    .os-side-card {
        padding: 20px;
    }

    .btn {
        width: 100%;
    }

    .form-footer .btn,
    .page-actions .btn,
    .dashboard-hero-actions .btn {
        width: 100%;
    }

    .client-header {
        padding: 34px 22px;
    }

    .upload-box {
        flex-direction: column;
        text-align: center;
    }

    .os-detail-header,
    .panel-header,
    .dashboard-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .sidebar-menu {
        flex-direction: column;
    }

    .sidebar-menu a {
        width: 100%;
    }

    .login-box {
        padding: 24px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .card strong,
    .summary-card strong,
    .status-card strong {
        font-size: 30px;
    }

    .table {
        min-width: 760px;
    }
}