/* =========================================================
   AVAZ DEPO — ÜMUMİ DİZAYN
   Responsivlik: desktop, planşet və mobil cihazlar
   ========================================================= */

/* Rənglər və ümumi ölçülər */
:root {
    --brand: #0f766e;
    --brand-dark: #115e59;
    --brand-light: #ccfbf1;
    --page-bg: #f4f7fb;
    --surface: #ffffff;
    --text: #172b3a;
    --text-muted: #738194;
    --border: #e3eaf0;
    --danger: #dc3545;
    --success: #15803d;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 8px rgba(20, 40, 60, 0.04);
    --shadow-md: 0 8px 28px rgba(20, 40, 60, 0.07);
}

/* Bütün elementlərin ölçüləri */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Səhifənin əsas görünüşü */
html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--page-bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Səhifəni ekran boyu uzat */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    padding-top: clamp(22px, 3vw, 38px);
    padding-bottom: clamp(36px, 5vw, 60px);
}

/* Məzmunun maksimum eni */
.app-container {
    width: 100%;
    max-width: 1480px;
    margin-right: auto;
    margin-left: auto;
    padding-right: clamp(14px, 2.5vw, 36px);
    padding-left: clamp(14px, 2.5vw, 36px);
}

/* Linklər */
a {
    color: var(--brand);
    text-decoration: none;
}

    a:hover {
        color: var(--brand-dark);
    }

/* =========================================================
   ÜST PANEL VƏ NAVİQASİYA
   ========================================================= */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.app-navbar {
    min-height: 82px;
    padding: 12px 0;
    background: transparent;
}

/* Loqo və brend */
.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 30px;
    padding: 0;
    color: var(--text) !important;
    white-space: normal;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), #14b8a6);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(15, 118, 110, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.35;
}

.brand-name {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15px;
}

/* Naviqasiya keçidləri */
.app-nav {
    align-items: center;
    gap: 6px;
}

    .app-nav .nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 10px 15px;
        border-radius: 10px;
        color: #526477;
        font-size: 14px;
        font-weight: 600;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

        .app-nav .nav-link:hover {
            background-color: #f0fdfa;
            color: var(--brand-dark);
        }

        .app-nav .nav-link.active {
            background-color: #e6f7f4;
            color: var(--brand-dark);
            font-weight: 700;
        }

.nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 19px;
    line-height: 1;
}

/* Sağ tərəfdəki status hissəsi */
.navbar-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: #ffffff;
}

.status-indicator {
    position: relative;
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px #dcfce7;
}

