/* =====================================
   GLOBAL
===================================== */

* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #333333;
    background: #f4f6f9;
}


/* =====================================
   SIDEBAR
===================================== */

.sidebar{
    position: fixed;
    top: 0;
    left: 0;

    width: 240px;
    height: 100vh;

    padding: 18px 14px;

    background: #1f2937;
    overflow-y: auto;
}

.sidebar h2{
    margin:22px 0 38px;

    color:#fff;

    font-size:25px;
    font-weight:800;
    letter-spacing:.4px;
    text-align:center;
}

.sidebar a{
    display:flex;
    align-items:center;
    gap:10px;

    padding:12px 10px;
    margin:2px 0;

    color:#fff;
    text-decoration:none;

    border-radius:10px;

    font-size:17px;
    font-weight:500;

    transition:.2s;
}


.sidebar a:hover {
    background: #374151;
}

.sidebar a.active {
    background: #374151;
}


/* =====================================
   ÜMUMİ CONTENT
===================================== */

.content,
.dashboard-content,
.backup-content,
.reports-content,
.returned-page {
    width: calc(100% - 240px);
    min-height: 100vh;

    margin-left: 240px;
    padding: 30px;

    overflow-x: hidden;

    background: #f4f6f9;
}

.content h1,
.dashboard-content h1,
.backup-content h1,
.reports-content h1,
.returned-page h1 {
    margin-top: 0;
}


/* =====================================
   ÜMUMİ FORM ELEMENTLƏRİ
===================================== */

label {
    display: block;

    margin-top: 12px;
    margin-bottom: 6px;

    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;

    margin: 8px 0;
    padding: 12px;

    color: #111827;
    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 7px;

    font-size: 15px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.15);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

button {
    padding: 10px 18px;

    color: #ffffff;
    background: #2563eb;

    border: none;
    border-radius: 7px;

    font-weight: 600;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}

button:hover {
    background: #1d4ed8;
}

button:active {
    transform: translateY(1px);
}


/* =====================================
   ÜMUMİ KARTLAR
===================================== */

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    width: 250px;
    padding: 25px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.08);
}

.card h3 {
    margin-top: 0;
}

.card p {
    margin-bottom: 0;

    font-size: 28px;
    font-weight: bold;
}


/* =====================================
   ÜMUMİ FORM BOX
===================================== */

.form-box {
    margin-bottom: 25px;
    padding: 25px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.08);
}


/* =====================================
   ÜMUMİ CƏDVƏL
===================================== */

table {
    width: 100%;

    background: #ffffff;

    border-collapse: collapse;

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.08);
}

th {
    padding: 12px;

    color: #ffffff;
    background: #1f2937;

    text-align: center;
    vertical-align: middle;
}

td {
    padding: 12px;

    background: #ffffff;

    border-bottom: 1px solid #e2e8f0;

    text-align: center;
    vertical-align: middle;
}

tbody tr:hover td {
    background: #f8fafc;
}


/* =====================================
   MALİYYƏ CƏDVƏLİ
===================================== */

.sales-table-wrapper {
    width: 100%;

    overflow-x: auto;

    background: #ffffff;

    border-radius: 8px;

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.08);
}

.sales-table {
    width: 100%;
    min-width: 1120px;

    margin: 0;

    border-collapse: collapse;
    table-layout: fixed;

    box-shadow: none;
}

.sales-table thead,
.sales-table thead tr {
    width: 100%;
    background: #1f2937;
}

.sales-table th {
    padding: 15px 7px;

    color: #ffffff;
    background: #1f2937;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;

    text-align: center;
    vertical-align: middle;
    white-space: normal;
}

.sales-table td {
    padding: 14px 7px;

    background: #ffffff;

    border-bottom: 1px solid #e2e8f0;

    font-size: 14px;
    line-height: 1.35;

    text-align: center;
    vertical-align: middle;

    overflow-wrap: break-word;
}

.sales-table th:nth-child(1),
.sales-table td:nth-child(1) {
    width: 160px;
}

.sales-table th:nth-child(2),
.sales-table td:nth-child(2) {
    width: 105px;
}

.sales-table th:nth-child(3),
.sales-table td:nth-child(3) {
    width: 78px;
}

.sales-table th:nth-child(4),
.sales-table td:nth-child(4) {
    width: 120px;
}

.sales-table th:nth-child(5),
.sales-table td:nth-child(5) {
    width: 105px;
}

.sales-table th:nth-child(6),
.sales-table td:nth-child(6) {
    width: 105px;
}

.sales-table th:nth-child(7),
.sales-table td:nth-child(7) {
    width: 135px;
}

.sales-table th:nth-child(8),
.sales-table td:nth-child(8) {
    width: 120px;
}

.sales-table th:nth-child(9),
.sales-table td:nth-child(9) {
    width: 100px;
}

.sales-table th:nth-child(10),
.sales-table td:nth-child(10) {
    width: 125px;
    min-width: 125px;
}

.sales-table td:nth-child(2),
.sales-table td:nth-child(3),
.sales-table td:nth-child(4),
.sales-table td:nth-child(5),
.sales-table td:nth-child(6),
.sales-table td:nth-child(9),
.sales-table td:nth-child(10) {
    white-space: nowrap;
}

.sales-table td:nth-child(10) button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 42px;

    margin: 2px;
    padding: 0;

    border-radius: 6px;
}

.sales-table td:nth-child(10) button:nth-child(2) {
    background: #dc2626;
}

.sales-table td:nth-child(10) button:nth-child(2):hover {
    background: #b91c1c;
}

.sales-table td[colspan="10"] {
    height: 140px;

    color: #64748b;

    font-size: 17px;
    font-weight: 600;
}


/* =====================================
   QEYD SAHƏSİ
===================================== */

label[for="note"] {
    margin-top: 20px;
}

#note {
    width: 100%;
    min-height: 110px;

    padding: 12px 15px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    font-size: 15px;

    resize: vertical;
}


/* =====================================
   DASHBOARD
===================================== */

.dashboard-content {
    width: calc(100% - 240px);
    margin-left: 240px;
    padding: 30px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 28px;
}

.dashboard-header h1 {
    margin: 0;

    color: #172033;

    font-size: 32px;
}

.dashboard-header p {
    margin: 6px 0 0;

    color: #6b7280;
}

.dashboard-section {
    width: 100%;
    margin-top: 32px;
}

.dashboard-section h2 {
    margin: 0 0 18px;

    color: #172033;

    font-size: 22px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 18px;

    width: 100%;
}

.dashboard-card {
    display: flex;
    align-items: center;
    gap: 16px;

    min-width: 0;
    min-height: 120px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.06);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    flex-shrink: 0;

    background: #eff6ff;

    border-radius: 12px;

    font-size: 26px;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;

    min-width: 0;
}

.card-info span {
    color: #6b7280;

    font-size: 14px;
}

.card-info strong {
    color: #172033;

    font-size: 25px;
}

.warning-card {
    border-left: 5px solid #f59e0b;
}

.danger-card {
    border-left: 5px solid #dc2626;
}

.success-card {
    border-left: 5px solid #16a34a;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 18px;
}

.section-title-row h2 {
    margin: 0;
}

.dashboard-link {
    color: #2563eb;

    font-weight: 600;
    text-decoration: none;
}

.dashboard-link:hover {
    text-decoration: underline;
}

.table-wrapper {
    width: 100%;

    overflow-x: auto;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.05);
}

.dashboard-table {
    width: 100%;
    min-width: 900px;

    border-collapse: collapse;

    box-shadow: none;
}

