/* =========================================================
   OS Ticket - Custom Modern
   Reemplazo completo para custom-modern.css
   ========================================================= */

/* ---------- Base ---------- */
html, body {
    background: #eef2f7 !important;
    color: #223046 !important;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

a {
    color: #b30f16 !important;
    text-decoration: none;
}

a:hover {
    color: #8e0b10 !important;
    text-decoration: underline;
}

/* ---------- Contenedor general ---------- */
#container {
    width: 92% !important;          /* 🔥 más angosto */
    max-width: 980px !important;    /* 🔥 clave real */
    margin: 20px auto !important;
    background: #ffffff !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden !important;
}
#content {
    padding: 24px !important;
    background: #f8fafc !important;
}

/* ---------- Header superior ---------- */
#header {
    background: linear-gradient(135deg, #9d0208, #d00000);
    padding: 12px 16px; /* 🔥 más compacto */
    display: flex;
    align-items: center;
    justify-content: center;
}

#header,
#header * {
    color: #ffffff !important;
}

#header #logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    text-decoration: none !important;
}

#header #logo img {
    max-height: 54px !important;
    width: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    border: 0 !important;
}

#header b {
 font-size: 12px !important;   /* 🔥 tamaño correcto */
    font-weight: 600 !important;  /* menos pesado */
    letter-spacing: 0.5px !important;
    text-transform: uppercase;
    margin: 0 !important;
}

#header .pull-right {
    margin-top: 4px !important;
}

#header .pull-right p {
    margin: 0 0 8px 0 !important;
    font-size: 13px !important;
}

#header .pull-right a {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* ---------- Botón volver al portal ---------- */
.btn-portal-back {
    position: fixed !important;
    top: 16px !important;
    left: 16px !important;
    z-index: 99999 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #d90429, #9d0208) !important;
    color: #fff !important;
    padding: 11px 16px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.22) !important;
    text-decoration: none !important;
    transition: all .18s ease !important;
}

.btn-portal-back:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 26px rgba(0,0,0,0.28) !important;
    text-decoration: none !important;
}

/* ---------- Menú principal ---------- */
#nav {
    list-style: none !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    border-bottom: 1px solid #dbe3ee !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

#nav li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

#nav li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    border: 1px solid #d7e0eb !important;
    background: #f8fafc !important;
    color: #243447 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

#nav li a:hover {
    background: #fff1f2 !important;
    border-color: #efb7bb !important;
    color: #a30d13 !important;
}

#nav li a.active,
#nav li .active {
    background: linear-gradient(135deg, #b30f16, #d1171f) !important;
    border-color: #b30f16 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(179,15,22,0.22) !important;
}

/* Oculta iconitos viejos que se ven duplicados */
#nav li a img,
#nav li a i.icon,
#nav li a .icon,
#nav li a .Icon {
    display: none !important;
}

/* ---------- Títulos ---------- */
h1, h2, h3, h4, h5, h6 {
    color: #12304a !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-top: 0 !important;
}

h1 { font-size: 30px !important; }
h2 { font-size: 24px !important; }
h3 { font-size: 20px !important; }

hr {
    border: 0 !important;
    border-top: 1px solid #dde6f0 !important;
    margin: 20px 0 !important;
}

/* ---------- Cajas / paneles ---------- */
table.ticket_info,
table.ticketInfo,
table.form_table,
table.list,
#ticketInfo,
#reply,
#post-reply,
#ticket-thread,
.thread-body,
.thread-entry,
.faqs,
#dashboard-stats,
.notice-banner,
.message-bar,
form,
#content > div,
#content > table {
    border-radius: 14px !important;
}

/* ---------- Formularios ---------- */
/* INPUTS SIN ROMPER OSTICKET */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="file"],
select,
textarea {
    max-width: 100% !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    border-color: #c5161d !important;
    box-shadow: 0 0 0 3px rgba(197,22,29,0.12) !important;
}

input::placeholder,
textarea::placeholder {
    color: #7f8b99 !important;
    opacity: 1 !important;
}

