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;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Partner portal shell — top bar + sidebar, Figma node 10556:63888 */
.autoscop-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.autoscop-topbar {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    background-color: #13bf73;
}

.autoscop-topbar-brand {
    flex: 0 0 260px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    color: #fff;
}

.autoscop-brand-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
}

.autoscop-topbar-search {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .75rem 1rem;
    padding: 0 .9rem;
    max-width: 420px;
    background-color: #fff;
    border-radius: .6rem;
    color: #6b7280;
}

.autoscop-topbar-search input {
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    padding: .55rem 0;
    font-size: .875rem;
    color: #171717;
}

.autoscop-topbar-user {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 1.25rem 0 auto;
    color: #fff;
}

.autoscop-topbar-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.autoscop-sidebar {
    width: 260px;
    flex: 0 0 260px;
    overflow-y: auto;
}

.autoscop-main {
    /* Flex items default to a content-based min-width, which stops a wide table's
       .table-responsive from scrolling internally and instead widens the whole shell. */
    min-width: 0;
}

/* Content cards (Orders, Kataloq, Hesabatlar, ...) — Bootstrap's default .card radius (6px)
   reads as sharp/square against Figma; match the .75rem radius used on other cards in the app. */
.autoscop-main .card {
    border-radius: .75rem;
}

.autoscop-sidebar .nav-link.active {
    background-color: #e8f5ee;
    border-radius: .375rem;
    color: #13bf73;
}

.autoscop-sidebar .nav-link svg {
    flex: 0 0 auto;
}

/* Account/Login — Figma node 10556:63605 */
.auth-card {
    width: 100%;
    max-width: 507px;
    border-radius: 1rem !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, .1) !important;
}

.auth-card-body {
    padding: 2rem !important;
}

.auth-field {
    margin-bottom: 1.25rem;
}

.brand-logo {
    display: block;
    height: 35px;
    width: auto;
    margin: 0 auto;
}

.auth-subtitle {
    font-family: "Inter", var(--bs-body-font-family);
    font-size: .9375rem;
    color: #6b7280;
}

.auth-label {
    font-family: "Inter", var(--bs-body-font-family);
    font-size: .875rem;
    font-weight: 500;
    color: #171717;
    margin-bottom: .5rem;
    display: inline-block;
}

.role-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.role-toggle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-toggle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    height: 68px;
    border: 2px solid #e1e1e1;
    border-radius: .8rem;
    color: #7e7e7e;
    cursor: pointer;
    font-family: "Inter", var(--bs-body-font-family);
    font-size: .765rem;
    font-weight: 500;
}

.role-toggle-option input:checked + .role-toggle-card {
    border-color: #13bf73;
    background-color: rgba(19, 191, 115, .04);
    color: #13bf73;
}

.role-toggle-option input:focus-visible + .role-toggle-card {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.input-icon-group {
    position: relative;
}

.input-icon-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7e7e7e;
    pointer-events: none;
}

.input-icon-group .form-control {
    height: 56px;
    padding-left: 3.25rem;
    background-color: #f7f7f7;
    border: 0;
    border-radius: 1rem;
    font-family: "Montserrat", var(--bs-body-font-family);
    font-size: 1rem;
    font-weight: 500;
}

.input-icon-group .form-control::placeholder {
    color: #7e7e7e;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    padding: .25rem;
    color: #7e7e7e;
    line-height: 0;
}

.auth-check-label {
    font-family: "Inter", var(--bs-body-font-family);
    font-size: .875rem;
    color: #6b7280;
}

.auth-forgot-link {
    font-family: "Inter", var(--bs-body-font-family);
    font-size: .875rem;
    font-weight: 500;
    color: #3b82f6;
}

