/* header */
.header-section-gob {
    background-color: #611232;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
} 

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.header-text {
    font-size: 18px;
    font-weight: bold;
}

.header-nav-gob {
    display: flex;
    gap: 20px;
}

.header-nav-gob .nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
}

.header-nav-gob .nav-link:hover {
    text-decoration: none;
    background-color: #9B2247;
    color: #fff;
    border-radius: 4px;
}

/* Principal content */
.principal {
    padding: 20px;
    margin-left: 0;
    margin-top: 70px; 
}

@media (min-width: 992px) {
    .principal {
        margin-left: 280px;
    }
}
/* header */

/* footer */
.footer-section {
    background-color: #1B396A;
    color: #fff;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin-left: 0;
    margin-top: auto;
}

@media (min-width: 992px) {
    .footer-section {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-image {
    max-width: 180px; 
    margin-right: 3rem; 
}

.footer-section p {
    margin: 10px 3rem;
    font-size: 15px;
}

@media (max-width: 767.98px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-image {
        max-width: 80px; 
        margin-right: 0;
        margin-bottom: 10px;
    }
    .footer-section p {
        font-size: 10px;
        margin: 5px 1rem;
    }
    .footer-section {
        margin-left: 0;
        width: 100%;
    }
}
/* footer */

/* Sidebar Styles */
.material-symbols-outlined {
    font-size: 24px;
    vertical-align: middle;
}

/* Botón toggle para móvil */
.sidebar-toggle {
    position: fixed;
    left: 20px;
    top: 70px;
    z-index: 1020;
    background-color: #1B396A !important;
    color: white !important;
    border: none !important;
    border-radius: 5px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sidebar-toggle:hover {
    background-color: #233e69 !important;
}

/* Offcanvas para móvil */
.offcanvas {
    background-color: #f8f9fa;
    width: 280px !important;
}

.offcanvas-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.offcanvas-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
}

.offcanvas-body {
    padding: 0;
}

/* Sidebar Desktop */
.sidebar-desktop {
    position: fixed;
    left: 0;
    top: 60px;
    width: 280px;
    height: calc(100vh - 60px);
    background-color: #f8f9fa;
    padding: 20px 0;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1020;
}

.sidebar-header h3 {
    font-size: 2rem;
    font-weight: 600;
    padding: 0 20px;
    margin-bottom: 1rem;
}

#mobileUserName,
#desktopUserName {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    padding: 0 20px;
    margin-bottom: 15px;
}

/* Navegación del sidebar */
.sidebar-nav {
    padding: 0;
    margin: 0;
}

.sidebar-nav .nav-link {
    color: #000;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 0;
}

.sidebar-nav .nav-link:hover {
    background-color: #1B396A;
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background-color: #1B396A;
    color: #fff;
}

/* Cards originales */
.card-custom {
    border: none;
    background-color: #f0f2f5;
    text-align: center;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-custom {
    background-color: #807E82;
    color: #fff;
    border: none;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-custom:hover {
    background-color: #233e69;
    color: #fff;
}

.btn-detalle{
    background-color: #233e69;
    color: #fff;
}

.btn-detalle:hover {
    background-color: #807E82;
    color: #fff; 
}

.table-custom th, .table-custom td {
    vertical-align: middle;
}

.badge {
    padding: 5px 10px;
    border-radius: 10px;
}

.badge-active {
    background-color: #d4edda; 
    color: #155724; 
    padding: 0.5rem;
    width: 5rem;
}

.badge-inactive {
    background-color: #f8d7da; 
    color: #721c24; 
    padding: 0.5rem;
    width: 5rem;
}

.badge-served {
    background-color: #91c6ffff; 
    color: #2b0f99ff; 
    padding: 0.5rem;
    width: 5rem;
}

.badge-assigned {
    background-color: #fffcacff; 
    color: #000000ff; 
    padding: 0.5rem;
    width: 5rem;
}

.badge-registered {
    background-color: #ffa87dff; 
    color: #000000ff; 
    padding: 0.5rem;
    width: 5rem;
}

.detalle-ticket{
    margin-top: 4rem;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.login-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.btn-login {
    background-color: #807E82;
    color: #fff;
    border: none;
    padding: 10px 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-login:hover {
    background-color: #233e69;
    color: #fff;
}

.filter-panel {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.filter-panel h4 {
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-check {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.filter-check input[type="checkbox"] {
    margin-right: 5px;
}

.filter-check label {
    margin-bottom: 0;
    color: #495057;
    font-size: 0.9rem;
}

.detail-container{
    padding: 20px;
    margin-left: 0;
}

@media (min-width: 992px) {
    .detail-container {
        margin-left: 280px;
    }
}

.short-select {
    width: 8rem;
}

.dashboard-title {
    text-align: center;
}

.ticket-detail {
    --gap: 14px;
    --label-w: 150px;
    --accent: #0f6fbf;
    padding: 20px;
    margin-left: 0;
    margin-top: 5rem;
}

@media (min-width: 992px) {
    .ticket-detail {
        margin-left: 280px;
    }
}

.ticket-detail body {
    font-family: Segoe UI, Roboto, Arial;
    background: #f3f6fb;
    color: #0f172a;
    margin: 20px;
}

.ticket-detail .card {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(12, 25, 40, 0.08);
}

.ticket-detail h1 {
    font-size: 22px;
    margin: 0 0 12px;
    color: var(--accent);
}

.ticket-detail .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.ticket-detail .row-full {
    grid-column: 1 / -1;
}

.ticket-detail .field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 2px solid #e6eef6;
}

.ticket-detail .field:last-child {
    border-bottom: 0;
}

.ticket-detail .label {
    width: var(--label-w);
    font-weight: 600;
    color: #334155;
    font-size: 13px;
}

.ticket-detail .value {
    flex: 1;
    color: #0b1220;
    padding-top: 2px;
}

.ticket-detail .value p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.ticket-detail .images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.ticket-detail .thumb {
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e6eef6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-detail .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ticket-detail .meta {
    color: #556074;
    font-size: 13px;
}

.ticket-detail .actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 14px;
}

.ticket-detail button {
    padding: 8px 12px;
    border-radius: 8px;
    border: 0;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.ticket-detail button.secondary {
    background: #eef6ff;
    color: var(--accent);
    border: 1px solid rgba(15, 111, 191, 0.12);
}

@media (max-width: 820px) {
    .ticket-detail .grid {
        grid-template-columns: 1fr;
    }
    .ticket-detail {
        --label-w: 120px;
        margin-left: 0;
    }
}