/* Corrige inputs viejos pequeños */
input,
select {
    min-height: 42px !important;
}

/* ---------- Botones ---------- */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.button,
.btn,
.green.button,
.red.button {
    appearance: none !important;
    border: 1px solid #b30f16 !important;
    background: linear-gradient(135deg, #b30f16, #d1171f) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 16px rgba(179,15,22,0.18) !important;
    text-shadow: none !important;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.button:hover,
.btn:hover {
    background: linear-gradient(135deg, #930c11, #b30f16) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ---------- Mensajes del sistema ---------- */
#msg_notice,
#msg_warning,
#msg_error,
.notice,
.warning,
.error {
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin-bottom: 18px !important;
    border: 1px solid transparent !important;
    font-weight: 600 !important;
}

#msg_notice,
.notice {
    background: #edf7ff !important;
    color: #12507a !important;
    border-color: #c8e6fb !important;
}

#msg_warning,
.warning {
    background: #fff8e8 !important;
    color: #7b5a00 !important;
    border-color: #f1dfac !important;
}

#msg_error,
.error {
    background: #fff1f2 !important;
    color: #9f1239 !important;
    border-color: #fecdd3 !important;
}

/* ---------- Tablas ---------- */
table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    color: #243447 !important;
}

table.list {
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

table.list thead th,
table.list tr th {
    background: #f4f7fb !important;
    color: #1f3147 !important;
    border-bottom: 1px solid #dbe3ee !important;
    padding: 13px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
}

table.list tbody td,
table.list tr td {
    background: #ffffff !important;
    color: #243447 !important;
    border-bottom: 1px solid #edf2f7 !important;
    padding: 13px 14px !important;
    vertical-align: middle !important;
}

table.list tbody tr:hover td {
    background: #fafcfe !important;
}

/* ---------- Hilos / tickets ---------- */
.thread-entry,
.response,
.message,
.ticket-info,
.ticketThread,
#ticket_thread .thread-entry,
#thread .entry,
#reply,
#post-reply {
    background: #ffffff !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
    padding: 18px !important;
    margin-bottom: 16px !important;
    color: #223046 !important;
}

.thread-entry .header,
.response .header,
.message .header {
    border-bottom: 1px solid #edf2f7 !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    font-weight: 700 !important;
}

/* ---------- Login / registro / cajas ---------- */
.login-box,
#clientLogin,
#new_ticket,
#register,
#content .login,
#content .main-content,
#content .gray,
#content .form,
#content .login-box {
    background: #ffffff !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05) !important;
}

#content form[action*="login"],
#content form[action*="tickets"],
#content form[action*="open"] {
    background: #ffffff !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 16px !important;
    padding: 16px !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05) !important;
}

/* ---------- Texto general que a veces desaparece ---------- */
td,
th,
span,
label,
p,
div,
small,
strong {
    color: inherit;
}

label {
    font-weight: 600 !important;
    color: #213449 !important;
}

p {
    line-height: 1.2 !important;
	margin-top: 1px;
}
}

/* ---------- Footer ---------- */
#footer,
.footer {
    text-align: center !important;
    color: #64748b !important;
    font-size: 13px !important;
    padding: 18px 10px 26px !important;
}

/* ---------- Imágenes ---------- */
img {
    max-width: 100%;
    height: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    #container {
        width: calc(100% - 20px) !important;
        margin: 10px auto !important;
        border-radius: 12px !important;
    }

    #content {
        padding: 16px !important;
    }

    #header {
        padding: 14px 16px !important;
    }

    #header b {
        display: block !important;
        margin: 12px 0 0 0 !important;
        font-size: 18px !important;
    }

    #header .pull-right,
    #header .pull-left {
        float: none !important;
        display: block !important;
    }

    #nav {
        padding: 10px !important;
        gap: 8px !important;
    }

    #nav li a {
        width: 100% !important;
    }

    .btn-portal-back {
        top: 10px !important;
        left: 10px !important;
        padding: 10px 13px !important;
        font-size: 12px !important;
    }
}

/* ===== FIX TOTAL HEADER ===== */
#header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 15px 20px !important;
}

