  /*SUCCESS AND ERROR MODAL*/


  /* Modal Arka Plan */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Kutusu */
.modal-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

/* Modal Üst Çizgi */
.modal-top-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 8px 8px 0 0;
}

.success .modal-top-border {
    background-color: #22c55e;
}

.warning .modal-top-border {
    background-color: #ef4444;
}

.info .modal-top-border {
  background-color: #4285f4;
}


/* Modal Kapatma Butonu */
.modal-box-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    font-size: 20px;
    line-height: 1;
}

.modal-box-close:hover {
    color: #6b7280;
}

/* Modal İçeriği */
.modal-box-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Modal İkon */
.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.success .modal-icon {
    color: #22c55e;
    border: 2px solid #22c55e;
}

.warning .modal-icon {
    color: #ef4444;
    border: 2px solid #ef4444;
}

.info .modal-icon {
  color: #4285f4;
  border: 2px solid #4285f4;
}

/* Modal Başlık */
.modal-box-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    text-align: center;
}

/* Modal Açıklama */
.modal-box-description {
    text-align: center;
    color: #6b7280;
    line-height: 1.5;
}

/* Modal Butonları */
.modal-box-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 0 24px 24px;
}

.modal-btn {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.modal-btn-secondary {
    background-color: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.modal-btn-secondary:hover {
    background-color: #f9fafb;
}

.modal-btn-primary {
    border: none;
    color: white;
}

.success .modal-btn-primary {
    background-color: #22c55e;
}

.success .modal-btn-primary:hover {
    background-color: #16a34a;
}

.warning .modal-btn-primary {
    background-color: #ef4444;
}

.warning .modal-btn-primary:hover {
    background-color: #dc2626;
}

.info .modal-btn-primary {
  background-color: #4285f4;
}

.info .modal-btn-primary:hover {
  background-color: #266ad6;
}

/* İkonlar */
.icon-check {
    width: 24px;
    height: 24px;
}

.icon-warning {
    width: 24px;
    height: 24px;
}

.icon-info {
  width: 24px;
  height: 24px;
}

/*SUCCESS AND ERROR MODAL*/



.search-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.collection-amount-group {
    display: flex;
    flex-wrap: nowrap;
}

.collection-amount-group #collection_amount {
    flex: 1 1 auto;
    min-width: 0;
}

.collection-amount-group .select2-container {
    flex: 0 0 100px;
    width: 100px !important;
}


.payment-amount-group,
.amount-currency-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
}

.payment-amount-group input,
.payment-amount-group .form-control,
.amount-currency-group input,
.amount-currency-group .form-control {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.payment-amount-group .currency-select,
.amount-currency-group .currency-select {
    flex: 0 0 95px !important;
    max-width: 95px !important;
    width: 95px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 1px solid #e4e6ef !important;
    font-weight: 600 !important;
}

.payment-amount-group .select2-container,
.amount-currency-group .select2-container {
    flex: 0 0 95px !important;
    max-width: 95px !important;
    width: 95px !important;
}

.payment-amount-group .select2-container .select2-selection,
.amount-currency-group .select2-container .select2-selection {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 1px solid #e4e6ef !important;
}

.payment-amount-group .fv-plugins-message-container,
.payment-amount-group > .fv-plugins-message-container,
.input-group > .fv-plugins-message-container {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

tbody tr:hover {
    background-color: #f0f0f0 !important;
    cursor: pointer;
}

tbody tr {
    transition: background-color 0.6s ease;
}


.td-ks {
    max-width: 450px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.border-dashed {
    border-style: dashed !important;
}


.bg-light-primary {
    background-color: rgba(80, 205, 137, 0.1) !important;
}

.bg-light-info {
    background-color: rgba(124, 177, 255, 0.1) !important;
}

#stock_code_preview,
#stock_movement_code_preview,
#customer_code_preview,
#customer_movement_code_preview {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    user-select: all;
}

.form-check-label {
    cursor: pointer;
    transition: color 0.2s ease;
}

.form-check-label:hover {
    color: var(--bs-primary) !important;
}

.input-group-sm .form-control,
.input-group-sm .form-select {
    font-size: 0.875rem;
}

#stock_code_settings,
#stock_movement_code_settings,
#decimal_settings {
    overflow: hidden;
}

@media (max-width: 768px) {
    .border-dashed {
        padding: 1rem !important;
    }
    
    #stock_code_preview,
    #stock_movement_code_preview,
    #customer_code_preview,
    #customer_movement_code_preview {
        font-size: 1.25rem !important;
    }
}

/* Kaydet butonu loading durumu */
.indicator-progress .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}


.custom-tag {
    padding: 3px;
    border-radius: 5px;
}

.dyn-filter-badge .select2-selection--multiple {
    max-height: 28px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#stocks_sort_menu .sort-option.active,
#contacts_sort_menu .sort-option.active {
    background-color: rgba(66, 133, 244, 0.1) !important;
    color: #4285f4 !important;
    font-weight: 600 !important;
}

/* ── Dashboard full-width layout fix ── */
/* The aside is a fixed-width flex child; #db-root must take the rest */
#db-root {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 0 !important; /* flex item trick: let flex-grow do the work */
}