:root {
    --bg-main: #f4f7fb;
    --bg-sidebar: #111827;
    --bg-sidebar-soft: #1f2937;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-light: #f9fafb;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}

.app-container {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 270px;
    background: var(--bg-sidebar);
    color: var(--text-light);
    transition: width 0.25s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 82px;
}

.sidebar-header {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon,
.login-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .menu-text,
.sidebar.collapsed .menu-arrow,
.sidebar.collapsed .submenu {
    display: none;
}

.menu {
    padding: 18px 12px;
}

.menu-item,
.menu-button {
    width: 100%;
    border: 0;
    text-decoration: none;
    color: #d1d5db;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
    text-align: left;
}

.menu-item:hover,
.menu-button:hover {
    background: var(--bg-sidebar-soft);
    color: white;
}

.menu-icon {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.menu-text {
    flex: 1;
}

.menu-arrow {
    font-size: 12px;
}

.submenu {
    margin-left: 42px;
    margin-top: 4px;
    margin-bottom: 8px;
    display: none;
}

.submenu.open {
    display: block;
}

.submenu-item {
    display: block;
    text-decoration: none;
    color: #9ca3af;
    font-size: 14px;
    padding: 9px 10px;
    border-radius: 10px;
}

.submenu-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.main-content {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 72px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 20px;
}

.sidebar-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
}

.sidebar-toggle:hover {
    background: #f3f4f6;
}

.topbar-title {
    font-size: 20px;
    font-weight: 700;
    flex: 1;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-label {
    font-size: 12px;
    color: var(--text-muted);
}

.user-name {
    font-size: 14px;
    font-weight: 700;
}

.logout-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

.logout-link:hover {
    color: var(--primary-hover);
}

.content-wrapper {
    padding: 30px;
}

.page-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 24px;
}

.page-card h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

.page-card p {
    color: var(--text-muted);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.summary-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.summary-title {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.summary-card strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.summary-card p {
    margin: 0;
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 14px;
}

.form-group input {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-actions {
    grid-column: 1 / -1;
}

.btn-primary {
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.full-width {
    width: 100%;
}

.login-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #111827, #1d4ed8);
}

.login-card {
    width: 410px;
    background: white;
    padding: 34px;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    margin: 0 auto 14px auto;
}

.login-header h1 {
    font-size: 24px;
    margin: 0;
}

.login-header p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .cards-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .user-info {
        display: none;
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0 0 8px 0;
}

.page-header p {
    margin: 0;
    color: var(--text-muted);
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: white;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.modern-table thead {
    background: #f9fafb;
}

.modern-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #374151;
    border-bottom: 1px solid var(--border);
}

.modern-table td {
    padding: 15px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.modern-table tbody tr:hover {
    background: #f9fafb;
}

.empty-table {
    text-align: center;
    color: var(--text-muted);
    padding: 36px 16px !important;
}

.icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.icon-button:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.icon-button:active {
    transform: scale(0.96);
}

.icon-refresh {
    width: 22px;
    height: 22px;
    fill: var(--primary);
}

.compact-table {
    table-layout: fixed;
}

.compact-table thead {
    background: var(--primary);
}

.compact-table th {
    color: white;
    font-size: 12px;
    padding: 12px 14px;
    border-bottom: none;
}

.compact-table td {
    font-size: 12.5px;
    padding: 10px 14px;
    vertical-align: middle;
}

.col-nombre {
    width: 20%;
}

.col-centro {
    width: 11%;
}

.col-tipo-proyecto {
    width: 12%;
}

.col-tipo-construccion {
    width: 12%;
}

.col-iva {
    width: 7%;
}

.col-estado-obra {
    width: 10%;
}

.col-estado {
    width: 8%;
}

.cell-two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    line-height: 1.35;
    max-height: 2.7em;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-neutral {
    background: #e5e7eb;
    color: #374151;
}

.table-footer {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 13px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-button,
.pagination-number {
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-main);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12.5px;
    cursor: pointer;
}

.pagination-button:hover,
.pagination-number:hover {
    background: #f3f4f6;
}

.pagination-number.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f9fafb;
}

.table-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.table-page-size select {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 7px 10px;
    background: white;
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
}

.status-cell {
    text-align: left;
}

.status-text {
    font-size: 12px;
    color: var(--text-main);
}

.status-light {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.04);
}

.status-light-green {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.status-light-red {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.status-light-yellow {
    background: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.22);
}

.status-light-gray {
    background: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.18);
}

.status-text {
    font-size: 12px;
    color: var(--text-main);
}

.col-expandir {
    width: 4%;
}

.obra-row {
    cursor: pointer;
}

.obra-row:hover {
    background: #f9fafb;
}

.expand-cell {
    text-align: center;
}

.expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.expand-icon.open {
    transform: rotate(0deg);
}

.detalle-sistemas-row {
    display: none;
    background: #f8fafc;
}

.detalle-sistemas-row.open {
    display: table-row;
}

.detalle-sistemas-row td {
    padding: 0 !important;
    border-bottom: 1px solid var(--border);
}

.sistemas-detail-box {
    padding: 16px 22px;
    background: #f8fafc;
}

.sistemas-detail-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
}

.sistemas-table {
    width: auto;
    min-width: 360px;
    max-width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.sistemas-table th {
    background: #eef2ff;
    color: #374151;
    font-size: 12px;
    text-align: left;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
}

.sistemas-table td {
    font-size: 12.5px;
    padding: 9px 12px !important;
    border-bottom: 1px solid var(--border);
}

.sistemas-table tr:last-child td {
    border-bottom: 0;
}

.sistemas-empty {
    color: var(--text-muted);
    font-size: 13px;
}

.sistemas-table-horizontal {
    table-layout: fixed;
}

.sistemas-table-horizontal th,
.sistemas-table-horizontal td {
    text-align: center;
    min-width: 120px;
}

.sistemas-table-horizontal .status-light-wrapper {
    justify-content: center;
}

.obras-apps-table {
    table-layout: fixed;
    min-width: 900px;
}

.col-codigo {
    width: 14%;
}

.col-empresa {
    width: 30%;
}

.col-nombre {
    width: 36%;
}

.col-sistema {
    width: 110px;
    text-align: center;
}

.obras-apps-table th.col-sistema {
    text-align: center;
}

.obras-apps-table td.status-cell {
    text-align: center;
}

.filter-row th {
    background: #f9fafb !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid var(--border) !important;
}

.column-filter {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 6px 8px;
    font-size: 12px;
    background: white;
    color: var(--text-main);
}

.column-filter:focus {
    outline: none;
    border-color: var(--primary);
}

.obras-apps-table thead tr:first-child th {
    background: var(--primary);
    color: white;
}


/* =========================================================
   Ajustes Crear Obra - grilla compacta y formulario nueva obra
   Archivo destino:
   C:\Proyectos\AdministracionSistemas\web\static\web\css\app.css
   ========================================================= */

.page-card-compact {
    padding: 16px 18px;
    border-radius: 14px;
}

.page-header-compact {
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.page-header-compact h1 {
    font-size: 20px;
    margin: 0 0 4px 0;
}

.page-header-compact p {
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
}

.icon-button-small {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.icon-button-small .icon-refresh {
    width: 19px;
    height: 19px;
}

.table-container-compact {
    border-radius: 12px;
}

.obras-crear-table {
    table-layout: fixed;
    min-width: 760px;
}

.obras-crear-table th {
    white-space: normal;
    line-height: 1.15;
    font-size: 10.5px;
    padding: 7px 6px;
    text-align: center;
    vertical-align: middle;
}

.obras-crear-table td {
    font-size: 11.5px;
    padding: 6px 6px;
    vertical-align: middle;
}

.obras-crear-table .filter-row th {
    padding: 5px 4px !important;
}

.obras-crear-table .column-filter {
    font-size: 10.5px;
    padding: 4px 5px;
    border-radius: 7px;
}

.obras-crear-table .cell-two-lines {
    line-height: 1.2;
    max-height: 2.4em;
}

.obras-crear-table .dt-col-codigo {
    width: 80px !important;
    max-width: 80px;
}

.obras-crear-table .dt-col-empresa {
    width: 190px !important;
    max-width: 190px;
}

.obras-crear-table .dt-col-nombre-obra {
    width: 220px !important;
    max-width: 220px;
}

.obras-crear-table .dt-col-sistema {
    width: 58px !important;
    max-width: 58px;
    min-width: 58px;
    text-align: center;
}

.obras-crear-table .dt-col-accion {
    width: 62px !important;
    max-width: 62px;
    min-width: 62px;
    text-align: center;
}

.obras-crear-table td.dt-col-sistema,
.obras-crear-table td.dt-col-accion {
    text-align: center;
}

.obras-crear-table .status-light-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.obras-crear-table .status-light {
    width: 11px;
    height: 11px;
}

.btn-crear-obra-grid {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}

.btn-crear-obra-grid:hover {
    background: #bbf7d0;
    border-color: #86efac;
    transform: translateY(-1px);
}

.icon-crear-obra {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.obra-form-card {
    max-width: 920px;
}

.obra-form {
    margin-top: 8px;
}

.obra-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin-top: 12px;
}

.form-group select {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    background: white;
    color: var(--text-main);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.readonly-input {
    background: #f3f4f6;
    color: #4b5563;
    cursor: not-allowed;
}

.btn-secondary {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    color: var(--text-main);
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

.obra-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 900px) {
    .obra-form-grid {
        grid-template-columns: 1fr;
    }

    .obra-form-actions {
        justify-content: stretch;
        flex-direction: column-reverse;
    }

    .obra-form-actions .btn-primary,
    .obra-form-actions .btn-secondary {
        width: 100%;
    }
}

.field-error {
    color: #991b1b;
    font-size: 12px;
    margin-top: 4px;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

.resultados-creacion {
    margin-bottom: 18px;
}

.resultados-creacion .alert-success,
.resultados-creacion .alert-warning,
.resultados-creacion .alert-error {
    margin-bottom: 10px;
}

.obra-status-section {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
    background: #f9fafb;
}

.section-header-compact {
    margin-bottom: 12px;
}

.section-header-compact h2 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: var(--text-main);
}

.section-header-compact p {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-muted);
}

.status-obra-table-container {
    background: white;
}

.status-obra-table {
    min-width: 520px;
    table-layout: fixed;
}

.status-obra-table th,
.status-obra-table td {
    text-align: center;
    font-size: 12px;
    padding: 10px 12px;
}

.status-obra-table .status-label-column {
    width: 90px;
}

.status-row-title {
    font-weight: 700;
    color: #374151;
    background: #f9fafb;
}

.status-empty-box {
    background: white;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 14px;
    color: var(--text-muted);
    font-size: 13px;
}

.resultados-proceso-section {
    background: #ffffff;
}

.resultado-creacion-table {
    min-width: 620px;
}

.resultado-creacion-table th,
.resultado-creacion-table td {
    font-size: 12.5px;
    vertical-align: middle;
}

.resultado-creacion-table small {
    color: var(--text-muted);
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.field-help {
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.3;
}

#tablaLogCreacionObras {
    width: 100% !important;
}

#tablaLogCreacionObras .filter-row th {
    overflow: visible;
    padding: 4px 6px;
}

#tablaLogCreacionObras .column-filter,
#tablaLogCreacionObras .select2-container {
    width: 100% !important;
    min-width: 95px;
    font-size: 11px;
}

#tablaLogCreacionObras .select2-container--default .select2-selection--single {
    height: 28px;
    min-height: 28px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
}

#tablaLogCreacionObras .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px;
    padding-left: 7px;
    padding-right: 22px;
    color: #374151;
}

#tablaLogCreacionObras .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px;
}

.select2-dropdown {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    z-index: 9999;
}

.select2-search--dropdown {
    padding: 6px;
}

.select2-search--dropdown .select2-search__field {
    height: 28px;
    border: 1px solid #d1d5db !important;
    border-radius: 7px;
    padding: 4px 7px;
    font-size: 12px;
}

.select2-results__option {
    font-size: 12px;
    padding: 6px 8px;
}

.log-ejecucion-id {
    font-family: Consolas, "Courier New", monospace;
    font-size: 10.5px;
}

.log-comentario-detail summary {
    cursor: pointer;
    color: #2563eb;
    font-weight: 700;
}

.log-comentario-texto {
    margin-top: 8px;
    max-height: 220px;
    overflow: auto;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 9px;
    color: #374151;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.btn-login-microsoft {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid #2563eb;
    color: #2563eb;
    background: #ffffff;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
}

.btn-login-microsoft:hover {
    background: #eff6ff;
    text-decoration: none;
}

.login-separator {
    text-align: center;
    margin: 18px 0 10px;
    color: #64748b;
}

.dataTables_wrapper .dataTables_filter.dataTables-filter-with-excel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    padding-right: 4px;
}

