/* ======================================
   ENHANCED STYLES - Dex Card Maker
   ======================================
   Layout adjustments, layer manager UI,
   card rendering fixes, effects, scrollbars,
   and responsive improvements.
   ====================================== */

/* ---- 1. ENHANCED LAYOUT & STRUCTURE ---- */

/* Fix body scrolling behavior for enhanced layout */
html, body:not(.mobile-layout) { /* Apply only if not mobile */
    height: 100%;
    overflow: hidden;
}

/* Sticky Tab Container */
.tab-container {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: rgba(13, 13, 43, 0.95); /* Slightly less transparent */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Main container adjustments */
.container {
    /* Adjusted grid for enhanced layout (wider left, narrower right) */
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr) !important;
    height: calc(100vh - 55px); /* Ensure it fills viewport below tabs */
    overflow: hidden; /* Prevent container scroll */
    padding: 15px;
}

/* Make columns scrollable independently */
.left-column-area {
    height: 100%;
    overflow: hidden; /* Prevent this area scroll */
    display: flex; /* Use flex for internal layout */
    gap: 15px;
}

.input-container {
    height: 100%;
    overflow-y: auto; /* Allow right column scroll */
    max-width: 100% !important; /* Override any previous max-width */
    padding: 20px !important;
}

/* Layer Manager Width */
.layer-manager {
    flex: 0 0 280px !important; /* Fixed width for layer manager */
    height: 100%;
    overflow-y: auto; /* Allow layer manager scroll */
    padding: 15px;
    background-color: rgba(13, 13, 43, 0.5);
    border-radius: var(--radius-large);
    border: 1px solid var(--color-border-light);
}

/* Card Preview Area takes remaining space */
.card-preview-upload-area {
    flex-grow: 1 !important;
    min-width: 0; /* Allow shrinking */
    height: 100%;
    display: flex;
    flex-direction: column; /* Stack preview and uploads */
    overflow-y: auto; /* Allow this area to scroll if content overflows */
    padding: 5px; /* Add some padding */
}

/* Enhanced Card Preview Styling */
.card-preview-container {
    display: flex;
    flex-direction: column; /* Stack title and card wrapper */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically within its allocated space */
    width: 100%;
    flex-grow: 1; /* Allow it to take available vertical space */
    flex-shrink: 1; /* Allow shrinking if needed */
    min-height: 200px; /* Minimum height to prevent collapse */
    padding: 10px 0; /* Vertical padding */
    overflow: hidden; /* Prevent content spillover */
}

/* Card Wrapper Sizing and Styling */
.card-wrapper {
    width: auto; /* Let aspect ratio determine width based on height */
    height: 90%; /* Percentage of the container's height */
    max-height: 95%; /* Absolute max height */
    max-width: 550px !important; /* Max width constraint */
    aspect-ratio: 5 / 7; /* Maintain aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Center horizontally */
    position: relative;
    padding: 5px; /* Reduced padding */
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    /* Neon pulse added below */
}

/* Ensure card scales within wrapper */
#card {
    height: 100%;
    width: 100%; /* Fill the wrapper */
    padding-bottom: 0; /* Override aspect ratio padding */
    aspect-ratio: 5 / 7; /* Maintain aspect ratio directly */
    position: relative;
    border-radius: var(--radius-card);
    overflow: visible; /* Allow effects/transforms */
}

/* ---- 2. CRITICAL CARD LAYER FIXES ---- */

/* Ensure layers have correct absolute positioning and size */
#card > div {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: inherit !important; /* Inherit card radius */
    backface-visibility: hidden !important; /* Prevent flickering */
    will-change: transform, opacity !important; /* Performance hint */
}

/* Z-index and specific layer fixes */
#card-background-layer { z-index: 0 !important; }
.main-image-container {
    z-index: 1 !important;
    background-position: 50% 50% !important; /* Default position */
    background-size: 100% auto !important; /* Default size */
    cursor: default !important; /* Default cursor */
}
.main-image-container.has-image { cursor: grab !important; }
.main-image-container.dragging { cursor: grabbing !important; }
#card-template-overlay {
    z-index: 0 !important;
    background-size: 100% 100% !important; /* Ensure template covers card */
    pointer-events: none !important;
}
.ballsdex-card { z-index: 3 !important; pointer-events: none !important; }
#second-card-layer {
    z-index: 4 !important;
    mix-blend-mode: overlay !important; /* Holo effect blend mode */
    pointer-events: none !important;
}