.dashboard-table th,
.dashboard-table td {
    padding: 15px 16px;

    border-bottom: 1px solid #e5e7eb;

    text-align: left;
}

.dashboard-table th {
    color: #374151;
    background: #f8fafc;

    font-size: 14px;
}

.dashboard-table td {
    color: #4b5563;
    background: #ffffff;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-table tbody tr:hover td {
    background: #f8fafc;
}


/* =====================================
   DASHBOARD GERİ QAYTARILANLAR
===================================== */

.dashboard-returned-section {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 32px 0 0;
    padding: 22px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    box-shadow:
        0 8px 28px
        rgba(15, 23, 42, 0.05);
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    width: 100%;
    margin-bottom: 18px;
}

.dashboard-section-header h2 {
    margin: 0 0 5px;

    color: #0f172a;

    font-size: 20px;
}

.dashboard-section-header p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
}

.dashboard-section-header a {
    flex-shrink: 0;

    color: #2563eb;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-section-header a:hover {
    text-decoration: underline;
}

.dashboard-returned-list {
    display: grid;
    gap: 10px;

    width: 100%;
    max-width: 100%;
}

.dashboard-returned-item {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto;

    align-items: center;
    gap: 14px;

    width: 100%;
    min-width: 0;

    padding: 14px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.dashboard-returned-product {
    min-width: 0;
}

.dashboard-returned-product strong {
    display: block;

    overflow: hidden;

    color: #0f172a;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-returned-product small {
    display: block;

    margin-top: 4px;

    overflow: hidden;

    color: #64748b;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-returned-quantity {
    min-width: 66px;

    padding: 7px 10px;

    color: #b91c1c;
    background: #fee2e2;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.dashboard-returned-date {
    color: #475569;

    font-size: 13px;
    white-space: nowrap;
}

.dashboard-returned-empty {
    padding: 28px 15px;

    color: #64748b;

    text-align: center;
}


/* =====================================
   SATIŞ QƏBZİ
===================================== */

.receipt-modal {
    display: none;

    position: fixed;
    inset: 0;
    z-index: 9999;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.65);
}

.receipt-modal.active {
    display: flex;
}

.receipt-modal-content {
    width: 100%;
    max-width: 460px;
    max-height: 95vh;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 25px 60px
        rgba(0, 0, 0, 0.25);
}

.receipt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding: 14px;

    border-bottom: 1px solid #e5e7eb;
}

.receipt-actions button {
    padding: 10px 16px;

    color: #ffffff;
    background: #2563eb;

    border: none;
    border-radius: 8px;
}

.receipt-actions button:hover {
    opacity: 0.9;
}

.receipt-close-button {
    background: #dc2626 !important;
}

.receipt-area {
    padding: 28px;

    color: #111827;
    background: #ffffff;
}

.receipt-header {
    text-align: center;
}

.receipt-header h2 {
    margin: 0 0 8px;

    font-size: 24px;
}

.receipt-header p {
    margin: 4px 0;

    color: #4b5563;

    font-size: 14px;
}

.receipt-divider {
    margin: 18px 0;

    border-top: 1px dashed #9ca3af;
}

.receipt-info {
    display: flex;
    flex-direction: column;
    gap: 8px;

    font-size: 14px;
}

.receipt-info div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.receipt-table {
    width: 100%;

    border-collapse: collapse;

    box-shadow: none;
}

.receipt-table th,
.receipt-table td {
    padding: 10px 5px;

    border-bottom: 1px solid #e5e7eb;

    font-size: 13px;
    text-align: left;
}

.receipt-table th {
    color: #111827;
    background: #ffffff;
}

.receipt-table th:nth-child(2),
.receipt-table td:nth-child(2) {
    text-align: center;
}

.receipt-table th:nth-child(3),
.receipt-table td:nth-child(3),
.receipt-table th:nth-child(4),
.receipt-table td:nth-child(4) {
    text-align: right;
}

.receipt-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.receipt-summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.receipt-summary div:first-child {
    font-size: 18px;
}

.receipt-footer {
    text-align: center;

    font-size: 14px;
}


/* =====================================
   BACKUP / RESTORE
===================================== */

.backup-content {
    width: calc(100% - 240px);
    margin-left: 240px;
    padding: 30px;
}

.backup-header {
    margin-bottom: 30px;
}

.backup-header h1 {
    margin: 0 0 8px;

    color: #0f172a;

    font-size: 32px;
}

.backup-header p {
    margin: 0;

    color: #64748b;
}

.backup-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 24px;
}

.backup-card {
    min-width: 0;
    padding: 28px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(15, 23, 42, 0.06);
}

.backup-card h2 {
    margin: 16px 0 10px;

    color: #0f172a;
}

.backup-card p {
    min-height: 70px;

    margin: 0 0 22px;

    color: #64748b;

    line-height: 1.6;
}

.backup-icon {
    font-size: 42px;
}

.backup-button,
.restore-button,
.danger-button {
    width: 100%;

    padding: 13px 18px;

    color: #ffffff;

    border: none;
    border-radius: 10px;

    font-weight: 600;
}

.backup-button {
    background: #2563eb;
}

.restore-button {
    background: #059669;
}

.danger-button {
    background: #dc2626;
}

.backup-button:hover,
.restore-button:hover,
.danger-button:hover {
    opacity: 0.9;
}

.selected-backup-file {
    min-height: auto !important;

    margin: 14px 0 0 !important;

    color: #334155 !important;

    font-size: 13px;

    word-break: break-word;
}

.backup-info-card {
    margin-top: 24px;
    padding: 28px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(15, 23, 42, 0.06);
}

.backup-info-card h2 {
    margin: 0 0 22px;

    color: #0f172a;
}

.backup-stats {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 16px;
}

.backup-stats div {
    min-width: 0;
    padding: 18px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.backup-stats span {
    display: block;

    margin-bottom: 8px;

    color: #64748b;

    font-size: 13px;
}

.backup-stats strong {
    color: #0f172a;

    font-size: 22px;
}


/* =====================================
   HESABATLAR
===================================== */

.reports-content {
    width: calc(100% - 240px);
    margin-left: 240px;
    padding: 30px;
}

.reports-header {
    display: flex;
    position: relative;

    width: 100%;

    margin: 0 0 26px;
}

.reports-header h1 {
    display: block;

    margin: 0 0 8px;

    color: #0f172a;
}

.reports-header p {
    margin: 0;

    color: #64748b;
}

.reports-table {
    color: #334155;
    background: #ffffff;
}

.reports-table th {
    color: #475569;
    background: #f8fafc;
}

.reports-table td {
    color: #334155;
    background: #ffffff;
}


/* =====================================
   BİLDİRİŞ SİSTEMİ
===================================== */

.notification-menu-link {
    position: relative;
}

.notification-badge {
    display: none;
    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;

    margin-left: auto;
    padding: 0 5px;

    color: #ffffff;
    background: #dc2626;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 700;
}

.notification-overlay {
    position: fixed;
    inset: 0;
    z-index: 1998;

    visibility: hidden;

    background: rgba(15, 23, 42, 0.45);

    opacity: 0;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.notification-overlay.open {
    visibility: visible;
    opacity: 1;
}

.notification-panel {
    position: fixed;
    top: 0;
    right: -440px;
    z-index: 1999;

    width: min(420px, 100%);
    height: 100vh;

    overflow-y: auto;

    background: #ffffff;

    box-shadow:
        -10px 0 35px
        rgba(15, 23, 42, 0.18);

    transition: right 0.3s ease;
}

.notification-panel.open {
    right: 0;
}

.notification-panel-header {
    position: sticky;
    top: 0;
    z-index: 2;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 24px;

    background: #ffffff;

    border-bottom: 1px solid #e2e8f0;
}

.notification-panel-header h2 {
    margin: 0 0 6px;

    color: #0f172a;

    font-size: 24px;
}

.notification-panel-header p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
}

.notification-close-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    flex-shrink: 0;

    padding: 0;

    color: #475569;
    background: #f1f5f9;

    border: none;
    border-radius: 50%;

    font-size: 25px;
    line-height: 1;
}

