.sales-login-settings {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Anyaman Sales PWA - Styles */

:root {
    --sales-bg: #0f172a;
    --sales-bg-soft: #020617;
    --sales-surface: #0b1220;
    --sales-surface-alt: #020617;
    --sales-border: rgba(148, 163, 184, 0.2);
    --sales-primary: #0f766e;
    --sales-primary-soft: rgba(45, 212, 191, 0.08);
    --sales-primary-border: rgba(45, 212, 191, 0.3);
    --sales-primary-text: #ccfbf1;
    --sales-danger: #ef4444;
    --sales-danger-soft: rgba(248, 113, 113, 0.12);
    --sales-text: #e5e7eb;
    --sales-text-soft: #9ca3af;
    --sales-text-muted: #6b7280;
    --sales-radius-lg: 18px;
    --sales-radius-md: 12px;
    --sales-radius-sm: 8px;
    --sales-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
    --sales-shadow-card: 0 16px 40px rgba(15, 23, 42, 0.75);
    --sales-shadow-soft-up: 0 -8px 30px rgba(15, 23, 42, 0.75);
    --sales-input-bg: rgba(15, 23, 42, 0.9);
    --sales-input-border: rgba(148, 163, 184, 0.35);
    --sales-input-border-focus: rgba(45, 212, 191, 0.9);
    --sales-input-placeholder: #6b7280;
    --sales-transition-fast: 0.18s ease-out;
    --sales-transition-med: 0.25s ease-out;
    --sales-ui-scale: 1;
    --sales-form-font: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, #1e293b 0, #020617 55%);
    color: var(--sales-text);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
}

body.sales-login-page,
body.sales-app-page,
body.sales-settings-page {
    transform-origin: top center;
    transform: scale(var(--sales-ui-scale, 1));
}

body.theme-light {
    --sales-text: #111827;
    --sales-text-soft: #6b7280;
    --sales-text-muted: #6b7280;
    --sales-input-bg: #ffffff;
    --sales-input-border: #d1d5db;
    --sales-input-border-focus: #0f766e;
}

body.sales-login-page.theme-light,
body.sales-settings-page.theme-light {
    background: #f3f4f6;
}

body.sales-app-page.theme-light {
    background: #f3f4f6;
}

body.theme-light .sales-login-card,
body.theme-light .sales-card,
body.theme-light .sales-modal-dialog {
    background: #ffffff;
    color: #111827;
    border-color: #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

body.theme-light .sales-app-header {
    background: #ffffff;
    border-bottom-color: #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body.theme-light .sales-tabs {
    background: #e5e7eb;
    border-color: #d1d5db;
}

body.theme-light .sales-tab-button {
    color: #4b5563;
}

body.theme-light .sales-tab-button.is-active {
    background: #0f766e;
    color: #ecfdf5;
}

body.theme-light .sales-input,
body.theme-light .sales-textarea {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}

body.theme-light .sales-input:focus,
body.theme-light .sales-textarea:focus {
    background: #ffffff;
    border-color: #0f766e;
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.4);
}

body.theme-light .sales-input::placeholder,
body.theme-light .sales-textarea::placeholder {
    color: #9ca3af;
}

body.theme-light .sales-select {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}

body.theme-light .sales-select:focus {
    background: #ffffff;
    border-color: #0f766e;
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.4);
}

body.theme-light .sales-input-file {
    background: #f9fafb;
    border-color: #d1d5db;
}

body.theme-light .sales-empty-state {
    background: #f9fafb;
    border-color: #e5e7eb;
}

body.theme-light .sales-table tr:nth-child(even) td,
body.theme-light .sales-table tr:nth-child(odd) td {
    background: #ffffff;
}

body.theme-light .sales-card-property {
    background: #ffffff;
}

