/**
 * Marca qrDash — overrides sobre plantilla StrikingDash
 * Colores: #30486e | #e7e8e9 | #ffffff
 */
:root {
    --brand-primary: #30486e;
    --brand-primary-hover: #263a58;
    --brand-surface: #e7e8e9;
    --brand-white: #ffffff;
}

body.layout-light {
    background-color: var(--brand-surface);
}

.bg-primary,
.btn-primary,
.badge-primary,
.atbd-spin-dots .dot-primary {
    background-color: var(--brand-primary) !important;
}

.btn-primary {
    border-color: var(--brand-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-hover) !important;
}

.color-primary,
a.color-primary {
    color: var(--brand-primary) !important;
}

.signUP-admin-left.signIn-admin-left {
    background-color: var(--brand-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

.signUP-admin .container-fluid > .row {
    min-height: 100vh;
}

.signUP-admin .container-fluid > .row > .col-xl-4:first-child,
.signUP-admin .container-fluid > .row > .col-lg-5:first-child,
.signUP-admin .container-fluid > .row > .col-md-5:first-child {
    display: flex;
}

.signUP-admin-left.signIn-admin-left .signUP-admin-left__content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    text-align: center;
    width: 100%;
}

.signUP-admin-left.signIn-admin-left .signUP-admin-left__content h1 {
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 3px 12px rgba(0, 0, 0, 0.1);
}

.header-top {
    background: var(--brand-white);
}

.user-avatar {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar--photo {
    object-fit: cover;
    width: 38px;
    height: 38px;
}

.user-avatar--initials {
    min-width: 38px;
    min-height: 38px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
}

.sidebar {
    background: var(--brand-white);
}

.sidebar .sidebar_nav li > a.active,
.sidebar .sidebar_nav li > a:hover,
.sidebar .sidebar_nav li > a.active .nav-icon {
    color: var(--brand-primary);
}

.sidebar .sidebar_nav li > a.active {
    background: rgba(48, 72, 110, 0.08);
}

/* Logo en archivo suele ser blanco: forzar tono gris según fondo */
.navbar-brand img.brand-logo {
    max-height: 52px;
    width: auto;
    filter: brightness(0) saturate(0%);
    opacity: 0.58;
}

.brand-login-logo {
    max-height: 72px;
    width: auto;
    filter: brightness(0) saturate(0%);
    opacity: 0.58;
}

.contents {
    background: var(--brand-surface);
}

/* Header fijo + logo más alto: en móvil el padding del template (56px) tapa el breadcrumb */
@media only screen and (max-width: 767px) {
    .contents {
        padding-top: 96px;
    }
}

.qr-form-page {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.qr-form-page .card-body {
    padding-bottom: 2.5rem;
}

.card {
    border-radius: 10px;
}

/* StrikingDash (style.css / plugin): .card .card-header usa capitalize en cada palabra */
.contents .card .card-header,
.contents .card .card-header h1,
.contents .card .card-header h2,
.contents .card .card-header h3,
.contents .card .card-header h4,
.contents .card .card-header h5,
.contents .card .card-header h6 {
    text-transform: none;
}

.breadcrumb-main .breadcrumb-title {
    text-transform: none;
}

.breadcrumb-main .action-btn {
    gap: 0;
}

.breadcrumb-main .action-btn > .btn,
.breadcrumb-main .action-btn > .btn-group {
    margin: 7.5px 4px;
}

.breadcrumb-main .action-btn .btn-group .btn {
    margin: 0;
}

.badge-outline-brand {
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    background: transparent;
}

.kpi-card .kpi-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--brand-primary);
}

/* Dashboard — bloque estilo Facebook Overview */
.dashboard-overview .overview-content h1 {
    color: var(--brand-primary);
}

.dashboard-overview .overview-single__chart .parentContainer {
    min-height: 115px;
    width: 100%;
}

.dashboard-overview .overview-single__chart canvas {
    display: block;
    width: 100% !important;
    max-height: 115px;
}

.dashboard-chart-wrap {
    position: relative;
    height: 300px;
}

.dashboard-chart-wrap--sm {
    height: 260px;
}

.card-dashboard-chart .card-header {
    border-bottom: 1px solid #f1f2f6;
}

.qr-preview-box {
    background: var(--brand-white);
    border: 1px dashed #ced4da;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px 16px;
}

.qr-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.qr-preview-badge {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.qr-preview-empty {
    padding: 12px;
}

.qr-url-flow {
    text-align: left;
    width: 100%;
}

.qr-url-flow-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qr-url-flow-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-light, #868e96);
}

.qr-url-flow-value {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-all;
    color: var(--brand-primary, #30486e);
}

.qr-url-flow-value:hover {
    text-decoration: underline;
}

.qr-url-flow-arrow {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    color: #adb5bd;
}

.qr-url-flow-arrow svg {
    width: 22px;
    height: 22px;
}

.prototype-banner {
    display: block;
    position: relative;
    z-index: 1;
    background: rgba(48, 72, 110, 0.12);
    border-left: 4px solid var(--brand-primary);
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #5a5f7d;
    line-height: 1.5;
}

/* DataTables — integración con StrikingDash */
.qr-datatable-wrap {
    width: 100%;
    max-width: 100%;
    padding: 0 1.5rem 1.25rem;
    overflow-x: auto;
}

.qr-datatable-wrap .dataTables_wrapper {
    width: 100% !important;
    max-width: 100%;
    padding-top: 1rem;
    clear: both;
}

.qr-datatable-wrap .dataTables_wrapper .qr-dt-toolbar,
.qr-datatable-wrap .dataTables_wrapper .qr-dt-footer {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.qr-datatable-wrap .dataTables_wrapper .qr-dt-toolbar > [class*="col-"],
.qr-datatable-wrap .dataTables_wrapper .qr-dt-footer > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 576px) {
    .qr-datatable-wrap .dataTables_wrapper .qr-dt-footer .dataTables_paginate {
        text-align: right;
    }
}

.qr-datatable-wrap .dataTables_length label,
.qr-datatable-wrap .dataTables_filter label {
    font-size: 14px;
    color: #5a5f7d;
    font-weight: 500;
    width: 100%;
}

.qr-datatable-wrap .dataTables_filter {
    text-align: left;
}

@media (min-width: 576px) {
    .qr-datatable-wrap .dataTables_filter {
        text-align: right;
    }
}

.qr-datatable-wrap .dataTables_filter input,
.qr-datatable-wrap .dataTables_length select {
    border: 1px solid #e3e6ef;
    border-radius: 4px;
    padding: 6px 10px;
    margin-left: 8px;
    max-width: 100%;
}

table.dataTable.qr-datatable,
table.dataTable.qr-datatable th,
table.dataTable.qr-datatable td {
    box-sizing: border-box;
}

table.dataTable.qr-datatable {
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    table-layout: fixed;
}

table.dataTable.qr-datatable thead th,
table.dataTable.qr-datatable tbody td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: middle;
}

table.dataTable.qr-datatable thead th.dt-col-actions,
table.dataTable.qr-datatable tbody td.dt-col-actions {
    width: 130px;
    white-space: nowrap;
    text-align: center;
}

table.dataTable.qr-datatable tbody td.dt-col-actions a {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    line-height: 1;
}

table.dataTable.qr-datatable tbody td.dt-col-actions a svg {
    width: 18px;
    height: 18px;
}

table.dataTable.qr-datatable tbody td.dt-col-bloqueada {
    text-align: center;
}

#tbl-campanas thead th.dt-col-metric,
#tbl-campanas tbody td.dt-col-metric {
    width: 80px;
    max-width: 80px;
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
    padding-left: 8px;
    padding-right: 8px;
}