.notification-close-button:hover {
    background: #e2e8f0;
}

.notification-actions {
    display: flex;
    gap: 10px;

    padding: 16px 24px;

    border-bottom: 1px solid #e2e8f0;
}

.notification-actions button {
    flex: 1;

    padding: 10px 12px;

    color: #334155;
    background: #f1f5f9;

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    font-weight: 600;
}

.notification-actions button:hover {
    background: #e2e8f0;
}

.notification-list {
    padding: 16px;
}

.notification-item {
    display: flex;
    gap: 14px;

    margin-bottom: 12px;
    padding: 16px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-left-width: 5px;
    border-radius: 12px;
}

.notification-danger {
    border-left-color: #dc2626;
}

.notification-warning {
    border-left-color: #f59e0b;
}

.notification-info {
    border-left-color: #2563eb;
}

.notification-read {
    opacity: 0.65;
}

.notification-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    flex-shrink: 0;

    background: #f8fafc;

    border-radius: 50%;

    font-size: 21px;
}

.notification-item-content {
    min-width: 0;
    flex: 1;
}

.notification-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-item-title strong {
    color: #0f172a;

    font-size: 14px;
}

.notification-new-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;

    background: #2563eb;

    border-radius: 50%;
}

.notification-item-content p {
    margin: 7px 0 12px;

    color: #64748b;

    font-size: 13px;
    line-height: 1.5;
}

.notification-item-footer {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notification-item-footer a,
.notification-item-footer button {
    padding: 0;

    color: #2563eb;
    background: none;

    border: none;

    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.notification-empty {
    padding: 50px 20px;

    color: #64748b;

    text-align: center;
}

.notification-empty span {
    display: block;

    margin-bottom: 12px;

    font-size: 42px;
}

.notification-empty strong {
    display: block;

    margin-bottom: 7px;

    color: #0f172a;
}

.notification-empty p {
    margin: 0;
}


/* =====================================
   GERİ QAYTARILANLAR SƏHİFƏSİ
===================================== */

.returned-page {
    width: calc(100% - 240px);
    margin-left: 240px;
    padding: 30px;
}

.returned-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 24px;
}

.returned-page-header h1 {
    margin: 0 0 7px;

    color: #0f172a;

    font-size: 30px;
    line-height: 1.2;
}

.returned-page-header p {
    margin: 0;

    color: #64748b;
}

.returned-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 18px;

    width: 100%;
    margin-bottom: 24px;
}

.returned-summary-card {
    min-width: 0;
    padding: 22px 24px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.05);
}

.returned-summary-card span {
    display: block;

    margin-bottom: 10px;

    color: #64748b;

    font-size: 14px;
    font-weight: 700;
}

.returned-summary-card strong {
    display: block;

    margin-bottom: 6px;

    color: #0f172a;

    font-size: 30px;
    line-height: 1;
}

.returned-summary-card small {
    color: #64748b;

    font-size: 13px;
}

.returned-form-section,
.returned-table-section {
    width: 100%;
    max-width: 100%;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow:
        0 8px 28px
        rgba(15, 23, 42, 0.05);
}

.returned-form-section {
    margin-bottom: 24px;
    padding: 26px;

    overflow: hidden;
}

.returned-section-header {
    margin-bottom: 22px;
}

.returned-section-header h2 {
    margin: 0 0 6px;

    color: #0f172a;

    font-size: 22px;
}

.returned-section-header p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
}

.returned-form-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 18px;

    width: 100%;
}

.returned-form-group {
    width: 100%;
    min-width: 0;
}

.returned-full-width {
    grid-column: 1 / -1;
}

.returned-form-group label {
    display: block;

    margin: 0 0 8px;

    color: #0f172a;

    font-size: 14px;
    font-weight: 700;
}

.returned-form-group input,
.returned-form-group select,
.returned-form-group textarea {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0;

    color: #0f172a;
    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

.returned-form-group input,
.returned-form-group select {
    min-height: 46px;

    padding: 0 13px;
}

.returned-form-group textarea {
    min-height: 105px;

    padding: 13px;

    resize: vertical;
}

.returned-form-group input:focus,
.returned-form-group select:focus,
.returned-form-group textarea:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.13);
}

.returned-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 20px;
}

.returned-save-button,
.returned-cancel-button,
.returned-edit-button,
.returned-delete-button {
    border: none;
    border-radius: 9px;

    font-weight: 700;
}

.returned-save-button,
.returned-cancel-button {
    min-height: 44px;

    padding: 0 22px;
}

.returned-save-button {
    color: #ffffff;
    background: #2563eb;
}

.returned-save-button:hover {
    background: #1d4ed8;
}

.returned-cancel-button {
    color: #334155;
    background: #e2e8f0;
}

.returned-cancel-button:hover {
    background: #cbd5e1;
}

.returned-table-section {
    overflow: hidden;
}

.returned-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 18px;

    border-bottom: 1px solid #e2e8f0;
}

.returned-search-wrapper {
    width: 100%;
    max-width: 520px;
}

.returned-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.returned-toolbar input,
.returned-toolbar select {
    width: 100%;
    min-height: 44px;

    margin: 0;
    padding: 0 12px;

    color: #0f172a;
    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

.returned-filter-wrapper select {
    min-width: 165px;
}

.returned-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.returned-table {
    width: 100%;
    min-width: 1000px;

    margin: 0;

    border-collapse: collapse;

    box-shadow: none;
}

.returned-table th,
.returned-table td {
    padding: 15px 16px;

    border-bottom: 1px solid #e2e8f0;

    text-align: left;
    vertical-align: middle;
}

.returned-table th {
    color: #475569;
    background: #f8fafc;

    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;
}

.returned-table td {
    color: #334155;
    background: #ffffff;

    font-size: 14px;
}

.returned-table tbody tr:hover td {
    background: #f8fafc;
}

.returned-product-name {
    display: block;

    color: #0f172a;

    font-weight: 700;
}

.returned-product-code {
    display: block;

    margin-top: 4px;

    color: #64748b;

    font-size: 12px;
}

.returned-quantity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 30px;

    padding: 0 10px;

    color: #b91c1c;
    background: #fee2e2;

    border-radius: 999px;

    font-weight: 800;
}

.returned-user-name {
    display: inline-flex;
    align-items: center;

    min-height: 29px;

    padding: 0 10px;

    color: #0369a1;
    background: #e0f2fe;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
}

.returned-actions {
    display: flex;
    align-items: center;
    gap: 7px;

    white-space: nowrap;
}

.returned-edit-button,
.returned-delete-button {
    min-height: 35px;

    padding: 0 11px;

    font-size: 13px;
}

.returned-edit-button {
    color: #1d4ed8;
    background: #dbeafe;
}

.returned-edit-button:hover {
    background: #bfdbfe;
}

