/**
 * WK Flow — Agência WK
 * Dark mode · Gold #FFC107 · Blue accent · Poppins + Inter
 */

:root {
    --bg: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #121212;
    --bg-card-hover: #1a1a1a;
    --bg-input: #0d0d0d;
    --text: #ffffff;
    --text-muted: #b3b3b3;
    --text-dim: #888888;
    --border: #2a2a2a;
    --accent: #ffc107;
    --accent-hover: #e6ac00;
    --accent-text: #000000;
    --blue: #0056b3;
    --blue-bright: #00aeef;
    --danger: #ff4d4d;
    --success: #2ecc71;
    --warning: #fd7e14;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 24px rgba(255, 193, 7, 0.15);
    --font: 'Inter', system-ui, sans-serif;
    --font-head: 'Poppins', sans-serif;
    --gradient-gold-blue: linear-gradient(90deg, var(--accent) 0%, var(--blue-bright) 100%);
    --safe-bottom: env(safe-area-inset-bottom, 0);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100dvh;
    padding-bottom: calc(1rem + var(--safe-bottom));
}

.app-body { display: flex; flex-direction: column; min-height: 100dvh; }

/* ========== LOGIN SCREEN (index) ========== */
.login-screen {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.login-screen-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 193, 7, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 86, 179, 0.08), transparent),
        var(--bg);
    pointer-events: none;
}

.login-screen-main {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.login-card--hero {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow), var(--shadow-glow);
    text-align: center;
}

.brand-logo--login {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin: 0 auto 1.25rem;
    display: block;
}

.login-title {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-gold-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

.login-form { text-align: left; }

.login-email-display {
    margin: 0;
    padding: 0.75rem 0.85rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--accent);
    font-weight: 600;
    word-break: break-all;
}

.login-back {
    text-align: center;
    margin: 1rem 0 0;
    font-size: 0.9rem;
}
.login-back a {
    color: var(--text-muted);
    text-decoration: none;
}
.login-back a:hover { color: var(--accent); }

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.login-footer p { margin: 0; }

/* ========== HEADER ========== */
.app-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 36px; width: auto; max-width: 140px; object-fit: contain; }
.brand-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
}

.nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: var(--radius);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 -6px 0 var(--accent), 0 6px 0 var(--accent);
}

.app-nav {
    display: none;
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    gap: 0.25rem;
    border-top: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-secondary);
}
.app-nav.is-open { display: flex; }

.app-nav a {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: var(--radius);
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
}
.app-nav a:hover { color: var(--text); background: var(--bg-card); }
.app-nav a.active { color: var(--accent); background: rgba(255, 193, 7, 0.08); }
.app-nav a.nav-logout { color: var(--danger); }

.nav-util {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    margin: 0.15rem 0;
}
.nav-util:hover,
.nav-util.is-active {
    color: var(--accent);
    border-color: rgba(255, 193, 7, 0.4);
}
/* Menu cliente (mobile: hambúrguer) */
.client-header .header-inner {
    width: 100%;
}

.client-nav {
    background: var(--bg-secondary);
    padding-bottom: 0.5rem;
}

.client-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.35rem 0.75rem;
}

/* Links e botões do menu — mesma base visual */
.client-nav a,
.client-nav button.client-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: calc(100% - 1rem);
    margin: 0.15rem 0.5rem;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.client-nav a:hover,
.client-nav button.client-nav-item:hover {
    color: var(--text);
    background: var(--bg-card-hover);
    border-color: #333;
}

.client-nav a:active,
.client-nav button.client-nav-item:active {
    transform: scale(0.99);
}

/* Botão Ativar alertas — destaque WK */
.client-nav button.client-nav-item--push {
    color: var(--text);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.14), rgba(255, 193, 7, 0.04));
    border-color: rgba(255, 193, 7, 0.45);
    box-shadow: 0 2px 12px rgba(255, 193, 7, 0.12);
}

.client-nav button.client-nav-item--push:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.22), rgba(255, 193, 7, 0.08));
}

.client-nav button.client-nav-item--push.is-active {
    border-color: var(--success);
    background: rgba(46, 204, 113, 0.1);
}

.client-nav button.client-nav-item--install {
    color: var(--text-muted);
}