/* Ensure text elements remain visible */
/* display: block !important removed as absolute positioning handles it */
.country-name, .ability-name, .ability-description,
.health-value, .attack-value, .credits div {
    /* Ensure default display is not interfering */
  text-align: left;
}

/* ---- 3. ENHANCED LAYER MANAGER UI ---- */

.layer-list-display {
    min-height: 180px !important; /* Taller list */
    max-height: 300px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important; /* Prevent scroll chaining */
    border: 1px solid var(--color-border-light) !important;
    border-radius: var(--radius-small) !important;
    padding: 8px !important;
    background-color: rgba(10, 10, 30, 0.6) !important;
    scrollbar-width: thin !important; /* Firefox */
    /* Scrollbar color set below */
}

/* Layer items */
.layer-item {
    display: flex !important;
    align-items: center !important;
    padding: 8px 10px !important;
    border-radius: var(--radius-small) !important;
    margin-bottom: 6px !important; /* Slightly reduced gap */
    background-color: rgba(30, 41, 59, 0.7) !important;
    border-left: 3px solid transparent !important;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
    user-select: none !important;
    position: relative !important;
}
.layer-item:last-child { margin-bottom: 0 !important; }
.layer-item:hover {
    background-color: rgba(30, 41, 59, 0.9) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}
.layer-item.active-layer {
    background-color: rgba(59, 130, 246, 0.3) !important; /* Default blue active */
    border-left-color: var(--color-primary) !important;
}

/* Layer item parts */
.layer-drag-handle {
    margin-right: 8px !important; color: #aaa !important; font-size: 12px !important;
    cursor: grab !important; opacity: 0.7 !important; transition: opacity 0.2s ease !important;
    -webkit-font-smoothing: antialiased !important;
}
.layer-drag-handle:hover { opacity: 1 !important; }
.layer-preview {
    width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 22px !important;
    background-color: rgba(0, 0, 0, 0.3) !important; border-radius: 4px !important;
    overflow: hidden !important; display: flex !important; align-items: center !important;
    justify-content: center !important; margin-right: 8px !important; flex-shrink: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Add subtle border */
}
.layer-icon {
    font-size: 14px !important; color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 100% !important; height: 100% !important;
}
.layer-name {
    flex: 1 !important; white-space: nowrap !important; overflow: hidden !important;
    text-overflow: ellipsis !important; margin: 0 8px !important; font-size: 0.9em !important;
}
.layer-visibility-toggle {
    background: none !important; border: none !important; font-size: 16px !important;
    padding: 2px 4px !important; cursor: pointer !important; opacity: 0.7 !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    margin-left: auto !important; flex-shrink: 0 !important;
}
.layer-visibility-toggle:hover { opacity: 1 !important; transform: scale(1.1) !important; }
.layer-delete-btn {
    background: none !important; border: none !important; font-size: 14px !important;
    padding: 2px 4px !important; cursor: pointer !important; opacity: 0.5 !important;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease !important;
    margin-left: 4px !important; color: var(--color-danger) !important; flex-shrink: 0 !important;
}
.layer-delete-btn:hover { opacity: 1 !important; transform: scale(1.1) !important; color: #dc2626 !important; }

/* Dragging state */
.layer-item.dragging {
    opacity: 0.8 !important;
    background-color: rgba(59, 130, 246, 0.2) !important; /* Default blue dragging */
    border-left-color: var(--color-primary) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    position: relative !important; z-index: 10 !important;
    cursor: grabbing !important;
}

/* Layer type specific styling */
.layer-type-background .layer-preview { background-color: rgba(249, 115, 22, 0.3) !important; border-color: rgba(249, 115, 22, 0.5) !important; }
.layer-type-template .layer-preview { background-color: rgba(59, 130, 246, 0.3) !important; border-color: rgba(59, 130, 246, 0.5) !important; }
.layer-type-text .layer-preview { background-color: rgba(16, 185, 129, 0.3) !important; border-color: rgba(16, 185, 129, 0.5) !important; }
.layer-type-effect .layer-preview { background-color: rgba(139, 92, 246, 0.3) !important; border-color: rgba(139, 92, 246, 0.5) !important; }
.layer-type-custom .layer-preview { background-color: rgba(51, 131, 235, 0.3) !important; border-color: rgba(51, 131, 235, 0.5) !important; }

/* Layer type item background tints (Subtle) */
.layer-type-background { background-color: rgba(249, 115, 22, 0.1) !important; }
.layer-type-template { background-color: rgba(59, 130, 246, 0.1) !important; border: 1px dashed rgba(59, 130, 246, 0.2) !important; }
.layer-type-text { background-color: rgba(16, 185, 129, 0.1) !important; }
.layer-type-effect { background-color: rgba(139, 92, 246, 0.1) !important; }
.layer-type-custom { background-color: rgba(51, 131, 235, 0.1) !important; }

/* ---- 4. ENHANCED LAYER CONTROLS ---- */

.active-layer-controls-container {
    background-color: rgba(0, 0, 0, 0.2) !important; /* Darker background */
    border-radius: var(--radius-medium) !important;
    padding: 12px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}
.layer-control-header {
    margin-bottom: 15px !important; text-align: center !important;
    border-bottom: 1px solid var(--color-border-light) !important; padding-bottom: 8px !important;
}
.layer-control-header h4 { margin: 0 !important; font-size: 1.1em !important; font-weight: 600 !important; color: var(--color-text-light) !important; }

/* Opacity control */
.opacity-control { display: flex !important; align-items: center !important; gap: 10px !important; margin-bottom: 12px !important; }
.opacity-control label { min-width: 70px !important; margin-bottom: 0 !important; font-size: 0.9em !important; color: var(--color-text-subtle) !important; }
.opacity-control input[type="range"] { flex-grow: 1 !important; padding: 0 !important; cursor: pointer !important; height: 6px !important; -webkit-appearance: none !important; background: rgba(255, 255, 255, 0.15) !important; border-radius: 3px !important; outline: none !important; opacity: 1 !important; }
.opacity-control input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none !important; width: 16px !important; height: 16px !important; border-radius: 50% !important; background: var(--color-primary) !important; cursor: pointer !important; border: none !important; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important; }
.opacity-control input[type="range"]::-moz-range-thumb { width: 16px !important; height: 16px !important; border-radius: 50% !important; background: var(--color-primary) !important; cursor: pointer !important; border: none !important; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important; }
.opacity-control span { min-width: 40px !important; text-align: right !important; font-size: 0.9em !important; color: var(--color-text-subtle) !important; }