body.theme-light .sales-badge {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.hidden {
    display: none !important;
}

/* Login Page */

.sales-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sales-login-wrapper {
    width: 100%;
    max-width: 420px;
}

.sales-login-card {
    background: radial-gradient(circle at top left, #1f2937 0, #020617 55%);
    border-radius: 26px;
    padding: 26px 24px 24px;
    box-shadow: var(--sales-shadow-card);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(18px);
    position: relative;
}

.sales-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.sales-logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #22c55e, #0f766e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #ecfdf5;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

.sales-logo-circle.small {
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.sales-logo-text {
    display: flex;
    flex-direction: column;
}

.sales-logo-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sales-logo-subtitle {
    font-size: 15px;
    color: var(--sales-text-soft);
}

.sales-login-title {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 600;
}

.sales-login-desc {
    margin: 0 0 18px;
    font-size: 15px;
    color: var(--sales-text-soft);
}

.sales-alert {
    border-radius: var(--sales-radius-md);
    padding: 10px 12px;
    font-size: 15px;
    margin-bottom: 14px;
}

.sales-alert-error {
    background: var(--sales-danger-soft);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.sales-alert-success {
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #bbf7d0;
}

.sales-login-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 18px;
}

.sales-logo-img {
    height: 40px;
    width: auto;
}

.sales-settings-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--sales-border);
    font-size: 18px;
    color: var(--sales-text-soft);
    background: rgba(15, 23, 42, 0.85);
    text-decoration: none;
    transition: background var(--sales-transition-fast), color var(--sales-transition-fast), border-color var(--sales-transition-fast), transform var(--sales-transition-fast);
}

.sales-settings-link:hover {
    background: rgba(15, 23, 42, 1);
    color: var(--sales-text);
    border-color: rgba(148, 163, 184, 0.6);
    transform: translateY(-1px);
}

body.theme-light .sales-settings-link {
    background: #f9fafb;
}

.settings-radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.settings-range {
    width: 100%;
}

.sales-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sales-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.sales-label {
    font-size: calc(var(--sales-form-font) - 2px);
    color: var(--sales-text-soft);
}

.sales-input,
.sales-textarea {
    background: var(--sales-input-bg);
    border-radius: 999px;
    border: 1px solid var(--sales-input-border);
    padding: 9px 11px;
    font-size: var(--sales-form-font);
    color: var(--sales-text);
    outline: none;
    transition: border-color var(--sales-transition-fast), box-shadow var(--sales-transition-fast), background var(--sales-transition-fast), transform var(--sales-transition-fast);
}

.sales-select {
    background: var(--sales-input-bg);
    border-radius: 999px;
    border: 1px solid var(--sales-input-border);
    padding: 9px 11px;
    font-size: var(--sales-form-font);
    color: var(--sales-text);
    outline: none;
    transition: border-color var(--sales-transition-fast), box-shadow var(--sales-transition-fast), background var(--sales-transition-fast), transform var(--sales-transition-fast);
    appearance: none;
}

.sales-select-sm {
    padding: 7px 10px;
    font-size: var(--sales-form-font);
}

.sales-select:focus {
    border-color: var(--sales-input-border-focus);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.4);
    background: rgba(15, 23, 42, 0.95);
}

.sales-input::placeholder,
.sales-textarea::placeholder {
    color: var(--sales-input-placeholder);
}

.sales-input:focus,
.sales-textarea:focus {
    border-color: var(--sales-input-border-focus);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.4);
    background: rgba(15, 23, 42, 0.95);
}

.sales-input-sm {
    padding: 7px 10px;
    font-size: var(--sales-form-font);
}

.sales-textarea {
    border-radius: 14px;
    min-height: 80px;
    resize: vertical;
}

.sales-input-file {
    border-radius: 999px;
    padding: 6px 8px;
    font-size: calc(var(--sales-form-font) - 1px);
    background: rgba(15, 23, 42, 0.9);
}

.sales-field-hint {
    font-size: calc(var(--sales-form-font) - 3px);
    color: var(--sales-text-soft);
    margin-top: 2px;
}

.sales-btn {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 9px 16px;
    font-size: calc(var(--sales-form-font) - 2px);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background var(--sales-transition-med), border-color var(--sales-transition-med), color var(--sales-transition-med), transform var(--sales-transition-fast), box-shadow var(--sales-transition-fast), opacity var(--sales-transition-fast);
    background: rgba(15, 23, 42, 0.9);
    color: var(--sales-text);
}

.sales-btn-primary {
    background: linear-gradient(135deg, #22c55e, #0f766e);
    color: #ecfdf5;
    border-color: rgba(45, 212, 191, 0.6);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

.sales-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 34px rgba(16, 185, 129, 0.45);
}

.sales-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.sales-btn-ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--sales-text-soft);
}