/* ELIMINA RESTRICCIONES ANTIGUAS */
#header p {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}



#header #logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
}

#header b {
    flex: 1;
    text-align: center;
    font-size: 16px !important;
}

#header .pull-right {
    text-align: right;
}
#header i {
    margin-right: 8px;
    font-size: 32px;
    vertical-align: middle;
}
.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

/* card */
.icon-card {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
	margin-top:50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ICONO (ESTO ES LO QUE TE FALTA) */
.icon-card i {
    font-family: "bootstrap-icons";
    font-size: 20px;
    color: #d00000;
    line-height: 1;
	margin-top:50px;
}
#header .icon-card i {
    color: #d00000 !important;
}
#nav {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 15px !important;
    background: #fff !important;
    border-radius: 0 0 12px 12px;
}

#nav li {
    float: none !important;
}

#nav li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    background: #f1f5f9 !important;
    border: 1px solid #dbe3ee !important;
    font-weight: 600;
}

/* BOTÓN ACTIVO */
#nav li a.active {
    background: #c1121f !important;
    color: white !important;
}
button, .btn, input[type="submit"] {
    border-radius: 10px !important;
    padding: 10px 18px !important;
    font-weight: 600;
}
h1 {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

p {
    margin-bottom: 10px !important;
}
/* FIX REAL BLOQUES HOME */
#content table {
    width: 100% !important;
}

#content table td {
    vertical-align: top !important;
    padding: 10px !important;
}
/* FIX ASTERISCO */
span.required,
.required {
    display: inline-block !important;
    margin-left: 6px !important;
    position: relative !important;
    top: 0 !important;
}

/* FIX TABLAS FORMULARIO */
table.form_table td {
    padding: 8px !important;
    vertical-align: middle !important;
}

table.form_table td:first-child {
    width: 140px !important;   /* 🔥 más compacto */
    white-space: normal !important;
    padding-right: 10px !important;
}
table.form_table td:nth-child(2) {
    padding-left: 5px !important;
}
/* =========================================
   FIX LANDING PAGE HOME OSTICKET
   ========================================= */

#landing_page {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 28px !important;
    margin-top: 24px !important;
}

/* anulamos floats viejos */
#landing_page #new_ticket,
#landing_page #check_status,
#landing_page .front-page-button,
#landing_page .pull-left,
#landing_page .pull-right {
    float: none !important;
}

/* los 2 bloques principales iguales */
#landing_page #new_ticket,
#landing_page #check_status {
    width: calc(50% - 14px) !important;
    min-width: 320px !important;
    margin: 0 !important;
    padding: 28px !important;
    background: #ffffff !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05) !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* quitamos padding-left heredado del theme viejo */
#landing_page #new_ticket,
#landing_page #check_status,
#landing_page .front-page-button {
    padding-left: 28px !important;
}

/* quita backgrounds viejos de iconos por css */
#landing_page #new_ticket,
#landing_page #check_status {
    background-image: none !important;
}

/* títulos */
#landing_page #new_ticket h3,
#landing_page #check_status h3 {
    margin: 0 0 14px 0 !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    color: #12304a !important;
    font-weight: 800 !important;
}

/* textos */
#landing_page #new_ticket p,
#landing_page #check_status p {
    margin: 0 0 18px 0 !important;
    color: #31465c !important;
    line-height: 1.55 !important;
}

/* botones al fondo de cada card */
#landing_page #new_ticket .front-page-button,
#landing_page #check_status .front-page-button,
#landing_page #new_ticket a.button,
#landing_page #check_status a.button,
#landing_page #new_ticket .btn,
#landing_page #check_status .btn {
    margin-top: auto !important;
    align-self: flex-start !important;
}

/* si hay imagen/icono dentro del bloque derecho, que no desordene */
#landing_page #check_status img,
#landing_page #new_ticket img {
    max-width: 64px !important;
    height: auto !important;
    display: block !important;
    margin: 0 0 12px 0 !important;
}

/* si el theme mete BR viejos, los anulamos */
#landing_page br {
    display: none !important;
}