.navbar-status > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.status-title {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.status-subtitle {
    color: var(--text-muted);
    font-size: 11px;
}

/* Mobil menyu düyməsi */
.app-toggler {
    width: 44px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: #ffffff;
}

    .app-toggler:focus {
        box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
    }

/* =========================================================
   BAŞLIQLAR VƏ MƏTN
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
    font-weight: 750;
    letter-spacing: -0.35px;
    line-height: 1.3;
}

h1 {
    font-size: clamp(25px, 3vw, 34px);
}

h2 {
    font-size: clamp(22px, 2.5vw, 29px);
}

h3 {
    font-size: clamp(19px, 2vw, 23px);
}

p {
    overflow-wrap: break-word;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* =========================================================
   DÜYMƏLƏR
   ========================================================= */

.btn {
    min-height: 40px;
    padding: 9px 15px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 650;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

    .btn:focus-visible {
        outline: 3px solid rgba(15, 118, 110, 0.25);
        outline-offset: 2px;
    }

.btn-primary {
    border-color: var(--brand);
    background-color: var(--brand);
    color: #ffffff;
}

    .btn-primary:hover,
    .btn-primary:focus {
        border-color: var(--brand-dark);
        background-color: var(--brand-dark);
        color: #ffffff;
    }

.btn-success {
    border-color: #15803d;
    background-color: #15803d;
}

.btn-warning {
    border-color: #f2b84b;
    background-color: #f2b84b;
    color: #332300;
}

    .btn-warning:hover {
        border-color: #e4a72d;
        background-color: #e4a72d;
        color: #332300;
    }

.btn-danger {
    border-color: var(--danger);
    background-color: var(--danger);
}

.btn-secondary {
    border-color: #64748b;
    background-color: #64748b;
}

.btn-outline-secondary {
    border-color: #d5dee7;
    color: #526477;
}

    .btn-outline-secondary:hover {
        border-color: #c4d2dc;
        background-color: #edf2f6;
        color: var(--text);
    }

.btn-sm {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
}

/* =========================================================
   FORMALAR VƏ AXTARIŞ
   ========================================================= */

.form-label {
    display: block;
    margin-bottom: 7px;
    color: #34475a;
    font-size: 13px;
    font-weight: 700;
}

.form-control,
.form-select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d8e1e9;
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-control::placeholder {
        color: #9aa7b5;
        opacity: 1;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: #5bb9af;
        background-color: #ffffff;
        color: var(--text);
        box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
        outline: none;
    }

    .form-control:disabled,
    .form-select:disabled {
        background-color: #f1f5f9;
        cursor: not-allowed;
    }

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.form-text {
    color: var(--text-muted);
    font-size: 12px;
}

.text-danger,
.field-validation-error,
.validation-summary-errors {
    color: #c62828 !important;
    font-size: 12px;
}

.input-validation-error {
    border-color: #dc3545 !important;
}

.validation-summary-valid {
    display: none;
}

/* =========================================================
   CƏDVƏLLƏR
   ========================================================= */

/* Kiçik ekranlarda cədvəlin üfüqi sürüşdürülməsinə imkan verir */
.table-responsive {
    width: 100%;
    margin-bottom: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
}

    .table-responsive > .table {
        margin-bottom: 0;
    }

.table {
    min-width: 660px;
    vertical-align: middle;
    color: #34475a;
    font-size: 13px;
}

    .table > :not(caption) > * > * {
        padding: 14px 15px;
        border-bottom-color: #edf1f5;
    }

    .table thead th {
        background-color: #f1f6f8;
        color: #42556a;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        white-space: nowrap;
        vertical-align: middle;
    }

    .table thead.table-dark th {
        background-color: #183b42;
        border-color: #2d5057;
        color: #ffffff;
    }

    .table tbody td {
        vertical-align: middle;
    }

    .table tbody tr:last-child td {
        border-bottom: 0;
    }

    .table tbody tr:hover > * {
        background-color: #f7fbfb;
    }

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #fbfcfd;
}

.table .btn + .btn,
.table form + form {
    margin-left: 4px;
}

.table td:last-child {
    white-space: nowrap;
}

/* Stok etiketləri */
.badge {
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1px;
}

    .badge.bg-danger {
        background-color: #fee2e2 !important;
        color: #b91c1c !important;
    }

    .badge.bg-success {
        background-color: #dcfce7 !important;
        color: #166534 !important;
    }

/* =========================================================
   KARTLAR, ALERT-LƏR VƏ AYIRICILAR
   ========================================================= */

.card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
    background-color: #ffffff;
    font-weight: 700;
}

.card-body {
    padding: clamp(16px, 2vw, 24px);
}

.alert {
    padding: 13px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
}

.alert-success {
    border-color: #bbf7d0;
    background-color: #f0fdf4;
    color: #166534;
}

.alert-danger {
    border-color: #fecaca;
    background-color: #fef2f2;
    color: #991b1b;
}

.alert-warning {
    border-color: #fde68a;
    background-color: #fffbeb;
    color: #92400e;
}

hr {
    margin: 22px 0;
    border-color: var(--border);
    opacity: 1;
}

/* =========================================================
   FORM VƏ SƏHİFƏ MƏZMUNU
   ========================================================= */

/* Anbar səhifəsindəki başlıq sətiri */
.app-main h2 {
    margin-bottom: 20px;
}

