/* ════════════════════════════════════════
   VARIÁVEIS — DARK (padrão)
════════════════════════════════════════ */

:root {
    --bg-page:    #1a1a1a;
    --bg-surface: #252525;
    --bg-raised:  #2a2a2a;
    --bg-sunken:  #1e1e1e;

    --bd-strong:  #333;
    --bd-base:    #2e2e2e;
    --bd-input:   #3a3a3a;

    --tx-1: #f0f0f0;
    --tx-2: #e0e0e0;
    --tx-3: #d0d0d0;
    --tx-4: #999;
    --tx-5: #888;
    --tx-6: #777;
    --tx-7: #666;
    --tx-8: #555;
    --tx-9: #444;

    --ac:       #c9a84c;
    --ac-light: #e8cc7a;
    --ac-focus: rgba(201, 168, 76, 0.05);
    --ac-bg:    rgba(201, 168, 76, 0.1);
    --ac-bg2:   rgba(201, 168, 76, 0.12);
    --ac-bg3:   rgba(201, 168, 76, 0.15);
    --ac-bd:    rgba(201, 168, 76, 0.25);
    --ac-bd2:   rgba(201, 168, 76, 0.3);
    --ac-bd3:   rgba(201, 168, 76, 0.4);
    --ac-glow:  rgba(201, 168, 76, 0.35);
}


/* ════════════════════════════════════════
   BASE
════════════════════════════════════════ */