/* responsive */
@media (max-width: 900px) {
    #landing_page {
        display: block !important;
    }

    #landing_page #new_ticket,
    #landing_page #check_status {
        width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 18px !important;
    }
}


/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {

    #content {
        padding: 14px !important;
    }

    #ticketForm table,
    #ticketForm tbody,
    #ticketForm tr,
    #ticketForm td,
    #dynamic-form table,
    #dynamic-form tbody,
    #dynamic-form tr,
    #dynamic-form td,
    table.form_table,
    table.form_table tbody,
    table.form_table tr,
    table.form_table td {
        display: block !important;
        width: 100% !important;
    }

    #ticketForm tr,
    #dynamic-form tr,
    table.form_table tr {
        margin-bottom: 14px !important;
        padding-bottom: 10px !important;
        border-bottom: 0 !important;
    }

    #ticketForm td:first-child,
    #dynamic-form td:first-child,
    table.form_table td:first-child {
        width: 100% !important;
        padding-bottom: 6px !important;
        font-size: 14px !important;
    }

    #ticketForm td:nth-child(2),
    #dynamic-form td:nth-child(2),
    table.form_table td:nth-child(2) {
        width: 100% !important;
        padding-top: 0 !important;
        padding-bottom: 6px !important;
    }

    #ticketForm td:last-child,
    #dynamic-form td:last-child,
    table.form_table td:last-child {
        width: 100% !important;
        text-align: left !important;
        padding-top: 0 !important;
        padding-bottom: 4px !important;
    }

    #ticketForm .error,
    #ticketForm font.error,
    #dynamic-form .error,
    #dynamic-form font.error,
    table.form_table .error,
    table.form_table font.error {
        margin: 0 !important;
    }

    #ticketForm input[type="text"],
    #ticketForm input[type="password"],
    #ticketForm input[type="email"],
    #ticketForm input[type="number"],
    #ticketForm input[type="file"],
    #ticketForm select,
    #ticketForm textarea,
    #dynamic-form input[type="text"],
    #dynamic-form input[type="password"],
    #dynamic-form input[type="email"],
    #dynamic-form input[type="number"],
    #dynamic-form input[type="file"],
    #dynamic-form select,
    #dynamic-form textarea,
    table.form_table input[type="text"],
    table.form_table input[type="password"],
    table.form_table input[type="email"],
    table.form_table input[type="number"],
    table.form_table input[type="file"],
    table.form_table select,
    table.form_table textarea {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* teléfono y extensión uno debajo del otro en móvil */
    #ticketForm input[name*="phone"],
    #ticketForm input[name*="ext"],
    #dynamic-form input[name*="phone"],
    #dynamic-form input[name*="ext"] {
        width: 100% !important;
        margin-bottom: 8px !important;
    }
}
/* FIX ASTERISCO (campos obligatorios) */
#ticketForm .error,
#ticketForm font.error,
#dynamic-form .error,
#dynamic-form font.error,
table.form_table .error,
table.form_table font.error {

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-left: 6px !important;

    color: #d1171f !important;
    font-weight: bold !important;
    font-size: 16px !important;
}
/* =========================================
   FIX REAL ESPACIADO LABEL vs INPUT
   ========================================= */

/* columna label */
#ticketForm td:first-child,
#dynamic-form td:first-child,
table.form_table td:first-child {
    width: 140px !important;
    padding-right: 10px !important;
    white-space: normal !important;
}

/* columna input */
#ticketForm td:nth-child(2),
#dynamic-form td:nth-child(2),
table.form_table td:nth-child(2) {
    padding-left: 5px !important;
}

