/* Patrón visual de los módulos del supervisor.
   Misma base que Clientes, Proveedores y Consultas:
   fondo cálido, tarjeta blanca, franja fucsia y título a la izquierda. */

.mod-page,
.mv-page {
    width: 100%;
    min-height: calc(100vh - 180px);
    box-sizing: border-box;
    background: #f4f1f2;
    padding: 28px 16px 64px;
    font-family: "DM Sans", "Segoe UI", Tahoma, sans-serif;
    color: #241c20;
}

.mod-paper {
    max-width: 1100px;
    margin: 0 auto;
}

.mod-paper--form { max-width: 760px; }
.mod-paper--ancho { max-width: 1180px; }

.mod-head,
.mod-card,
.mod-page .form-card {
    background: #fff;
    border: 0;
    border-top: 6px solid var(--color-fucsia);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(28, 18, 24, .08);
}

.mod-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 26px;
}

.mod-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mod-brand-ico {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-fucsia);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .08);
}

.mod-kicker {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8d8086;
}

.mod-kicker i,
.mod-card h2 i {
    color: var(--color-fucsia);
    margin-right: 8px;
}

.mod-head h1,
.mv-page .mod-head h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.05;
    font-weight: 800;
    color: #1c1619;
}

.mod-lead {
    margin: 8px 0 0;
    color: #7c7076;
    font-size: 14px;
}

.mod-lead a {
    color: var(--color-fucsia);
    font-weight: 800;
}

.mod-card {
    margin-top: 16px;
    padding: 18px 22px 22px;
}

.mod-card h2,
.mod-page .mod-seccion {
    margin: 22px 0 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6e6569;
}

.mod-card h2 { margin: 0 0 14px; }

.mod-fields {
    display: grid;
    gap: 12px;
}

.mod-fields label,
.mod-check {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8d8086;
}

.mod-fields input,
.mod-fields textarea,
.mod-fields select,
.mod-page .form-card input[type="text"],
.mod-page .form-card input[type="number"],
.mod-page .form-card textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    border: 1px solid #eadfe3;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1c1619;
    height: auto;
    font-family: inherit;
}

.mod-fields textarea,
.mod-page .txtNota { min-height: 110px; resize: vertical; }

.mod-fields input[type="file"] {
    margin-top: 6px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.mod-check {
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: .04em;
    text-transform: none;
    font-size: 14px;
    font-weight: 700;
    color: #3a3036;
}

.mod-btn,
.mod-page .btn,
.mod-page input.btn,
.mod-page a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: auto;
    line-height: 1.2;
    margin-top: 14px;
    border: 0;
    border-radius: 14px;
    background: var(--color-fucsia);
    color: #fff !important;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--color-fucsia) 28%, transparent);
}

.mod-btn-ghost,
.mod-page .mod-btn-ghost {
    background: #fff;
    color: #3a3036 !important;
    border: 1px solid #eadfe3;
    box-shadow: none;
}

.mod-page .btn-small {
    height: 34px;
    line-height: 34px;
    margin-top: 0;
    padding: 0 12px;
    border-radius: 999px;
    box-shadow: none;
    font-size: 13px;
}

.mod-page .form-container {
    display: block;
    margin-top: 16px;
}

.mod-page .form-card {
    display: block;
    width: min(640px, 100%);
    max-width: 100%;
    margin: 0 auto;
    padding: 22px 26px 8px;
    box-sizing: border-box;
}

.mod-page .contenedor_form_y_mapa {
    align-items: flex-start;
}

.mod-page .contenedor_form_y_mapa .form-card {
    margin: 0;
}

.mod-page #map_local {
    border-radius: 18px !important;
    overflow: hidden;
    border-top: 6px solid var(--color-fucsia);
    box-shadow: 0 18px 40px rgba(28, 18, 24, .08);
}

.mod-page table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.mod-page table th,
.mod-page table.dataTable thead th {
    padding: 10px 12px;
    border-bottom: 1px dashed #e4d7dc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8d8086;
    background: #fff;
}

.mod-page table td {
    padding: 12px;
    border-bottom: 1px solid #f6f1f3;
    color: #1c1619;
    font-size: 14px;
    vertical-align: middle;
}