.returned-delete-button {
    color: #dc2626;
    background: #fee2e2;
}

.returned-delete-button:hover {
    color: #b91c1c;
    background: #fecaca;
}

.returned-empty-state {
    padding: 50px 20px !important;

    color: #64748b !important;

    text-align: center !important;
}

.returned-empty-icon {
    display: block;

    margin-bottom: 10px;

    font-size: 42px;
}


/* =====================================
   RESPONSIVE — 1100PX
===================================== */

@media (max-width: 1100px) {

    .returned-summary-grid,
    .returned-form-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* =====================================
   RESPONSIVE — 1000PX
===================================== */

@media (max-width: 1000px) {

    .backup-grid {
        grid-template-columns: 1fr;
    }

    .backup-stats {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* =====================================
   RESPONSIVE — 900PX
===================================== */

@media (max-width: 900px) {

    .sidebar {
        position: relative;

        width: 100%;
        height: auto;
    }

    .content,
    .dashboard-content,
    .backup-content,
    .reports-content,
    .returned-page {
        width: 100%;
        min-height: auto;

        margin-left: 0;
        padding: 20px;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =====================================
   RESPONSIVE — 768PX
===================================== */

@media (max-width: 768px) {

    .content,
    .dashboard-content,
    .backup-content,
    .reports-content,
    .returned-page {
        padding: 18px;
    }

    .cards {
        flex-direction: column;
    }

    .card {
        width: 100%;
    }

    .dashboard-header h1,
    .backup-header h1 {
        font-size: 26px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 105px;
    }

    .dashboard-returned-section {
        margin-top: 24px;
        padding: 18px;
    }

    .dashboard-section-header {
        align-items: flex-start;
    }

    .dashboard-returned-item {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }

    .dashboard-returned-date {
        grid-column: 1 / -1;
    }

    .returned-summary-grid,
    .returned-form-grid {
        grid-template-columns: 1fr;
    }

    .returned-full-width {
        grid-column: auto;
    }

    .returned-form-section {
        padding: 20px;
    }

    .returned-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .returned-search-wrapper {
        max-width: none;
    }

    .returned-filter-wrapper {
        align-items: stretch;
        flex-direction: column;
    }

    .returned-filter-wrapper select {
        min-width: 0;
    }

}


/* =====================================
   RESPONSIVE — 600PX
===================================== */

@media (max-width: 600px) {

    .backup-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-section-header {
        flex-direction: column;
    }

}


/* =====================================
   RESPONSIVE — 500PX
===================================== */

@media (max-width: 500px) {

    .notification-panel {
        width: 100%;
    }

}


/* =====================================
   ÇAP
===================================== */

@media print {

    body * {
        visibility: hidden;
    }

    #receiptArea,
    #receiptArea * {
        visibility: visible;
    }

    #receiptArea {
        position: absolute;
        top: 0;
        left: 0;

        width: 100%;
        padding: 0;
    }

    .no-print {
        display: none !important;
    }

}

/* =====================================
   DASHBOARD STATİSTİKA SIRALARI
===================================== */

.dashboard-top-stats {
    display: grid;
    gap: 22px;
    width: 100%;
}

.dashboard-stats-row {
    display: grid;
    gap: 22px;
    width: 100%;
}

.dashboard-stats-row-four {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
}

.dashboard-stats-row-three {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}

.dashboard-stats-row .dashboard-card {
    width: 100%;
    min-width: 0;
}


/* PLANŞET */

@media (max-width: 1200px) {

    .dashboard-stats-row-four {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .dashboard-stats-row-three {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* MOBİL */

@media (max-width: 700px) {

    .dashboard-stats-row-four,
    .dashboard-stats-row-three {
        grid-template-columns: 1fr;
    }

}

.dashboard-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:30px;
    margin-bottom:32px;
}

.dashboard-header h1{
    margin:0 0 5px;
}

.dashboard-header p{
    margin:0;
}

.world-clock-wrapper{
    display:flex;
    align-items:stretch;
    justify-content:flex-end;
    gap:14px;
}

.world-clock-card{
    min-width:210px;
    padding:14px 18px;

    background:#ffffff;
    border:1px solid #e2e6eb;
    border-radius:14px;

    box-shadow:0 8px 22px rgba(15, 23, 42, 0.07);
}

.clock-country{
    color:#64748b;
    font-size:13px;
    font-weight:600;
    margin-bottom:3px;
}

.clock-city{
    color:#334155;
    font-size:15px;
    font-weight:700;
    margin-bottom:7px;
}

.clock-time{
    color:#0f172a;
    font-size:27px;
    font-weight:800;
    letter-spacing:1px;
    line-height:1.1;
}

.clock-date{
    color:#64748b;
    font-size:13px;
    font-weight:500;
    margin-top:6px;
}

@media(max-width:1000px){

    .dashboard-header{
        flex-direction:column;
    }

    .world-clock-wrapper{
        width:100%;
        justify-content:flex-start;
        flex-wrap:wrap;
    }
}

@media(max-width:600px){

    .world-clock-wrapper{
        flex-direction:column;
    }

    .world-clock-card{
        width:100%;
        min-width:0;
    }
}

/* =====================================
   DASHBOARD PEŞƏKAR ANALİTİKA
===================================== */

.dashboard-analytics-grid{
    display:grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(300px, 1fr);

    gap:22px;

    width:100%;
    margin-top:32px;
}

.dashboard-products-grid{
    display:grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:22px;

    width:100%;
    margin-top:22px;
}

.dashboard-analytics-card,
.dashboard-list-card{
    min-width:0;
    padding:22px;

    background:#ffffff;

    border:1px solid #e2e8f0;
    border-radius:16px;

    box-shadow:
        0 8px 28px
        rgba(15, 23, 42, 0.05);
}

.dashboard-analytics-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;

    margin-bottom:22px;
}

.dashboard-analytics-header h2{
    margin:0 0 6px;

    color:#0f172a;

    font-size:20px;
}

.dashboard-analytics-header p{
    margin:0;

    color:#64748b;

    font-size:13px;
}

.dashboard-analytics-icon{
    display:flex;
    align-items:center;
    justify-content:center;

    width:44px;
    height:44px;
    flex-shrink:0;

    background:#eff6ff;

    border-radius:12px;

    font-size:22px;
}


/* AYLIQ SATIŞ QRAFİKİ */

.dashboard-monthly-chart{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;

    min-height:280px;
    padding-top:22px;
}

.dashboard-month-item{
    display:flex;
    flex:1;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;

    min-width:0;
    height:250px;
}

.dashboard-month-value{
    margin-bottom:8px;

    color:#334155;

    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}

.dashboard-month-bar-wrapper{
    display:flex;
    align-items:flex-end;

    width:100%;
    max-width:58px;
    height:190px;

    overflow:hidden;

    background:#f1f5f9;

    border-radius:10px 10px 5px 5px;
}

.dashboard-month-bar{
    width:100%;
    min-height:4px;

    background:
        linear-gradient(
            180deg,
            #3b82f6,
            #2563eb
        );

    border-radius:10px 10px 5px 5px;

    transition:height .4s ease;
}

.dashboard-month-label{
    margin-top:10px;

    color:#64748b;

    font-size:12px;
    font-weight:700;
    text-align:center;
}


/* ÖDƏNİŞ QRAFİKİ */

.dashboard-payment-content{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:25px;
}

.dashboard-payment-donut{
    display:flex;
    align-items:center;
    justify-content:center;

    width:180px;
    height:180px;

    background:
        conic-gradient(
            #22c55e 0deg 120deg,
            #3b82f6 120deg 240deg,
            #f59e0b 240deg 360deg
        );

    border-radius:50%;
}

.dashboard-payment-center{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;

    width:112px;
    height:112px;

    background:#ffffff;

    border-radius:50%;

    box-shadow:
        inset 0 0 0 1px
        #e2e8f0;
}

.dashboard-payment-center strong{
    color:#0f172a;

    font-size:28px;
}

.dashboard-payment-center span{
    margin-top:3px;

    color:#64748b;

    font-size:12px;
}

.dashboard-payment-legend{
    display:grid;
    gap:12px;

    width:100%;
}

.dashboard-payment-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;

    padding:11px 13px;

    background:#f8fafc;

    border:1px solid #e2e8f0;
    border-radius:10px;

    color:#475569;

    font-size:14px;
}

.dashboard-payment-row > div{
    display:flex;
    align-items:center;
    gap:9px;
}

.dashboard-payment-row strong{
    color:#0f172a;
}

.payment-dot{
    display:inline-block;

    width:11px;
    height:11px;

    border-radius:50%;
}

.payment-cash{
    background:#22c55e;
}

.payment-card{
    background:#3b82f6;
}

.payment-credit{
    background:#f59e0b;
}


/* TOP VƏ AZ QALAN MƏHSULLAR */

.dashboard-product-list{
    display:grid;
    gap:10px;
}

.dashboard-product-list-item{
    display:grid;
    grid-template-columns:
        36px
        minmax(0, 1fr)
        auto;

    align-items:center;
    gap:12px;

    padding:13px;

    background:#f8fafc;

    border:1px solid #e2e8f0;
    border-radius:11px;
}

.dashboard-product-rank{
    display:flex;
    align-items:center;
    justify-content:center;

    width:34px;
    height:34px;

    color:#1d4ed8;
    background:#dbeafe;

    border-radius:9px;

    font-size:13px;
    font-weight:800;
}

.dashboard-product-details{
    min-width:0;
}

.dashboard-product-details strong{
    display:block;

    overflow:hidden;

    color:#0f172a;

    font-size:14px;

    text-overflow:ellipsis;
    white-space:nowrap;
}

.dashboard-product-details span{
    display:block;

    margin-top:4px;

    color:#64748b;

    font-size:12px;
}

.dashboard-product-quantity{
    min-width:62px;
    padding:7px 10px;

    color:#1d4ed8;
    background:#dbeafe;

    border-radius:999px;

    font-size:12px;
    font-weight:800;
    text-align:center;
    white-space:nowrap;
}

.dashboard-product-quantity.low{
    color:#b45309;
    background:#fef3c7;
}

.dashboard-product-quantity.empty{
    color:#b91c1c;
    background:#fee2e2;
}

.dashboard-empty-state{
    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;
    min-height:130px;
    padding:25px;

    color:#64748b;

    text-align:center;
}


/* RESPONSIVE */

@media(max-width:1200px){

    .dashboard-analytics-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:900px){

    .dashboard-products-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:650px){

    .dashboard-monthly-chart{
        gap:7px;
        overflow-x:auto;
    }

    .dashboard-month-item{
        min-width:55px;
    }

    .dashboard-analytics-card,
    .dashboard-list-card{
        padding:17px;
    }

}

/* =====================================
   DASHBOARD PEŞƏKAR YENİ DÜZÜLÜŞ
===================================== */

.dashboard-analytics-row {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    align-items: stretch;
    gap: 22px;

    width: 100%;
    margin-top: 30px;
}

.dashboard-products-row {
    margin-top: 22px;
}


/* ƏSAS ANALİTİKA KARTI */

.dashboard-analytics-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    min-height: 430px;

    padding: 24px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(15, 23, 42, 0.06);
}


/* KART BAŞLIĞI */

.dashboard-analytics-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;

    width: 100%;
    margin-bottom: 24px;
}

.dashboard-analytics-title {
    min-width: 0;
}

.dashboard-analytics-title h2 {
    margin: 0 0 7px;

    color: #0f172a;

    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.dashboard-analytics-title p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.5;
}

.dashboard-analytics-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    flex-shrink: 0;

    background: #eff6ff;

    border-radius: 11px;

    font-size: 20px;
}


