body {
    background-color: #eef0f3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #212529;
}

/* ---- Proqram görünüşlü üst panel ---- */
.app-shell {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-titlebar {
    background-color: #2b2f38;
    color: #f1f2f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    font-size: 0.95rem;
}

.app-titlebar-brand {
    font-weight: 600;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-titlebar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: #cfd3da;
}

.app-role-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-logout-btn {
    color: #f1f2f4;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.app-logout-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.app-toolbar {
    background-color: #e4e7ec;
    border-bottom: 1px solid #ccd0d6;
    display: flex;
    padding: 0 14px;
    overflow-x: auto;
}

.app-tool-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    color: #454b54;
    text-decoration: none;
    font-size: 0.86rem;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.app-tool-btn i {
    font-size: 1rem;
}

.app-tool-btn:hover {
    background-color: #d9dde3;
    color: #1f2328;
}

.app-tool-btn.active {
    background-color: #f4f5f7;
    border-bottom-color: #2f6fed;
    color: #1f2328;
    font-weight: 600;
}

/* ---- Hesabatlar acilan menyu ---- */
.app-tool-dropdown {
    position: relative;
}

.app-tool-caret {
    font-size: 0.6rem !important;
    margin-left: 2px;
}

.app-tool-dropdown-menu {
    display: none;
    position: fixed;
    background: #fff;
    border: 1px solid #dcdfe4;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    min-width: 190px;
    z-index: 1030;
    padding: 6px 0;
}

.app-tool-dropdown-menu.show {
    display: block;
}

.app-tool-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: #454b54;
    text-decoration: none;
    font-size: 0.86rem;
    white-space: nowrap;
}

.app-tool-dropdown-item:hover {
    background-color: #f2f3f5;
    color: #1f2328;
}

.app-tool-dropdown-item.active {
    color: #2f6fed;
    font-weight: 600;
}

/* ---- Ana mezmun sahesi ---- */
.app-content {
    max-width: 1240px;
    margin: 22px auto 0;
    padding: 0 24px;
}

.card {
    border: 1px solid #dcdfe4;
    border-radius: 5px;
    box-shadow: none;
}

.table-sm td, .table-sm th {
    vertical-align: middle;
}

.badge-debt-open {
    background-color: #dc3545;
}

.badge-debt-closed {
    background-color: #198754;
}

/* ---- Bu gunun qazanci (Satis sehifesi) ---- */
.daily-stats-btn {
    border: 2px solid #2f6fed;
    border-radius: 6px;
    background: #fff;
    color: #2f6fed;
    font-weight: 700;
    padding: 10px 20px;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.daily-stats-btn:hover {
    background: #2f6fed;
    color: #fff;
}

.daily-stats-popup {
    position: fixed;
    top: 90px;
    left: 16px;
    width: 280px;
    background: #fff;
    border: 1px solid #dcdfe4;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 1050;
}

.daily-stats-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #eceef1;
    font-size: 0.88rem;
}

.daily-stats-close {
    border: none;
    background: none;
    font-size: 1.2rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
}

.daily-stats-close:hover {
    color: #1f2328;
}

.daily-stats-popup-body {
    padding: 12px 14px;
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ---- Sifaris tamamlandi pencersi ---- */
.order-complete-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 18, 24, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1080;
}

.order-complete-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 320px;
    max-width: 90vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.order-complete-close {
    position: absolute;
    top: 8px;
    left: 12px;
    border: none;
    background: none;
    font-size: 1.4rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
}

.order-complete-close:hover {
    color: #1f2328;
}

.order-complete-body {
    padding: 40px 24px 28px;
    text-align: center;
}

.order-complete-check {
    width: 52px;
    height: 52px;
    line-height: 52px;
    border-radius: 50%;
    background: #d1f2df;
    color: #198754;
    font-size: 1.6rem;
    margin: 0 auto 14px;
}

.order-complete-total {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2328;
}
