html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  height: 100%;
}

body {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* IranSans Font */
@font-face {
    font-family: 'IRANSansWebFaNum';
    src: url('../fonts/IRANSansWebFaNum.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base Styles */
:root {
    --primary-color: rgb(165, 36, 127);
    --primary-hover: rgb(145, 26, 107);
    --secondary-color: rgb(147, 149, 152);
    --error-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --background-color: #fafafa;
    --card-background: #ffffff;
    --border-color: #e1e5e9;
    --border-radius: 12px;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'IRANSansWebFaNum', 'IRANSansWeb', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

.text-company {
    color: var(--primary-color) !important;
}

.border-company {
    border-color: var(--primary-color) !important;
}

.btn-company {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-company:hover,
.btn-company:focus {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    box-shadow: 0 8px 20px rgba(165, 36, 127, 0.3);
}

.btn-company:disabled,
.btn-company.disabled {
    background: rgba(165, 36, 127, 0.5);
    border-color: rgba(165, 36, 127, 0.5);
    color: #fff;
    box-shadow: none;
}

.company-card {
    border: 1px solid rgba(165, 36, 127, 0.25);
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(15, 52, 96, 0.08);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.company-card:hover {
    border-color: rgba(165, 36, 127, 0.55);
    background: rgba(165, 36, 127, 0.03);
    box-shadow: 0 10px 26px rgba(15, 52, 96, 0.12);
}

.company-card.disabled,
.company-card.disabled:hover {
    background: #f9f1f6;
    border-color: rgba(165, 36, 127, 0.2);
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.06);
}

/* Profile page styles */
.profile-container {
    min-height: 100vh;
    padding: 2rem 0;
    background: #fafafa;
}

.profile-container .profile-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.profile-header {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(165, 36, 127, 0.3);
}

.avatar i {
    font-size: 2.5rem;
    color: #fff;
}

.user-info {
    text-align: center;
}

.user-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.user-id {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.info-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-card .card-header i {
    font-size: 1.5rem;
}

.info-card .card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.info-card .card-body {
    padding: 2rem;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item.full-width,
.address-subsection {
    grid-column: 1 / -1;
}

.address-subsection {
    margin: 1.5rem 0 1rem 0;
}

.subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: var(--text-color);
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.info-value:hover {
    background: #edf2f7;
    border-color: var(--primary-color);
}

.profile-divider {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .profile-container {
        padding: 1rem 0 5rem 0;
    }

    .profile-container .profile-inner {
        padding: 0 0.5rem 72px;
    }

    .profile-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .avatar {
        width: 70px;
        height: 70px;
    }

    .avatar i {
        font-size: 2rem;
    }

    .user-name {
        font-size: 1.5rem;
    }

    .info-card .card-body {
        padding: 1.5rem;
    }

    .info-grid {
        gap: 1rem;
    }

    .info-row {
        gap: 1rem;
    }

    .info-card .card-header {
        padding: 1.25rem;
    }

    .info-card .card-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 1rem;
    }

    .info-card .card-body {
        padding: 1rem;
    }

    .user-name {
        font-size: 1.3rem;
    }

    .info-value {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .info-card .card-header {
        padding: 1rem;
    }

    .info-card .card-header h3 {
        font-size: 1.1rem;
    }
}

/* Layout */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 220px); /* Adjust for header and footer */
    padding: 40px 20px;
    box-sizing: border-box;
    flex: 1 0 auto;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo-image {
    max-width: 180px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Typography */
.login-title {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'IRANSansWebFaNum', 'IRANSansWeb', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    background: var(--card-background);
    color: var(--text-color);
    line-height: 1.5;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(165, 36, 127, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--secondary-color);
    opacity: 0.7;
    font-size: 0.85rem;
}

.input-with-button {
    display: flex;
    gap: 0.75rem;
    direction: rtl;
}

.send-code-button {
    width: 25%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'IRANSansWebFaNum', 'IRANSansWeb', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}

.send-code-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(165, 36, 127, 0.3);
}

.send-code-button:active:not(:disabled) {
    transform: translateY(0);
}

.send-code-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-with-button .form-input {
    flex: 1;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'IRANSansWebFaNum', 'IRANSansWeb', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(165, 36, 127, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(165, 36, 127, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled,
.login-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: var(--secondary-color);
    box-shadow: none;
}

.login-button:disabled:hover,
.login-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

.button-text {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.button-loader {
    display: none;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Validation */
.validation-message {
    display: block;
    margin-top: 0.5rem;
    color: var(--error-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.validation-summary {
    margin-bottom: 1.5rem;
    padding: 16px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: var(--border-radius);
    color: var(--error-color);
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.validation-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.validation-summary li {
    margin-bottom: 4px;
}

.validation-summary li:last-child {
    margin-bottom: 0;
}

/* OTP Message */
.otp-message {
    margin-bottom: 1.5rem;
    padding: 16px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.otp-message-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    color: #166534;
}

.otp-message-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: var(--error-color);
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.dashboard-box {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.dashboard-box:hover:not(.disabled) {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.dashboard-box.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.box-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.quotations-box .box-icon {
    color: #4a6bff;
}

.invoices-box .box-icon {
    color: #28a745;
}

.return-invoices-box .box-icon {
    color: #fd7e14;
}

.reports-box .box-icon {
    color: #ffc107;
}

.requests-box .box-icon {
    color: #dc3545;
}

.support-box .box-icon {
    color: #6610f2;
}

.box-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-align: center;
}

.box-content p {
    color: #666;
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
}

.box-arrow {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.2rem;
    color: #999;
    transition: all 0.3s ease;
}

.box-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.counter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(165, 36, 127, 0.3);
    transition: all 0.3s ease;
}

.dashboard-box:hover:not(.disabled) .counter-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(165, 36, 127, 0.4);
}

.dashboard-box:hover:not(.disabled) .box-arrow {
    color: var(--primary-color);
    transform: translateX(-3px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .login-container {
        min-height: calc(100vh - 180px); /* Smaller adjustment for mobile */
        padding: 30px 16px;
    }
    
    .login-card {
        padding: 2rem;
        max-width: 100%;
        margin: 0 8px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .logo-image {
        max-width: 140px;
        max-height: 80px;
    }
    
    .form-input {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .send-code-button {
        padding: 12px 18px;
    }
    
    .input-with-button {
        gap: 0.5rem;
    }
    
    .login-button {
        padding: 14px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }

    .login-title {
        font-size: 1.4rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-input {
        padding: 12px 14px;
    }
    
    .send-code-button {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 1rem;
        padding-bottom: 5rem; /* extra 3rem bottom spacing */
    }

    .dashboard-title {
        font-size: 2rem;
    }

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

    .dashboard-box {
        padding: 1.5rem;
    }
}

/* Sticky Footer Layout */
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.container { /* This container wraps main content */
  flex: 1 0 auto;
}
main { /* This is the main content area */
  flex: 1 0 auto;
}
.footer {
  flex-shrink: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  margin-top: auto; /* Pushes footer to bottom */
  /* Removed: position: absolute; bottom: 0; */
}

/* Hide footer on mobile devices */
@media (max-width: 768px) {
  .footer {
    display: none;
  }
}

/* Alternative: Hide footer on very small screens */
@media (max-width: 480px) {
  .footer {
    display: none;
  }
}

/* Mobile bottom nav equal width tabs */
@media (max-width: 768px) {
  /* Reserve space for fixed mobile footer on containers */
  .container,
  .mobile-bottom-nav {
    height: 60px; /* fixed footer height */
  }
  .mobile-bottom-nav nav {
    display: flex;
  }
  .mobile-bottom-nav .tab {
    flex: 0 0 20%;
    max-width: 20%;
    min-width: 0;
    text-align: center;
    padding: 6px 0; /* tighter spacing */
  }
  /* Keep entire anchor tab clickable without inner elements hijacking events */
  .mobile-bottom-nav a.tab > * {
    pointer-events: none;
  }
  /* Ensure form-based tab (logout) remains clickable */
  .mobile-bottom-nav form.tab > * {
    pointer-events: auto;
  }
  .mobile-bottom-nav .tab button {
    width: 100%;
  }
  .mobile-bottom-nav .tab i {
    display: block;
    line-height: 1;
  }
  .mobile-bottom-nav .tab span {
    display: block;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

.achievement-pill {
  background: #e0f2f1;
  color: #00796b;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Sales progress styles - mobile view only */

 

.quick-links-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.quick-links-row .quick-link-card {
  flex: 1 1 calc(33.333% - 0.67rem);
  min-width: 200px;
}

@media (max-width: 992px) {
  .quick-links-row .quick-link-card {
    flex: 1 1 calc(50% - 0.5rem);
  }
}

@media (max-width: 576px) {
  .quick-links-row .quick-link-card {
    flex: 1 1 100%;
  }
}

.quick-link-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e6ecfb;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 28px rgba(15, 52, 96, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(15, 52, 96, 0.15);
}

.quick-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: #eff3ff;
  color: #1b4f72;
}

.quick-link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quick-link-title {
  font-weight: 700;
  color: #0f3460;
}

.quick-link-arrow {
  font-size: 1.5rem;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.quick-link-card:hover .quick-link-arrow {
  color: #0f3460;
}

.quick-link-card.quotation-card .quick-link-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.quick-link-card.invoice-card .quick-link-icon {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.quick-link-card.return-card .quick-link-icon {
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
}


.sales-progress-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 52, 96, 0.12);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sales-progress-row + .sales-progress-row {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #edf2f7;
}

.sales-progress-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.sales-progress-title-wrapper {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  width: 100%;
}

.sales-progress-header h2 {
  font-size: 1.1rem;
  margin: 0;
  color: #0f3460;
  font-weight: 700;
  order: 2;
}

.sales-progress-header .sales-progress-meta {
  order: 1;
  margin-left: 0;
}

.sales-progress-header p {
  margin: 0.25rem 0 0;
  color: #5c6f82;
  font-size: 0.95rem;
}

.sales-progress-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.sales-progress-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
  flex: 0 0 85%;
}

.sales-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #a5247f, #c73a9e);
  transition: width 1.2s ease;
}

.sales-progress-fill.secondary {
  background: linear-gradient(90deg, #a5247f, #d94fb3);
}

.sales-progress-percent {
  flex: 0 0 15%;
  text-align: center;
  background: rgba(15, 52, 96, 0.08);
  color: #0f3460;
  font-weight: 700;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  font-size: 1rem;
}

.sales-progress-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.sales-progress-meta {
  font-size: 0.95rem;
  color: #5c6f82;
  font-weight: 500;
  white-space: nowrap;
}

/* Notifications Section */
.notifications-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 52, 96, 0.12);
  padding: 0.4rem;
  margin-bottom: 1.5rem;
  position: relative;
  animation: glowing 2s ease-in-out infinite alternate;
}

@keyframes glowing {
  0% {
    box-shadow: 0 12px 30px rgba(15, 52, 96, 0.12),
                0 0 10px rgba(165, 36, 127, 0.2),
                0 0 15px rgba(165, 36, 127, 0.15),
                0 0 20px rgba(165, 36, 127, 0.1);
  }
  50% {
    box-shadow: 0 12px 30px rgba(15, 52, 96, 0.12),
                0 0 12px rgba(199, 58, 158, 0.35),
                0 0 20px rgba(199, 58, 158, 0.25),
                0 0 28px rgba(199, 58, 158, 0.15);
  }
  100% {
    box-shadow: 0 12px 30px rgba(15, 52, 96, 0.12),
                0 0 15px rgba(217, 79, 179, 0.4),
                0 0 25px rgba(217, 79, 179, 0.3),
                0 0 35px rgba(217, 79, 179, 0.2);
  }
}

.notification-item {
  padding: 1rem;
  border-bottom: 1px solid #edf2f7;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.notification-description {
  font-size: 0.95rem;
  color: #2d3748;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.notification-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #a5247f;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.notification-button:hover {
  background: #7a1a5a;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

/* Sales Documents Section */
.sales-documents-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 52, 96, 0.12);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sales-documents-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #edf2f7;
}

.sales-documents-header h2 {
  font-size: 1.1rem;
  margin: 0;
  color: #0f3460;
  font-weight: 700;
}

.sales-documents-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sales-document-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  background: #fff;
  border: 1px solid #e6ecfb;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 52, 96, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.sales-document-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 52, 96, 0.12);
}

.sales-document-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.sales-document-icon.quotation-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.sales-document-icon.invoice-icon {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.sales-document-icon.return-icon {
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
}

.sales-document-icon.request-icon {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.sales-document-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f3460;
  margin: 0;
}

@media (max-width: 992px) {
  .sales-documents-body {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* Upcoming Payments Section */
.upcoming-payments-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 52, 96, 0.12);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.upcoming-payments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.upcoming-payments-header h2 {
  font-size: 1.1rem;
  margin: 0;
  color: #0f3460;
  font-weight: 700;
}

.upcoming-payments-header p {
  margin: 0.25rem 0 0;
  color: #5c6f82;
  font-size: 0.95rem;
}

.badge-count {
  background: #0f3460;
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
}

.upcoming-payments-table {
  margin-top: 1rem;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  overflow: hidden;
}

.upcoming-payments-table .table-header,
.upcoming-payments-table .table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0.9rem 1rem;
  text-align: center;
}

.upcoming-payments-table .table-header {
  background: #f5f7fb;
  font-weight: 700;
  color: #0f3460;
  border-bottom: 1px solid #edf2f7;
}

.upcoming-payments-table .table-row {
  border-bottom: 1px solid #edf2f7;
  color: #2d3748;
}

.upcoming-payments-table .table-row:last-child {
  border-bottom: none;
}

.upcoming-payments-scroll {
  max-height: 180px;
  overflow-y: auto;
}

.upcoming-payments-empty {
  margin-top: 1rem;
  padding: 1rem;
  text-align: center;
  border: 1px dashed #cbd5e0;
  border-radius: 12px;
  color: #5c6f82;
}
