* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --error-red: #dc2626;
    --error-red-light: #ef4444;
    --error-red-dark: #b91c1c;
    --success-green: #16a34a;
    --success-green-light: #22c55e;
    --success-green-dark: #15803d;
    --warning-orange: #ea580c;
    --warning-orange-light: #f97316;
    --info-blue: #2563eb;
    --info-blue-light: #3b82f6;
    --btn-disabled: var(--gray-300);
    --sidebar-width: 280px;
    --header-height: 64px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --row-height: 48px;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.modal-open {
    overflow: hidden;
}

.background-pattern {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.background-pattern svg {
    position: absolute;
    top: 50%;
    left: 72%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%) scaleX(-1);
    color: var(--primary-black);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes tableFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes subtlePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes errorPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

@keyframes slideUpExit {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 204, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(0, 204, 0, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes cardHover {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-2px) scale(1.01);
    }
}

[data-animate="slide-up"] {
    animation: slideUp 0.6s ease-out forwards;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    transition: all var(--transition);
}

.header.sidebar-open {
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    margin-right: 16px;
    position: relative;
    overflow: hidden;
}

.sidebar-toggle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-black);
    opacity: 0;
    transition: opacity var(--transition-fast);
    border-radius: 12px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: var(--primary-black);
    margin: 2px 0;
    transition: all var(--transition);
    transform-origin: center;
    position: relative;
    z-index: 1;
}

.sidebar-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 0px);
}

.sidebar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.sidebar-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-8px, 0px);
}

.header-title h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-black);
    margin: 0;
}

.header-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-left: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-branch-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid rgba(23, 23, 23, 0.08);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 245, 245, 0.92) 100%);
    box-shadow: 0 8px 22px -16px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.session-branch-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.session-branch-indicator strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-800);
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all var(--transition-fast);
    color: var(--gray-600);
    position: relative;
    overflow: hidden;
}

.header-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-black);
    opacity: 0;
    transition: opacity var(--transition-fast);
    border-radius: 12px;
}

.header-btn:hover::before {
    opacity: 0.05;
}

.header-btn:hover {
    color: var(--primary-black);
    transform: rotate(180deg);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-black) 0%, var(--gray-900) 100%);
    color: var(--primary-white);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-xl);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 32px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.sidebar-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.logo h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
    color: var(--primary-white);
}

.logo p {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 300;
    margin: 0;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 0;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 4px 0;
}

.nav-item.has-submenu .submenu {
    display: none;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.nav-item.has-submenu.open .submenu {
    display: flex;
    animation: slideDown 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    max-height: 200px;
    opacity: 1;
}

.nav-item.has-submenu.closing .submenu {
    display: flex;
    animation: slideUpExit 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.nav-item.has-submenu .submenu .nav-link {
    padding: 8px 24px 8px 56px;
    font-size: 13px;
    margin-right: 8px;
    border-radius: 0 20px 20px 0;
    position: relative;
    overflow: hidden;
}

.nav-item.has-submenu .submenu .nav-link::before {
    display: none;
}

.submenu-icon {
    margin-left: auto;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 14px;
}

.nav-item.has-submenu.open>.nav-link .submenu-icon {
    transform: rotate(180deg);
}

.nav-item.has-submenu .submenu .nav-icon {
    font-size: 16px;
    margin-right: 8px;
}

.nav-item.has-submenu .submenu .nav-text {
    font-size: 14px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: var(--gray-300);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    font-weight: 500;
    border-radius: 0 24px 24px 0;
    margin-right: 12px;
}

.nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    background: var(--primary-white);
    transition: all var(--transition-fast);
    border-radius: 0 2px 2px 0;
}

.nav-link:hover::before {
    width: 4px;
    height: 60%;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-white);
    transform: translateX(8px);
}

.nav-link.active {
    background-color: var(--primary-white);
    color: var(--gray-900);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.nav-link.active::before {
    width: 4px;
    height: 100%;
    background: var(--gray-900);
}

.nav-icon {
    margin-right: 12px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
    font-size: 20px;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.nav-text {
    font-size: 15px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.main-content {
    margin-left: 0;
    margin-top: var(--header-height);
    padding: 32px;
    min-height: calc(100vh - var(--header-height));
    transition: all var(--transition);
    background-color: var(--gray-50);
    width: 100%;
    box-sizing: border-box;
}

.main-content.sidebar-open {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

.content-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: none;
    animation: fadeIn 0.5s ease-out;
}

.section-header {
    margin-bottom: 32px;
}

#revisar-cambios .section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 8px;
    position: relative;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-black), var(--gray-400));
    border-radius: 2px;
}

.record-count {
    font-size: 14px;
    color: var(--gray-700);
}

.section-description {
    font-size: 16px;
    color: var(--gray-600);
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-date-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    position: relative;
    margin-bottom: 4px;
}

.dashboard-date-filter label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-date-filter .date-input {
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background-color: var(--primary-white);
    transition: all var(--transition-fast);
    color: var(--gray-900);
    min-height: 40px;
}

.dashboard-date-filter .date-input:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.dashboard-card {
    background: var(--primary-white);
    cursor: pointer;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gray-800), var(--gray-500));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.dashboard-card.selected {
    border-color: var(--gray-900);
    box-shadow: var(--shadow-lg);
}

.dashboard-card.selected::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-black);
    margin: 0;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-900);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-size: 18px;
}

.card-content {
    display: flex;
    align-items: center;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-black);
    line-height: 1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.content-card,
.action-panel {
    background: var(--primary-white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
    transition: all var(--transition-fast);
}

.elegant-card {
    position: relative;
    overflow: hidden;
}

.elegant-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-black), transparent);
    opacity: 0.1;
}

.elegant-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-title-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.content-card h3,
.action-panel h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-black);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-panel h3 {
    margin-bottom: 16px;
}

.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    cursor: help;
    position: relative;
}

.tooltip-icon {
    color: var(--gray-500);
    font-size: 10px;
    transition: all var(--transition-fast);
}

.tooltip-icon:hover {
    color: var(--gray-900);
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    background: var(--gray-900);
    color: var(--primary-white);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 280px;
    z-index: 1002;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    transform: translateY(-62px);
    opacity: 90% !important;
    animation: fadeIn 0.3s ease forwards;
    backdrop-filter: blur(8px);
}

.tooltip::before {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(23, 23, 23, 0.95);
}

.search-section {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.search-section.compact {
    margin-bottom: 4px;
}

.search-section .view-toggle-buttons {
    align-self: flex-end;
}

.search-card {
    background: var(--primary-white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    width: 100%;
    margin-top: 14px;
    margin-bottom: 4px;
}

.selection-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--gray-50);
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    box-shadow: var(--shadow-sm);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.selection-info.visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.selection-info .selection-list {
    color: var(--error-red);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    margin-bottom: 24px;
    margin-bottom: 0;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.dashboard-filter-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1021;
}

.dashboard-filter-card {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    padding: 16px;
    width: 320px;
    background: var(--primary-white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 1022;
}

.dashboard-filter-card.active {
    display: block;
}

.dashboard-filter-card::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--primary-white);
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.05));
}

.dashboard-filter-card .filter-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 7px;
}

.dashboard-filter-card .error-logic-row {
    align-items: center;
}

.dashboard-filter-card .checkbox-row {
    flex-direction: row;
    align-items: center;
}

.dashboard-filter-card label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-filter-card .filter-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-filter-card .error-filter-method-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    display: block;
    width: 100%;
}