body {
    background-color: var(--bg-page);
    min-height: 100vh;
    transition: background-color 0.2s, color 0.2s;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ════════════════════════════════════════
   LOGIN / REGISTRO / RECUPERAR SENHA
════════════════════════════════════════ */

.login-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 1rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.login-logo {
    display: block;
    width: 180px;
    margin: 0 auto 1.75rem;
    filter: drop-shadow(0 0 8px var(--ac-glow));
}

.login-card {
    background: var(--bg-surface);
    border: 1px solid var(--bd-strong);
    border-radius: 12px;
    padding: 2rem 2.2rem;
}

.login-card h2 {
    color: var(--tx-1);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.login-card .subtitle {
    color: var(--tx-5);
    font-size: 13px;
    margin-bottom: 1.75rem;
}

.form-label {
    font-size: 12px;
    color: var(--tx-4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.form-control {
    background: var(--bg-sunken) !important;
    border: 1px solid var(--bd-input) !important;
    border-radius: 8px !important;
    color: var(--tx-2) !important;
    height: 44px;
    font-size: 14px;
}

.form-control:focus {
    box-shadow: 0 0 0 2px var(--ac-glow) !important;
    border-color: var(--ac) !important;
}

.form-control::placeholder {
    color: var(--tx-8) !important;
}

.forgot-link {
    color: var(--ac);
    font-size: 12px;
    text-decoration: none;
    float: right;
    margin-top: 6px;
}

.forgot-link:hover {
    color: var(--ac-light);
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, var(--ac), var(--ac-light));
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.btn-login:hover {
    opacity: 0.9;
    color: #1a1a1a;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1rem 0;
    color: var(--tx-8);
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bd-strong);
}

.btn-register {
    width: 100%;
    height: 44px;
    background: transparent;
    border: 1px solid var(--ac);
    border-radius: 8px;
    color: var(--ac);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.btn-register:hover {
    background: var(--ac-bg);
    color: var(--ac-light);
}

.login-footer {
    text-align: center;
    color: var(--tx-8);
    font-size: 11px;
    margin-top: 1.5rem;
}

/* ── Alertas ── */
.alert {
    border-radius: 8px;
    font-size: 13px;
    border: none;
}

.alert-danger  { background: #3b1f1f; color: #f28b82; }
.alert-success { background: #1b3328; color: #81c995; }
.alert-warning { background: #3b2f10; color: #fdd663; }
.alert-info    { background: #1b2a3b; color: #78b9f2; }



/* ════════════════════════════════════════
   PÁGINAS INTERNAS
════════════════════════════════════════ */

.container-dark {
    max-width: 1400px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.page-title {
    color: var(--tx-1);
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 0.25rem;
}

.page-subtitle {
    color: var(--tx-5);
    font-size: 13px;
    margin: 0;
}

.btn-voltar {
    color: var(--ac);
    font-size: 13px;
    text-decoration: none;
    border: 1px solid var(--bd-input);
    border-radius: 8px;
    padding: 6px 14px;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-voltar:hover {
    background: var(--ac-bg);
    color: var(--ac-light);
}

/* ── Tabela ── */
.table-card {
    background: var(--bg-surface);
    border: 1px solid var(--bd-strong);
    border-radius: 12px;
    overflow: hidden;
}

.tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tabela thead tr {
    background: var(--bg-sunken);
    border-bottom: 1px solid var(--bd-strong);
}

.tabela th {
    color: var(--tx-4);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 16px;
    text-align: left;
}

.tabela td {
    color: var(--tx-3);
    padding: 13px 16px;
    border-bottom: 1px solid var(--bd-base);
}

.tabela tbody tr:last-child td {
    border-bottom: none;
}

.tabela tbody tr:hover {
    background: var(--bg-raised);
}

.tabela-vazia {
    text-align: center;
    color: var(--tx-7);
    padding: 2rem !important;
}

/* ── Badges ── */
.badge-nivel, .badge-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.badge-admin    { background: var(--ac-bg3); color: var(--ac); border: 1px solid var(--ac-bd2); }
.badge-operador { background: rgba(120, 185, 242, 0.1); color: #78b9f2; border: 1px solid rgba(120, 185, 242, 0.2); }
.badge-usuario  { background: rgba(175, 169, 236, 0.1); color: #afa9ec; border: 1px solid rgba(175, 169, 236, 0.2); }
.badge-ativo    { background: rgba(129, 201, 149, 0.1); color: #81c995; border: 1px solid rgba(129, 201, 149, 0.2); }
.badge-inativo  { background: rgba(242, 139, 130, 0.1); color: #f28b82; border: 1px solid rgba(242, 139, 130, 0.2); }

.btn-editar {
    color: var(--ac);
    font-size: 12px;
    text-decoration: none;
    border: 1px solid var(--ac-bd2);
    border-radius: 6px;
    padding: 4px 12px;
    transition: background 0.2s;
}

.btn-editar:hover {
    background: var(--ac-bg);
    color: var(--ac-light);
}

/* ── Formulário edição ── */
.form-card {
    background: var(--bg-surface);
    border: 1px solid var(--bd-strong);
    border-radius: 12px;
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-select-dark {
    appearance: none;
}

.text-check {
    color: var(--tx-4);
    font-size: 13px;
}

.form-check-input:checked {
    background-color: var(--ac) !important;
    border-color: var(--ac) !important;
}

.btn-login-interno {
    width: auto;
    height: 46px;
    padding: 0 1.5rem;
    background: linear-gradient(135deg, var(--ac), var(--ac-light));
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.btn-login-interno:hover {
    opacity: 0.9;
    color: #1a1a1a;
}

.btn-cancelar {
    height: 46px;
    padding: 0 1.5rem;
    background: transparent;
    border: 1px solid var(--bd-input);
    border-radius: 8px;
    color: var(--tx-5);
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}

.btn-cancelar:hover {
    background: var(--bg-raised);
    color: var(--tx-3);
}


/* ════════════════════════════════════════
   SIDEBAR / NAVBAR
════════════════════════════════════════ */

.sidebar-modern {
    width: 230px;
    min-width: 230px;
    min-height: 100vh;
    background: var(--bg-sunken);
    border-right: 1px solid var(--bd-base);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: background 0.2s, border-color 0.2s;
}

.sidebar-logo {
    width: 140px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.25));
}

.sidebar-divider {
    height: 1px;
    background: var(--bd-base);
    margin: 0.25rem 0;
}

/* ── Links ── */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--tx-4);
    text-decoration: none;
    font-size: 13.5px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-link i {
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.sidebar-link:hover {
    background: var(--bg-raised);
    color: var(--tx-2);
}

.sidebar-link.active {
    background: var(--ac-bg2);
    color: var(--ac);
    font-weight: 500;
}

.sidebar-link.active i {
    color: var(--ac);
}

/* ── Submenu ── */
.sidebar-sublink {
    font-size: 13px;
    padding: 7px 12px;
}

.sidebar-submenu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--tx-4);
    font-size: 13.5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    text-align: left;
}

.sidebar-submenu-toggle:hover {
    background: var(--bg-raised);
    color: var(--tx-2);
}

.sidebar-chevron {
    transition: transform 0.2s;
    font-size: 11px;
}

.sidebar-submenu-toggle[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(180deg);
}

/* ── Usuário ── */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    margin-bottom: 8px;
}

.sidebar-user-icon {
    font-size: 28px;
    color: var(--tx-8);
}

.sidebar-user-name {
    font-size: 13px;
    color: var(--tx-3);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.sidebar-user-badge {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #f28b82;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.sidebar-logout:hover {
    background: rgba(242, 139, 130, 0.1);
    color: #f28b82;
}

/* ── Notificações ── */
.notif-container {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 300;
}

/* Quando dentro do header do kanban */
.notif-container.notif-inline {
    position: relative;
    top: auto;
    right: auto;
}

.notif-bell-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--bd-strong);
    border-radius: 10px;
    color: var(--tx-4);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.notif-bell-btn:hover {
    background: var(--bg-raised);
    border-color: var(--bd-input);
    color: var(--tx-2);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 9px;
    font-weight: 700;
    background: #f28b82;
    color: #fff;
    padding: 1px 5px;
    border-radius: 20px;
    min-width: 16px;
    text-align: center;
    line-height: 14px;
    pointer-events: none;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    background: var(--bg-surface);
    border: 1px solid var(--bd-strong);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 300;
    overflow: hidden;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--bd-base);
    font-size: 12px;
    font-weight: 600;
    color: var(--tx-3);
}

.notif-marcar-todas {
    background: transparent;
    border: none;
    color: var(--ac);
    font-size: 11px;
    cursor: pointer;
    padding: 0;
}

.notif-marcar-todas:hover { color: var(--ac-light); }

.notif-lista {
    max-height: 320px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--bd-base);
    text-decoration: none;
    transition: background 0.15s;
}

.notif-item:last-child { border-bottom: none; }

.notif-item:hover { background: var(--bg-raised); }

.notif-item-icon {
    font-size: 14px;
    color: var(--ac);
    margin-top: 2px;
    flex-shrink: 0;
}

.notif-item-body { flex: 1; min-width: 0; }

.notif-item-msg {
    font-size: 12px;
    color: var(--tx-2);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-data {
    font-size: 10px;
    color: var(--tx-7);
    margin-top: 2px;
}

.notif-vazia {
    padding: 1.5rem;
    text-align: center;
    font-size: 12px;
    color: var(--tx-7);
}


/* ── Layout com sidebar ── */
.main-content {
    margin-left: 230px;
    min-height: 100vh;
    padding: 2rem;
    max-width: calc(100vw - 230px);
    box-sizing: border-box;
    overflow-x: hidden;
}


/* ════════════════════════════════════════
   ADMIN
════════════════════════════════════════ */

.admin-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--bd-strong);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    cursor: pointer;
}

.admin-card:hover {
    background: var(--bg-raised);
    border-color: var(--ac-bd3);
    transform: translateY(-2px);
}

.admin-card-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.admin-card-disabled:hover {
    background: var(--bg-surface);
    border-color: var(--bd-strong);
    transform: none;
}

.admin-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--ac-bg);
    border: 1px solid var(--ac-bd);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--ac);
}

.admin-card-title {
    color: var(--tx-2);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 3px;
}

.admin-card-subtitle {
    color: var(--tx-6);
    font-size: 12px;
}


/* ── Botão novo ── */
.btn-novo {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--ac), var(--ac-light));
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    text-decoration: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-novo:hover {
    opacity: 0.9;
    color: #1a1a1a;
}


/* ════════════════════════════════════════
   HOME
════════════════════════════════════════ */

.home-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 4rem);
    gap: 2.5rem;
    padding: 2rem;
}

.home-logo {
    max-width: 700px;
    width: 100%;
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.25));
}