/* One static color, always — no hover/focus/active/click state changes its color. */
.auth-submit {
    background-color: #89dfb9;
    border: 0;
    border-radius: 1rem;
    height: 56px;
    font-family: "Montserrat", var(--bs-body-font-family);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.auth-submit:hover, .auth-submit:focus, .auth-submit:active {
    background-color: #89dfb9;
    color: #fff;
    box-shadow: none;
}

/* Home/Index (Promo Kod Yoxla) — Figma node 10556:63537 */
.promo-lookup-card {
    width: 100%;
    max-width: 540px;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 1rem;
}

.promo-code-input {
    height: 48px;
    border-radius: 16px;
    background-color: var(--bs-tertiary-bg);
    border-color: transparent;
    padding-left: 1.25rem;
}

.promo-search-btn {
    height: 48px;
    padding: 0 1.5rem;
    border-radius: 16px;
    background-color: #13bf73;
    border: 0;
    color: #fff;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
}

.promo-search-btn:hover, .promo-search-btn:focus, .promo-search-btn:active {
    background-color: #13bf73;
    color: #fff;
    box-shadow: none;
}

.promo-info-banner {
    background-color: rgba(8, 79, 213, 0.08);
    border: 1px solid rgba(8, 79, 213, 0.2);
    color: #084fd5;
    border-radius: .25rem;
    padding: .5rem .75rem;
    font-size: .8125rem;
}

.promo-not-found-banner {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    border-radius: .25rem;
    padding: .5rem .75rem;
    font-size: .8125rem;
}

.promo-result-card {
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    padding: .75rem 1rem;
}

/* Orders/Index (Sifarişlər) — Figma node 10556:63424 */
.badge.status-badge-active,
.badge.status-badge-in-progress,
.badge.status-badge-completed,
.badge.status-badge-cancelled,
.badge.status-badge-pending {
    border-radius: 100px;
    font-weight: 500;
    font-size: .75rem;
    padding: .3rem .75rem;
}

/* Colors match the Figma export exactly (MuiTableCellRoot > Badge). */
.badge.status-badge-active { background-color: #edf6ff; color: #084fd5; border: 1px solid #d5e3ff; }
.badge.status-badge-in-progress { background-color: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.badge.status-badge-completed { background-color: #dcfce7; color: #016630; border: 1px solid #b9f8cf; }
.badge.status-badge-cancelled { background-color: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.badge.status-badge-pending { background-color: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 100px;
    border: 1px solid #ededed;
    background-color: #fff;
    color: #171717;
    font-size: .8125rem;
    font-weight: 500;
    padding: .5rem 1.1rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.filter-pill:hover {
    border-color: #d1d5db;
    color: #171717;
}

.filter-pill.filter-pill-active {
    background-color: #13bf73;
    border-color: #13bf73;
    color: #fff;
}

.status-filter-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    border-radius: 100px;
    padding: .5rem 2.25rem .5rem 1.1rem;
    font-size: .8125rem;
    font-weight: 500;
    color: #171717;
    background-color: #eeeeef;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .95rem center;
    background-size: 12px;
}

.table-search-icon {
    color: #9ca3af;
}

.orders-table th {
    background-color: #fbfbfb;
    font-weight: 600;
    font-size: .875rem;
    color: rgba(0, 0, 0, .87);
    border-bottom: 1px solid #e1e1e1;
    padding: .75rem;
}

.orders-table td {
    border-bottom-color: #eef0f2;
    padding-top: .7rem;
    padding-bottom: .7rem;
}

.orders-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Fixed, narrow columns matching the Figma export exactly - Müştəri/Avtomobil wrap onto two
   lines within their column rather than forcing the table wider (no text-nowrap on those two). */
.orders-table-fixed {
    table-layout: fixed;
}

.orders-table-fixed td {
    word-wrap: break-word;
}

/* Promo kod link — Figma shows plain colored text, no underline. */
.order-code-link {
    color: #084fd5;
    text-decoration: none;
}

.order-code-link:hover, .order-code-link:focus {
    color: #084fd5;
    text-decoration: none;
}

.orders-export-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .6rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

/* Catalog/Index (Kataloq) — Figma node 10556:62769 */
.catalog-info-banner {
    background-color: rgba(8, 79, 213, 0.08);
    border: 1px solid rgba(8, 79, 213, 0.2);
    color: #084fd5;
    border-radius: .5rem;
    padding: .6rem .9rem;
    font-size: .8125rem;
}

.catalog-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    max-width: 420px;
    padding: 0 .9rem;
    border: 1px solid #ececec;
    border-radius: .6rem;
    color: #9ca3af;
}

.catalog-search input {
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    padding: .55rem 0;
    font-size: .8125rem;
    color: #171717;
}

.catalog-section-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .875rem;
    color: #171717;
    padding-bottom: .75rem;
}

.report-group-count {
    font-weight: 400;
    font-size: .8125rem;
    color: #9ca3af;
}

.report-price {
    color: #084fd5;
    font-weight: 600;
}

/* Orders/Active (Aktiv Sifarişlər) — Figma node 10590:13192 */
.active-order-card {
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    padding: .9rem;
    height: 100%;
}

.promo-pill {
    background-color: #eff6ff;
    color: #084fd5;
    font-weight: 400;
    border-radius: 100px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #084fd5;
    display: inline-block;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orders/Details (Promo kod detallar) — Figma node 10556:63081 */
.order-action-btn {
    border-radius: 50rem;
    padding: .35rem .9rem;
    font-size: .8125rem;
}

/* Bootstrap's stock primary/success colors don't match this app's brand blue/green
   (used everywhere else — links, promo pill, sidebar, badges) — override to match. */
.order-action-btn.btn-primary {
    background-color: #084fd5;
    border-color: #084fd5;
}

.order-action-btn.btn-primary:hover,
.order-action-btn.btn-primary:focus,
.order-action-btn.btn-primary:active {
    background-color: #0642b0;
    border-color: #0642b0;
}

.order-action-btn.btn-outline-primary {
    color: #084fd5;
    border-color: #084fd5;
}

.order-action-btn.btn-outline-primary:hover,
.order-action-btn.btn-outline-primary:focus,
.order-action-btn.btn-outline-primary:active {
    background-color: #084fd5;
    border-color: #084fd5;
    color: #fff;
}

.order-action-btn.btn-success {
    background-color: #13bf73;
    border-color: #13bf73;
}

.order-action-btn.btn-success:hover,
.order-action-btn.btn-success:focus,
.order-action-btn.btn-success:active {
    background-color: #0fa863;
    border-color: #0fa863;
}

.mileage-badge {
    background-color: #084fd5;
    color: #fff;
}

.order-detail-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    background-color: #13bf73;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-code-pill {
    border: 1px dashed #084fd5;
    border-radius: 50rem;
    color: #084fd5;
    background-color: transparent;
    font-weight: 600;
    font-size: .9rem;
}

.edit-warning-banner {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    border-radius: .5rem;
    padding: .6rem .9rem;
    font-size: .8125rem;
}

.report-total-row {
    border-top: 1px dashed var(--bs-border-color);
    padding-top: .75rem;
}