.dashboard-filter-card select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background-color: var(--primary-white);
    transition: all var(--transition-fast);
    color: var(--gray-900);
    min-height: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.dashboard-filter-card select:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.dashboard-filter-card .checkbox-row label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.dashboard-filter-card .checkbox-row input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    position: relative;
    appearance: none;
    background-color: var(--primary-white);
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    min-height: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
}

.dashboard-filter-card .checkbox-row input[type="checkbox"]:hover {
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.dashboard-filter-card .checkbox-row input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.dashboard-filter-card .checkbox-row input[type="checkbox"]:checked {
    background-color: var(--success-green);
    border-color: var(--success-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8 6 11 13 4'/%3E%3C/svg%3E");
}

.dashboard-filter-card .checkbox-row input[type="checkbox"].cross:checked {
    background-color: var(--error-red);
    border-color: var(--error-red);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='4' y1='4' x2='12' y2='12'/%3E%3Cline x1='12' y1='4' x2='4' y2='12'/%3E%3C/svg%3E");
}


.dashboard-filter-card .error-logic-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.dashboard-filter-card .error-logic-toggle .logic-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.dashboard-filter-card .error-logic-toggle .logic-label.active {
    font-weight: 700;
    color: var(--info-blue);
}

.dashboard-filter-card .error-logic-toggle .switch {
    position: relative;
    width: 40px;
    height: 20px;
}

.dashboard-filter-card .error-logic-toggle .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dashboard-filter-card .error-logic-toggle .slider {
    position: absolute;
    inset: 0;
    background-color: var(--gray-300);
    border-radius: 20px;
    transition: var(--transition-fast);
}

.dashboard-filter-card .error-logic-toggle .slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    top: 2px;
    background-color: var(--primary-white);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.dashboard-filter-card .error-logic-toggle input:checked + .slider {
    background-color: var(--info-blue);
}

.dashboard-filter-card .error-logic-toggle input:checked + .slider:before {
    transform: translateX(20px);
}


.dashboard-filter-card .filter-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 16px 0;
}

.dashboard-filter-card .filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

.dashboard-filter-card:hover {
    transform: translateX(-50%) translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 16px;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-900);
    background-color: var(--gray-50);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    font-weight: 500;
}

.search-input:focus {
    outline: none;
    border-color: var(--gray-900);
    background-color: var(--primary-white);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.search-input:focus+.search-icon {
    color: var(--gray-900);
}

.search-btn-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-spinner {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-spinner i {
    font-size: 20px;
    animation: spin 1s linear infinite;
}

.results-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.order-results,
.order-products-card {
    background: var(--primary-white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    animation: scaleIn 0.4s ease-out;
    margin-top: 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

.results-header h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-black);
    margin: 0;
}

.results-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-900);
    color: var(--primary-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--primary-white);
    border-radius: 12px;
    border: 1px solid var(--gray-300);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    opacity: 0;
    animation: slideInFromLeft 0.5s ease-out forwards;
}

.detail-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.detail-item label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-black);
}

.detail-item .amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-black);
}

.products-section {
    margin-top: 32px;
}

.order-products-card.products-section {
    margin-top: 0;
}

.products-section h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-section h5::before {
    content: "";
    width: 4px;
    height: 20px;
    background: var(--primary-black);
    border-radius: 2px;
}

.total-cost {
    margin-top: 24px;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-black);
}

.existing-errors-section {
    width: 100%;
    margin-top: 24px;
    background: linear-gradient(135deg, #fff8f8 0%, #fef2f2 100%);
    border: 2px solid #fecaca;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    animation: slideInFromRight 0.5s ease-out;
}

.existing-errors-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--error-red), var(--error-red-dark), #991b1b);
    border-radius: 16px 16px 0 0;
}

.existing-errors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #fecaca;
}

.existing-errors-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--error-red-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.existing-errors-header h4 i {
    font-size: 20px;
}

.errors-count-badge {
    background: var(--error-red);
    color: var(--primary-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.existing-errors-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.existing-error-card {
    background: var(--primary-white);
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out forwards;
}

.existing-error-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--error-red);
    border-radius: 0 2px 2px 0;
}

.existing-error-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--error-red);
}

.delete-error-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--gray-500);
    opacity: 0.5;
    font-size: 16px;
    cursor: pointer;
    display: none;
}

.existing-error-card:hover .delete-error-btn {
    display: inline;
}

.delete-error-btn:hover {
    color: var(--error-red-dark);
    opacity: 1;
    transform: scale(1.1);
}

.delete-solution-btn {
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 20px;
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.delete-solution-btn:hover {
    color: var(--error-red);
    transform: scale(1.05);
}

.table-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.changes-table .delete-col {
    text-align: center;
}

.spin {
    animation: spin 1s linear infinite;
}

.error-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.error-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--error-red-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-card-date {
    font-size: 12px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.error-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.error-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.error-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-detail-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-900);
    word-break: break-word;
}

.error-description {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.error-description-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.error-description-text {
    font-size: 13px;
    color: var(--gray-800);
    line-height: 1.4;
    font-style: italic;
}

.error-solution {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.error-solution-label {
    font-size: 11px;
    font-weight: 600;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.error-solution-text {
    font-size: 13px;
    color: #166534;
    line-height: 1.4;
    font-weight: 500;
}

.view-toggle-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
    justify-content: flex-end;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    border: 1px solid var(--gray-300);
    background: var(--primary-white);
    color: var(--gray-600);
}

.icon-btn:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    border: 1px solid var(--gray-300);
    background: var(--primary-white);
    color: var(--gray-600);
}

.view-toggle-btn:hover {
    background: var(--gray-100);
}

.view-toggle-btn.active {
    background: var(--primary-black);
    border-color: var(--primary-black);
    color: var(--primary-white);
}

.view-toggle-btn i {
    font-size: 16px;
}

#review-table-wrapper {
    background: var(--primary-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    position: relative;
}

#review-table {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow-x: auto;
    overflow-y: auto;
    height: 540px;
    position: relative;
}

#review-table table {
    width: auto;
    border-collapse: separate;
    border-spacing: 0;
    min-width: max-content;
    table-layout: auto;
}

#review-table th {
    background: var(--gray-900);
    color: var(--primary-white);
    padding: 14px 10px;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--gray-700);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#review-table th:first-child {
    border-top-left-radius: 0;
    padding-left: 24px;
    background: var(--gray-900);
    position: sticky;
    left: 0;
    z-index: 11;
    min-width: 120px;
}


#review-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 13px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    text-align: center;
    vertical-align: middle;
    background: var(--primary-white);
}

#review-table td:first-child {
    padding-left: 24px;
    font-weight: 700;
    color: var(--primary-white);
    background: var(--gray-900);
    position: sticky;
    left: 0;
    z-index: 9;
    min-width: 120px;
    border-right: 1px solid var(--gray-800);
}

#review-table th.delete-col {
    background: var(--error-red);
    text-align: center;
    width: 60px;
}

#review-table td.delete-col {
    background: rgba(220, 38, 38, 0.05);
    text-align: center;
    width: 60px;
}

#review-table tbody tr {
    transition: all var(--transition-fast);
    position: relative;
}

#review-table tbody tr:hover {
    background: var(--gray-100);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#review-table tbody tr:hover td {
    background: inherit;
    color: var(--gray-900);
}

#review-table tbody tr:hover td.delete-col {
    background: rgba(220, 38, 38, 0.1);
}

#review-table tbody tr:hover td:first-child {
    background: var(--gray-900);
    color: var(--primary-white);
}

#review-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

#review-table tbody tr:nth-child(even):hover {
    background: var(--gray-100);
}