/* =====================================
   AYLIQ SATIŞ QRAFİKİ
===================================== */

.dashboard-monthly-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;

    width: 100%;
    min-width: 0;
    min-height: 300px;
    flex: 1;

    padding: 15px 5px 0;
}

.dashboard-month-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    min-width: 45px;
    height: 270px;
}

.dashboard-month-value {
    display: block;

    width: 100%;
    min-height: 20px;
    margin-bottom: 8px;

    overflow: hidden;

    color: #475569;

    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-month-bar-wrapper {
    display: flex;
    align-items: flex-end;

    width: 100%;
    max-width: 54px;
    height: 205px;

    overflow: hidden;

    background: #f1f5f9;

    border-radius: 10px 10px 5px 5px;
}

.dashboard-month-bar {
    width: 100%;
    min-height: 5px;

    background:
        linear-gradient(
            180deg,
            #60a5fa,
            #2563eb
        );

    border-radius: 10px 10px 5px 5px;

    transition:
        height 0.35s ease,
        opacity 0.2s ease;
}

.dashboard-month-bar:hover {
    opacity: 0.82;
}

.dashboard-month-label {
    margin-top: 10px;

    color: #64748b;

    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-transform: capitalize;
}


/* =====================================
   ÖDƏNİŞ ÜSULLARI
===================================== */

.dashboard-payment-layout {
    display: grid;
    grid-template-columns:
        minmax(180px, 0.8fr)
        minmax(220px, 1.2fr);

    align-items: center;
    gap: 32px;

    width: 100%;
    flex: 1;
}

.dashboard-payment-donut {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 165px;
    height: 165px;

    margin: 0 auto;

    background:
        conic-gradient(
            #22c55e 0deg 120deg,
            #3b82f6 120deg 240deg,
            #f59e0b 240deg 360deg
        );

    border-radius: 50%;
}

.dashboard-payment-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    width: 103px;
    height: 103px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 50%;

    box-shadow:
        0 5px 20px
        rgba(15, 23, 42, 0.08);
}

.dashboard-payment-center strong {
    color: #0f172a;

    font-size: 27px;
    font-weight: 800;
    line-height: 1;
}

.dashboard-payment-center span {
    margin-top: 6px;

    color: #64748b;

    font-size: 12px;
}

.dashboard-payment-legend {
    display: grid;
    gap: 12px;

    width: 100%;
}

.dashboard-payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    min-height: 52px;
    padding: 0 15px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.dashboard-payment-name {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #475569;

    font-size: 14px;
}

.dashboard-payment-row strong {
    color: #0f172a;

    font-size: 16px;
    font-weight: 800;
}

.payment-dot {
    display: inline-block;

    width: 11px;
    height: 11px;
    flex-shrink: 0;

    border-radius: 50%;
}

.payment-cash {
    background: #22c55e;
}

.payment-card {
    background: #3b82f6;
}

.payment-credit {
    background: #f59e0b;
}


/* =====================================
   MƏHSUL SİYAHILARI
===================================== */

.dashboard-product-list-container {
    width: 100%;
    flex: 1;
}

.dashboard-product-list {
    display: grid;
    gap: 10px;

    width: 100%;
}