/* elimina espacios exagerados del form */
#ticketForm td,
#dynamic-form td,
table.form_table td {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* hace que el input se acerque al label */
#ticketForm tr,
#dynamic-form tr,
table.form_table tr {
    margin: 0 !important;
}
/* =========================================
   FIX REAL BOTON ACTUALIZAR OSTICKET
   ========================================= */

a.refresh {
    float: right !important;

    background: linear-gradient(135deg, #b30f16, #d1171f) !important;
    background-image: linear-gradient(135deg, #b30f16, #d1171f);
    
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;

    padding: 10px 18px !important;
    font-weight: 700 !important;
    font-size: 14px !important;

    box-shadow: 0 6px 16px rgba(179,15,22,0.18) !important;

    height: auto !important;
    line-height: normal !important;

    opacity: 1 !important;
}

/* hover */
a.refresh:hover {
    background: linear-gradient(135deg, #930c11, #b30f16) !important;
    color: #fff !important;
}

/* posición correcta */
#ticketSearchForm + a.refresh {
    display: inline-block !important;
    margin-left: 10px !important;
    vertical-align: middle;
}
#nav li a {
    padding: 10px 18px !important;
    border-radius: 12px !important;
    background: #e2e8f0 !important;
    color: #243447 !important;
    font-weight: 600 !important;
    text-decoration: none !important;

    box-shadow: 0 6px 14px rgba(0,0,0,0.18) !important;

    transition: all 0.2s ease !important;
}

#nav li a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25) !important;
}

#nav li a.active {
    background: linear-gradient(135deg, #b30f16, #d1171f) !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(179,15,22,0.45) !important;
}
/* =========================================
   ICONOS EN NAV (BOOTSTRAP ICONS)
   ========================================= */


/* asegúrate de tener Bootstrap Icons cargado */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css");


/* base icon */
#nav li a::before {
    font-family: "bootstrap-icons";
    margin-right: 8px;
    font-size: 14px;
    display: inline-block;
}

/* Inicio */
#nav li a[href*="index"]::before {
    content: "\f422"; /* bi-house */
}

/* Abrir ticket */
#nav li a[href*="open"]::before {
  content: "\f64d"; /* bi-clipboard-plus */
}

/* Ver estado / tickets */
#nav li a[href*="view"],
#nav li a[href*="tickets"]::before {
    content: "\f479"; /* bi-list-check */
}
/* =========================================
   BOTONES TABLA (APROBAR / RECHAZAR)
   ========================================= */

/* contenedor de celda */
#ticketTable td:last-child {
    text-align: center;
}

/* base */
#ticketTable button {
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin: 2px;
    display: inline-block;
    min-width: 80px;
}

/* aprobar */
#ticketTable button.button {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    box-shadow: 0 4px 10px rgba(34,197,94,0.25);
}

/* hover aprobar */
#ticketTable button.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(34,197,94,0.35);
}

/* rechazar */
#ticketTable button.button3 {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    box-shadow: 0 4px 10px rgba(239,68,68,0.25);
}

/* hover rechazar */
#ticketTable button.button3:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(239,68,68,0.35);
}

/* =========================================
   BOTONES APROBAR / RECHAZAR EN TICKETS
   ========================================= */
#ticketTable td:last-child {
    white-space: nowrap !important;
    text-align: center !important;
    padding: 4px !important; /* menos espacio en la celda */
}

#ticketTable td:last-child button {
    display: inline-block !important;
    margin: 1px 2px !important; /* 🔥 más juntos */
}
/* base */
#ticketTable button.button,
#ticketTable button.button3 {
    border: none !important;
    border-radius: 5px !important;
    padding: 3px 5px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin: 2px 0 !important;
    display: inline-block !important;
    min-width: 75px !important;
    text-align: center !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

/* aprobar verde */
#ticketTable button.button {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    border: 1px solid #15803d !important;
}

/* rechazar rojo */
#ticketTable button.button3 {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    border: 1px solid #b91c1c !important;
}

/* hover */
#ticketTable button.button:hover,
#ticketTable button.button3:hover {
    transform: translateY(-1px);
}
#ticketTable {
    font-size: 12px !important;
	border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}
#ticketTable td {
    padding: 2px 4px !important;
}
#ticketTable tbody tr {
    background: #ffffff !important;
}
/* efecto hover suave */
#ticketTable tbody tr:hover {
    background: #f5f7fb !important;
}
/* =========================================
   ACHICAR TITULO PRINCIPAL
   ========================================= */
