:root {
    /* Pure Apple/iOS Palette */
    --primary: #ffffff;
    --primary-hover: #f5f5f7;
    --accent: #007aff;
    /* iOS Blue */
    --bg-black: #08080a;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-blur: blur(60px) saturate(200%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 12px 30px 0 rgba(0, 0, 0, 0.15);

    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-subtle: rgba(255, 255, 255, 0.05);

    --success: #34c759;
    /* iOS Green */
    --warning: #ff9500;
    /* iOS Orange */
    --danger: #ff3b30;
    /* iOS Red */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

body {
    background-color: var(--bg-black);
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 122, 255, 0.02) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Base Layout */
.app-container {
    display: flex;
    width: 100%;
    height: 100vh;
    padding: 20px;
    gap: 24px;
}

/* Sidebar: Floating Glass */
.sidebar {
    width: 260px;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 36px;
    padding: 2.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.logo-container {
    padding: 0 1rem 3rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-circle {
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #fff;
}

.nav-links {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 14px;
    margin-bottom: 6px;
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-item i {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.nav-item.active i {
    opacity: 1;
}

.sub-nav {
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sub-item {
    transition: all 0.3s ease;
    border-radius: 12px !important;
}

.sub-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

#nav-upload-menu {
    position: relative;
    cursor: pointer;
}

#nav-upload-menu i.lucide-chevron-down {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Main Content Area */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 12px;
}

.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
}

.welcome-text h1 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.welcome-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FIX SAFARI iOS - Botones táctiles */
button,
.icon-btn,
.action-btn {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    cursor: pointer;
}

#mobile-menu-btn {
    /* Asegurar que el botón sea clickeable */
    pointer-events: auto !important;
    z-index: 9999 !important;
}

#mobile-menu-btn i {
    /* El ícono NO debe interceptar clicks */
    pointer-events: none !important;
}

/* BOTÓN HAMBURGUESA - Safari iOS Fix Total */
.mobile-menu-button {
    display: none !important;
    /* Hidden by default on desktop */
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 99999;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;

    /* Safari iOS específico */
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;

    /* Asegurar que SIEMPRE esté clickeable */
    pointer-events: auto !important;

    /* Prevenir problemas de stacking context */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.mobile-menu-button svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.mobile-menu-button:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95) translateZ(0);
}

/* Global Card Component */
.card,
.data-table-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 32px;
    padding: 1.75rem;
    box-shadow: var(--glass-shadow);
    margin-bottom: 20px;
}

/* Stats Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 500;
    letter-spacing: -0.5px;
}

/* Charts & Lists */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}

th {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0 1rem 1rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-subtle);
}

tr:last-child td {
    border-bottom: none;
}

code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    color: #fff;
}

