/* Global compact button sizing override (loaded after themes) */
.btn,
.btn-sm,
.btn-lg,
.btn-group .btn,
.d-grid .btn {
    font-size: 11px !important;
    padding: 4px 10px !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
    min-height: 26px !important;
    border-radius: 6px !important;
}

/* Sidebar butonlarını global override'dan koru */
.sidebar a,
.sidebar .btn,
.sidebar .nav-link,
.sidebar .menu-group-title {
    font-size: clamp(10px, 1.2vw, 12px) !important;
    padding: 8px 12px !important;
    line-height: 1.2 !important;
    min-height: unset !important;
    height: auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    flex: unset !important;
    flex-direction: row !important;
}

/* Ana Sayfa / Hızlı Satış özel buton stili */
.sidebar-nav-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    background-color: #595554 !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: unset !important;
    flex: unset !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.sidebar-nav-btn:hover {
    background-color: #4e4b4a !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Tighten icon + text alignment when buttons shrink */
.btn .bi {
    font-size: 0.9em;
    vertical-align: -1px;
}

/* Reduce vertical spacing between stacked buttons */
.d-grid.gap-2 {
    row-gap: 6px !important;
}

/* Prevent long full-width buttons across pages */
.btn.w-100,
.btn.btn-block,
.d-grid .btn,
.btn-group .btn {
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    max-width: 100% !important;
}

/* Hızlı satış ürün kartları - global override'dan muaf tut */
body.page-hizli-satis .hs-product.btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    padding: 6px !important;
}

/* Keep button stacks aligned without stretching */
.d-grid {
    justify-items: start !important;
    align-items: start !important;
}

/* Sales summary alignment (satislar/create) */
.sales-summary-col {
    display: block !important;
    position: relative !important;
}

.sales-summary-content {
    width: 100%;
    margin-bottom: 15px;
}

.sales-summary-content table {
    width: 100%;
}

.sales-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    clear: both !important;
    width: 100% !important;
}

.sales-discounts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-bottom: 6px;
}

.sales-actions .btn {
    flex: 1 1 0 !important;
    width: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    padding: 4px 6px !important;
    text-align: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.sales-actions .btn .bi {
    font-size: 9px !important;
    margin-right: 2px !important;
}