.dashboard-product-list-item {
    display: grid;
    grid-template-columns:
        38px
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 13px;

    width: 100%;
    min-width: 0;
    min-height: 62px;

    padding: 11px 13px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.dashboard-product-list-item:hover {
    transform: translateY(-1px);

    border-color: #cbd5e1;

    box-shadow:
        0 5px 15px
        rgba(15, 23, 42, 0.05);
}

.dashboard-product-rank {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    color: #1d4ed8;
    background: #dbeafe;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 800;
}

.dashboard-product-details {
    min-width: 0;
}

.dashboard-product-details strong {
    display: block;

    width: 100%;
    margin: 0;

    overflow: hidden;

    color: #0f172a;

    font-size: 14px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-product-details span {
    display: block;

    width: 100%;
    margin-top: 5px;

    overflow: hidden;

    color: #64748b;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-product-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 68px;
    min-height: 31px;

    padding: 0 10px;

    color: #1d4ed8;
    background: #dbeafe;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-product-quantity.low {
    color: #b45309;
    background: #fef3c7;
}

.dashboard-product-quantity.empty {
    color: #b91c1c;
    background: #fee2e2;
}


/* BOŞ MƏLUMAT */

.dashboard-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 180px;
    flex: 1;

    padding: 25px;

    color: #64748b;

    font-size: 14px;
    text-align: center;
}


/* SON SATIŞLAR TAM EN QALSIN */

.dashboard-analytics-row + .dashboard-section,
.dashboard-products-row + .dashboard-section {
    width: 100%;
    margin-top: 32px;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1150px) {

    .dashboard-payment-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-analytics-card {
        min-height: 500px;
    }

}


@media (max-width: 900px) {

    .dashboard-analytics-row {
        grid-template-columns: 1fr;
    }

    .dashboard-analytics-card {
        min-height: auto;
    }

    .dashboard-payment-layout {
        grid-template-columns:
            minmax(160px, 0.8fr)
            minmax(210px, 1.2fr);
    }

}


@media (max-width: 650px) {

    .dashboard-analytics-card {
        padding: 18px;
    }

    .dashboard-payment-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-monthly-chart {
        gap: 8px;

        overflow-x: auto;
    }

    .dashboard-month-item {
        min-width: 52px;
    }

    .dashboard-product-list-item {
        grid-template-columns:
            36px
            minmax(0, 1fr);
    }

    .dashboard-product-quantity {
        grid-column: 2;
        justify-self: start;
    }

}

/* =====================================
   DASHBOARD GLOBAL AXTARIŞ
===================================== */

.dashboard-header-title {
    flex-shrink: 0;
}

.dashboard-global-search {
    position: relative;

    width: 100%;
    max-width: 470px;
    min-width: 260px;

    margin: 0 auto;
}

.global-search-input-wrapper {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
}

.global-search-icon {
    position: absolute;
    left: 16px;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;

    font-size: 17px;
}

#dashboardGlobalSearchInput {
    width: 100%;
    height: 50px;

    margin: 0;
    padding:
        0
        48px
        0
        46px;

    color: #0f172a;
    background: #ffffff;

    border: 1px solid #dbe3ee;
    border-radius: 14px;

    font-size: 14px;
    font-weight: 500;

    outline: none;

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.06);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#dashboardGlobalSearchInput::placeholder {
    color: #94a3b8;
}

#dashboardGlobalSearchInput:focus {
    border-color: #3b82f6;

    box-shadow:
        0 0 0 4px
        rgba(59, 130, 246, 0.12),
        0 8px 24px
        rgba(15, 23, 42, 0.06);
}

.global-search-clear {
    display: none;

    position: absolute;
    right: 10px;
    z-index: 3;

    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    padding: 0;

    color: #64748b;
    background: #f1f5f9;

    border: none;
    border-radius: 50%;

    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.global-search-clear.visible {
    display: flex;
}

.global-search-clear:hover {
    color: #0f172a;
    background: #e2e8f0;
}


/* AXTARIŞ NƏTİCƏLƏRİ */

.global-search-results {
    display: none;

    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1500;

    width: 100%;
    max-height: 470px;

    overflow-y: auto;

    background: #ffffff;

    border: 1px solid #dbe3ee;
    border-radius: 15px;

    box-shadow:
        0 22px 50px
        rgba(15, 23, 42, 0.18);
}

.global-search-results.open {
    display: block;
}

.global-search-summary {
    padding: 13px 16px;

    color: #64748b;
    background: #f8fafc;

    border-bottom: 1px solid #e2e8f0;

    font-size: 12px;
    font-weight: 700;
}

.global-search-result-item {
    display: grid;
    grid-template-columns:
        42px
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 12px;

    width: 100%;
    padding: 13px 15px;

    color: inherit;
    background: #ffffff;

    border-bottom: 1px solid #eef2f7;

    text-decoration: none;

    transition:
        background-color 0.15s ease;
}

.global-search-result-item:last-child {
    border-bottom: none;
}

.global-search-result-item:hover,
.global-search-result-item.active {
    background: #f8fafc;
}

.global-search-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    background: #eff6ff;

    border-radius: 11px;

    font-size: 19px;
}

.global-search-result-content {
    min-width: 0;
}

.global-search-result-title {
    display: block;

    overflow: hidden;

    color: #0f172a;

    font-size: 14px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-result-description {
    display: block;

    margin-top: 4px;

    overflow: hidden;

    color: #64748b;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-result-type {
    padding: 5px 8px;

    color: #475569;
    background: #f1f5f9;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.global-search-empty {
    padding: 35px 20px;

    color: #64748b;

    text-align: center;
}

.global-search-empty span {
    display: block;

    margin-bottom: 9px;

    font-size: 30px;
}

.global-search-empty strong {
    display: block;

    margin-bottom: 5px;

    color: #0f172a;

    font-size: 14px;
}

.global-search-empty p {
    margin: 0;

    font-size: 12px;
}


/* RESPONSIVE */

@media (max-width: 1250px) {

    .dashboard-header {
        flex-wrap: wrap;
    }

    .dashboard-global-search {
        order: 3;

        max-width: none;
        flex-basis: 100%;
    }

}

@media (max-width: 1000px) {

    .dashboard-global-search {
        width: 100%;
        min-width: 0;

        margin: 0;
    }

}

@media (max-width: 600px) {

    #dashboardGlobalSearchInput {
        height: 48px;

        font-size: 13px;
    }

    .global-search-result-item {
        grid-template-columns:
            38px
            minmax(0, 1fr);
    }

    .global-search-result-type {
        grid-column: 2;
        justify-self: start;
    }

}

/* =====================================
   QİYMƏT SİYAHISI
===================================== */

.price-list-content {
    width: calc(100% - 240px);
    min-height: 100vh;

    margin-left: 240px;
    padding: 30px;

    background: #f4f6f9;
}


/* BAŞLIQ */

.price-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 26px;
}

.price-list-header h1 {
    margin: 0 0 7px;

    color: #0f172a;

    font-size: 31px;
}

.price-list-header p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
}

.price-list-live-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 10px 14px;

    color: #166534;
    background: #dcfce7;

    border: 1px solid #bbf7d0;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.price-list-live-dot {
    width: 9px;
    height: 9px;

    background: #22c55e;

    border-radius: 50%;

    box-shadow:
        0 0 0 4px
        rgba(34, 197, 94, 0.15);
}


/* STATİSTİKA */

.price-list-summary {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-bottom: 22px;
}

.price-list-summary-card {
    min-width: 0;
    padding: 21px 22px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-left: 5px solid #3b82f6;
    border-radius: 15px;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.05);
}