/* Ícone sino (CSS — sem emoji do sistema) */
.client-nav-item__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--accent);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22Zm7-6V11a7 7 0 1 0-14 0v5l-2 2v1h18v-1l-2-2Z'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22Zm7-6V11a7 7 0 1 0-14 0v5l-2 2v1h18v-1l-2-2Z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.client-nav-item__icon--install {
    background: var(--text-muted);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6 2h12v4H6V2Zm-2 6h16v12H4V8Zm4 2v8h2v-8H8Zm6 0v8h2v-8h-2Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6 2h12v4H6V2Zm-2 6h16v12H4V8Zm4 2v8h2v-8H8Zm6 0v8h2v-8h-2Z'/%3E%3C/svg%3E");
}

.client-nav-item__label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.client-nav-item__text {
    font-weight: 600;
    font-size: 1rem;
    color: inherit;
}

.client-nav-item__hint {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-dim);
    line-height: 1.3;
}

.client-nav .nav-logout {
    display: flex;
    margin-top: 0.35rem;
    color: var(--danger);
    background: transparent;
    border-color: var(--border);
}

.client-nav .nav-logout:hover {
    background: rgba(255, 77, 77, 0.08);
    border-color: rgba(255, 77, 77, 0.35);
    color: var(--danger);
}

@media (min-width: 768px) {
    .client-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .client-header .nav-toggle {
        display: none;
    }
    .client-nav {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        border: none;
        padding: 0 1rem 0.5rem;
        gap: 0.15rem;
    }
    .client-nav-divider {
        display: none;
    }
    .client-nav a,
    .client-nav button.client-nav-item {
        width: auto;
        margin: 0;
        padding: 0.5rem 0.85rem;
        font-size: 0.9rem;
    }
    .client-nav-item__hint {
        display: none;
    }
    .client-nav-item__label {
        flex-direction: row;
        align-items: center;
        gap: 0.35rem;
    }
    .client-nav-item__icon {
        width: 18px;
        height: 18px;
    }
}

/* ========== MAIN ========== */
.app-main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.app-footer {
    text-align: center;
    padding: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}

.page-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text);
}
.page-subtitle {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}
.page-subtitle a { color: var(--accent); }

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: border-color 0.15s;
}
.card:hover { border-color: #333; }

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.card-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.35;
}
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}

/* ========== STATS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.1s;
}
.stat-card:active { transform: scale(0.98); }
.stat-card:hover { border-color: var(--accent); }
.stat-value {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.stat-card.accent {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(0, 86, 179, 0.15));
    border-color: rgba(255, 193, 7, 0.35);
}
.stat-card.accent .stat-value { color: var(--accent); }

/* ========== STATUS BADGES ========== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.status-novo_pedido { background: rgba(0, 174, 239, 0.2); color: #5bc0eb; }
.status-em_analise { background: rgba(255, 193, 7, 0.15); color: var(--accent); }
.status-em_andamento { background: rgba(46, 204, 113, 0.15); color: #5dde8a; }
.status-aguardando_cliente { background: rgba(255, 77, 77, 0.15); color: #ff8a8a; }
.status-aguardando_aprovacao { background: rgba(0, 86, 179, 0.25); color: #6eb5ff; }
.status-agendado { background: rgba(255, 193, 7, 0.25); color: var(--accent); }
.status-concluido { background: rgba(46, 204, 113, 0.25); color: #2ecc71; }
.status-cancelado { background: rgba(136, 136, 136, 0.2); color: var(--text-dim); }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 48px;
    padding: 0.65rem 1.25rem;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.35);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.45);
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-success {
    background: var(--success);
    color: #000;
    min-height: 52px;
    font-size: 1.05rem;
    font-weight: 700;
}
.btn-sm {
    min-height: 40px;
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
}
.btn-block { width: 100%; }

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ========== FORMS ========== */
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}
.form-hint { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.35rem; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 0.85rem;
    font-family: var(--font);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text);
}
textarea { min-height: 100px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}
select option { background: var(--bg-card); color: var(--text); }

.form-row { display: grid; gap: 1rem; }
@media (min-width: 600px) {
    .form-row-2 { grid-template-columns: 1fr 1fr; }
}

/* ========== FILTERS & TABS ========== */
/* Painel de filtros — recolhível no mobile */
.filters-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin-bottom: 1rem;
    overflow: hidden;
    box-sizing: border-box;
}

.filters-panel__toggle {
    display: none;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    margin: 0;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.filters-panel__toggle-label {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.filters-panel__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-text);
    background: var(--accent);
    border-radius: 999px;
}