#tbl-campanas thead th.dt-col-estado,
#tbl-campanas tbody td.dt-col-estado {
    width: 76px;
    max-width: 76px;
    text-align: center;
    white-space: nowrap;
    padding-left: 6px;
    padding-right: 6px;
}

#tbl-campanas tbody td.dt-col-estado .badge {
    font-size: 10px;
    padding: 3px 6px;
}

#tbl-campanas thead th.dt-col-fecha,
#tbl-campanas tbody td.dt-col-fecha,
#tbl-usuarios thead th.dt-col-fecha,
#tbl-usuarios tbody td.dt-col-fecha {
    width: 155px;
    max-width: 155px;
    white-space: nowrap;
    font-size: 13px;
}

#tbl-campanas thead th.dt-col-actions,
#tbl-campanas tbody td.dt-col-actions {
    width: 200px;
    min-width: 200px;
    padding-left: 8px;
    padding-right: 8px;
}

#tbl-campanas tbody td.dt-col-actions a .las {
    font-size: 17px;
    line-height: 1;
    vertical-align: middle;
}

#tbl-campanas tbody td.dt-col-actions a {
    margin-right: 6px !important;
    margin-left: 0 !important;
}

#tbl-campanas tbody td.dt-col-actions a:last-child {
    margin-right: 0 !important;
}