.sales-btn-ghost:hover {
    background: rgba(15, 23, 42, 0.75);
    color: var(--sales-text);
}

.sales-btn-outline {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.6);
    color: var(--sales-text-soft);
}

.sales-btn-outline:hover {
    border-color: rgba(45, 212, 191, 0.8);
    color: var(--sales-primary-text);
}

.sales-btn-sm {
    padding: 6px 10px;
    font-size: calc(var(--sales-form-font) - 3px);
}

.sales-btn-full {
    width: 100%;
    margin-top: 6px;
}

.sales-login-footer-text {
    margin-top: 14px;
    font-size: 15px;
    color: var(--sales-text-soft);
    text-align: center;
}

/* App Layout */

.sales-app-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top left, #1e293b 0, #020617 52%);
}

.sales-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(30, 64, 175, 0.65);
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.9);
    position: sticky;
    top: 0;
    z-index: 40;
}

.sales-app-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sales-header-logo {
    height: 28px;
    width: auto;
}

.sales-app-title {
    font-size: 16px;
    font-weight: 600;
}

.sales-app-subtitle {
    font-size: 15px;
    color: var(--sales-text-soft);
}

.sales-app-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sales-user-info {
    text-align: right;
}

.sales-user-name {
    font-size: 15px;
    font-weight: 500;
}

.sales-user-id {
    font-size: 15px;
    color: var(--sales-text-soft);
}

.sales-app-main {
    padding: 14px 18px 22px;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Tabs */

.sales-tabs {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(30, 64, 175, 0.7);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.85);
    margin-bottom: 18px;
}

.sales-tab-button {
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 15px;
    color: var(--sales-text-soft);
    cursor: pointer;
    transition: background var(--sales-transition-med), color var(--sales-transition-med), transform var(--sales-transition-fast), box-shadow var(--sales-transition-fast);
    min-width: 0;
}

.sales-tab-button.is-active {
    background: radial-gradient(circle at top left, #22c55e, #0f766e);
    color: #ecfdf5;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
}

.sales-tab-content {
    display: none;
    animation: fadeInUp 0.24s ease-out;
}

.sales-tab-content.is-active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sales-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.sales-section-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}

.sales-section-desc {
    margin: 0;
    font-size: 15px;
    color: var(--sales-text-soft);
}

.sales-section-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Cards & Layout */

.sales-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.sales-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
    border-radius: var(--sales-radius-lg);
    padding: 14px 14px 13px;
    border: 1px solid var(--sales-border);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.9);
}

.sales-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.sales-card-property {
    cursor: pointer;
    transition: transform var(--sales-transition-fast), box-shadow var(--sales-transition-fast), border-color var(--sales-transition-fast), background var(--sales-transition-fast);
    position: relative;
    overflow: hidden;
}

.sales-card-property::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 55%);
    opacity: 0;
    transition: opacity var(--sales-transition-fast);
    pointer-events: none;
}

.sales-card-property:hover {
    transform: translateY(-3px);
    border-color: rgba(45, 212, 191, 0.6);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
}

.sales-card-property:hover::after {
    opacity: 1;
}

.sales-card-property-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.sales-card-property-city {
    font-size: 15px;
    color: var(--sales-text-soft);
    margin-bottom: 6px;
}

.sales-card-property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: var(--sales-text-muted);
}

.sales-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 15px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.95);
}

.sales-badge-lead {
    border-color: rgba(45, 212, 191, 0.7);
    color: #a7f3d0;
    background: rgba(6, 95, 70, 0.85);
}

.sales-badge-prospect {
    border-color: rgba(234, 179, 8, 0.7);
    color: #fef08a;
    background: rgba(161, 98, 7, 0.85);
}

.sales-badge-customer {
    border-color: rgba(59, 130, 246, 0.7);
    color: #bfdbfe;
    background: rgba(30, 64, 175, 0.85);
}

.sales-badge-status {
    border-color: rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.sales-empty-state {
    margin-top: 18px;
    text-align: center;
    padding: 18px 14px;
    border-radius: var(--sales-radius-lg);
    border: 1px dashed rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.85);
}

.sales-empty-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.sales-empty-desc {
    font-size: 15px;
    color: var(--sales-text-soft);
}

.sales-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 14px;
}

.sales-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}

.sales-timeline-item {
    position: relative;
    padding-left: 16px;
}

.sales-timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