.mod-page table tbody tr:hover { background: #fff6f8; }

.mod-page .dataTables_wrapper .dataTables_filter input,
.mod-page .dataTables_wrapper .dataTables_length select {
    border: 1px solid #eadfe3;
    border-radius: 12px;
    height: 40px;
    padding: 0 10px;
}

.mv-page .mod-head { margin-bottom: 0; }

.mv-page .card,
.mv-page .mv-podio-panel {
    border: 0;
    border-top: 6px solid var(--color-fucsia);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(28, 18, 24, .08);
    overflow: hidden;
}

.mv-page .btn,
.mv-page .btn_filtrar {
    background: var(--color-fucsia);
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    text-transform: none;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--color-fucsia) 28%, transparent);
}

body:has(.mod-page),
body:has(.mv-page),
body:has(.cli-page),
body:has(.prv-page),
body:has(.qry-page),
body:has(.tut-page),
body:has(.im-page),
body:has(.fac-wrap),
body:has(.mov-dashboard),
body:has(.rk-dashboard),
body:has(.pedidos-page),
body:has(.caja-fuerte-page),
body:has(.grilla-stock-page),
body:has(.frm-stock-page),
body:has(.frm-vars-page),
body:has(.contacto-page),
body:has(.caja-page) {
    background: #f4f1f2;
}

/* Formularios y grillas que ya tenían diseño propio: misma superficie. */

.im-page,
.frm-stock-page,
.frm-vars-page,
.grilla-stock-page,
.fac-wrap,
.mov-dashboard,
.rk-dashboard,
.pedidos-page,
.caja-fuerte-page,
.contacto-page {
    font-family: "DM Sans", "Segoe UI", Tahoma, sans-serif;
    color: #241c20;
}

.im-page .im-card,
.im-page .im-lista,
.frm-stock-page .frm-stock-card,
.frm-vars-page .frm-vars-card,
.grilla-stock-page .grilla-stock-card,
.grilla-stock-page .encabezado_grilla_stock,
.fac-head,
.fac-filtros,
.fac-resumen .fac-caja,
.fac-detalle,
.fac-tabla,
.mov-dashboard .mov-header,
.mov-dashboard .mov-main-card,
.rk-dashboard .rk-header,
.rk-dashboard .rk-toolbar,
.rk-dashboard .rk-panel,
.pedidos-hero,
.pedidos-toolbar,
.pedidos-vacio,
.caja-fuerte-page h1,
.caja-fuerte-page .form-card,
.contacto-head,
.contacto-mapa-card,
.contacto-form,
.contacto-page .contact-card,
.caja-page .caja-top {
    background: #fff;
    border: 0;
    border-top: 6px solid var(--color-fucsia);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(28, 18, 24, .08);
}

.im-head h2,
.frm-stock-head h2,
.frm-vars-head h2,
.grilla-stock-page .encabezado_grilla_stock h4,
.fac-head h1,
.mov-dashboard .mov-header h1,
.rk-dashboard .rk-title,
.pedidos-hero h1,
.caja-fuerte-page h1,
.contacto-head h1 {
    margin: 0;
    font-family: "DM Sans", "Segoe UI", Tahoma, sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: none;
    color: #1c1619;
    text-align: left;
}

.im-head p,
.frm-stock-head p,
.frm-vars-head p,
.fac-head p,
.mov-dashboard .mov-subtitle,
.rk-dashboard .rk-subtitle,
.pedidos-hero p,
.contacto-head p {
    color: #7c7076;
    text-align: left;
}

.im-head-icon,
.frm-stock-head-icon,
.frm-vars-head-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.im-head-icon,
.frm-stock-head-icon {
    background: var(--color-rosa);
}

.frm-vars-head-icon {
    background: var(--color-fucsia);
    color: #fff;
}

.im-page .im-btn,
.im-page .im-submit,
.frm-stock-page .frm-stock-btn-wrap,
.frm-vars-page .frm-vars-btn-wrap,
.fac-btn,
.fac-accion,
.mov-dashboard .btn_filtrar.mov-btn-filter,
.rk-dashboard .btn_filtrar.rk-btn-filter,
.caja-fuerte-page .btn,
.contacto-btn {
    background: var(--color-fucsia);
    color: #fff;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--color-fucsia) 28%, transparent);
}

.im-page .im-btn-ghost,
.frm-stock-page .frm-stock-btn-grid,
.fac-btn.claro,
.contacto-btn.contacto-btn--claro {
    background: #fff;
    color: #3a3036;
    border: 1px solid #eadfe3;
    box-shadow: none;
}

.fac-manual-ico.abierto {
    background: var(--color-fucsia);
    color: #fff;
    border-color: var(--color-fucsia);
}

.fac-filtros label,
.rk-toolbar .inputs_filtros_css label,
.mov-filters-bar .inputs_filtros_css label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8d8086;
}