#tbl-landings thead th.dt-col-estado,
#tbl-landings tbody td.dt-col-estado {
    width: 90px;
    max-width: 90px;
    text-align: center;
    white-space: nowrap;
}

#tbl-landings thead th.dt-col-fecha,
#tbl-landings tbody td.dt-col-fecha {
    width: 155px;
    max-width: 155px;
    white-space: nowrap;
    font-size: 13px;
}

#tbl-landings thead th.dt-col-actions,
#tbl-landings tbody td.dt-col-actions {
    width: 120px;
    min-width: 120px;
    padding-left: 8px;
    padding-right: 8px;
}

#tbl-landings tbody td.dt-col-actions a {
    margin-right: 8px !important;
    margin-left: 0 !important;
}

#tbl-landings tbody td.dt-col-actions a:last-child {
    margin-right: 0 !important;
}

#tbl-buscar-qr thead th.dt-col-metric,
#tbl-buscar-qr tbody td.dt-col-metric {
    width: 80px;
    max-width: 80px;
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
    padding-left: 8px;
    padding-right: 8px;
}

#tbl-buscar-qr thead th.dt-col-estado,
#tbl-buscar-qr tbody td.dt-col-estado {
    width: 76px;
    max-width: 76px;
    text-align: center;
    white-space: nowrap;
    padding-left: 6px;
    padding-right: 6px;
}

#tbl-buscar-qr tbody td.dt-col-estado .badge {
    font-size: 10px;
    padding: 3px 6px;
}

#tbl-buscar-qr thead th.dt-col-fecha,
#tbl-buscar-qr tbody td.dt-col-fecha {
    width: 155px;
    max-width: 155px;
    white-space: nowrap;
    font-size: 13px;
}

#tbl-buscar-qr thead th.dt-col-actions,
#tbl-buscar-qr tbody td.dt-col-actions {
    width: 130px;
    min-width: 130px;
    padding-left: 8px;
    padding-right: 8px;
}

#tbl-buscar-qr tbody td.dt-col-actions a {
    margin-right: 6px !important;
    margin-left: 0 !important;
}

#tbl-buscar-qr tbody td.dt-col-actions a:last-child {
    margin-right: 0 !important;
}

.qr-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
}

.qr-status-dot--ok {
    background-color: #20c997;
}

.qr-status-dot--blocked {
    background-color: #ff4d4f;
}

table.dataTable.qr-datatable thead th,
table.dataTable.qr-datatable thead td {
    border-bottom: 1px solid #f1f2f6;
    font-weight: 600;
    color: #272b41;
}

table.dataTable.qr-datatable thead .sorting,
table.dataTable.qr-datatable thead .sorting_asc,
table.dataTable.qr-datatable thead .sorting_desc,
table.dataTable.qr-datatable thead .sorting_asc_disabled,
table.dataTable.qr-datatable thead .sorting_desc_disabled {
    background-image: none !important;
}

/* Paginación DataTables (renderer Bootstrap: li.paginate_button > a) */
.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate {
    margin-top: 0.5rem;
}

.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .pagination {
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-block;
    min-width: 2rem;
    margin: 0 3px;
    padding: 0 !important;
    border: none !important;
    border-radius: 4px !important;
    background: transparent !important;
    box-shadow: none !important;
    float: none !important;
}

.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button a {
    display: block;
    min-width: 2rem;
    padding: 0.4rem 0.75rem !important;
    border: 1px solid #e3e6ef !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #5a5f7d !important;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button:hover a,
.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button:focus a,
.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button:active a {
    background: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-hover) !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none;
}

.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.active a,
.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.active:hover a,
.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.active:focus a,
.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.active:active a,
.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.current a,
.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover a,
.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.current:focus a,
.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.current:active a {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.disabled a,
.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover a,
.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:focus a,
.qr-datatable-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active a {
    background: #f4f5f7 !important;
    border-color: #e3e6ef !important;
    color: #adb4d2 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

.qr-datatable-wrap--compact {
    padding-bottom: 0.75rem;
}

.qr-datatable-wrap--compact .dataTables_wrapper {
    padding-top: 0;
}
