﻿/* Dashboard - home page layout (index.html /dashboard) */
.dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}



h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

/* Tools Grid */
.tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tool-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s, background-color 0.2s;
}

.tool-button:hover {
    transform: translateY(-2px);
    background-color: #e9ecef;
}

.tool-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.tool-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.tool-description {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
}

/* Content Sections */
.content-section {
    display: none;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section.active {
    display: block;
}

.settings-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3436;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: #0095ff;
    outline: none;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container .form-input {
    padding-right: 3rem;
}

.icon-button {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.icon-button:hover {
    opacity: 1;
}

.eye-icon {
    font-size: 1.2rem;
}

.primary-button {
    width: 100%;
    padding: 1rem;
    background: #0095ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.primary-button:hover {
    background: #0077cc;
}

.status-output {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.status-output.success {
    display: block;
    background: #e3fcef;
    color: #0c6b58;
    border: 1px solid #31c48d;
}

.status-output.error {
    display: block;
    background: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f98080;
}

/* Data Management Section */
.data-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.sync-section,
.download-section,
.import-section,
.template-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sync-section label,
.download-section label,
.import-section label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.import-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.template-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.template-buttons .secondary-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.template-buttons-large {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.template-buttons-large .primary-button {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Make import buttons smaller */
.import-section .button-group .secondary-button,
.import-section .button-group .primary-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.file-format-help {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.file-input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Log Management */
.log-controls {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.log-type-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.log-category {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.log-category:last-child {
    border-bottom: none;
}

.log-category h3 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

.log-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.log-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.log-type-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    color: #495057;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.log-type-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.log-type-btn.active {
    background: #0d6efd;
    color: white;
}

.log-delete-btn {
    padding: 0.25rem 0.35rem;
    border: none;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    color: #dc3545;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.log-delete-btn:hover {
    background: #f1f3f5;
    opacity: 1;
    color: #c82333;
}

.log-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#timeFilter {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    color: #495057;
    font-size: 0.9rem;
    min-width: 120px;
}

.log-viewer {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    height: 600px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.log-content {
    padding: 1rem;
}

.log-entry {
    padding: 1rem;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s ease;
}

.log-entry:hover {
    background-color: #f8f9fa;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-timestamp {
    color: #868e96;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.log-details {
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.log-message {
    margin: 0;
    white-space: pre-wrap;
    color: #212529;
}

.log-data {
    margin: 0;
    white-space: pre-wrap;
    color: #495057;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
}

.loading {
    text-align: center;
    color: #868e96;
    padding: 2rem;
}

.error {
    color: #dc3545;
    background: #fff5f5;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.no-logs {
    text-align: center;
    color: #868e96;
    padding: 2rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 20px;
    }

    .tools {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .tool-button {
        padding: 15px;
    }

    .tool-icon {
        font-size: 24px;
    }

    .tool-name {
        font-size: 14px;
    }

    .tool-description {
        font-size: 12px;
    }

    .content-section {
        padding: 1rem;
    }

    .settings-form {
        padding: 1rem;
    }

    .button-group {
        flex-direction: column;
    }

    .template-buttons-large {
        flex-direction: column;
        gap: 0.75rem;
    }

    .file-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .log-controls {
        gap: 0.5rem;
    }

    .log-type-selector {
        padding: 0.5rem;
    }

    .log-list {
        flex-direction: column;
    }

    .log-type-btn {
        width: 100%;
        text-align: left;
    }

    .log-actions {
        flex-wrap: wrap;
    }

    .log-viewer {
        height: 400px;
    }

    .log-entry {
        padding: 0.75rem;
    }
}

/* Location Import Styles */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tooltip-info {
    position: relative;
    display: inline-block;
}

.tooltip-icon {
    cursor: help;
    font-size: 1.2rem;
}

.tooltip-content {
    visibility: hidden;
    position: absolute;
    z-index: 100;
    bottom: calc(100% + 0.4rem);
    /* Grow right from the icon so long copy stays inside the frame */
    left: 0;
    transform: none;
    background-color: #333;
    color: white;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.35;
    white-space: normal;
    width: max-content;
    max-width: min(20rem, calc(100vw - 3rem));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tooltip-info:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.file-format-help {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

.import-options {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.preview-area {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.preview-content {
    max-height: 300px;
    overflow-y: auto;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 0.9rem;
    background: white;
    padding: 1rem;
    border-radius: 4px;
}

.preview-stats {
    display: flex;
    gap: 2rem;
    padding: 0.5rem;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Import Progress Styles */
.import-progress {
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: none;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #007bff;
    transition: width 0.3s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 1;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .progress-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-value {
        font-size: 1rem;
    }
}

.status-output {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.status-output.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-output.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

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

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.secondary-button {
    padding: 0.75rem 1.5rem;
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background: #dee2e6;
}

/* Validation Errors */
.validation-errors-container {
    margin-bottom: 15px;
}

.validation-errors {
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #856404;
}

.validation-errors h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #856404;
    font-weight: 600;
}

.validation-errors ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.validation-errors li {
    margin-bottom: 5px;
}

/* Duplicate Value Highlighting */
.duplicate-value {
    background-color: #ffcccc !important;
    color: #cc0000 !important;
    font-weight: bold;
    position: relative;
    border: 2px solid #cc0000 !important;
}

.alert-warning {
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #856404;
}

.alert-warning.critical {
    padding: 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #721c24;
    font-weight: bold;
}

/* Table Styles */
.preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.preview-table th,
.preview-table td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    text-align: left;
}

.preview-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.preview-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.preview-table tr:hover {
    background-color: #e9ecef;
}

/* Location log styles */
.location-logs-container {
    padding: 1rem;
}

.location-logs-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.location-stats {
    color: #666;
    font-size: 0.9em;
}

.location-update {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.location-update:last-child {
    border-bottom: none;
}

.log-timestamp {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 0.25rem;
}

.location-update-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-info {
    font-weight: 500;
}

.sku {
    color: #666;
    font-size: 0.9em;
}

.location-change {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.old-location,
.new-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.label {
    color: #666;
    min-width: 100px;
}

/* Field Mapping Styles */
.field-mapping {
    margin: .2rem 0;
    padding: .2rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.field-mapping h4 {
    margin: 0 0 1rem 0;
    color: #333;
}

.import-shopify-location-picker {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.import-shopify-location-picker[hidden] {
    display: none !important;
}

.import-shopify-location-picker label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.import-shopify-location-picker select {
    max-width: 28rem;
}

.import-shopify-location-hint {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.mapping-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mapping-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mapping-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mapping-field label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.mapping-field select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
}

.mapping-field select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Key selector styles */
.key-selector-container {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f0f4f8;
    border-radius: 4px;
    border-left: 3px solid #4299e1;
}

.key-selector-container label {
    font-weight: 600;
    margin-right: 0.5rem;
    color: #2d3748;
}

.key-selector-container select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.key-mapping-field {
    border-left: 3px solid #4299e1;
    padding-left: 0.5rem;
}

#importBtn:disabled {
    background-color: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
}

#validateBtn {
    background-color: #4299e1;
    color: white;
    transition: all 0.2s ease;
}

#validateBtn:hover {
    background-color: #3182ce;
}

.validation-success {
    padding: 0.5rem;
    background-color: #c6f6d5;
    color: #276749;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.validation-error {
    padding: 0.5rem;
    background-color: #fed7d7;
    color: #9b2c2c;
    border-radius: 4px;
    margin: 0.5rem 0;
}

/* Import Progress Styles */
.import-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.import-progress-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.progress-header {
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.close-button {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dee2e6;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
}

.close-button:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #adb5bd;
}

.progress-header h3 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 1.5rem;
}

.progress-status {
    color: #718096;
    font-size: 0.9rem;
}

.progress-bar-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 24px;
    background: #edf2f7;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #4299e1;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-fill.error {
    background: #e53e3e;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.progress-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.progress-stat {
    padding: 1rem;
    background: #f7fafc;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.progress-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-stat-invalid .view-invalid-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.65rem;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #c53030;
    transition: all 0.2s;
}

.progress-stat-invalid .view-invalid-btn:hover {
    background: #fff5f5;
    border-color: #fc8181;
}

.invalid-results {
    margin-bottom: 1.5rem;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    overflow: hidden;
}

.invalid-results-header {
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    background: #fed7d7;
}

.invalid-results-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #9b2c2c;
}

.invalid-results-count {
    font-weight: 500;
    color: #c53030;
}

.invalid-results-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.copy-invalid-btn,
.toggle-invalid-results {
    padding: 0.25rem 0.75rem;
    background: white;
    border: 1px solid #fc8181;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #9b2c2c;
    transition: all 0.2s;
}

.copy-invalid-btn:hover,
.toggle-invalid-results:hover {
    background: #fff5f5;
}

.invalid-results-content {
    padding: 0.75rem 1rem 1rem;
    max-height: 240px;
    overflow-y: auto;
}

.invalid-results-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #742a2a;
    font-size: 0.875rem;
    line-height: 1.45;
}

.invalid-results-list li {
    margin-bottom: 0.35rem;
    word-break: break-word;
}

.invalid-results-empty {
    list-style: none;
    margin-left: -1.25rem;
    color: #718096;
}

.invalid-results-truncated {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: #9b2c2c;
    font-style: italic;
}

.detailed-stats {
    margin-bottom: 1.5rem;
    background: #f7fafc;
    border-radius: 6px;
    overflow: hidden;
}

.detailed-stats-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #edf2f7;
}

.detailed-stats-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #4a5568;
}

.toggle-detailed-stats {
    padding: 0.25rem 0.75rem;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.toggle-detailed-stats:hover {
    background: #e2e8f0;
}

.detailed-stats-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.detailed-stats-content.expanded {
    padding: 1rem;
    max-height: 800px;
}

.field-stats {
    margin-bottom: 1rem;
}

.field-stats h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #4a5568;
}

.field-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns: Added, Updated, Cleared */
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.field-stat {
    padding: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-align: center;
}

.field-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    display: block;
    /* Ensure it takes its own line */
    margin-bottom: 0.1rem;
}

.field-stat-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    display: block;
    /* Ensure it takes its own line */
}

/* Confirmation Dialog Styles */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.confirm-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 80%;
    max-height: 80vh;
    overflow-y: auto;
}

.sample-errors {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.error-item {
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.error-item pre {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/* Sync Progress Modal Styles */
.sync-progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.sync-progress-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.sync-progress-header {
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.sync-progress-header h3 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 1.5rem;
}

/* Loading Spinner for Bulk Sync */
.bulk-sync-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: #3182ce;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

.bulk-sync-spinner.large {
    width: 40px;
    height: 40px;
    border-width: 4px;
    margin: 0 auto 1rem auto;
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.sync-progress-header-with-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sync-waiting-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1rem;
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    margin: 1rem 0;
    color: #2b6cb0;
    min-height: 3rem;
}

.sync-waiting-indicator .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #bee3f8;
    border-radius: 50%;
    border-top-color: #3182ce;
    animation: spin 1s linear infinite;
}

.bulk-operation-status {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    color: #2b6cb0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 3rem;
}

.bulk-operation-status .status-icon {
    width: 16px;
    height: 16px;
    border: 2px solid #3182ce;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.sync-status-label {
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.75rem;
    text-align: left;
}

.sync-progress-status {
    color: #3182ce;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.2rem;
    text-align: left;
    min-height: 1.5rem;
}

.sync-progress-bar {
    height: 24px;
    background: #edf2f7;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.sync-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #4299e1;
    transition: width 0.3s ease;
    width: 0%;
}

.sync-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(0, 0, 0);
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.sync-progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    text-align: center;
}

.sync-stat {
    padding: 1rem;
    background: #f7fafc;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sync-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.database-operations-container {
    background: #f7fafc;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.database-operations-label {
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sync-progress-message {
    text-align: left;
    color: #3182ce;
    font-size: 0.9rem;
    min-height: 1.5rem;
}

/* Sync Status Styles */
.sync-status-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.sync-status {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.status-line {
    margin: 0.25rem 0;
}

.sync-info {
    margin-bottom: 12px;
}

.last-sync-time {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
}

#lastProductSyncTime {
    font-weight: 500;
}

/* Product Results Styles */
.product-results-container {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #f9f9f9;
}

.product-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.product-results-table th,
.product-results-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.product-results-table th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
}

.product-results-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.product-results-table tr:hover {
    background-color: #eaf1f7;
}

#expandResultsBtn {
    margin-top: 10px;
    margin-bottom: 5px;
    width: 100%;
}

.location-change-log {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    background-color: #f7fafc;
}

.location-change-log:hover {
    background-color: #edf2f7;
}

.action-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.action-label {
    font-weight: bold;
    text-transform: uppercase;
    color: #4299e1;
}

.user-info {
    color: #718096;
    font-style: italic;
}

.product-info {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.product-info .title {
    font-weight: bold;
    display: block;
}

.product-info .variant-id,
.product-info .sku {
    font-size: 0.875rem;
    color: #718096;
    margin-right: 0.5rem;
}

.field-change {
    display: flex;
    margin: 0.25rem 0;
    align-items: center;
    flex-wrap: wrap;
}

.field-name {
    font-weight: bold;
    width: 4rem;
}

.field-from {
    color: #e53e3e;
    text-decoration: line-through;
    margin: 0 0.5rem;
}

.arrow {
    color: #718096;
    margin: 0 0.5rem;
}

.field-to {
    color: #38a169;
    font-weight: bold;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.preview-table th,
.preview-table td {
    /* Style table headers and data cells */
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.preview-table th {
    /* Style header cells specifically */
    background-color: #f2f2f2;
    font-weight: bold;
}

.duplicate-value {
    /* Style for highlighting duplicate key values */
    background-color: #f8d7da;
    /* Light red background */
    color: #721c24;
    /* Dark red text */
    font-weight: bold;
}

.table-container {
    /* Ensure table container handles overflow */
    overflow-x: auto;
    max-height: 300px;
    /* Optional: Limit height */
    margin-top: 10px;
}

/* -- Billing -- */
.section-description {
    color: var(--text-secondary, #666);
    font-size: 0.95rem;
    line-height: 1.45;
    margin: -8px 0 1.5rem;
    max-width: 40rem;
}

/* Team */
.seat-meter {
    margin: 0 0 0.5rem;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.team-seats-link {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #666);
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: #0095ff;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.link-button:hover {
    color: #0077cc;
}

.over-seat-banner {
    margin-bottom: 16px;
    padding: 12px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    color: #92400e;
}

.invite-form {
    margin-bottom: 24px;
    max-width: 640px;
    padding: 16px;
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.team-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .team-settings-grid {
        grid-template-columns: 1fr;
    }
}

.team-settings-fieldset {
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}

.team-settings-fieldset legend {
    padding: 0 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.team-settings-hint {
    margin: 0 0 8px;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.35;
}

.team-check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0 0 8px;
    font-size: 0.875rem;
    cursor: pointer;
    line-height: 1.35;
}

.team-check-label:last-child {
    margin-bottom: 0;
}

.team-check-label input {
    margin-top: 2px;
    flex-shrink: 0;
}

.team-location-checks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 180px;
    overflow-y: auto;
}

.team-access-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.team-badge {
    display: inline-block;
    padding: 1px 8px;
    font-size: 0.75rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    white-space: nowrap;
}

.team-badge-muted {
    background: #f3f4f6;
    color: #6b7280;
}

.team-member-email {
    font-weight: 500;
}

.team-member-name {
    font-size: 0.8rem;
    color: #6b7280;
}

.team-user-row.is-editing {
    background: #f0f9ff;
}

.team-edit-panel {
    max-width: 560px;
}

.team-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.admin-subheading {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: var(--text-color, #333);
}

.admin-field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.admin-field-input {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.invite-send-btn {
    width: auto;
    padding: 0.65rem 1.25rem;
    margin-top: 4px;
}

.invite-status {
    margin-top: 10px;
    font-size: 0.875rem;
}

.invite-link-panel {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.invite-link-message {
    margin: 0 0 8px;
    font-size: 0.875rem;
}

.invite-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.invite-link-input {
    flex: 1;
    margin-top: 0;
    font-size: 0.8rem;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    font-weight: 600;
}

.danger-zone-section {
    border: 1px solid #d82c0d;
    border-radius: 6px;
    padding: 12px;
    margin-top: 16px;
}

.danger-zone-section h3 {
    color: #d82c0d;
}

.danger-zone-copy {
    margin: 8px 0;
    font-size: 0.9em;
}

.danger-zone-btn {
    border-color: #d82c0d;
    color: #d82c0d;
}

.billing-loading,
.billing-error {
    font-size: 0.9rem;
}

.billing-error {
    color: #b91c1c;
}

.billing-notice {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 4px;
    border-left: 3px solid;
}

.billing-notice p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.billing-notice--trial {
    background: #f0f7ff;
    border-left-color: #0095ff;
    color: #1a3a5c;
}

.billing-notice--danger {
    background: #fef2f2;
    border-left-color: #d82c0d;
    color: #7f1d1d;
}

.billing-notice--warn {
    background: #fffbeb;
    border-left-color: #d97706;
    color: #78350f;
}

.billing-summary {
    display: grid;
    grid-template-columns: minmax(140px, 0.9fr) 1.4fr;
    gap: 1.5rem 2rem;
    align-items: start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.billing-summary__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary, #666);
}

.billing-summary__name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color, #333);
    line-height: 1.2;
}

.billing-summary__status {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary, #666);
}

.billing-summary__meters {
    padding-top: 0.15rem;
}

.billing-meter {
    margin-bottom: 0.85rem;
}

.billing-meter:last-child {
    margin-bottom: 0;
}

.billing-meter__label {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0.3rem;
    color: var(--text-color, #333);
}

.billing-meter__label span:last-child {
    color: var(--text-secondary, #666);
    font-variant-numeric: tabular-nums;
}

.billing-meter__track {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.billing-meter__fill {
    height: 100%;
    background: #0095ff;
    border-radius: 3px;
}

.billing-meter--warn .billing-meter__fill {
    background: #d97706;
}

.billing-section {
    margin-bottom: 2rem;
}

.billing-section--secondary {
    max-width: 28rem;
    padding-top: 0.25rem;
}

.billing-section__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--text-color, #333);
}

.billing-section__hint {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #666);
    line-height: 1.45;
}

.billing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.billing-plan {
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
}

.billing-plan--current {
    border-color: #0095ff;
    background: #f8fbff;
}

.billing-plan__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.billing-plan__name {
    font-weight: 600;
    color: var(--text-color, #333);
}

.billing-plan__badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0095ff;
}

.billing-plan__price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color, #333);
    margin-bottom: 0.65rem;
}

.billing-plan__price span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary, #666);
}

.billing-plan__features {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-secondary, #666);
    line-height: 1.5;
}

.billing-plan__features li {
    margin-bottom: 0.15rem;
}

.billing-plan .primary-button,
.billing-plan .secondary-button {
    width: 100%;
    margin-top: auto;
}

.billing-plan .secondary-button:disabled {
    opacity: 0.7;
    cursor: default;
}

.billing-addon__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-bottom: 0.35rem;
}

.billing-addon__input {
    display: block;
    width: 100%;
    max-width: 8rem;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.95rem;
}

.billing-addon__btn {
    width: auto;
    padding: 0.65rem 1.25rem;
}

.billing-account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e9ecef;
}

.billing-account .secondary-button {
    width: auto;
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
}

.billing-cancel-btn {
    border-color: #f1c0b8;
    color: #a32a1a;
    background: #fff;
}

.billing-cancel-btn:hover {
    background: #fff5f4;
    border-color: #d82c0d;
}

.billing-action-status {
    flex-basis: 100%;
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary, #666);
}

.billing-action-status--error {
    color: #b91c1c;
}

.billing-action-status--ok {
    color: #065f46;
}

.billing-action-status--warn {
    color: #92400e;
}

@media (max-width: 640px) {
    .billing-summary {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }
}
/* ==========================================================================
   Pick List Badges (Admin)
   ========================================================================== */
.plb {
    max-width: 820px;
}

.plb-sample {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    margin: 0 0 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
}

.plb-sample__order {
    font-weight: 700;
    color: #0095ff;
}

.plb-sample__mid {
    color: #64748b;
    text-align: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plb-sample__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
}

.plb-sample__hint {
    color: #94a3b8;
    font-size: 0.8rem;
}

.plb-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.plb-pill--paid {
    background: #e3fcef;
    color: #0c6b58;
}

.plb-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.plb-empty {
    color: #64748b;
    margin: 0.5rem 0 1rem;
}

.plb-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.plb-card--disabled {
    opacity: 0.62;
}

.plb-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
}

.plb-card__preview {
    flex: 1;
    min-width: 0;
}

.plb-card__actions {
    display: flex;
    gap: 0.35rem;
    margin-left: auto;
}

.plb-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.plb-icon-btn {
    width: auto !important;
    min-width: 2.25rem;
    padding: 0.4rem 0.55rem !important;
    font-size: 0.85rem;
}

.plb-icon-btn--danger {
    color: #b91c1c;
}

.plb-card__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.plb-colors {
    grid-column: 1 / -1;
}

.plb-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.35rem 0 0.55rem;
}

.plb-preset {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.plb-preset.is-active {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #0095ff;
}

.plb-color-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.plb-color-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #64748b;
}

.plb-color-field input[type="color"] {
    width: 3rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.plb-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.plb-toolbar .secondary-button,
.plb-toolbar .primary-button {
    width: auto;
    padding: 0.65rem 1.1rem;
}

.plb-save {
    margin-left: auto;
}

.plb-status {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: #065f46;
}

.plb-status--error {
    color: #b91c1c;
}

@media (max-width: 720px) {
    .plb-sample {
        grid-template-columns: 1fr;
    }

    .plb-sample__mid,
    .plb-sample__badges {
        justify-content: flex-start;
        text-align: left;
    }

    .plb-card__grid {
        grid-template-columns: 1fr;
    }

    .plb-save {
        margin-left: 0;
        width: 100%;
    }
}