#review-table select {
    width: 100%;
    min-height: 36px;
    padding: 8px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-white);
    padding-right: 14px;
    appearance: auto;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gray-800);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#review-table select:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
    background: var(--primary-white);
    transform: translateY(-1px);
}

#review-table select:hover {
    border-color: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.solutions-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    background: var(--primary-black);
    opacity: 0.9;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.solutions-cards-container.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.solution-card {
    background: var(--primary-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-black);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.solution-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-700);
    animation: none;
}

.solution-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
    position: relative;
}

.solution-card-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-black);
    border-radius: 1px;
}

.solution-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-black);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.solution-card-id {
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-id-texts {
    display: flex;
    flex-direction: column;
}

.solution-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--gray-900);
    color: var(--primary-white);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.solution-original-id {
    font-size: 12px;
    color: var(--gray-400);
    margin: 0;
}

.solution-card-date {
    font-size: 11px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.solution-card-date[type="date"] {
    padding: 4px 8px;
    font-size: 13px;
}

.solution-card-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
    flex: 1 1 auto;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.solution-card-content::-webkit-scrollbar {
    width: 4px;
}

.solution-card-content::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 2px;
}

.solution-card-content::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 2px;
}

.solution-card-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

.solution-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 90px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.solution-detail-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-black);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.solution-detail-item:hover::before {
    opacity: 1;
}

.solution-detail-item:hover {
    background: var(--primary-white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-700);
}

.solution-detail-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    position: relative;
    padding-left: 12px;
}

.solution-detail-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 5px;
    height: 5px;
    border-radius: 2px;
    background: var(--primary-black);
    opacity: 0.8;
}

.solution-detail-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    display: block;
    width: 100%;
    word-break: break-word;
    max-height: 70px;
    overflow-y: auto;
    line-height: 2.5;
    padding-left: 12px;
    border-top: 1px solid var(--gray-200);
    padding-top: 4px;
}

.solution-card select {
    width: 100%;
    min-height: 36px;
    padding: 8px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-white);
    padding-right: 14px;
    appearance: auto;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gray-800);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.solution-card select:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
    background: var(--primary-white);
}

.solution-card select:hover {
    border-color: var(--gray-300);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.solution-card .view-url-btn {
    margin-top: auto;
    padding: 12px 20px;
    background: var(--primary-white);
    color: var(--primary-black);
    border: 1px solid var(--primary-black);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.solution-card .view-url-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.solution-card .view-url-btn:hover::before {
    left: 100%;
}

.solution-card .view-url-btn:hover {
    background: var(--primary-black);
    color: var(--primary-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--primary-black);
}

.solutions-cards-container.loading {
    position: relative;
}

.solutions-cards-container.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--gray-300);
    border-top: 3px solid var(--primary-black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#review-table.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--gray-300);
    border-top: 3px solid var(--primary-black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
}

.solution-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

.solution-card.loading .solution-detail-item {
    background: linear-gradient(90deg, #f5f5f5 25%, #e5e5e5 50%, #f5f5f5 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

.view-toggle-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
    justify-content: flex-end;
}

.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    border: 1px solid var(--gray-300);
    background: var(--primary-white);
    color: var(--gray-600);
}

.view-toggle-btn.active {
    background: var(--primary-black);
    border-color: var(--primary-black);
    color: var(--primary-white);
}

.view-toggle-btn:hover {
    background: var(--gray-100);
}

#error-form-card,
#change-form-card {
    width: 100%;
    margin-top: 32px;
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--gray-50) 100%);
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.5s ease-out;
    position: relative;
}

#error-form-card::before,
#change-form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
}

#change-form-card::before {
    background: linear-gradient(90deg, var(--primary-black), var(--gray-700));
}

#error-form-card .card-title-section,
#change-form-card .card-title-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

#error-form-card .card-title-section h4,
#change-form-card .card-title-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-black);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

#error-form-card .card-title-section h4::before,
#change-form-card .card-title-section h4::before {
    content: "";
    width: 4px;
    height: 20px;
    background: var(--primary-black);
    border-radius: 2px;
}

.form-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.error-badge {
    background: var(--error-red);
    color: var(--primary-white);
}

.solution-badge {
    background: var(--primary-black);
    color: var(--primary-white);
}

.error-form {
    position: relative;
}

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

.form-field-animate {
    opacity: 0;
    animation: slideInUp 0.4s ease-out forwards;
}

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

.form-divider {
    border: none;
    border-top: 1px solid var(--gray-300);
    margin: 32px 0;
}

.error-form .form-group label {
    position: relative;
    padding-left: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-form .form-group label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 4px;
    height: 1em;
    border-radius: 2px;
    transition: background-color var(--transition-fast), opacity var(--transition-fast);
}

.error-form .form-group:has(input[required]) label::before,
.error-form .form-group:has(textarea[required]) label::before,
.error-form .form-group:has(select[required]) label::before {
    background: var(--error-red);
    opacity: 0.8;
    animation: subtlePulse 2s ease-in-out infinite;
}

.error-form .form-group:focus-within label::before {
    opacity: 0.8;
}

.error-form .form-group:has(input[required]:valid) label::before,
.error-form .form-group:has(textarea[required]:valid) label::before,
.error-form .form-group:has(select[required]:valid) label::before {
    background: #00cc00;
    opacity: 0.8;
    animation: subtlePulse 2s ease-in-out infinite;
}

.error-form input,
.error-form select,
.error-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background-color: var(--primary-white);
    transition: all var(--transition-fast);
    font-family: inherit;
    color: var(--gray-900);
    min-height: 40px;
}

.error-form input:focus,
.error-form select:focus,
.error-form textarea:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    background-color: var(--primary-white);
}

.error-form input[required]:focus,
.error-form select[required]:focus,
.error-form textarea[required]:focus {
    border-color: #ff7777;
    animation: pulse 1.5s infinite;
}

.error-form input[required]:valid:focus,
.error-form textarea[required]:valid:focus,
.error-form select[required]:valid:focus {
    outline: none;
    border-color: #00cc00;
    box-shadow: 0 0 0 4px rgba(0, 204, 0, 0.2);
    animation: pulse-green 1.5s infinite;
}

.error-form input[readonly],
.error-form select[disabled],
.error-form textarea[readonly] {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    color: var(--gray-600);
    border-color: var(--gray-300);
    cursor: not-allowed;
    font-weight: 500;
}

.error-form input[readonly]::placeholder,
.error-form textarea[readonly]::placeholder {
    color: var(--gray-400);
    font-style: italic;
}

.error-form textarea {
    resize: vertical;
    padding: 16px;
    min-height: 100px;
    line-height: 1.5;
}