.filters-panel__chevron {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -2px;
}

.filters-panel.is-open .filters-panel__chevron {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.filters-panel.has-filters .filters-panel__toggle {
    color: var(--text);
}

.filters-panel__content {
    width: 100%;
    box-sizing: border-box;
}

.filters-panel__form {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.filters-panel__fields {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.filters-panel__fields .form-group {
    margin-bottom: 0;
    width: 100%;
}

.filters-panel__fields .form-group select,
.filters-panel__fields .form-group input {
    width: 100%;
    max-width: 100%;
}

.filters-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding-top: 0.25rem;
}

.filters-panel__actions .btn {
    margin: 0;
}

/* Mobile: conteúdo recolhido */
@media (max-width: 767px) {
    .filters-panel__toggle {
        display: flex;
    }

    .filters-panel__content {
        display: none;
        padding: 0 1rem 1rem;
        border-top: 1px solid var(--border);
        background: var(--bg-card);
    }

    .filters-panel.is-open .filters-panel__content {
        display: block;
    }

    .filters-panel__fields {
        grid-template-columns: 1fr;
    }
}

/* Desktop: sempre visível */
@media (min-width: 768px) {
    .filters-panel__toggle {
        display: none;
    }

    .filters-panel__content {
        display: block;
        padding: 1rem;
    }

    .filters-panel__fields {
        grid-template-columns: 1fr 1fr;
    }

    .filters-panel__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .filters-panel__actions .btn-block {
        width: auto;
        min-width: 140px;
    }
}

.tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}
.tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.tab.active {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

/* ========== ALERTS ========== */
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}
.alert-success { background: rgba(46, 204, 113, 0.15); color: #5dde8a; border: 1px solid rgba(46, 204, 113, 0.3); }
.alert-error { background: rgba(255, 77, 77, 0.12); color: #ff8a8a; border: 1px solid rgba(255, 77, 77, 0.3); }
.alert-info { background: rgba(0, 174, 239, 0.12); color: #5bc0eb; border: 1px solid rgba(0, 174, 239, 0.3); }
.alert-warning { background: rgba(255, 193, 7, 0.12); color: var(--accent); border: 1px solid rgba(255, 193, 7, 0.3); }

/* ========== LOGIN (admin legacy) ========== */
.login-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.timeline time { display: block; font-size: 0.8rem; color: var(--text-dim); }

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 500;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.is-open { display: flex; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    width: 100%;
    max-width: 420px;
}
.modal h3 { margin: 0 0 0.5rem; font-family: var(--font-head); color: var(--text); }
.modal-actions { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.modal-actions .btn { flex: 1; }

/* ========== TABLE ========== */
table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
table.data-table th,
table.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
table.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.client-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}
.client-hero h1 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
}

.priority-alta { color: var(--danger); font-weight: 600; }
.priority-media { color: var(--accent); }
.priority-baixa { color: var(--text-dim); }

.subtask-list { list-style: none; padding: 0; margin: 0; }
.subtask-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.view-tabs { margin-bottom: 1rem; }

.task-list-default .task-card--parent {
    margin-bottom: 1.25rem;
}

.task-nested-subtasks {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

.task-subtask-nested {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}
.task-subtask-nested:last-child { border-bottom: none; }

.card-title--sub {
    font-size: 0.95rem;
    font-weight: 600;
}

.subtask-indicator {
    color: var(--accent);
    margin-right: 0.25rem;
}

.badge-subtask {
    background: rgba(0, 174, 239, 0.2);
    color: #5bc0eb;
    margin-bottom: 0.5rem;
}

.task-card--sub-flat {
    border-left: 3px solid var(--blue-bright);
}

.parent-link {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
}

.checklist-users {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.95rem;
}
.checklist-item input { width: auto; min-height: auto; }

.suggest-banner {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(0, 86, 179, 0.1));
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

pre {
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* ========== DESKTOP ========== */
@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .app-header { display: flex; flex-wrap: wrap; }
    .header-inner { flex: 1; }
    .app-nav {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        border: none;
        padding: 0 1rem 0 0;
        gap: 0.15rem;
        background: transparent;
    }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .modal-overlay { align-items: center; }
    .task-list-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .task-list-grid .card { margin: 0; }
}

@media (min-width: 1024px) {
    .task-list-grid { grid-template-columns: repeat(3, 1fr); }
    .app-main { padding: 1.5rem 2rem; }
}