#content h1 {
    font-size: 22px !important;   /* antes 30px */
    margin-bottom: 6px !important;
    margin-top: 0 !important;
}


/* =========================================
   ACHICAR BLOQUE DE BUSQUEDA
   ========================================= */

/* contenedor del form */
#ticketSearchForm {
    transform: scale(0.90);   /* 🔥 achica todo proporcional */
    transform-origin: left center;
    margin-bottom: 3px !important;
	margin-top: 1px !important;   /* 🔥 ajusta aquí */
}

/* inputs más bajos */
#ticketSearchForm input,
#ticketSearchForm select {
    height: 34px !important;
    min-height: 34px !important;
    font-size: 13px !important;
    padding: 6px 10px !important;
}

/* botón IR más chico */
#ticketSearchForm input[type="submit"],
#ticketSearchForm .button {
    padding: 6px 12px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}

/* caja blanca contenedora */
#ticketSearchForm {
    padding: 10px 12px !important;
}
/* =========================================
   BAJAR TITULO PRINCIPAL
   ========================================= */
#content h1 {
    margin-top: 10px !important;   /* 🔥 ajusta aquí */
}
/* =========================================
   ICONOS EN BOTONES LANDING
   ========================================= */

.front-page-button a.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Abrir Ticket */
.front-page-button a.green.button::before {
    content: "\f4fe"; /* bi-plus-circle */
    font-family: "bootstrap-icons";
    font-size: 14px;
}

/* Ver Tickets */
.front-page-button a.blue.button::before {
    content: "\f52a"; /* bi-ticket-perforated */
    font-family: "bootstrap-icons";
    font-size: 14px;
}
/* =========================================
   ICONOS GRANDES TIPO DASHBOARD
   ========================================= */



#landing_page #new_ticket,
#landing_page #check_status {
    text-align: center;
    padding-top: 10px !important;
}

/* icono */
#landing_page #new_ticket::before,
#landing_page #check_status::before {
    display: block;
    font-family: "bootstrap-icons";
    font-size: 25px;
    margin-bottom: 10px;
}

/* abrir ticket */
#landing_page #new_ticket::before {
  content: "\f1c3"; /* ticket-perforated */
    color: #dc2626;
}

/* ver estado */
#landing_page #check_status::before {
    content: "\f52a"; /* ticket */
    color: #dc2626;
}
/* IMAGEN */
.logo-header {
    width: 100px;
    height: 100px;
    object-fit: contain;
	
}
/* CONTENEDOR DEL LOGO (CIRCULO BLANCO) */
.logo-wrapper {
    width: 105px;
    height: 105px;
    background: #fff;
    border-radius:60%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
	margin-top:50px;
    margin-right: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    vertical-align: middle;
}
/* =========================
   FIX REAL HEADER USER CARD
   ========================= */

#header p.header-user-card {
    background: #ffffff !important;
    
    padding: 8px 14px !important;
    border-radius: 14px !important;

    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    box-shadow: 0 6px 18px rgba(0,0,0,0.25);

    margin: 0 !important;
}

/* 🔥 rompe el blanco global del header */
#header p.header-user-card,
#header p.header-user-card * {
    color: #1f2937 !important;
}

/* links */
#header p.header-user-card a {
    color: #d00000 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* hover */
#header p.header-user-card a:hover {
    color: #9d0208 !important;
    text-decoration: underline !important;
}

/* =========================
   BOTON PORTAL EN FOOTER
   ========================= */

.footer-portal {
    text-align: center;
    margin-top: 15px;
}

/* botón */
.btn-portal-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: linear-gradient(135deg,#d90429,#9d0208);
    color: #fff !important;

    padding: 10px 18px;
    border-radius: 12px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: 0.2s;
}

/* icono */
.btn-portal-footer i {
    font-size: 15px;
}

/* hover */
.btn-portal-footer:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}
/* Ocultar teléfono y extensión */
#ticketForm input[name*="phone"],
#ticketForm input[name*="ext"],
#ticketForm label:contains("Número de teléfono"),
#ticketForm label:contains("EXT") {
    display: none !important;
}