.error-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.error-form select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.error-form .checkbox-group {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.error-form .checkbox-group:hover {
    background: var(--primary-white);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.error-form .checkbox-group .checkbox-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-form .checkbox-group .checkbox-title::before {
    content: "";
    width: 3px;
    height: 16px;
    background: var(--gray-400);
    border-radius: 2px;
    transition: background-color var(--transition-fast);
}


.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.error-form .checkbox-group .checkbox-wrapper {
    margin-top: 8px;
}

.error-form .checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    position: relative;
    appearance: none;
    background-color: var(--primary-white);
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    min-height: auto;
}

.error-form .checkbox-group input[type="checkbox"]:hover {
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.error-form .checkbox-group input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.error-form .checkbox-group input[type="checkbox"]:checked {
    background-color: var(--error-red);
    border-color: var(--error-red);
}

.error-form .checkbox-group input[type="checkbox"]:checked::before {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.checkbox-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    user-select: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--gray-100);
}

.required {
    color: var(--error-red);
    margin-left: 2px;
    font-weight: 700;
}

.error-form .form-group:has(input:required) label::after,
.error-form .form-group:has(textarea:required) label::after,
.error-form .form-group:has(select:required) label::after {
    content: "*";
    color: var(--error-red);
    margin-left: 4px;
    font-weight: 700;
}

.error-form .form-group:has(input[readonly]) label,
.error-form .form-group:has(textarea[readonly]) label,
.error-form .form-group.readonly-field label {
    color: var(--gray-500);
}

.error-form .form-group:has(input[readonly]) label::before,
.error-form .form-group:has(textarea[readonly]) label::before,
.error-form .form-group.readonly-field label::before {
    background: var(--gray-300);
}

.error-form .form-group:not(:has(input[readonly])):not(:has(select[disabled])):not(:has(textarea[readonly])):hover input,
.error-form .form-group:not(:has(input[readonly])):not(:has(select[disabled])):not(:has(textarea[readonly])):hover select,
.error-form .form-group:not(:has(input[readonly])):not(:has(select[disabled])):not(:has(textarea[readonly])):hover textarea {
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn {
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    min-height: auto;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--primary-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--primary-white);
    color: var(--gray-900);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    background-color: var(--gray-900);
    color: var(--primary-white);
    border-color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-red) 0%, var(--error-red-dark) 100%);
    color: var(--primary-white);
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--error-red-dark) 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.error-btn {
    margin-top: 24px;
    margin-left: auto;
    display: flex;
    align-self: flex-end;
    background-color: var(--primary-white);
    color: var(--error-red);
    border: 1px solid var(--error-red);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    padding: 12px 20px;
    min-height: auto;
}

.error-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s;
}

.error-btn:hover::before {
    left: 100%;
}

.error-btn:hover {
    background-color: rgba(220, 38, 38, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.error-btn.confirm {
    background: var(--error-red);
    color: var(--primary-white);
    border: 1px solid var(--primary-white);
    animation: pulse 1.5s infinite;
}

.error-btn.confirm:hover {
    background: var(--error-red-dark);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.error-btn.confirm:focus {
    border-color: #800000;
}

.error-btn.disabled {
    background: var(--btn-disabled);
    color: var(--gray-400);
    border-color: var(--gray-500);
    cursor: default;
    transform: none;
    box-shadow: none;
    transition: none;
}

.error-btn.disabled::before {
    display: none;
}

.error-btn.disabled:hover,
.error-btn.disabled:hover::before {
    background: var(--btn-disabled);
    transform: none;
    box-shadow: none;
}

.btn-submit {
    background: linear-gradient(135deg, var(--error-red) 0%, var(--error-red-dark) 100%);
    color: var(--primary-white);
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:disabled {
    background: var(--btn-disabled);
    color: var(--gray-600);
    cursor: default;
    box-shadow: none;
    transform: none;
    opacity: 0.6;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--error-red-dark) 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit:hover:disabled {
    background: var(--gray-400);
    transform: none;
    box-shadow: none;
}

.btn-cancel {
    background-color: var(--primary-white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn .me-2 {
    margin-right: 8px;
}

.change-btn {
    margin-top: 24px;
    margin-left: auto;
    display: flex;
    align-self: flex-end;
    background-color: var(--primary-white);
    color: var(--primary-black);
    border: 1px solid var(--primary-black);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    padding: 12px 20px;
    min-height: auto;
    gap: 8px;
}

.change-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    transition: left 0.5s;
}

.change-btn:hover::before {
    left: 100%;
}

.change-btn:disabled {
    background: var(--btn-disabled);
    color: var(--gray-400);
    border-color: var(--gray-500);
    cursor: default;
    transform: none;
    box-shadow: none;
    transition: none;
}

.change-btn:hover:not(:disabled) {
    background-color: var(--primary-black);
    color: var(--primary-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.change-btn.confirm {
    background-color: var(--primary-black);
    color: var(--primary-white);
    border-color: var(--primary-black);
}

.change-btn.confirm:hover {
    background-color: var(--gray-900);
}

.pulse-outline {
    animation: pulse 1.5s infinite;
}

.btn-submit.pulse-outline {
    border-color: #800000;
}

.products-table {
    background: var(--primary-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.products-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.products-table th,
.products-table td,
.changes-table th,
.changes-table td,
#review-table th,
#review-table td {
    height: var(--row-height);
    overflow: hidden;
}

.products-table th {
    background: var(--gray-900);
    color: var(--primary-white);
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-table th:nth-child(1),
.products-table td:nth-child(1) {
    width: 8%;
}

.products-table th:nth-child(2),
.products-table td:nth-child(2) {
    width: 18%;
}

.products-table th:nth-child(3),
.products-table td:nth-child(3) {
    width: 20%;
}

.products-table th:nth-child(4),
.products-table td:nth-child(4) {
    width: 25%;
}

.products-table th:nth-child(5),
.products-table td:nth-child(5) {
    width: 19%;
}

.products-table th:nth-child(6),
.products-table td:nth-child(6) {
    width: 10%;
}

.products-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-weight: 500;
    text-align: center;
    transition: background-color var(--transition-fast);
}

.products-table tr:hover td {
    background-color: var(--gray-50);
}

.products-table tr:last-child td {
    border-bottom: none;
}

.products-table tr.disabled {
    opacity: 0.4;
}

.products-table tr.disabled:hover td {
    background-color: inherit;
}

.products-table .checkbox-col {
    width: 8%;
    text-align: center;
    display: none;
}

.products-table .color-col {
    width: 25%;
}

.products-table .delete-col {
    width: 10%;
    text-align: center;
}

.products-table.show-selection .checkbox-col {
    display: table-cell;
}

.products-table .product-select-checkbox {
    width: 24px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    position: relative;
    appearance: none;
    background-color: var(--primary-white);
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.products-table .product-select-checkbox:hover {
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.products-table .product-select-checkbox:focus {
    border-color: #ff7777;
}

.products-table .product-select-checkbox:checked {
    background-color: var(--error-red);
    border-color: var(--error-red);
}

.products-table .product-select-checkbox:checked::before {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-white);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.products-table .product-select-checkbox:disabled {
    background-color: var(--gray-200);
    border-color: var(--gray-400);
    cursor: default;
    opacity: 0.5;
    pointer-events: none;
    animation: none;
}

.products-table .product-select-checkbox.pulse-highlight {
    animation: pulse 1.5s infinite;
}

.review-checkbox {
    width: 24px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    position: relative;
    appearance: none;
    background-color: var(--primary-white);
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.review-checkbox:hover {
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.review-checkbox:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.review-checkbox:checked {
    background-color: var(--error-red);
    border-color: var(--error-red);
}

.review-checkbox:checked::before {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.review-date {
    width: 100%;
    min-height: 32px;
    padding: 8px 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background-color: var(--primary-white);
    transition: all var(--transition-fast);
}

.review-date:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.changes-table-wrapper {
    margin-bottom: 0;
    background: var(--primary-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    position: relative;
}

.changes-table {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow-x: auto;
    overflow-y: auto;
    height: 540px;
    position: relative;
}

.changes-table.table-disabled {
    pointer-events: none;
    opacity: 0.6;
}

.changes-table table {
    width: auto;
    border-collapse: separate;
    border-spacing: 0;
    min-width: max-content;
    table-layout: auto;
}

.changes-table th {
    background: var(--gray-900);
    color: var(--primary-white);
    border-right: 1px solid var(--gray-700);
    padding: 14px 10px;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--gray-700);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.changes-table th:last-child {
    padding-right: 24px;
    border-right: none;
}

.changes-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--gray-100);
    border-right: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 13px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    text-align: center;
    vertical-align: middle;
    background: var(--primary-white);
}

.changes-table select {
    width: 100%;
    min-height: 32px;
    padding: 8px 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background-color: var(--primary-white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 36px;
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.changes-table select:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.changes-table th:first-child {
    padding-left: 24px;
    font-weight: 700;
    color: var(--primary-white);
    position: sticky;
    min-width: 120px;
    left: 0;
    border-right: 1px solid var(--gray-800);
    z-index: 11;
}

.changes-table td:first-child {
    padding-left: 24px;
    font-weight: 700;
    color: var(--primary-white);
    min-width: 120px;
    position: sticky;
    left: 0;
    background-color: var(--gray-900);
    z-index: 9;
    border-right: 1px solid var(--gray-800);
}

.changes-table td:last-child {
    padding-right: 24px;
    border-right: none;
}

.changes-table tbody tr {
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.changes-table tbody tr:not(.selected):hover {
    background: var(--gray-200);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.changes-table tbody tr:not(.selected):hover td {
    background: var(--gray-300);
    color: var(--primary-black);
}

.changes-table tbody tr:not(.selected):hover td:first-child {
    background: var(--gray-900);
    color: var(--primary-white);
}

.changes-table tbody tr.selected td {
    background-color: var(--gray-300);
    color: var(--primary-black);
    font-weight: 600;
}

.changes-table tbody tr.selected td.id-interno-col {
    color: var(--error-red-light);
}

.changes-table tbody tr.selected td:first-child {
    background: var(--gray-900);
    color: var(--primary-white);
}

.changes-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.changes-table tbody tr:nth-child(even):not(.selected):hover {
    background: var(--gray-100);
}

.changes-table td.id-col {
    font-weight: 600;
}

td.id-interno-col {
    font-weight: 600;
    color: var(--error-red-light);
}

.changes-table tbody tr:last-child td {
    border-bottom: none;
}

.changes-table::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.changes-table::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.changes-table::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.changes-table::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

.table-fade {
    animation: tableFade 0.2s ease;
}

.changes-table::-webkit-scrollbar-corner {
    background: var(--gray-100);
}

.changes-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 0;
}

.table-pagination .page-buttons {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0 40px;
}

.table-pagination .page-btn,
.table-pagination .ellipsis {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.table-pagination .page-btn {
    border: 1px solid var(--gray-300);
    background: var(--primary-white);
    color: var(--gray-700);
    font-size: 13px;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.table-pagination .page-btn:hover:not(:disabled) {
    background: var(--gray-100);
}

.table-pagination .page-btn.active:hover:not(:disabled) {
    background: var(--error-red);
    color: var(--primary-white);
}

.table-pagination .page-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.table-pagination .page-btn.active {
    background: var(--error-red);
    color: var(--primary-white);
    border-color: var(--error-red-dark);
}

.table-pagination .ellipsis {
    color: var(--gray-700);
}

#change-product-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

#change-product-modal.show {
    display: flex;
}

#change-product-modal .modal-content {
    background: var(--primary-white);
    border-radius: 12px;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#change-product-modal .modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    font-weight: 600;
    background: var(--primary-white);
    color: var(--gray-900);
    position: relative;
    text-transform: uppercase;
}

#change-product-modal .modal-title {
    flex: 1;
    text-align: center;
}

#change-product-modal .modal-body {
    padding: 0;
    background: var(--primary-white);
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

#change-product-modal .close-btn {
    position: absolute;
    right: 16px;
    cursor: pointer;
    font-size: 20px;
    color: var(--gray-900);
}

#change-product-modal .modal-actions {
    padding: 16px;
    border-top: 1px solid var(--gray-100);
}

#change-product-modal .btn-submit {
    background: var(--primary-black);
    color: var(--primary-white);
}

#change-product-modal .btn-submit:hover {
    background: #000000;
}

#change-product-modal .modal-body .form-group label {
    position: relative;
    padding-left: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

#change-product-modal .modal-body .form-group label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 4px;
    height: 1em;
    border-radius: 2px;
    background: var(--gray-400);
}

#change-product-modal .quantity-input {
    width: 48px;
    min-height: 40px;
    padding: 8px 12px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    background: var(--primary-white);
    transition: all var(--transition-fast);
    text-align: center;
}

#change-product-modal .quantity-input::-webkit-outer-spin-button,
#change-product-modal .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#change-product-modal .quantity-input:focus {
    outline: none;
    border-color: var(--gray-700);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

#change-product-modal .quantity-input:disabled {
    background: var(--gray-100);
    color: var(--gray-600);
    border-color: var(--gray-300);
    cursor: not-allowed;
}

#change-product-modal .quantity-input.qty-exceeded {
    border-color: var(--warning-orange);
}

.ordered-qty.warning {
    color: var(--warning-orange);
    font-weight: 600;
}

#producto-envio-modal-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background: var(--primary-white);
    color: var(--gray-900);
    transition: all var(--transition-fast);
    resize: vertical;
    min-height: 80px;
}

#producto-envio-modal-input:focus {
    outline: none;
    border-color: var(--gray-700);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

#change-product-modal .modal-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 16px 0;
}

#change-product-modal .modal-detail-group {
    margin: 0 16px;
}

#change-products-table,
#receive-products-table {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 40vh;
}

#receive-product-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

#receive-product-modal.show {
    display: flex;
}

#receive-product-modal .modal-content {
    background: var(--primary-white);
    border-radius: 12px;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#receive-product-modal .modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    font-weight: 600;
    background: var(--primary-white);
    color: var(--gray-900);
    position: relative;
    text-transform: uppercase;
}