.dataTables_wrapper .dataTables_filter.dataTables-filter-with-excel label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
}

.excel-export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #15803d;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.excel-export-button:hover:not(:disabled) {
    background: #dcfce7;
    border-color: #86efac;
}

.excel-export-button:active:not(:disabled) {
    transform: scale(0.96);
}

.excel-export-button:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.28);
    outline-offset: 2px;
}

.excel-export-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.excel-export-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.excel-export-icon .excel-icon-sheet {
    fill: currentColor;
}

.excel-export-icon .excel-icon-fold,
.excel-export-icon .excel-icon-mark,
.excel-export-icon .excel-icon-grid {
    fill: none;
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.excel-export-icon .excel-icon-fold {
    stroke-width: 1.4;
}

.excel-export-icon .excel-icon-mark {
    stroke-width: 1.75;
}

.excel-export-icon .excel-icon-grid {
    stroke-width: 1.25;
}

.excel-export-button.is-loading .excel-export-icon {
    animation: excel-export-pulse 0.9s ease-in-out infinite alternate;
}

@keyframes excel-export-pulse {
    from { opacity: 0.45; }
    to { opacity: 1; }
}

@media (max-width: 767px) {
    .dataTables_wrapper .dataTables_filter.dataTables-filter-with-excel {
        justify-content: center;
        flex-wrap: wrap;
        padding-right: 0;
    }
}