/* Position controls */
.position-controls { background-color: rgba(0, 0, 0, 0.25) !important; border-radius: 6px !important; padding: 10px !important; margin: 12px 0 !important; }
.position-control-row { display: flex !important; align-items: center !important; margin-bottom: 10px !important; }
.position-control-row:last-child { margin-bottom: 0 !important; }
.position-control-row label { width: 70px !important; font-size: 0.9em !important; color: var(--color-text-subtle) !important; margin-bottom: 0 !important; }
.numeric-control { display: flex !important; align-items: center !important; margin-right: 15px !important; }
.numeric-control:last-child { margin-right: 0 !important; }
.numeric-control label { width: auto !important; margin-right: 5px !important; font-size: 0.9em !important; }
.numeric-control input[type="number"] { width: 50px !important; padding: 4px 8px !important; text-align: center !important; font-size: 0.9em !important; -moz-appearance: textfield !important; opacity: 1 !important; }
.numeric-control input[type="number"]::-webkit-outer-spin-button,
.numeric-control input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0 !important; }
.control-btn { width: 24px !important; height: 24px !important; padding: 0 !important; margin: 0 4px !important; background-color: rgba(59, 130, 246, 0.25) !important; border: 1px solid rgba(59, 130, 246, 0.5) !important; border-radius: 4px !important; color: var(--color-text-light) !important; font-size: 14px !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; transition: background-color 0.2s ease, transform 0.2s ease !important; }
.control-btn:hover { background-color: rgba(59, 130, 246, 0.5) !important; transform: translateY(-1px) !important; }

/* Layer action buttons */
.layer-upload, .layer-actions { margin-top: 15px !important; display: flex !important; gap: 10px !important; }
.layer-upload .action-button, .layer-actions .action-button { flex: 1 !important; font-size: 0.9em !important; background-color: rgba(59, 130, 246, 0.6) !important; color: white !important; border-radius: 6px !important; padding: 6px 12px !important; border: none !important; cursor: pointer !important; transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important; }
.layer-upload .action-button:hover, .layer-actions .action-button:hover { background-color: rgba(59, 130, 246, 0.8) !important; transform: translateY(-2px) !important; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important; }
.layer-actions .danger-button { background-color: rgba(239, 68, 68, 0.6) !important; }
.layer-actions .danger-button:hover { background-color: rgba(239, 68, 68, 0.8) !important; }