#receive-product-modal .modal-title {
    flex: 1;
    text-align: center;
}

#receive-product-modal .modal-body {
    padding: 0;
    background: var(--primary-white);
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

#receive-product-modal .close-btn {
    position: absolute;
    right: 16px;
    cursor: pointer;
    font-size: 20px;
    color: var(--gray-900);
}

#receive-product-modal .modal-actions {
    padding: 16px;
    border-top: 1px solid var(--gray-100);
}

#receive-product-modal .btn-submit {
    background: var(--primary-black);
    color: var(--primary-white);
}

#receive-product-modal .btn-submit:hover {
    background: #000000;
}

#receive-product-modal .modal-body .form-group label {
    position: relative;
    padding-left: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

#receive-product-modal .modal-body .form-group label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 4px;
    height: 1em;
    border-radius: 2px;
    background: var(--gray-400);
}

#receive-product-modal .quantity-input {
    width: 48px;
    min-height: 40px;
    padding: 8px 12px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    background: var(--primary-white);
    transition: all var(--transition-fast);
    text-align: center;
}

#receive-product-modal .quantity-input::-webkit-outer-spin-button,
#receive-product-modal .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#receive-product-modal .quantity-input:focus {
    outline: none;
    border-color: var(--gray-700);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

#receive-product-modal .quantity-input:disabled {
    background: var(--gray-100);
    color: var(--gray-600);
    border-color: var(--gray-300);
    cursor: not-allowed;
}

#receive-product-modal .quantity-input.qty-exceeded {
    border-color: var(--warning-orange);
}

#producto-recibir-modal-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background: var(--primary-white);
    color: var(--gray-900);
    transition: all var(--transition-fast);
    resize: vertical;
    min-height: 80px;
}

#producto-recibir-modal-input:focus {
    outline: none;
    border-color: var(--gray-700);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

#producto-envio-costo,
#producto-recibir-costo {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background: var(--primary-white);
    color: var(--gray-900);
    transition: all var(--transition-fast);
    min-height: 40px;
}