/* Vision Loader (iOS Style) */
.vision-loader-container {
    text-align: center;
    padding: 2rem;
    display: none;
    /* Handled by JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vision-spinner {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0;
}

.vision-spinner .dot {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: ios-spin 1s linear infinite;
    left: 0;
    top: 0;
}

.vision-spinner .dot::after {
    content: "";
    display: block;
    position: absolute;
    width: 2.5px;
    height: 8px;
    border-radius: 1.5px;
    background: #fff;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.vision-spinner .dot:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}

.vision-spinner .dot:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}

.vision-spinner .dot:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}

.vision-spinner .dot:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}

.vision-spinner .dot:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}

.vision-spinner .dot:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}

.vision-spinner .dot:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}

.vision-spinner .dot:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}

.vision-spinner .dot:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}

.vision-spinner .dot:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}

.vision-spinner .dot:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}

.vision-spinner .dot:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}

@keyframes ios-spin {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.1;
    }
}

.vision-text-main {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.vision-text-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Floating Agent Component (iOS Style) */
.agent-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(52, 199, 89, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    /* Higher than modal to toggle it */
    transition: all 0.3s ease;
}

.agent-fab:active {
    transform: scale(0.9);
}

.agent-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.agent-modal.open {
    display: flex !important;
    animation: ios-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .agent-modal {
        width: calc(100% - 30px);
        right: 15px;
        left: 15px;
        bottom: 100px;
        height: 75vh;
    }
}


.agent-modal.open {
    display: flex;
    animation: ios-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ios-slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.agent-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-avatar {
    width: 36px;
    height: 36px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.chat-messages {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot {
    background: rgba(255, 255, 255, 0.08);
    align-self: flex-start;
}

.message.user {
    background: var(--accent);
    color: #fff;
    align-self: flex-end;
}

.chat-input-area {
    padding: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.input-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px;
    outline: none;
}

.chat-send-btn {
    background: #fff;
    color: #000;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
}

.chat-send-btn:active {
    transform: scale(0.9);
}

/* Buttons & UI Elements */
.google-sheets-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.1, 0, 0, 1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
}

.google-sheets-btn:hover {
    transform: translateY(-2px);
    background: #f5f5f7;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-danger {
    background: rgba(255, 59, 48, 0.15);
    color: var(--danger);
}

.badge-warning {
    background: rgba(255, 149, 0, 0.15);
    color: var(--warning);
}

.badge-success {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

/* Progress Bar (Subtle) */
.progress-bar-container {
    background: rgba(255, 255, 255, 0.05);
    height: 2px;
    border-radius: 1px;
}

#progress-bar {
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px #fff;
}

/* Upload Vision Layout tweaks */
.upload-zone-vision {
    background: var(--glass-bg);
    border-radius: 48px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    /* Force solid border */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    padding: 2.5rem;
    text-align: center;
    width: 100%;
}

.vision-icon-outer {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50% / 24px;
    /* Squircle style */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.error-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.upload-zone-vision:hover {

    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}


/* Glass Select Components */
.glass-select {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 14px;
    outline: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.glass-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-select option {
    background-color: #1c1c1e;
    /* iOS Dark Mode Grey */
    color: #fff;
    padding: 10px;
}

/* --- TOUCH DEVICE SUPPORT (Primary Mobile Query) --- */
@media (max-width: 768px) {

    /* Mostrar botón en mobile */
    .mobile-menu-button {
        display: flex !important;
    }

    #mobile-menu-btn {
        display: flex !important;
    }

    .app-container {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100dvh;
        z-index: 2001;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        height: 100dvh;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        display: none;
        /* CLAVE: usar display en vez de opacity/visibility */
        transition: opacity 0.3s;
    }

    .sidebar-overlay.open {
        display: block;
        /* CLAVE: mostrar con display */
        opacity: 1;
    }

    .main-content {
        padding: 80px 1rem 4rem 1rem !important;
        width: 100%;
    }

    .stats-grid,
    .charts-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .card,
    .data-table-container {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .upload-zone-vision {
        min-height: 400px;
        padding: 1.5rem;
    }

    .success-container,
    .error-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}


@media (max-width: 1024px) {

    /* Mostrar botón en mobile */
    .mobile-menu-button {
        display: flex !important;
    }

    #mobile-menu-btn {
        display: flex !important;
    }

    html,
    body {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        position: relative;
    }

    .app-container {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 0;
        flex-direction: column;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        /* Safari full height */
        /* iOS Safe Area */
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    #mobile-menu-btn {
        display: flex !important;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        height: -webkit-fill-available;
        z-index: 2001;
        /* Higher than button */
        border-radius: 0 32px 32px 0;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: -webkit-fill-available;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        display: none;
        /* CLAVE */
        transition: opacity 0.3s;
    }

    .sidebar-overlay.open {
        display: block;
        /* CLAVE */
        opacity: 1;
    }

    .main-content {
        padding: 80px 1rem 4rem 1rem !important;
        width: 100%;
        overflow-x: hidden;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Stack Grids */
    .stats-grid,
    .charts-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .card,
    .data-table-container {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        /* Allow tables to scroll */
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
    }

    table {
        min-width: 600px;
        /* Force scroll on small screens if content is wide */
        table-layout: fixed;
        /* Respect column widths */
    }

    /* Prevent long text from breaking layout */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}


/* --- SAFARI FORCE LAYOUT (Overrides media queries) --- */
body.force-mobile .app-container {
    flex-direction: column !important;
    padding: 0 !important;
    min-height: 100dvh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

body.force-mobile #mobile-menu-btn,
body.force-mobile .mobile-menu-button {
    display: flex !important;
}

body.force-mobile .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100dvh;
    z-index: 2001;
    transition: left 0.3s ease;
}

body.force-mobile .sidebar.open {
    left: 0;
}

body.force-mobile .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    /* CLAVE */
}

body.force-mobile .sidebar-overlay.open {
    display: block;
    /* CLAVE */
    opacity: 1;
}

body.force-mobile .main-content {
    width: 100%;
    padding: 80px 1rem 4rem 1rem !important;
    overflow-x: hidden;
}

body.force-mobile .stats-grid,
body.force-mobile .charts-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Glass Input Components */
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Items Table Specialized Styles */
.items-table input.glass-input {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.items-table td {
    padding: 0.5rem;
}

.items-table th {
    padding: 0.5rem 0.5rem 1rem 0.5rem;
}

.remove-row-btn {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-row-btn:hover {
    background: var(--danger);
    color: #fff;
}

/* Chrome, Safari, Edge, Opera - Remove arrows from number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
    appearance: none;
}