/* Formların birbaşa yerləşdirildiyi sütun */
.app-main .row > .col-md-6 {
    min-width: 0;
}

/* Mobil ekranlarda əməliyyat formalarının ölçüsü */
.app-main form {
    min-width: 0;
}

.app-main .row.g-2 {
    align-items: center;
}

/* =========================================================
   ALT PANEL
   ========================================================= */

.app-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    background-color: #ffffff;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 78px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .footer-brand > span:last-child {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .footer-brand strong {
        color: var(--text);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

.footer-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    border-radius: 10px;
    background-color: #e6f7f4;
    color: var(--brand-dark);
    font-size: 17px;
    font-weight: 800;
}

.footer-caption,
.footer-copy {
    color: var(--text-muted);
    font-size: 11px;
}

.footer-copy {
    text-align: right;
}

/* =========================================================
   PLANŞETLƏR
   ========================================================= */

@media (max-width: 991.98px) {
    .app-navbar {
        min-height: 72px;
    }

    .app-brand {
        margin-right: 12px;
    }

    .navbar-collapse {
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

    .app-nav {
        align-items: stretch;
        gap: 4px;
    }

        .app-nav .nav-link {
            justify-content: flex-start;
            width: 100%;
            padding: 12px 14px;
        }

    .navbar-status {
        justify-content: flex-start;
        margin: 10px 0 2px;
        padding: 12px;
    }

    .app-main {
        padding-top: 25px;
    }
}

/* =========================================================
   TELEFONLAR
   ========================================================= */

@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .app-container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .app-navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand-mark {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 21px;
    }

    .app-brand {
        gap: 9px;
        margin-right: 8px;
    }

    .brand-name {
        font-size: 15px;
        letter-spacing: 0.35px;
    }

    .brand-subtitle {
        max-width: 190px;
        font-size: 10px;
    }

    .app-toggler {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .app-main {
        padding-top: 21px;
        padding-bottom: 35px;
    }

    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 19px;
    }

    .app-main h2 {
        margin-bottom: 16px;
    }

    /* Başlıqla düymə alt-alta yerləşsin */
    .app-main .d-flex.justify-content-between.align-items-center {
        align-items: flex-start !important;
        flex-wrap: wrap;
        gap: 12px;
    }

        .app-main .d-flex.justify-content-between.align-items-center > * {
            min-width: 0;
        }

    .btn {
        max-width: 100%;
        white-space: normal;
    }

    /* Axtarış sahələri bir-birinin altında */
    .app-main form.row.g-2 > div {
        width: 100%;
        max-width: 100%;
    }

    .app-main form.row.g-2 .btn {
        width: 100%;
    }

    .form-control,
    .form-select {
        font-size: 16px;
    }

    /* Cədvəl telefon ekranında öz daxilində sürüşsün */
    .table {
        min-width: 650px;
        font-size: 12px;
    }

        .table > :not(caption) > * > * {
            padding: 11px 12px;
        }

        .table .btn-sm {
            min-height: 34px;
            padding: 6px 9px;
        }

    /* Form düymələri sıxılmasın */
    .app-main form button[type="submit"] {
        margin-bottom: 5px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .footer-copy {
        text-align: left;
        line-height: 1.6;
    }
}

/* Çox dar ekranlar */
@media (max-width: 360px) {
    .app-container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .brand-name {
        font-size: 13px;
    }

    .brand-subtitle {
        max-width: 155px;
        font-size: 9px;
    }

    .brand-mark {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }
}

/* Hərəkətə həssaslığı azaltmaq istəyən istifadəçilər üçün */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* =========================================================
   AVAZ DEPO — LOGIN SƏHİFƏSİ
   ========================================================= */

.login-page {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient( circle at 15% 15%, rgba(20, 184, 166, 0.13), transparent 32% ), radial-gradient( circle at 85% 85%, rgba(15, 118, 110, 0.10), transparent 32% ), #f3f7fa;
}

.login-wrapper {
    width: 100%;
    max-width: 430px;
    margin: auto;
}

.login-card {
    padding: clamp(24px, 6vw, 38px);
    border: 1px solid #e3eaf0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 55px rgba(28, 55, 72, 0.09), 0 2px 8px rgba(28, 55, 72, 0.03);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

    .login-brand h1 {
        margin: 0;
        color: #172b3a;
        font-size: 21px;
        font-weight: 850;
        letter-spacing: 0.7px;
    }

    .login-brand p {
        margin: 4px 0 0;
        color: #738194;
        font-size: 12px;
    }

.login-divider {
    height: 1px;
    margin: 26px 0;
    background: #e8eef2;
}

.login-card h2 {
    margin-bottom: 9px;
    color: #172b3a;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-description {
    margin-bottom: 25px;
    color: #738194;
    font-size: 13px;
    line-height: 1.7;
}

.login-card .form-label {
    margin-bottom: 8px;
    color: #34475a;
    font-size: 13px;
    font-weight: 700;
}

.login-card .form-control {
    min-height: 48px;
    padding: 12px 14px;
    border-color: #dce5ec;
    border-radius: 10px;
    font-size: 14px;
}

    .login-card .form-control:focus {
        border-color: #0f766e;
        box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.10);
    }

.login-submit {
    width: 100%;
    min-height: 49px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: 0.2px;
}

    .login-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 16px rgba(15, 118, 110, 0.18);
    }

