
/* =============================================
   GLOBAL FOUNDATIONS
   ============================================= */

body {
    color: #2d3436;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(49, 159, 28, 0.15);
    color: var(--brand, #1a5c10);
}

/* Subtle scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #c4c4c4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand, #319f1c); }


/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2 {
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3, h4, h5, h6 {
    color: #34495e;
    font-weight: 600;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.35rem; }

a {
    color: var(--brand, #319f1c);
    transition: color 0.15s ease;
}

a:hover {
    color: var(--brand-dark, #267a16);
}


/* =============================================
   ALL BUTTONS — global refinements
   ============================================= */

.btn {
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    padding: 0.45em 1.2em;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-success {
    background-color: var(--brand, #319f1c) !important;
    margin: 10px;
    color: white !important;
}

.btn-success:hover {
    background-color: var(--brand-dark, #287d16) !important;
}

.btn-info {
    background-color: var(--brand, #319f1c);
    border-color: var(--brand, #319f1c);
    color: white;
}

.btn-info:hover {
    background-color: var(--brand-dark, #287d16);
    border-color: var(--brand-dark, #287d16);
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}


/* =============================================
   FORM INPUTS — green focus, rounded
   ============================================= */

.form-control, .custom-select, select.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.9rem;
}

.form-control:focus, .custom-select:focus, select.form-control:focus {
    border-color: var(--brand, #319f1c);
    box-shadow: 0 0 0 0.18rem rgba(49, 159, 28, 0.18);
    outline: none;
}


/* =============================================
   NAVBAR — accent and polish
   ============================================= */

.navbar {
    border-bottom: 3px solid var(--brand, #319f1c);
    padding: 0.6rem 1rem;
}

.navbar-brand img {
    transition: opacity 0.2s ease;
}

.navbar-brand:hover img {
    opacity: 0.85;
}

/* h1, h2, h3, h4, h5, h6 {
    color: var(--brand, #319f1c);
} */

.div_reportes_offline .a_localstorage_tcode {
    font-weight: bold;
    font-size: 0.9em;
}



a.nav-link {
    color: #2d3436;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    padding: 0.5em 0.8em !important;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

a.nav-link:hover {
    color: var(--brand, #319f1c);
    background-color: rgba(49, 159, 28, 0.06);
}

.btn_mainmenu_newreport {
    background-color: var(--brand, #319f1c) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 0.4em 1.4em !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(49, 159, 28, 0.25) !important;
}

.btn_mainmenu_newreport:hover {
    background-color: var(--brand-dark, #287d16) !important;
    box-shadow: 0 4px 12px rgba(49, 159, 28, 0.35) !important;
    transform: translateY(-1px);
}

.ul_admin_menu a.nav-link {
    text-transform: none;   /* tasteful sentence case, not all-caps */
}

a.navbar-brand, a.navbar-light {
    color: var(--brand, #319f1c) !important;
}

.ul_admin_menu {
    margin-bottom: 21px;
}



.h4_tshowhide {
    cursor: pointer;
}


.xxxtable_newform_inputgroup {
    width: 100%;
    border: 1px solid red;
}
.xxxtable_newform_inputgroup tbody th {
    width: 35%;
}
.xxxtable_newform_inputgroup tbody td {
    border: 1px solid black;
}



.div_machote_lamparas_instance,
.div_machote_lamparas5_instance,
.div_machote_lamparas6_instance {
    background-color: #f8f9fa;
    border: 1px solid #e0e4e0;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 6px;
}


.title {
    background: linear-gradient(135deg, var(--brand, #319f1c) 0%, var(--brand-light, #3bb522) 100%) !important;
    color: white !important;
    border-radius: 6px;
    text-align: center;
    padding: 0.45em 0.8em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
}

.subtitle {
    background: linear-gradient(135deg, var(--brand-dark, #287d16) 0%, var(--brand, #319f1c) 100%);
    color: white;
    border-radius: 6px;
    text-align: center;
    padding: 0.4em 0.8em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    font-size: 0.88rem;
}

/* .h4_tshowhide{
    background-color:#94d08c;
    color:white;
    border-radius: 5px;
    padding:5px;
} */

.h4_tshowhide {
    background: linear-gradient(135deg, var(--brand, #319f1c) 0%, #45b82e 100%);
    border-radius: 6px;
    padding: 0.55em 1em;
    position: relative;
    color: white;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease;
    margin-bottom: 0.8em;
}

.h4_tshowhide:hover {
    box-shadow: 0 2px 8px rgba(49, 159, 28, 0.25);
}
/* .h4_tshowhide:hover {
    position: relative; 
    top: -3px; 
    left: -3px; 
    text-shadow: 2px 2px 4px  #000;
 } */

.button_color{
    background-color:#bee4b8;
    color:white;
}
.div_newreport{
   
    padding:10px;
    
    border-radius: 5px;
}

.box{
    background-color: #fdfdfd;
    padding-top:5px;
    padding-bottom:5px;

    margin-top:5px;
    margin-bottom:5px;

    border-radius: 5px;
}

.canvas_signature{
}

.div_newreport textarea{
    width: 100%;
}

.span_required {
    color: red;
    font-weight: bold;
}



.div_dashboard_mainmenu {
    height: 240px;
    border: 1px solid #e8ece8;
    background-color: white;
    margin-bottom: 1.42em;
    padding: 17px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.div_dashboard_mainmenu h4 {
    text-transform: capitalize;
    font-size: 1.3em;
    height: 3.2em;
}



.xxxpagination svg {
  width: 21px;
  margin: 21px 0;
}



/* *********************** */
/* ***DOCUMENTOS*** */
/* *********************** */
.div_documentos .div_regresar {
    /* border: 3px solid red; */
    margin: 21px auto 21px 0;
}

.div_documentos .div_img img {
    width: 110px;
    /* width: 140px; */
    /* text-align: center; */
}



/* *********************** */




.div_dashboard_mainmenu {
    /* background-color: red; */
    background-image: url("/images/Logo2TrebolOp0.17.png");
    /* background-size: 140px; */
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    /* opacity: 0.5; */
    /* color: #0f5690; */
    padding: 2em;
}

.div_dashboard_mainmenu h4 {
    font-weight: bold;
    font-size: 1.4em;
    /* text-shadow: 1px 1px 2px black;  */
    color: #3490dc;
    /* text-transform: uppercase; */
}


/* =============================================
   BITACORA — empresa cell
   ============================================= */

.td-bitacora-empresa {
    vertical-align: middle !important;
}

.bitacora-empresa-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #2c3e50;
    margin-bottom: 2px;
}

.bitacora-empresa-meta {
    font-size: 0.78rem;
    color: #6c757d;
    line-height: 1.5;
}

.bitacora-meta-label {
    color: #adb5bd;
    font-weight: 400;
}

.bitacora-empresa-meta strong {
    color: #495057;
    font-weight: 600;
}


/* =============================================
   BITACORA — action buttons
   ============================================= */

.td-bitacora-actions {
    vertical-align: middle !important;
    padding: 0.5em 0.4em !important;
}

.bitacora-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-bitacora-ver,
.btn-bitacora-versf,
.btn-bitacora-enviar {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35em 0.8em;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

/* Ver PDF — primary green */
.btn-bitacora-ver {
    background-color: var(--brand, #319f1c);
    color: white;
}

.btn-bitacora-ver:hover {
    background-color: var(--brand-dark, #287d16);
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(49, 159, 28, 0.3);
}

/* Sin fotos — outlined/subtle */
.btn-bitacora-versf {
    background-color: transparent;
    color: #495057;
    border-color: #ced4da;
}

.btn-bitacora-versf:hover {
    background-color: #f8f9fa;
    color: var(--brand, #319f1c);
    border-color: var(--brand, #319f1c);
    text-decoration: none;
}

/* Enviar — outlined green */
.btn-bitacora-enviar {
    background-color: transparent;
    color: var(--brand, #319f1c);
    border-color: var(--brand, #319f1c);
}

.btn-bitacora-enviar:hover {
    background-color: var(--brand, #319f1c);
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(49, 159, 28, 0.3);
}

/* ── Admin nav: refined "real tabs" — active tab connects into the content below ── */
.ul_admin_menu.nav-tabs {
    --t-accent: var(--brand, #2f7d20);
    display: flex;
    flex-wrap: wrap;
    gap: .1rem;
    padding: 0;
    margin: .25rem 0 1.4rem;
    border-bottom: 1px solid #dfe4ea;   /* the baseline the content sits under */
}
.ul_admin_menu.nav-tabs .nav-item { margin: 0; }
.ul_admin_menu.nav-tabs .nav-link {
    margin-bottom: -1px;                /* overlap the baseline so the active tab can cut through */
    border: 1px solid transparent;
    border-bottom: 0;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    padding: .55rem .95rem;
    font-size: .85rem;
    font-weight: 500;
    line-height: 1.1;
    color: #6b7682;
    background: transparent;
    transition: color .12s ease, background-color .12s ease, border-color .12s ease;
}
.ul_admin_menu.nav-tabs .nav-link:hover {
    color: var(--t-accent);
    background: #f3f6f8;
    border-color: transparent;
}
.ul_admin_menu.nav-tabs .nav-link.active {
    color: #1d2228;
    font-weight: 600;
    background: #fff;
    border: 1px solid #dfe4ea;
    border-top: 2px solid var(--t-accent);  /* accent cap */
    border-bottom: 1px solid #fff;          /* erase the baseline beneath → merges with content */
}

@media (max-width: 575.98px) {
    /* keep it on one swipeable row instead of a tall wrapped stack */
    .ul_admin_menu.nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ul_admin_menu.nav-tabs::-webkit-scrollbar { display: none; }
    .ul_admin_menu.nav-tabs .nav-link { white-space: nowrap; }
}

/* ════════════════════════════════════════════════════════════════════════
   Admin catalog views — simple, scoped polish (tables, search, add button).
   Scoped to admin pages via body:has(.ul_admin_menu) so it never touches
   newreport / tenant dashboards. No Blade changes needed.
   ════════════════════════════════════════════════════════════════════════ */
body:has(.ul_admin_menu) { --a-accent: var(--brand, #2f7d20); }

/* ── Tables ── */
body:has(.ul_admin_menu) .table { background: #fff; margin-bottom: 1rem; }
body:has(.ul_admin_menu) .table thead th {
    border-top: 0;
    border-bottom: 1.5px solid #e6eaef;
    background: #f7f9fb;
    color: #5a6470;
    font-size: .76rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: .01em;
    padding: .7rem .8rem;
    vertical-align: middle;
}
body:has(.ul_admin_menu) .table tbody td,
body:has(.ul_admin_menu) .table tbody th {
    padding: .6rem .8rem;
    vertical-align: middle;
    border-top: 1px solid #f0f2f5;
    font-size: .9rem;
}
body:has(.ul_admin_menu) .table-striped tbody tr:nth-of-type(odd) { background-color: #fafbfc; }
body:has(.ul_admin_menu) .table-hover tbody tr:hover {
    background-color: color-mix(in srgb, var(--a-accent) 6%, #fff);
}

/* ── Row action buttons → tidy ghost buttons ── */
body:has(.ul_admin_menu) .table .btn { padding: .25rem .65rem; font-size: .8rem; border-radius: 7px; }
body:has(.ul_admin_menu) .table .btn-primary {
    background: #fff; color: var(--a-accent);
    border: 1px solid color-mix(in srgb, var(--a-accent) 38%, #fff); box-shadow: none;
}
body:has(.ul_admin_menu) .table .btn-primary:hover { background: var(--a-accent); color: #fff; }
body:has(.ul_admin_menu) .table .btn-danger {
    background: #fff; color: #e03131; border: 1px solid #f1c4c4; box-shadow: none;
}
body:has(.ul_admin_menu) .table .btn-danger:hover { background: #e03131; color: #fff; }

/* ── "Agregar / + crear nueva" → clear primary CTA ── */
body:has(.ul_admin_menu) .btn_modal_crud_new .btn,
body:has(.ul_admin_menu) .btn_modal_crud_new > button {
    padding: .5rem 1.05rem;
    border-radius: 9px;
    font-weight: 600;
    font-size: .88rem;
    box-shadow: 0 1px 2px rgba(20,30,45,.08), 0 4px 12px color-mix(in srgb, var(--a-accent) 26%, transparent);
}

/* ── Search field → icon + focus ring; reset becomes a quiet ghost ── */
body:has(.ul_admin_menu) input[name="q"] {
    min-width: 250px;
    border: 1px solid #d8dee6;
    border-radius: 9px;
    padding: .5rem .8rem .5rem 2.25rem;
    font-size: .9rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a9099' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: .7rem center;
    background-size: 1rem;
}
body:has(.ul_admin_menu) input[name="q"]:focus {
    border-color: var(--a-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-accent) 18%, transparent);
    outline: 0;
}
body:has(.ul_admin_menu) form .btn { border-radius: 9px; }
body:has(.ul_admin_menu) form .btn-secondary {
    background: #fff; color: #5a6470; border: 1px solid #d8dee6;
}
body:has(.ul_admin_menu) form .btn-secondary:hover { background: #f3f6f8; color: #1d2228; }

/* ── Catalog page title (the h3 sitting directly in a column; not modal h3) ── */
body:has(.ul_admin_menu) [class*="col-"] > h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #1d2228;
    margin: .25rem 0 1.1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #eceff3;
}

/* ── Modals (new / edit / delete dialogs) — classes only exist in modals ── */
body:has(.ul_admin_menu) .modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 44px rgba(20,30,45,.20);
    overflow: hidden;
}
body:has(.ul_admin_menu) .modal-header {
    align-items: center;
    background: #f7f9fb;
    border-bottom: 1px solid #eceff3;
    padding: 1rem 1.25rem;
}
body:has(.ul_admin_menu) .modal-title { font-size: 1.05rem; font-weight: 700; color: #1d2228; }
body:has(.ul_admin_menu) .modal-header .close { opacity: .5; font-size: 1.4rem; font-weight: 400; transition: opacity .12s ease; }
body:has(.ul_admin_menu) .modal-header .close:hover { opacity: 1; }
body:has(.ul_admin_menu) .modal-body { padding: 1.25rem; }
body:has(.ul_admin_menu) .modal-body h3 { font-size: 1.1rem; font-weight: 600; }   /* "¿Está seguro?" confirms */
body:has(.ul_admin_menu) .modal-footer {
    background: #fcfdfe;
    border-top: 1px solid #eceff3;
    padding: .85rem 1.25rem;
}
body:has(.ul_admin_menu) .modal-footer .btn { border-radius: 9px; padding: .45rem 1.05rem; font-weight: 600; }

/* Inputs inside modals — match the search field treatment */
body:has(.ul_admin_menu) .modal .form-control {
    border: 1px solid #d8dee6;
    border-radius: 8px;
    font-size: .9rem;
}
body:has(.ul_admin_menu) .modal .form-control:focus {
    border-color: var(--a-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-accent) 16%, transparent);
}
body:has(.ul_admin_menu) .modal .col-form-label { font-weight: 600; color: #5a6470; font-size: .85rem; }