.fac-filtros input,
.fac-filtros select,
.fac-manual-fila input,
.rk-toolbar .form-control,
.rk-toolbar select.rk-categoria,
.mov-fecha {
    border: 1px solid #eadfe3;
    border-radius: 12px;
    color: #1c1619;
    font-weight: 700;
}

.fac-tabla th,
.grilla-stock-page table.GridView1 th,
.grilla-stock-page table.dataTable thead th,
.pedidos-page table th {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8d8086;
    background: #fff;
    border-bottom: 1px dashed #e4d7dc;
}

.grilla-stock-page {
    padding: 28px 16px 64px !important;
}

.grilla-stock-page .encabezado_grilla_stock {
    max-width: 1280px;
    margin: 0 auto 16px;
    padding: 22px 26px;
    align-items: center;
}

.grilla-stock-page .grilla-stock-card {
    max-width: 1280px;
    margin: 0 auto;
}

.fac-wrap {
    max-width: 1180px;
}

.fac-head {
    align-items: center;
    padding: 22px 26px;
    margin-bottom: 16px;
}

.fac-detalle .op-banner-count {
    background: var(--color-fucsia);
    color: #fff;
}

.mov-dashboard {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 16px 64px;
}

.mov-dashboard .mov-header {
    justify-content: flex-start;
    gap: 14px;
    padding: 22px 26px;
    margin-bottom: 16px;
    position: relative;
}

.mov-dashboard .mov-header-icon,
.rk-dashboard .rk-header-icon {
    position: static;
    order: -1;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 16px;
    background: var(--color-rosa);
    display: flex;
    align-items: center;
    justify-content: center;
    right: auto;
    top: auto;
}

.mov-dashboard .mov-header-icon img,
.rk-dashboard .rk-header-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    animation: none;
}

.mov-dashboard .mov-main-card {
    min-height: 0;
    padding: 22px 26px 28px;
}

.rk-dashboard {
    max-width: 1180px;
    padding: 28px 16px 64px;
}

.rk-dashboard .rk-header {
    justify-content: flex-start;
    gap: 14px;
    padding: 22px 26px;
    margin-bottom: 16px;
}

.rk-dashboard .rk-toolbar {
    padding: 18px 22px;
    margin-bottom: 16px;
}

.pedidos-page {
    padding: 28px 16px 64px;
}

.pedidos-hero {
    max-width: 1100px;
    margin: 0 auto 16px;
    text-align: left;
    padding: 22px 26px;
}

.pedidos-hero-brand {
    justify-content: flex-start;
}

.pedidos-hero-brand i,
.pedidos-hero-brand i.fas {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--color-fucsia);
    color: #fff !important;
    font-size: 22px;
}

.pedidos-toolbar,
.pedidos-page .container {
    max-width: 1100px;
}

.pedidos-toolbar {
    padding: 18px 22px;
    margin: 0 auto 16px;
}

.caja-fuerte-page {
    background: transparent;
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 16px 64px;
}

.caja-fuerte-page h1 {
    display: block;
    padding: 22px 26px;
    margin: 0 auto 16px;
}

.caja-fuerte-page h1.center-align { text-align: left; }

.caja-fuerte-page .form-card h6,
.caja-fuerte-page .cf-plegar i {
    color: var(--color-fucsia);
}

.contacto-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 16px 64px;
}

.contacto-head {
    padding: 22px 26px;
}

.contacto-mapa-card { margin-top: 16px; }

.caja-page {
    --caja-rosa: var(--color-fucsia);
    --caja-rosa-hover: var(--color-fucsia);
    background: transparent;
    font-family: "DM Sans", "Segoe UI", Tahoma, sans-serif;
    color: #241c20;
    padding: 16px 12px 28px;
}

@media screen and (max-width: 720px) {
    .mod-head h1,
    .mv-page .mod-head h1,
    .im-head h2,
    .frm-stock-head h2,
    .frm-vars-head h2,
    .grilla-stock-page .encabezado_grilla_stock h4,
    .fac-head h1,
    .mov-dashboard .mov-header h1,
    .rk-dashboard .rk-title,
    .pedidos-hero h1,
    .caja-fuerte-page h1,
    .contacto-head h1 {
        font-size: 26px;
    }

    .mod-head,
    .mod-card,
    .fac-head,
    .mov-dashboard .mov-header,
    .rk-dashboard .rk-header {
        padding: 18px 16px;
    }

    .mod-btn,
    .mod-page .btn,
    .mod-page input.btn {
        width: 100%;
    }
}