.price-list-summary-card span {
    display: block;

    margin-bottom: 10px;

    color: #64748b;

    font-size: 13px;
    font-weight: 700;
}

.price-list-summary-card strong {
    display: block;

    color: #0f172a;

    font-size: 29px;
    line-height: 1;
}

.price-list-available-card {
    border-left-color: #16a34a;
}

.price-list-low-card {
    border-left-color: #f59e0b;
}

.price-list-out-card {
    border-left-color: #dc2626;
}


/* AXTARIŞ VƏ FİLTR */

.price-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 22px;
    padding: 18px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 15px;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.05);
}

.price-list-search-wrapper {
    position: relative;

    width: 100%;
    max-width: 650px;
}

.price-list-search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;

    transform: translateY(-50%);

    pointer-events: none;

    font-size: 17px;
}

#priceListSearch {
    width: 100%;
    height: 48px;

    margin: 0;
    padding:
        0
        48px
        0
        45px;

    color: #0f172a;
    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 11px;

    font-size: 14px;
}

#priceListSearch:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.12);
}

.price-list-clear-search {
    display: none;

    position: absolute;
    top: 50%;
    right: 9px;

    align-items: center;
    justify-content: center;

    width: 31px;
    height: 31px;

    padding: 0;

    color: #64748b;
    background: #f1f5f9;

    border: none;
    border-radius: 50%;

    transform: translateY(-50%);

    font-size: 21px;
    font-weight: 400;
    line-height: 1;
}

.price-list-clear-search.visible {
    display: flex;
}

.price-list-clear-search:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.price-list-filter-wrapper {
    flex-shrink: 0;
}

#priceListStatusFilter {
    min-width: 185px;
    height: 48px;

    margin: 0;
    padding: 0 13px;

    color: #0f172a;
    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 11px;

    font-size: 14px;
    font-weight: 600;
}


/* CƏDVƏL KARTI */

.price-list-table-section {
    width: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    box-shadow:
        0 8px 28px
        rgba(15, 23, 42, 0.05);
}

.price-list-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 21px 22px;

    border-bottom: 1px solid #e2e8f0;
}

.price-list-table-header h2 {
    margin: 0 0 5px;

    color: #0f172a;

    font-size: 20px;
}

.price-list-table-header p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
}

.price-list-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.price-list-table {
    width: 100%;
    min-width: 1050px;

    margin: 0;

    border-collapse: collapse;

    box-shadow: none;
}

.price-list-table th,
.price-list-table td {
    padding: 15px 16px;

    border-bottom: 1px solid #e2e8f0;

    text-align: left;
    vertical-align: middle;
}

.price-list-table th {
    color: #475569;
    background: #f8fafc;

    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.price-list-table td {
    color: #334155;
    background: #ffffff;

    font-size: 14px;
}

.price-list-table tbody tr:hover td {
    background: #f8fafc;
}

.price-list-table tbody tr:last-child td {
    border-bottom: none;
}

.price-list-index {
    color: #94a3b8 !important;

    font-weight: 700;
}

.price-list-product-cell {
    min-width: 190px;
}

.price-list-product-cell strong {
    display: block;

    color: #0f172a;

    font-size: 14px;
    font-weight: 800;
}

.price-list-product-cell small {
    display: block;

    max-width: 270px;
    margin-top: 5px;

    overflow: hidden;

    color: #64748b;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.price-list-code {
    display: inline-flex;
    align-items: center;

    min-height: 29px;
    padding: 0 9px;

    color: #1e40af;
    background: #dbeafe;

    border-radius: 8px;

    font-family: monospace;
    font-size: 12px;
    font-weight: 800;
}

.price-list-muted {
    color: #94a3b8;
}

.price-list-money {
    color: #0f172a !important;

    font-weight: 800;
    white-space: nowrap;
}

.price-list-sale-price {
    color: #166534 !important;
}


/* QALIQ */

.price-list-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 68px;
    min-height: 31px;

    padding: 0 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.stock-available {
    color: #166534;
    background: #dcfce7;
}

.stock-low {
    color: #b45309;
    background: #fef3c7;
}

.stock-out {
    color: #b91c1c;
    background: #fee2e2;
}


/* STATUS */

.price-list-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 32px;

    padding: 0 11px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.price-list-status-dot {
    width: 8px;
    height: 8px;

    background: currentColor;

    border-radius: 50%;
}

.status-available {
    color: #166534;
    background: #dcfce7;
}

.status-low {
    color: #b45309;
    background: #fef3c7;
}

.status-out {
    color: #b91c1c;
    background: #fee2e2;
}


/* BOŞ MƏLUMAT */

.price-list-empty-row {
    height: 240px;

    color: #64748b !important;

    text-align: center !important;
}

.price-list-empty-row span,
.price-list-empty-row strong,
.price-list-empty-row small {
    display: block;
}

.price-list-empty-icon {
    margin-bottom: 10px;

    font-size: 38px;
}

.price-list-empty-row strong {
    margin-bottom: 6px;

    color: #0f172a;

    font-size: 15px;
}

.price-list-empty-row small {
    color: #64748b;

    font-size: 13px;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1100px) {

    .price-list-summary {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 900px) {

    .price-list-content {
        width: 100%;
        min-height: auto;

        margin-left: 0;
        padding: 20px;
    }

    .price-list-header {
        align-items: flex-start;
    }

}


@media (max-width: 700px) {

    .price-list-header {
        flex-direction: column;
    }

    .price-list-summary {
        grid-template-columns: 1fr;
    }

    .price-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .price-list-search-wrapper {
        max-width: none;
    }

    .price-list-filter-wrapper {
        width: 100%;
    }

    #priceListStatusFilter {
        width: 100%;
        min-width: 0;
    }

}

/* =====================================
   ƏLAVƏ XƏRCLƏR
===================================== */

.expenses-content {
    width: calc(100% - 240px);
    min-height: 100vh;

    margin-left: 240px;
    padding: 30px;

    background: #f4f6f9;
}


/* BAŞLIQ */

.expenses-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 25px;
}

.expenses-header h1 {
    margin: 0 0 7px;

    color: #0f172a;

    font-size: 31px;
}

.expenses-header p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
}

.expenses-add-button {
    min-height: 46px;
    padding: 0 19px;

    color: #ffffff;
    background: #dc2626;

    border: none;
    border-radius: 11px;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 9px 20px
        rgba(220, 38, 38, 0.2);
}

.expenses-add-button:hover {
    background: #b91c1c;
}


/* STATİSTİKA */

.expenses-summary {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-bottom: 22px;
}

.expenses-summary-card {
    display: flex;
    align-items: center;
    gap: 15px;

    min-width: 0;
    padding: 20px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 15px;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.05);
}

.expenses-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 46px;
    height: 46px;

    background: #fee2e2;

    border-radius: 12px;

    font-size: 21px;
}

.expenses-summary-card p {
    margin: 0 0 8px;

    color: #64748b;

    font-size: 12px;
    font-weight: 700;
}

.expenses-summary-card strong {
    display: block;

    overflow: hidden;

    color: #0f172a;

    font-size: 21px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* TOOLBAR */

.expenses-toolbar {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        180px
        180px
        155px
        155px
        auto;

    align-items: center;
    gap: 12px;

    margin-bottom: 22px;
    padding: 17px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 15px;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.05);
}

.expenses-search-wrapper {
    position: relative;
}

.expenses-search-icon {
    position: absolute;
    top: 50%;
    left: 15px;

    transform: translateY(-50%);

    pointer-events: none;
}

