/* SIPANET - Estilos principais */

:root {
    --sp-primary:   #000066;
    --sp-secondary: #2980b9;
    --sp-accent:    #f39c12;
    --sp-bg:        #f4f6f9;
    --sp-sidebar:   #1c2833;
    --sp-text:      #2c3e50;
    --sp-border:    #dde3ea;
    --sp-radius:    6px;
}

/* ---- Base ---- */
body {
    background: var(--sp-bg);
    color: var(--sp-text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.9rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}
.nav-link {
    color: #BABABA;
	font-weight: 500;
}
/* ---- Navbar ---- */
.navbar {
    background: var(--sp-primary) !important;
}

.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}
.img-responsive, .thumbnail a > img, .thumbnail > img {
  display: block;
  max-width: 100%;
  height: auto
}

/* ---- Cards ---- */
.card {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.card-header {
    background: #fff;
    border-bottom: 2px solid var(--sp-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
}

/* ---- Tabelas ---- */
.table {
    font-size: 0.875rem;
}

.table thead th {
    background: var(--sp-primary);
    color: #fff;
    font-weight: 500;
    border: none;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: #eaf2fb;
}

.table-responsive {
    border-radius: var(--sp-radius);
    overflow: hidden;
    border: 1px solid var(--sp-border);
}

/* ---- Formulários ---- */
.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--sp-text);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sp-secondary);
    box-shadow: 0 0 0 0.2rem rgba(41, 128, 185, 0.2);
}

/* ---- Botões ---- */
.btn-primary {
    background: var(--sp-primary);
    border-color: var(--sp-primary);
}

.btn-primary:hover {
    background: var(--sp-secondary);
    border-color: var(--sp-secondary);
}

/* ---- Badge de situação ---- */
.badge-situacao {
    font-size: 0.70rem;
    padding: 0.5em;
    border-radius: 5px;
    font-weight: 500;
}

/* ---- Número do processo ---- */
.numero-processo {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-weight: 700;
    color: var(--sp-primary);
    font-size: 0.90rem;
}

/* ---- Página de login ---- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-primary);
}

.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.login-logo {
    font-size: 2.5rem;
    color: var(--sp-primary);
}

/* ---- Dashboard stats ---- */
.stat-card {
    background: #fff;
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-border);
    padding: 1.25rem;
    text-align: center;
    transition: transform .15s, box-shadow .15s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sp-primary);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
}

.stat-card .stat-icon {
    font-size: 1.8rem;
    opacity: 0.15;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

/* ---- Tramitação timeline ---- */
.tramite-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.25rem;
    border-left: 2px solid var(--sp-border);
    margin-left: 0.5rem;
}

.tramite-item:last-child {
    border-left-color: transparent;
}

.tramite-dot {
    position: absolute;
    left: -0.45rem;
    top: 0.1rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--sp-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--sp-primary);
}

/* ---- Paginação ---- */
.pagination .page-link {
    color: var(--sp-primary);
    border-color: var(--sp-border);
    font-size: 0.85rem;
}

.pagination .page-item.active .page-link {
    background: var(--sp-primary);
    border-color: var(--sp-primary);
}

/* ---- Impressão ---- */
@media print {
    .navbar, .footer, .btn, .no-print { display: none !important; }
    .card { box-shadow: none; border: 1px solid #ccc; }
    body { background: white; }
}

/* ---- Responsivo ---- */
@media (max-width: 768px) {
    .table-responsive table {
        font-size: 0.8rem;
    }
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width:767px) {
  .hidden-xs {
    display: none !important
  }
}
@media (min-width:768px) and (max-width:991px) {
  .hidden-sm {
    display: none !important
  }
}
@media (min-width:992px) and (max-width:1199px) {
  .hidden-md {
    display: none !important
  }
}
@media (min-width:1200px) {
  .hidden-lg {
    display: none !important
  }
}
.visible-print {
  display: none !important
}