#producto-envio-costo::-webkit-outer-spin-button,
#producto-envio-costo::-webkit-inner-spin-button,
#producto-recibir-costo::-webkit-outer-spin-button,
#producto-recibir-costo::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#producto-envio-costo:focus,
#producto-recibir-costo:focus {
    outline: none;
    border-color: var(--gray-700);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

#receive-product-modal .modal-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 16px 0;
}

#receive-product-modal .modal-detail-group {
    margin: 0 16px;
}


#receive-product-modal .checkbox-col,
#change-product-modal .checkbox-col {
    display: table-cell;
}

#producto-recibir[readonly] {
    cursor: pointer;
    background: var(--primary-white);
    color: var(--gray-900);
    border-color: var(--gray-200);
}

#producto-recibir {
    resize: none;
    overflow: hidden;
    min-height: 40px;
}

.input-with-action {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-action .icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.input-with-action .icon-btn:hover {
    color: var(--gray-900);
}

#producto-recibir-group label {
    color: var(--gray-800);
}

#producto-recibir-group label::before {
    background: var(--error-red);
}

#producto-recibir-group:focus-within label::before {
    opacity: 0.8;
}

#producto-recibir-group:has(textarea[required]:valid) label::before {
    background: #00cc00;
}

#producto-recibir-group.has-value label::before {
    background: #00cc00;
}

.receive-search {
    padding: 0 16px;
}

.change-search {
    padding: 0 16px;
}

.receive-search .search-results {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-top: 8px;
}

.change-search .search-results {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-top: 8px;
}

.receive-search .search-results div {
    padding: 6px 8px;
    cursor: pointer;
}

.change-search .search-results div {
    padding: 6px 8px;
    cursor: pointer;
}

.receive-search .search-results div:hover {
    background: var(--gray-100);
}

.change-search .search-results div:hover {
    background: var(--gray-100);
}

#open-receive-search {
    margin: 16px auto;
    display: block;
    background-color: var(--primary-white);
    color: var(--gray-900);
    border: 2px solid var(--gray-300);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

#open-change-search {
    margin: 16px auto;
    display: block;
    background-color: var(--primary-white);
    color: var(--gray-900);
    border: 2px solid var(--gray-300);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

#open-receive-search:hover {
    background-color: var(--gray-900);
    color: var(--primary-white);
    border-color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#open-change-search:hover {
    background-color: var(--gray-900);
    color: var(--primary-white);
    border-color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.color-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.color-input {
    width: 80px;
    flex: 1;
    padding: 6px 8px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    background: var(--primary-white);
    color: var(--gray-900);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.color-input[readonly] {
    border: none;
    background: transparent;
    padding: 0;
    width: auto;
    flex: 1;
    cursor: pointer;
}

.color-input.editing {
    border: 2px solid var(--gray-200);
    padding: 6px 8px;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
}

.color-input:focus {
    outline: none;
    border-color: var(--gray-700);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.remove-product-btn {
    background: none;
    border: none;
    color: var(--error-red-dark);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: transform var(--transition-fast);
}

.remove-product-btn:hover {
    transform: translateY(-2px);
    color: var(--error-red);
}

#producto-envio[readonly] {
    cursor: pointer;
    background: var(--primary-white);
    color: var(--gray-900);
    border-color: var(--gray-200);
}

#producto-envio {
    resize: none;
    overflow: hidden;
    min-height: 40px;
}

#producto-envio-group label {
    color: var(--gray-800);
}

#producto-envio-group label::before {
    background: var(--error-red);
}

#producto-envio-group:focus-within label::before {
    opacity: 0.8;
}

#producto-envio-group:has(textarea[required]:valid) label::before {
    background: #00cc00;
}

#producto-envio-group.has-value label::before {
    background: #00cc00;
}

#id-select-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

#associated-errors-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

#associated-errors-modal.show {
    display: flex;
}

#associated-errors-modal .modal-content {
    background: var(--primary-white);
    border-radius: 12px;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#associated-errors-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    font-weight: 600;
    background: var(--gray-900);
    color: var(--primary-white);
}

#associated-errors-modal #associated-errors-title {
    flex: 1;
    text-align: center;
    text-transform: uppercase;
}

#associated-errors-modal .modal-body {
    padding: 16px;
    background: var(--primary-white);
    overflow-y: auto;
}

#associated-errors-modal .modal-info {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray-700);
}

#associated-errors-modal .close-btn {
    cursor: pointer;
    font-size: 20px;
}

#associated-errors-modal .modal-actions {
    padding: 16px;
    border-top: 1px solid var(--gray-100);
}

#id-select-modal.show {
    display: flex;
}

#id-select-modal .modal-content {
    background: var(--primary-white);
    border-radius: 12px;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#id-select-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    font-weight: 600;
    background: var(--gray-900);
    color: var(--primary-white);
}

#id-select-modal #id-select-title {
    flex: 1;
    text-align: center;
    text-transform: uppercase;
}

#id-select-modal .modal-body {
    padding: 16px;
    background: var(--primary-white);
    overflow-y: auto;
}

#id-select-modal .modal-info {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray-700);
}

#id-select-modal .close-btn {
    cursor: pointer;
    font-size: 20px;
}

#id-select-modal .modal-actions {
    padding: 16px;
    border-top: 1px solid var(--gray-100);
}

.id-select-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.id-select-card {
    position: relative;
    background: var(--primary-white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.id-select-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.id-select-card .card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 20px;
    color: var(--error-red-dark);
    display: none;
    pointer-events: none;
}

.id-select-card.selected .card-check {
    display: block;
}

#associated-errors-modal .error-id {
    font-weight: 700;
    font-size: 16px;
    color: var(--error-red-dark);
    margin-bottom: 4px;
}

#id-select-modal .error-id {
    font-weight: 700;
    font-size: 16px;
    color: var(--error-red-dark);
    margin-bottom: 4px;
}

#associated-errors-modal .id-select-card.selected {
    border-color: var(--error-red-light);
    background-color: #fff5f5;
    box-shadow: 0 0 0 1px var(--error-red-light), 0 0 8px 2px var(--error-red-dark);
}

#id-select-modal .id-select-card.selected {
    border-color: var(--error-red-light);
    background-color: #fff5f5;
    box-shadow: 0 0 0 1px var(--error-red-light), 0 0 8px 2px var(--error-red-dark);
}

.id-select-card.selected {
    border-color: var(--primary-black);
    box-shadow: var(--shadow-md);
}

.copy-zpl-btn,
.view-url-btn {
    padding: 12px 16px;
    font-size: 11px;
}

.copy-zpl-btn {
    gap: 6px;
}

.view-url-btn {
    flex-direction: column;
    line-height: 1;
    width: 90px;
    text-align: center;
}

.view-url-btn i {
    margin-right: 0;
    margin-bottom: 2px;
}

.btn-subtitle {
    display: block;
    font-size: 10px;
    color: var(--gray-500);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn-hint {
    color: var(--gray-500);
    font-style: italic;
    margin-left: 4px;
}

.orig-id {
    color: var(--error-red-dark);
    font-weight: 700;
}

.other-ids {
    color: var(--primary-black);
}

.color-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid var(--gray-300);
    animation: subtlePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.product-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.product-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
}