.home-divisor {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 640px;
}

.home-divisor-linha {
    flex: 1;
    height: 1px;
    background: var(--bd-base);
}

.home-divisor-texto {
    color: var(--tx-9);
    font-size: 11px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 640px;
}

.home-card {
    background: var(--bg-surface);
    border: 1px solid var(--bd-strong);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.home-card:hover {
    background: var(--bg-raised);
    border-color: var(--ac-bd3);
    transform: translateY(-2px);
}

.home-card-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.home-card-disabled:hover {
    background: var(--bg-surface);
    border-color: var(--bd-strong);
    transform: none;
}

.home-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--ac-bg);
    border: 1px solid var(--ac-bd);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--ac);
}

.home-card-icon-off {
    background: rgba(100, 100, 100, 0.1);
    border-color: rgba(100, 100, 100, 0.2);
    color: var(--tx-8);
}

.home-card-title {
    color: var(--tx-2);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
}

.home-card-subtitle {
    color: var(--tx-7);
    font-size: 11px;
}


/* ════════════════════════════════════════
   UPLOAD DE FOTOS
════════════════════════════════════════ */

.form-control[rows] {
    height: auto;
}

.upload-area {
    background: var(--bg-sunken);
    border: 2px dashed var(--bd-input);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.upload-area:hover,
.upload-drag {
    border-color: var(--ac);
    background: var(--ac-focus);
}

.upload-icon {
    font-size: 32px;
    color: var(--tx-8);
    display: block;
    margin-bottom: 0.5rem;
}

.upload-texto {
    color: var(--tx-5);
    font-size: 14px;
    margin: 0;
}

.upload-subtexto {
    color: var(--tx-8);
    font-size: 11px;
    margin: 4px 0 0;
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-preview {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.upload-thumb {
    background: var(--bg-surface);
    border: 1px solid var(--bd-strong);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 110px;
}

.upload-thumb img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.upload-thumb span {
    font-size: 10px;
    color: var(--tx-7);
    text-align: center;
    word-break: break-all;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ════════════════════════════════════════
   BADGES TICKET
════════════════════════════════════════ */

.badge-prioridade, .badge-ticket-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Prioridade */
.badge-baixa   { background: rgba(129, 201, 149, 0.1); color: #81c995; border: 1px solid rgba(129, 201, 149, 0.2); }
.badge-normal  { background: rgba(120, 185, 242, 0.1); color: #78b9f2; border: 1px solid rgba(120, 185, 242, 0.2); }
.badge-alta    { background: rgba(253, 214, 99, 0.1);  color: #fdd663; border: 1px solid rgba(253, 214, 99, 0.2); }
.badge-urgente { background: rgba(242, 139, 130, 0.1); color: #f28b82; border: 1px solid rgba(242, 139, 130, 0.2); }

/* Status */
.badge-status-enviado     { background: rgba(120, 185, 242, 0.1); color: #78b9f2; border: 1px solid rgba(120, 185, 242, 0.2); }
.badge-status-aberto      { background: var(--ac-bg3); color: var(--ac); border: 1px solid var(--ac-bd2); }
.badge-status-em_analise  { background: rgba(175, 169, 236, 0.1); color: #afa9ec; border: 1px solid rgba(175, 169, 236, 0.2); }
.badge-status-em_correcao { background: rgba(253, 214, 99, 0.1);  color: #fdd663; border: 1px solid rgba(253, 214, 99, 0.2); }
.badge-status-parado      { background: rgba(242, 139, 130, 0.1); color: #f28b82; border: 1px solid rgba(242, 139, 130, 0.2); }
.badge-status-em_testes   { background: rgba(93, 202, 165, 0.1);  color: #5dcaa5; border: 1px solid rgba(93, 202, 165, 0.2); }
.badge-status-finalizado  { background: rgba(129, 201, 149, 0.1); color: #81c995; border: 1px solid rgba(129, 201, 149, 0.2); }


/* ════════════════════════════════════════
   KANBAN / VER TICKET
════════════════════════════════════════ */

.btn-excluir {
    height: 36px;
    padding: 0 14px;
    background: rgba(242, 139, 130, 0.1);
    border: 1px solid rgba(242, 139, 130, 0.3);
    border-radius: 8px;
    color: #f28b82;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-excluir:hover { background: rgba(242, 139, 130, 0.2); }

.historico-item {
    background: var(--bg-sunken);
    border-radius: 8px;
    padding: 10px 12px;
    border-left: 3px solid var(--bd-strong);
}

.historico-observacao { border-left-color: var(--ac); }
.historico-status     { border-left-color: #78b9f2; }
.historico-prioridade { border-left-color: #afa9ec; }
.historico-operador   { border-left-color: #5dcaa5; }
.historico-sistema    { border-left-color: var(--tx-8); }

.historico-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.historico-autor { font-size: 12px; font-weight: 500; color: var(--ac); }
.historico-data  { font-size: 11px; color: var(--tx-8); }
.historico-msg   { font-size: 13px; color: var(--tx-4); line-height: 1.5; }

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.info-label { color: var(--tx-7); }
.info-valor { color: var(--tx-3); font-weight: 500; }


/* ════════════════════════════════════════
   KANBAN
════════════════════════════════════════ */

.kanban-page {
    margin: -2rem;
    display: flex;
    flex-direction: column;
    height: calc(100vh + 4rem);
    overflow: hidden;
}

.kanban-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.kanban-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-kanban-nav {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--bd-input);
    border-radius: 6px;
    color: var(--tx-7);
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-kanban-nav:hover {
    border-color: var(--tx-6);
    color: var(--tx-4);
    background: var(--bg-raised);
}

.kanban-wrapper {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    min-height: 0;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.kanban-col {
    min-width: 280px;
    max-width: 280px;
    background: var(--bg-sunken);
    border: 1px solid var(--bd-base);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 6rem);
}

.kanban-col-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--bd-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px 12px 0 0;
}

.kanban-col-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--tx-3);
    letter-spacing: 0.3px;
}

.kanban-col-count {
    font-size: 11px;
    background: var(--bg-raised);
    color: var(--tx-6);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid var(--bd-strong);
}

.kanban-cards {
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.kanban-card {
    background: var(--bg-surface);
    border: 1px solid var(--bd-strong);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    text-decoration: none;
    display: block;
}

.kanban-card:hover {
    border-color: var(--ac-bd3);
    transform: translateY(-1px);
}

.kanban-card-numero {
    font-size: 11px;
    color: var(--ac);
    font-weight: 500;
    margin-bottom: 5px;
}

.kanban-card-titulo {
    font-size: 13px;
    color: var(--tx-2);
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

.kanban-card-setor {
    font-size: 10px;
    color: var(--tx-7);
    background: var(--bg-sunken);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--bd-base);
}

.kanban-card-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--bd-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kanban-card-data      { font-size: 10px; color: var(--tx-8); }
.kanban-card-operador  { font-size: 10px; color: var(--tx-5); display: flex; align-items: center; gap: 4px; }

.kanban-card-solicitante {
    font-size: 10px;
    color: var(--tx-6);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

/* Alertas de prazo */
.card-alerta-sem-previsao {
    background: rgba(242, 139, 130, 0.08) !important;
    border-color: rgba(242, 139, 130, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(242, 139, 130, 0.3);
}

.card-alerta-prazo {
    background: rgba(253, 214, 99, 0.08) !important;
    border-color: rgba(253, 214, 99, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(253, 214, 99, 0.3);
}

.card-alerta-vencido {
    background: rgba(242, 139, 130, 0.12) !important;
    border-color: rgba(242, 139, 130, 0.7) !important;
    box-shadow: 0 0 0 1px rgba(242, 139, 130, 0.5);
}

.kanban-card.prio-urgente { border-left: 3px solid #f28b82; }
.kanban-card.prio-alta    { border-left: 3px solid #fdd663; }
.kanban-card.prio-normal  { border-left: 3px solid #78b9f2; }
.kanban-card.prio-baixa   { border-left: 3px solid #81c995; }
.kanban-card.prio-none    { border-left: 3px solid var(--bd-strong); }

.col-enviado     .kanban-col-title { color: #78b9f2; }
.col-aberto      .kanban-col-title { color: var(--ac); }
.col-em_analise  .kanban-col-title { color: #afa9ec; }
.col-em_correcao .kanban-col-title { color: #fdd663; }
.col-parado      .kanban-col-title { color: #f28b82; }
.col-em_testes   .kanban-col-title { color: #5dcaa5; }
.col-finalizado  .kanban-col-title { color: #81c995; }

.kanban-vazio {
    text-align: center;
    color: var(--tx-9);
    font-size: 12px;
    padding: 1.5rem 0.5rem;
}

.modal-dark .modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--bd-strong);
    border-radius: 12px;
}
.modal-dark .modal-header { border-bottom: 1px solid var(--bd-strong); }
.modal-dark .modal-footer { border-top:    1px solid var(--bd-strong); }
.modal-dark .modal-title  { color: var(--tx-2); font-size: 16px; }
.modal-dark .btn-close    { filter: invert(1); }


.kanban-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.kanban-cards.drag-over {
    background: var(--ac-focus);
    border-radius: 8px;
    outline: 2px dashed var(--ac-bd2);
}

.kanban-card .badge-prioridade {
    font-size: 10px;
    padding: 2px 7px;
}

.kanban-card-operador i {
    font-size: 11px;
}

/* ── Confetes ── */
@keyframes confete-cair {
    0%   { transform: translateY(-20px) rotate(0deg);   opacity: 1; }
    100% { transform: translateY(100vh)  rotate(720deg); opacity: 0; }
}

.confete {
    position: fixed;
    top: -20px;
    z-index: 9999;
    pointer-events: none;
    animation: confete-cair linear forwards;
}

/* ── Scrollbars ── */
.kanban-cards::-webkit-scrollbar { width: 4px; }
.kanban-cards::-webkit-scrollbar-track { background: transparent; }
.kanban-cards::-webkit-scrollbar-thumb { background: var(--bd-input); border-radius: 3px; }
.kanban-cards::-webkit-scrollbar-thumb:hover { background: var(--tx-8); }

.kanban-wrapper::-webkit-scrollbar { height: 6px; }
.kanban-wrapper::-webkit-scrollbar-track { background: transparent; }
.kanban-wrapper::-webkit-scrollbar-thumb { background: var(--bd-input); border-radius: 3px; }
.kanban-wrapper::-webkit-scrollbar-thumb:hover { background: var(--tx-8); }