.sales-timeline-title {
    font-weight: 500;
    margin-bottom: 1px;
}

.sales-timeline-meta {
    color: var(--sales-text-soft);
}

.sales-timeline-status {
    font-size: 15px;
    margin-top: 2px;
}

.sales-form-status {
    margin-top: 6px;
    font-size: 15px;
    color: var(--sales-text-soft);
}

.sales-form-status.success {
    color: #bbf7d0;
}

.sales-form-status.error {
    color: #fecaca;
}

.sales-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.sales-stat-card {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), rgba(15, 23, 42, 0.95));
    border-radius: var(--sales-radius-md);
    padding: 10px 11px;
    border: 1px solid rgba(45, 212, 191, 0.55);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.sales-stat-label {
    font-size: 15px;
    color: var(--sales-text-soft);
    margin-bottom: 2px;
}

.sales-stat-value {
    font-size: 18px;
    font-weight: 600;
}

.sales-table-wrapper {
    margin-top: 8px;
    overflow-x: auto;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.sales-table th,
.sales-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.sales-table th {
    text-align: left;
    font-weight: 500;
    color: var(--sales-text-soft);
    background: rgba(15, 23, 42, 0.9);
    position: sticky;
    top: 0;
}

.sales-table tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.7);
}

.sales-table tr:nth-child(odd) td {
    background: rgba(15, 23, 42, 0.55);
}

/* Modal */

.sales-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.sales-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

.sales-modal-dialog {
    position: relative;
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.15), #020617 55%);
    border-radius: 24px;
    padding: 14px 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    width: min(960px, 100% - 24px);
    max-height: calc(100vh - 30px);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.98);
    display: flex;
    flex-direction: column;
}

.sales-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.sales-modal-title {
    margin: 0 0 3px;
    font-size: 17px;
    font-weight: 600;
}

.sales-modal-subtitle {
    margin: 0;
    font-size: 15px;
    color: var(--sales-text-soft);
}

.sales-modal-close {
    border: none;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    color: var(--sales-text-soft);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--sales-transition-fast), color var(--sales-transition-fast), transform var(--sales-transition-fast);
}

.sales-modal-close:hover {
    background: rgba(30, 64, 175, 0.85);
    color: #e0f2fe;
    transform: translateY(-1px);
}

.sales-modal-body {
    margin-top: 10px;
    overflow-y: auto;
    padding-right: 2px;
}

.sales-section-subtitle {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
}

.sales-detail-list {
    margin: 0 0 10px;
    font-size: 15px;
}

.sales-detail-list dt {
    font-weight: 500;
    color: var(--sales-text-soft);
}

.sales-detail-list dd {
    margin: 0 0 4px;
}

.sales-section-block {
    padding: 10px 0 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    margin-bottom: 10px;
}

.sales-room-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.sales-room-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.sales-room-label {
    flex: 1;
    font-size: calc(var(--sales-form-font) - 3px);
}

.sales-room-label span {
    color: var(--sales-text-soft);
    font-size: calc(var(--sales-form-font) - 4px);
}

.sales-room-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.sales-room-field-label {
    font-size: calc(var(--sales-form-font) - 4px);
    color: #16a34a;
}

.sales-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.sales-upload-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sales-room-photos {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sales-room-photo-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sales-form-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 10px;
}

.sales-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.sales-uploaded-list {
    font-size: 15px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.sales-uploaded-group-title {
    font-weight: 500;
    margin-top: 4px;
    margin-bottom: 2px;
}

.sales-uploaded-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    border-bottom: 1px dashed rgba(31, 41, 55, 0.9);
}

.sales-uploaded-item a {
    color: #a5b4fc;
    font-size: 15px;
}

.sales-uploaded-item span {
    font-size: 15px;
    color: var(--sales-text-soft);
}

/* Responsive */

@media (max-width: 768px) {
    .sales-app-header {
        padding: 10px 12px;
    }

    .sales-app-main {
        padding: 12px 10px 18px;
    }

    .sales-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .sales-modal-dialog {
        border-radius: 18px;
        width: calc(100% - 12px);
        padding: 10px 10px 12px;
    }

    .sales-modal-body {
        max-height: calc(100vh - 90px);
    }

    .sales-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sales-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .sales-login-card {
        padding: 22px 18px 18px;
    }
}