/* Add new layer button */
.add-new-layer-btn { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; padding: 10px !important; margin: 10px 0 !important; background-color: rgba(59, 130, 246, 0.15) !important; color: var(--color-text-light) !important; border: 1px dashed rgba(59, 130, 246, 0.4) !important; border-radius: 6px !important; cursor: pointer !important; transition: background-color 0.2s ease, transform 0.2s ease !important; font-size: 0.9em !important; }
.add-new-layer-btn i { margin-right: 8px !important; font-size: 1.2em !important; font-style: normal !important; }
.add-new-layer-btn:hover { background-color: rgba(59, 130, 246, 0.25) !important; transform: translateY(-2px) !important; }

/* No layer message */
.no-layer-message { text-align: center !important; color: #aaa !important; font-style: italic !important; padding: 15px 0 !important; }

/* Hide redundant sections from Layer Manager */
#layer-manager-container .layer-control-section:has(#dual-type-toggle), /* Hide Holo section */
#layer-manager-container .layer-control-section:has(#export-minimal-toggle) { /* Hide Export section */
    display: none !important;
}

/* ---- 5. ENHANCED IMAGE UPLOAD & DOWNLOAD ---- */

/* Position upload section below preview */
.img-upload-section {
    width: 100%;
    max-width: 600px; /* Match card preview width */
    margin: 10px auto 0; /* Reduced margin top */
    padding: 10px;
    background-color: rgba(13, 13, 43, 0.4);
    border-radius: var(--radius-medium);
    flex-shrink: 0; /* Prevent shrinking */
    /* Removed height constraint */
}

/* Style drop zones */
.img-drop:hover, .img-drop-secondary:hover,
.img-drop:focus, .img-drop-secondary:focus {
    background-color: rgba(13, 13, 43, 0.8);
    border-color: var(--color-primary); /* Default blue highlight */
    transform: translateY(-2px);
    color: var(--color-text-light);
    outline: none;
    /* Neon effect added below */
}
.img-drop.active, .img-drop-secondary.active {
    background-color: rgba(59, 130, 246, 0.2) !important; /* Default blue active */
    border-color: var(--color-primary-light) !important;
}
.img-drop.has-image, .img-drop-secondary.has-image {
    border-style: solid !important;
    border-color: var(--color-success) !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
}
.img-drop.has-image .drop-icon, .img-drop-secondary.has-image .drop-icon { display: none; }
.img-drop span::after, .img-drop-secondary span::after { content: ''; }
.img-drop.has-image span::after, .img-drop-secondary.has-image span::after { content: ' \2714'; color: var(--color-success); font-weight: bold; }

/* Download Button Group Layout */
.button-group {
    display: flex;
    justify-content: space-around; /* Space out buttons */
    width: 100%;
    /* max-width: 600px; */ /* Let it fill container */
    margin-top: 10px; /* Space above buttons */
    gap: 10px;
    padding: 0; /* Remove extra padding */
}
.download-button-blue {
    padding: 10px 15px !important; /* Slightly larger padding */
    font-size: 0.9rem !important;
    aspect-ratio: auto; /* Remove square aspect ratio */
    flex: 1; /* Allow buttons to grow */
    min-width: 100px; /* Reduced minimum width */
    /* Neon effect added below */
}

/* ---- 6. NEON EFFECTS & ANIMATIONS (Default Blue) ---- */
@keyframes neonPulseBlue {
    0%, 100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5), 0 0 10px rgba(59, 130, 246, 0.3), 0 0 15px rgba(59, 130, 246, 0.2); }
    50% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.6), 0 0 15px rgba(59, 130, 246, 0.4), 0 0 20px rgba(59, 130, 246, 0.3); }
}

/* Apply glow effects */
.card-wrapper { animation: neonPulseBlue 4s infinite; }

.img-drop::after, .img-drop-secondary::after {
    content: ""; position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: calc(var(--radius-large) + 2px); z-index: -1;
    animation: neonPulseBlue 4s infinite; opacity: 0; transition: opacity 0.3s ease;
}
.img-drop:hover::after, .img-drop-secondary:hover::after,
.img-drop:focus::after, .img-drop-secondary:focus::after {
    opacity: 0.6; /* Show glow on hover/focus */
}