#expenseSearchInput {
    width: 100%;
    height: 46px;

    margin: 0;
    padding: 0 45px;

    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

.expenses-search-clear {
    display: none;

    position: absolute;
    top: 50%;
    right: 8px;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    padding: 0;

    color: #64748b;
    background: #f1f5f9;

    border: none;
    border-radius: 50%;

    transform: translateY(-50%);

    font-size: 20px;
}

.expenses-search-clear.visible {
    display: flex;
}

.expenses-toolbar select,
.expenses-toolbar input[type="date"] {
    width: 100%;
    height: 46px;

    margin: 0;
    padding: 0 11px;

    color: #0f172a;
    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

.expenses-reset-filter-button {
    height: 46px;
    padding: 0 15px;

    color: #475569;
    background: #f1f5f9;

    border: none;
    border-radius: 10px;

    font-weight: 700;
}


/* CƏDVƏL */

.expenses-table-section {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    box-shadow:
        0 8px 28px
        rgba(15, 23, 42, 0.05);
}

.expenses-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 20px 22px;

    border-bottom: 1px solid #e2e8f0;
}

.expenses-table-header h2 {
    margin: 0 0 5px;

    color: #0f172a;

    font-size: 20px;
}

.expenses-table-header p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
}

.expenses-table-header > strong {
    color: #dc2626;

    font-size: 20px;
}

.expenses-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.expenses-table {
    width: 100%;
    min-width: 1200px;

    margin: 0;

    border-collapse: collapse;

    box-shadow: none;
}

.expenses-table th,
.expenses-table td {
    padding: 14px 15px;

    border-bottom: 1px solid #e2e8f0;

    text-align: left;
    vertical-align: middle;
}

.expenses-table th {
    color: #475569;
    background: #f8fafc;

    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.expenses-table td {
    color: #334155;
    background: #ffffff;

    font-size: 13px;
}

.expenses-table tbody tr:hover td {
    background: #f8fafc;
}

.expenses-table tbody tr:last-child td {
    border-bottom: none;
}

.expenses-index-cell {
    color: #94a3b8 !important;

    font-weight: 700;
}

.expenses-title-cell strong {
    color: #0f172a;

    font-weight: 800;
}

.expenses-category-badge,
.expenses-payment-badge {
    display: inline-flex;
    align-items: center;

    min-height: 29px;
    padding: 0 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.expenses-category-badge {
    color: #9a3412;
    background: #ffedd5;
}

.expenses-payment-badge {
    color: #1e40af;
    background: #dbeafe;
}

.expenses-amount-cell {
    color: #dc2626 !important;

    font-weight: 900;
    white-space: nowrap;
}

.expenses-note-cell {
    max-width: 220px;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.expenses-muted {
    color: #94a3b8;
}

.expenses-action-buttons {
    display: flex;
    align-items: center;
    gap: 7px;
}

.expenses-action-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;

    border: none;
    border-radius: 9px;
}

.expenses-edit-button {
    background: #dbeafe;
}

.expenses-delete-button {
    background: #fee2e2;
}

.expenses-empty-row {
    height: 230px;

    text-align: center !important;
}

.expenses-empty-row span,
.expenses-empty-row strong,
.expenses-empty-row small {
    display: block;
}

.expenses-empty-row span {
    margin-bottom: 10px;

    font-size: 37px;
}

.expenses-empty-row strong {
    margin-bottom: 6px;

    color: #0f172a;

    font-size: 15px;
}

.expenses-empty-row small {
    color: #64748b;
}


/* MODAL */

.expense-modal {
    display: none;

    position: fixed;
    inset: 0;
    z-index: 3000;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.expense-modal.open {
    display: flex;
}

.expense-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
}

.expense-modal-content,
.expense-delete-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 650px;
    max-height: calc(100vh - 40px);

    overflow-y: auto;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 28px 70px
        rgba(15, 23, 42, 0.3);
}

.expense-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 22px 24px;

    border-bottom: 1px solid #e2e8f0;
}

.expense-modal-header h2 {
    margin: 0 0 5px;

    color: #0f172a;
}

.expense-modal-header p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
}

.expense-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    color: #64748b;
    background: #f1f5f9;

    border: none;
    border-radius: 50%;

    font-size: 24px;
}

#expenseForm {
    padding: 23px 24px;
}

.expense-form-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;
}

.expense-form-full {
    grid-column: 1 / -1;
}

.expense-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #334155;

    font-size: 13px;
    font-weight: 800;
}

.expense-form-group label span {
    color: #dc2626;
}

.expense-form-group input,
.expense-form-group select,
.expense-form-group textarea {
    width: 100%;

    margin: 0;
    padding: 0 12px;

    color: #0f172a;
    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    font-family: inherit;
    font-size: 14px;
}

.expense-form-group input,
.expense-form-group select {
    height: 46px;
}

.expense-form-group textarea {
    min-height: 100px;
    padding-top: 12px;

    resize: vertical;
}

.expense-form-group input:focus,
.expense-form-group select:focus,
.expense-form-group textarea:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.1);
}

.expense-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 23px;
    padding-top: 20px;

    border-top: 1px solid #e2e8f0;
}

.expense-cancel-button,
.expense-save-button,
.expense-delete-confirm-button {
    min-height: 43px;
    padding: 0 18px;

    border: none;
    border-radius: 10px;

    font-weight: 800;
}

.expense-cancel-button {
    color: #475569;
    background: #f1f5f9;
}

.expense-save-button {
    color: #ffffff;
    background: #2563eb;
}

.expense-delete-confirm-button {
    color: #ffffff;
    background: #dc2626;
}

.expense-delete-content {
    max-width: 430px;
    padding: 31px;

    text-align: center;
}

.expense-delete-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 65px;
    height: 65px;

    margin: 0 auto 17px;

    background: #fee2e2;

    border-radius: 50%;

    font-size: 29px;
}

.expense-delete-content h2 {
    margin: 0 0 9px;

    color: #0f172a;
}

.expense-delete-content p {
    margin: 0;

    color: #64748b;
}

.expense-delete-actions {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-top: 24px;
}

.expense-modal-open {
    overflow: hidden;
}


/* MESAJ */

.expense-toast-message {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 5000;

    min-width: 260px;
    max-width: 390px;

    padding: 14px 17px;

    color: #ffffff;

    border-radius: 11px;

    font-size: 14px;
    font-weight: 800;

    opacity: 0;
    transform: translateY(-15px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    box-shadow:
        0 15px 35px
        rgba(15, 23, 42, 0.2);
}

.expense-toast-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.expense-toast-success {
    background: #16a34a;
}

.expense-toast-error {
    background: #dc2626;
}


/* RESPONSIVE */

@media (max-width: 1300px) {

    .expenses-summary {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .expenses-toolbar {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .expenses-search-wrapper {
        grid-column: 1 / -1;
    }

}


@media (max-width: 900px) {

    .expenses-content {
        width: 100%;

        margin-left: 0;
        padding: 20px;
    }

}


@media (max-width: 650px) {

    .expenses-header {
        align-items: stretch;
        flex-direction: column;
    }

    .expenses-add-button {
        width: 100%;
    }

    .expenses-summary,
    .expenses-toolbar,
    .expense-form-grid {
        grid-template-columns: 1fr;
    }

    .expenses-search-wrapper,
    .expense-form-full {
        grid-column: auto;
    }

    .expenses-table-header {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 900px) {
    .returned-page {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }
}