.login-error {
    margin-bottom: 16px;
}

    .login-error:not(.validation-summary-valid) {
        padding: 11px 13px;
        border: 1px solid #fecaca;
        border-radius: 9px;
        background: #fef2f2;
        color: #b91c1c;
        font-size: 13px;
    }

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 23px;
    color: #738194;
    font-size: 12px;
}

.login-security-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
}

.login-copyright {
    margin: 20px 0 0;
    color: #8492a2;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 480px) {
    .login-page {
        padding: 16px;
    }

    .login-card {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .login-brand h1 {
        font-size: 18px;
    }

    .login-divider {
        margin: 22px 0;
    }

    .login-card h2 {
        font-size: 24px;
    }
}
.logout-form {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

@media (max-width: 991.98px) {
    .logout-form {
        margin: 10px 0 2px;
    }
}
/* Satış və hesabat səhifələri */

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

    .page-heading h2 {
        margin-bottom: 6px;
    }

    .page-heading p {
        margin-bottom: 0;
    }

.sale-form-card,
.report-filter-card {
    max-width: 100%;
}

.sale-form-card {
    max-width: 760px;
}

.sale-notice {
    padding: 14px 16px;
    border: 1px solid #bce9df;
    border-radius: 10px;
    background: #f0fdfa;
    color: #285a55;
    font-size: 13px;
    line-height: 1.7;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

    .report-summary > div {
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-width: 0;
        padding: 20px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: #ffffff;
        box-shadow: var(--shadow-sm);
    }

.summary-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.report-summary strong {
    color: var(--brand-dark);
    font-size: clamp(19px, 2.5vw, 25px);
    overflow-wrap: anywhere;
}

.report-date,
.report-time {
    display: block;
}

.report-date {
    font-weight: 650;
    white-space: nowrap;
}

.report-time {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 12px;
}

.table tfoot th {
    padding-top: 17px;
    padding-bottom: 17px;
    border-top: 2px solid var(--border);
    background: #f0fdfa;
    color: var(--brand-dark);
    font-size: 13px;
}

@media (max-width: 575.98px) {
    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

        .page-heading > .btn {
            width: 100%;
        }

    .report-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

        .report-summary > div {
            padding: 16px;
        }

    .report-filter-card .card-body {
        padding: 15px;
    }

    .sale-form-card .card-body {
        padding: 18px;
    }

    .sale-form-card .d-flex .btn {
        flex: 1 1 100%;
    }
}
.page-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 575.98px) {
    .page-heading-actions {
        width: 100%;
    }

        .page-heading-actions .btn {
            flex: 1 1 100%;
            width: 100%;
        }
}