.download-button-blue::after {
    content: ""; position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: calc(var(--radius-medium) + 2px); z-index: -1;
    animation: neonPulseBlue 4s infinite; opacity: 0.7;
}

/* ---- 7. CUSTOM SCROLLBARS (Default Blue) ---- */
::-webkit-scrollbar { width: var(--scrollbar-width); height: var(--scrollbar-width); }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 5px; }
::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.5); border-radius: 5px; box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.7); }
/* Firefox scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(59, 130, 246, 0.5) rgba(0, 0, 0, 0.2); }
/* Apply to specific scrollable areas */
.input-container, .layer-manager, .card-preview-upload-area, .layer-list-display {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.5) rgba(0, 0, 0, 0.2);
}

/* ---- 8. TAB SWITCHING FIXES ---- */
body.tab-switching * {
    transition: none !important;
    animation: none !important;
}
/* Prevent template flash during switch */
body.tab-switching #card-template-overlay {
    background-image: none !important;
}
/* Prevent interaction during switch */
body.tab-switching .tab-container,
body.tab-switching .left-column-area,
body.tab-switching .input-container {
    pointer-events: none !important;
    opacity: 0.8; /* Visual feedback */
}

/* ---- 9. ENHANCED RESPONSIVE DESIGN ---- */
@media (max-width: 1400px) {
    .container { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important; }
    .card-wrapper { max-width: 500px !important; }
}

@media (max-width: 1200px) {
    .container { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) !important; }
    .layer-manager { flex: 0 0 250px !important; }
    .button-group { gap: 8px; }
    .download-button-blue { font-size: 0.85rem !important; padding: 8px 12px !important; }
}

@media (max-width: 992px) {
    /* Switch body back to scrollable */
    body, body.mobile-layout {
        overflow: auto !important;
        max-height: none !important;
        height: auto !important;
    }
    .container {
        display: flex !important; /* Use flex column layout */
        flex-direction: column !important;
        grid-template-columns: none !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important; /* Allow content height */
    }
    .left-column-area {
        flex-direction: column !important;
        order: 1 !important; /* Show card/layers first */
        width: 100% !important;
        max-height: none !important;
        height: auto !important; /* Allow height based on content */
        overflow: visible !important;
    }
    .layer-manager {
        flex: none !important; /* Remove flex sizing */
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
        max-height: none !important;
        height: auto !important;
        margin-bottom: 20px !important;
        overflow: visible !important; /* Show all content */
    }
    .card-preview-upload-area {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        order: 1; /* Place preview area first in mobile */
        flex-grow: 0; /* Don't allow grow */
    }
    .card-preview-container {
        flex-direction: column; /* Stack preview elements */
        height: auto;
        gap: 15px; /* Reduced gap */
        padding-bottom: 15px;
        min-height: auto;
        flex-grow: 0;
    }
    .card-wrapper {
        width: 85%; /* Slightly wider on mobile */
        max-width: 400px !important;
        height: auto;
        aspect-ratio: 5/7;
        margin-bottom: 10px; /* Reduce bottom margin */
    }
    #card { width: 100%; height: 100%; }
    .img-upload-section {
        order: 2; /* Uploads below preview */
        width: 100%;
        max-width: 500px;
        margin-top: 0;
    }
    .img-upload-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .button-group {
        order: 3; /* Downloads last */
        width: 100%;
        max-width: 500px;
        margin-top: 15px; /* Ensure space */
    }
    .input-container {
        order: 2 !important; /* Inputs after card/layers */
        max-height: none !important;
        position: static !important;
        overflow: visible !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .container { width: 100%; padding: 10px; }
    .card-wrapper { max-width: 90% !important; width: 90%; } /* Adjust width */
    .img-upload-grid { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
    .button-group { gap: 5px; }
}

@media (max-width: 576px) {
    .card-wrapper { max-width: 95% !important; width: 95%; } /* Wider on very small screens */
    .button-group { flex-direction: column; } /* Stack buttons */
    .download-button-blue { width: 100%; }
    .input-container { padding: 15px; }
    .layer-manager { padding: 10px; }
    .position-controls { padding: 8px; }
    .position-control-row { flex-wrap: wrap; }
    .position-control-row label { width: 100%; margin-bottom: 5px; }
    .numeric-control { margin-right: 5px; }
    .numeric-control input[type="number"] { width: 45px; padding: 3px 5px; }
}