.table-row-animate {
    animation: slideUp 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

.zpl-text {
    font-family: "Courier New", monospace;
    background: var(--gray-100);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.no-details {
    text-align: center;
    padding: 16px;
}

.table-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 160px;
    padding: 24px;
    gap: 4px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.table-message i {
    font-size: 20px;
}

.placeholder-container {
    display: flex;
    align-items: center;
    justify-content: center;
}


.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-300);
    border-top: 2px solid var(--primary-black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#search-btn {
    padding: 12px 16px;
    min-height: auto;
    border-radius: 8px;
}

button:focus,
.btn:focus {
    outline: none;
    box-shadow: none;
}

input[type="checkbox"]:focus,
.error-form .checkbox-group input[type="checkbox"]:focus,
.product-select-checkbox:focus {
    outline: none;
    box-shadow: none;
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1055;
    display: none;
}

.login-overlay.active {
    display: block;
}

.main-content.blur {
    filter: blur(5px);
    pointer-events: none;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.header.blur,
.sidebar.blur {
    filter: blur(5px);
    pointer-events: none;
}

.editable-field .edit-field-btn {
    position: absolute;
    top: 0;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.editable-field.disabled .edit-field-btn {
    transition: none;
}

.editable-field:hover .edit-field-btn {
    opacity: 1;
    pointer-events: auto;
}

.editable-field.disabled:hover .edit-field-btn {
    opacity: 0;
    pointer-events: none;
}

.editable-input[readonly] {
    padding-right: 32px;
}

#zpl-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

#zpl-modal.show {
    display: flex;
}

#zpl-modal .modal-content {
    background: var(--primary-white);
    border-radius: 12px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#zpl-modal .modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 16px;
    font-weight: 600;
    background: var(--gray-900);
    color: var(--primary-white);
}

#zpl-modal #zpl-modal-title {
    flex: 1;
    text-align: center;
    text-transform: uppercase;
}

#zpl-modal .modal-body {
    padding: 16px;
    background: var(--primary-white);
    overflow-y: auto;
}

#zpl-modal .modal-info {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray-700);
}

#zpl-modal .modal-actions {
    padding: 16px;
    border-top: 1px solid var(--gray-100);
}

#zpl-modal .close-btn {
    position: absolute;
    right: 16px;
    cursor: pointer;
    font-size: 20px;
}

#zpl-modal #zpl-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

#zpl-modal .zpl-card {
    flex: 1 1 calc(50% - 12px);
    min-width: 220px;
}

#zpl-modal .id-select-card {
    cursor: pointer;
}

#zpl-modal .zpl-preview {
    margin-top: 8px;
    font-family: monospace;
    font-size: 11px;
    background: var(--gray-100);
    padding: 8px;
    border-radius: 8px;
    line-height: 1.2;
    max-height: 72px;
    overflow: hidden;
    color: var(--gray-700);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent);
    mask-image: linear-gradient(to bottom, black 60%, transparent);
}

#zpl-modal .zpl-card.bounce {
    animation: zplBounce 0.3s ease;
}

@keyframes zplBounce {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(0.96);
    }

    100% {
        transform: scale(1);
    }
}

#image-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
}

#image-modal.show {
    display: flex;
}

#image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.rma-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 24px;
    margin-bottom: 24px;
}

.rma-pending-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.rma-pending-toolbar p {
    margin: 0;
    color: #525252;
    font-size: 13px;
    line-height: 1.6;
}

.rma-pending-panel {
    border: 1px solid rgba(212, 212, 212, 0.9);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 245, 0.92));
    overflow: hidden;
}

.rma-pending-empty {
    min-height: 130px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #525252;
    padding: 20px;
}

.rma-pending-empty i {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    color: #171717;
}

.rma-pending-list {
    max-height: 320px;
    overflow: auto;
}

.rma-pending-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(229, 229, 229, 0.9);
    background: transparent;
    text-align: left;
    padding: 14px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.rma-pending-item:hover {
    background: rgba(245, 245, 245, 0.8);
}

.rma-pending-item:last-child {
    border-bottom: 0;
}

.rma-pending-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rma-pending-code {
    color: #171717;
    font-size: 14px;
    font-weight: 700;
}

.rma-pending-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rma-pending-meta {
    margin-top: 6px;
    color: #525252;
    font-size: 12px;
    line-height: 1.45;
}

.rma-card {
    overflow: hidden;
}

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

.rma-form-grid--stacked {
    grid-template-columns: 1fr;
    margin-top: 20px;
}

.rma-inline-search {
    gap: 12px;
    align-items: stretch;
}

.rma-inline-search .search-input-wrapper {
    flex: 1;
}

.form-help-text {
    display: block;
    margin-top: 8px;
    color: #737373;
    font-size: 12px;
    line-height: 1.5;
}

.rma-status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.rma-status-pill {
    position: relative;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.95));
    border: 1px solid rgba(212, 212, 212, 0.9);
    box-shadow: 0 16px 32px -28px rgba(0, 0, 0, 0.5);
}

.rma-status-pill.is-valid {
    border-color: rgba(34, 197, 94, 0.35);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(220, 252, 231, 0.82));
}

.rma-status-pill.is-warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.84));
}

.rma-status-label {
    display: block;
    margin-bottom: 6px;
    color: #737373;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rma-status-pill strong {
    display: block;
    color: #171717;
    font-size: 15px;
    line-height: 1.4;
}

.rma-decision-grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.rma-choice-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon title"
        "icon text";
    gap: 4px 14px;
    align-items: start;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(212, 212, 212, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.94));
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rma-choice-card:hover {
    transform: translateY(-2px);
    border-color: rgba(23, 23, 23, 0.24);
    box-shadow: 0 18px 32px -28px rgba(0, 0, 0, 0.55);
}

.rma-choice-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.rma-choice-icon {
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #171717;
    color: #ffffff;
    font-size: 18px;
}

.rma-choice-title {
    grid-area: title;
    color: #171717;
    font-size: 15px;
    font-weight: 700;
}

.rma-choice-text {
    grid-area: text;
    color: #525252;
    font-size: 13px;
    line-height: 1.6;
}

.rma-choice-card:has(input:checked) {
    border-color: rgba(37, 99, 235, 0.28);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.9));
    box-shadow: 0 18px 40px -30px rgba(37, 99, 235, 0.6);
}

.rma-choice-card:has(input:checked) .rma-choice-icon {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.rma-preview-panel {
    min-height: 260px;
    padding-top: 8px;
}

.rma-preview-empty,
.rma-preview-summary {
    border-radius: 20px;
    border: 1px dashed rgba(163, 163, 163, 0.65);
    background:
        radial-gradient(circle at top left, rgba(229, 231, 235, 0.45), transparent 42%),
        linear-gradient(180deg, rgba(250, 250, 250, 0.98), rgba(245, 245, 245, 0.9));
    padding: 34px 28px;
}

.rma-preview-empty {
    display: grid;
    place-items: center;
    min-height: 240px;
    text-align: center;
}

.rma-preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 14px;
    border-radius: 22px;
    background: #171717;
    color: #ffffff;
    font-size: 28px;
}

.rma-preview-empty h4,
.rma-preview-summary h4 {
    margin: 0 0 10px;
    color: #171717;
    font-size: 20px;
}

.rma-preview-empty p,
.rma-preview-summary p {
    margin: 0;
    color: #525252;
    line-height: 1.7;
}

.rma-preview-summary {
    display: grid;
    gap: 20px;
}

.rma-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rma-preview-item {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(212, 212, 212, 0.88);
}

.rma-preview-item span {
    display: block;
    margin-bottom: 8px;
    color: #737373;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rma-preview-item strong {
    color: #171717;
    font-size: 15px;
    line-height: 1.45;
}

.rma-preview-note {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(212, 212, 212, 0.88);
}

.rma-preview-note h5 {
    margin: 0 0 10px;
    color: #171717;
    font-size: 14px;
}

.rma-preview-note p {
    margin: 0;
}

.rma-items-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    margin-bottom: 18px;
}

.rma-items-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rma-items-meta-label {
    color: #737373;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rma-items-meta strong {
    color: #171717;
    font-size: 16px;
}

.rma-items-selection {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: #404040;
    font-size: 13px;
}

.rma-items-selection strong {
    color: #171717;
}

.rma-items-panel {
    border: 1px solid rgba(212, 212, 212, 0.9);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 245, 0.9));
    overflow: hidden;
}

.rma-items-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 32px 24px;
    color: #525252;
}

.rma-items-empty i {
    display: block;
    margin-bottom: 10px;
    color: #171717;
    font-size: 28px;
}

.rma-items-scroll {
    max-height: 420px;
    overflow: auto;
}

.rma-items-scroll table {
    width: 100%;
    border-collapse: collapse;
}

.rma-items-scroll th,
.rma-items-scroll td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(229, 229, 229, 0.9);
    text-align: left;
    vertical-align: middle;
}

.rma-items-scroll th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(250, 250, 250, 0.98);
    color: #404040;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rma-items-scroll tbody tr:hover {
    background: rgba(245, 245, 245, 0.75);
}

.rma-item-check {
    width: 18px;
    height: 18px;
    accent-color: #171717;
    cursor: pointer;
}

.rma-item-qty {
    width: 88px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(212, 212, 212, 0.9);
    background: #ffffff;
    color: #171717;
    font-size: 14px;
    font-weight: 600;
}

.rma-item-qty:disabled {
    background: #f5f5f5;
    color: #a3a3a3;
    cursor: not-allowed;
}

.rma-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rma-item-main strong {
    display: block;
    color: #171717;
    font-size: 14px;
}

.rma-item-main span {
    display: block;
    margin-top: 4px;
    color: #737373;
    font-size: 12px;
    line-height: 1.5;
}

.rma-item-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(23, 23, 23, 0.08);
    color: #171717;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
    }

    .header.sidebar-open {
        left: 0;
        width: 100%;
    }

    .header-actions {
        gap: 8px;
    }

    .session-branch-indicator {
        max-width: 180px;
        padding: 6px 10px;
    }

    .session-branch-indicator strong {
        max-width: 110px;
    }

    .main-content.sidebar-open {
        margin-left: 0;
        width: 100%;
    }

    .main-content {
        padding: 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rma-layout,
    .rma-form-grid,
    .rma-status-strip,
    .rma-preview-grid {
        grid-template-columns: 1fr;
    }

    .rma-pending-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .rma-inline-search {
        flex-direction: column;
    }

    .rma-items-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-date-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-card,
    .content-card,
    .action-panel {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
    }

    .search-btn-container {
        width: 100%;
        justify-content: center;
    }

    .order-details-grid {
        grid-template-columns: 1fr;
    }

    .results-wrapper {
        grid-template-columns: 1fr;
    }

    .products-table th,
    .products-table td {
        padding: 10px;
        font-size: 13px;
    }

    .changes-table th,
    .changes-table td {
        padding: 10px 6px;
        font-size: 12px;
    }

    #review-table th,
    #review-table td {
        padding: 10px 6px;
        font-size: 12px;
    }

    .existing-errors-container {
        grid-template-columns: 1fr;
    }

    .solutions-cards-container {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .solution-card-content {
        grid-template-columns: 1fr;
    }

    .error-card-content {
        grid-template-columns: 1fr;
    }

    .error-form .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #error-form-card .card-title-section,
    #change-form-card .card-title-section {
        margin: -20px -20px 20px -20px;
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-submit,
    .btn-cancel {
        width: 100%;
    }

    .error-btn,
    .change-btn {
        margin-left: 0;
        width: 100%;
        align-self: stretch;
    }

    .changes-actions {
        justify-content: center;
    }

    .view-toggle-buttons {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 12px;
    }

    .dashboard-card,
    .content-card,
    .action-panel {
        padding: 16px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .error-form input,
    .error-form select,
    .error-form textarea {
        padding: 12px;
    }

    .changes-table {
        height: 280px;
    }

    .changes-table th,
    .changes-table td {
        padding: 10px 6px;
        font-size: 11px;
        max-width: 180px;
    }

    #review-table {
        height: 280px;
    }

    #review-table th,
    #review-table td {
        padding: 10px 6px;
        font-size: 11px;
        max-width: 180px;
    }

    .solutions-cards-container {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .solution-card-content {
        grid-template-columns: 1fr;
    }

    .solution-card {
        min-height: 360px;
    }
}

.update-notice {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--primary-white);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(4px);
    animation: slideInUp 0.3s ease forwards;
    z-index: 1100;
}

.update-notice .update-link {
    color: var(--info-blue-light);
    text-decoration: underline;
    margin-left: 4px;
}

.editable-prod-envio,
.editable-prod-recibir,
.editable-text-field {
    cursor: pointer;
    display: inline-block;
    min-width: 24px;
    min-height: 1em;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.empty-placeholder {
    color: var(--gray-500);
    font-style: italic;
}

.disabled-field {
    color: var(--gray-500);
    pointer-events: none;
    cursor: default;
}

.editable-prod-envio:hover,
.editable-prod-recibir:hover,
.editable-text-field:hover {
    background-color: var(--gray-100);
}

.inline-edit-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.inline-edit-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 4px 6px;
    height: 32px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 14px;
}

.inline-edit-actions .inline-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--info-blue-light);
    font-size: 18px;
    padding: 4px;
    border-radius: 4px;
}

.inline-edit-actions .inline-edit-btn:disabled {
    color: var(--gray-500);
    cursor: default;
    pointer-events: none;
}

.address-edit .address-street {
    flex: 0 1 75%;
}

.address-edit .address-number {
    flex: 0 1 25%;
}

.review-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.review-controls .view-toggle-buttons {
    width: auto;
    margin-bottom: 4px;
}

.review-date-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    position: relative;
}

.review-date-filter label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-date-filter .date-input {
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background-color: var(--primary-white);
    transition: all var(--transition-fast);
    color: var(--gray-900);
    min-height: 40px;
}

.review-date-filter .date-input:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.review-filter-card {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    padding: 16px;
    width: 320px;
    background: var(--primary-white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 1022;
}

.review-filter-card.active {
    display: block;
}

.review-filter-card::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--primary-white);
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.05));
}

.review-filter-card .filter-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
}

.review-filter-card label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-filter-card select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background-color: var(--primary-white);
    transition: all var(--transition-fast);
    color: var(--gray-900);
    min-height: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.review-filter-card select:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.review-filter-card .filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ===== Filter button hint ===== */
.filter-btn {
    position: relative;
}

.filter-btn-wrapper {
    position: relative;
    display: inline-block;
}

.filter-btn-wrapper .filter-label {
    position: absolute;
    left: 108%;
    top: 45%;
    transform: translate(-6px, -50%);
    color: var(--gray-700);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    transition-delay: 0s;
}


.filter-btn-wrapper:hover .filter-label {
    opacity: 1;
    transform: translate(2px, -50%);
    transition-delay: var(--transition-fast);
}

.filter-btn.active,
.filter-btn.active:hover {
    background-color: var(--gray-900);
    color: var(--primary-white);
    border-color: var(--gray-900);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.filter-btn.active+.filter-label {
    display: none;
}

.view-solution-btn {
    margin-left: 4px;
    background: none;
    border: none;
    color: var(--info-blue-light);
    cursor: pointer;
    font-size: 16px;
    vertical-align: middle;
    padding: 0;
}

.view-solution-btn:hover {
    color: var(--info-blue);
}
