.is-hidden {
    display: none;
}
.small-box-minimal {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.small-box-minimal .inner {
    position: relative;
    z-index: 1;
}

.small-box-minimal .inner h3 {
    color: #212529;
    font-weight: 600;
    font-size: 1.75rem;
}

.small-box-minimal .inner p {
    color: #6c757d;
    font-weight: 400;
    opacity: 1;
    margin-bottom: 0;
}

.small-box-minimal .small-box-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    opacity: 0.12;
    color: inherit;
    fill: currentColor;
}

.small-box-footer {
    padding: 0.75rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    color: inherit;
    text-align: center;
    text-decoration: none;
    display: block;
    z-index: 1;
    position: relative;
    transition: background-color 0.2s ease-in-out;
}

.small-box-footer:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .small-box .inner h3 {
        font-size: 2rem;
    }
    
    .small-box .inner p {
        font-size: 1rem;
    }
    
    .small-box-icon {
        font-size: 4rem;
        width: 4rem;
        height: 4rem;
        top: -1rem;
        right: -1rem;
    }
    
    .small-box-minimal .inner {
        padding: 1.25rem;
    }
    
    .small-box-minimal .inner h3 {
        font-size: 1.75rem;
    }
    
    .small-box-minimal .inner p {
        font-size: 0.9375rem;
    }
}

.carrier-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.carrier-logo[style*="display: none"] {
    display: none !important;
}

/* Hizmet Tipi Badge'leri - Mavi arka plan, beyaz yazı */
.service-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    white-space: nowrap;
}

.service-badge-express {
    background-color: #0d6efd;
    color: #ffffff;
}

.service-badge-economy {
    background-color: #0d6efd;
    color: #ffffff;
}

/* Filtre Badge'leri (en uygun fiyat, en hızlı vb.) - Fiyatın yanında */
.filter-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #F9D100;
    color: #212529;
    border: none;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.filter-badge:first-of-type {
    margin-left: 0.75rem;
}

.quote-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.quote-price-amount {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.quote-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.quote-badge-row .filter-badge {
    margin-left: 0;
}

.quote-badge-row .filter-badge:first-of-type {
    margin-left: 0;
}


.price-table,
.quotes-table {
    margin-bottom: 0;
    background-color: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.price-table thead th,
.quotes-table thead th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0;
    color: #495057;
    background-color: transparent;
    border-bottom: 1px solid #dee2e6;
    padding: 0.875rem 1rem;
    white-space: nowrap;
}

.price-table tbody tr,
.quotes-table tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e9ecef;
}

.price-table tbody tr:last-child,
.quotes-table tbody tr:last-child {
    border-bottom: none;
}

.price-table tbody tr:hover,
.quotes-table tbody tr:hover {
    background-color: #f8f9fa;
}

.price-table tbody td,
.quotes-table tbody td {
    vertical-align: middle;
    padding: 1rem;
    border-top: none;
}

.price-table tbody td:first-child,
.quotes-table tbody td:first-child {
    padding-left: 1rem;
}

.price-table tbody td:last-child,
.quotes-table tbody td:last-child {
    padding-right: 1rem;
}

/* Alert Styling */
.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-warning .bi-exclamation-triangle-fill {
    color: #ffc107;
}

/* Gönderi Oluştur Butonu */
#createShipmentBtn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .price-table thead th,
    .quotes-table thead th {
        font-size: 0.75rem;
        padding: 0.625rem 0.5rem;
    }
    
    .price-table tbody td,
    .quotes-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .carrier-logo {
        width: 30px;
        height: 30px;
    }
    
    .service-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .filter-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
        margin-left: 0.25rem;
    }
    
    .filter-badge:first-of-type {
        margin-left: 0.5rem;
    }

    .quote-price-amount {
        font-size: 1rem;
    }
    
    #createShipmentBtn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .weight-info-card {
        margin-top: 0;
        padding: 0.75rem;
    }

    .weight-info-item {
        padding-bottom: 0.375rem;
        margin-bottom: 0.5rem;
    }

    .weight-info-card h6 {
        font-size: 0.8125rem;
        margin-bottom: 0.625rem;
    }

    .weight-info-card .alert-info {
        padding: 0.5rem;
        font-size: 0.75rem;
        margin-bottom: 0.625rem;
    }

    .weight-info-card .btn-primary {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .weight-info-card .text-muted {
        font-size: 0.75rem;
    }

    .weight-info-card .fw-bold {
        font-size: 0.8125rem;
    }
}

@media (max-width: 1200px) {
    .quotes-table thead th {
        white-space: normal;
    }
}

.weight-info-card {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Gönderi Detayları kartındaki kolonları düzelt */
.dashboard-cards-row .card .card-body > .row.g-4 > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.dashboard-cards-row .card .card-body > .row.g-4 > .col-md-7 > form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.weight-info-item {
    padding-bottom: 0.375rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.weight-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.weight-info-card h6 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.weight-info-item .bi-info-circle {
    cursor: help;
    font-size: 0.75rem;
}

/* Bilgilendirme Mesajı */
.weight-info-card .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    padding: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    border-radius: 0.25rem;
}

/* Fiyat Hesapla Butonu */
.weight-info-card .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    margin-top: 0;
}

/* Ağırlık bilgileri text stilleri */
.weight-info-card .text-muted {
    font-size: 0.8125rem;
}

.weight-info-card .fw-bold {
    font-size: 0.875rem;
}

/* Paket Ekle Butonu */
#addPackageBtn {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

#addPackageBtn:hover {
    text-decoration: underline;
}

.remove-package {
    font-size: 1rem;
    transition: all 0.2s ease;
}

.remove-package:hover {
    transform: scale(1.1);
    color: #dc3545 !important;
}

.package-item {
    position: relative;
}

/* Form minimalleştirme */
.dashboard-cards-row .card .card-body > .row.g-4 > .col-md-7 form h6 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.dashboard-cards-row .card .card-body > .row.g-4 > .col-md-7 form .form-label {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.dashboard-cards-row .card .card-body > .row.g-4 > .col-md-7 form .mb-3 {
    margin-bottom: 0.75rem !important;
}

.dashboard-cards-row .card .card-body > .row.g-4 > .col-md-7 form .mb-2 {
    margin-bottom: 0.5rem !important;
}

.dashboard-cards-row .card .card-body > .row.g-4 > .col-md-7 form .mb-4 {
    margin-bottom: 1rem !important;
}

/* ============================================
   Dashboard Cards - Eşit Yükseklik
   ============================================ */

/* Kartların yüksekliklerini eşitle */
.dashboard-cards-row {
    display: flex;
    flex-wrap: wrap;
}

.dashboard-cards-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.dashboard-cards-row .card {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dashboard-cards-row .card .card-body {
    flex: 1;
}
.shipment-wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background-color: var(--primary-color1);
    color: #ffffff;
    border-color: var(--primary-color1);
}

.step-item.active .step-label {
    color: var(--primary-color1);
    font-weight: 600;
}

.step-item.completed .step-number {
    background-color: #1f6f3a;
    color: #ffffff;
    border-color: #1f6f3a;
}

.step-item.completed .step-label {
    color: #28a745;
}

.step-connector {
    flex: 1;
    height: 2px;
    background-color: #e9ecef;
    margin: 0 1rem;
    position: relative;
    max-width: 150px;
}

.step-item.completed + .step-connector {
    background-color: #28a745;
}

.step-item.active + .step-connector {
    background: linear-gradient(90deg, #28a745 0%, #e9ecef 100%);
}

/* Wizard Step Container */
.wizard-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for wizard steps */
@media (max-width: 768px) {
    .shipment-draft-restore {
        padding: 0.75rem;
    }

    .shipment-draft-restore-btn {
        width: 100%;
    }

    .shipment-wizard-steps {
        padding: 1.5rem 0.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-connector {
        max-width: 50px;
        margin: 0 0.5rem;
    }
}

/* ============================================
   Wizard Step Card Styling
   ============================================ */
.step-card {
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    padding: 1rem !important;
}

.step-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-header {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
    margin-bottom: 0.5rem !important;
}

.step-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.1) 0%, rgba(75, 0, 130, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon-wrapper i {
    color: var(--primary-color1);
    font-size: 1.125rem;
}

.step-content {
    padding-top: 0.25rem;
}

.form-section {
    padding: 0.25rem 0;
}

.step-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
    display: block;
}

.step-form-label-small {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.25rem;
    display: block;
}

.wizard-type-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 220px));
    gap: 0.5rem;
    max-width: 460px;
}

.wizard-type-option {
    margin: 0;
    padding: 0;
}

.wizard-type-option .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wizard-type-option .form-check-label {
    width: 100%;
    border: 1px solid #d6dbe1;
    border-radius: 0.625rem;
    background: #ffffff;
    padding: 0.65rem 0.85rem;
    font-weight: 600;
    color: #3a4450;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wizard-type-option .form-check-input:checked + .form-check-label {
    border-color: var(--primary-color1);
    background: #ece4f5;
    color: #2f0a52;
}

/* Disabled state for wizard type options */
.wizard-type-option .form-check-input:disabled + .form-check-label {
    background-color: #e9ecef;
    color: #495057;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.wizard-type-option .form-check-input:disabled:checked + .form-check-label {
    background-color: #e9ecef;
    color: #495057;
    border-color: var(--primary-color1);
    opacity: 0.7;
}

/* Readonly form controls */
.form-control-readonly,
.form-control-readonly.form-control,
.form-control-readonly.form-select {
    background-color: #e9ecef !important;
    cursor: not-allowed;
    opacity: 1;
}

.form-control-readonly:focus {
    background-color: #e9ecef !important;
    box-shadow: none;
    border-color: #dee2e6;
}

.wizard-form-shell {
    padding: 0;
}

.wizard-split-sections > [class*="col-"] {
    display: flex;
}

.wizard-subsection {
    width: 100%;
    border-radius: 0.75rem;
    padding: 1.5rem 0.2rem;
    background-color: #fbfcfe;
}

.wizard-subsection .form-control,
.wizard-subsection .form-select,
.wizard-subsection .nice-select {
    min-height: 44px;
}

.saved-address-toolbar .input-group .btn {
    border-color: #d6dbe1;
    color: #4f5b66;
}

.saved-address-toolbar .input-group .btn:hover {
    background-color: #f4f6f9;
    color: #2f3a45;
}

.saved-address-save .input-group .btn {
    border-color: #d6dbe1;
    color: #4f5b66;
}

.saved-address-save .input-group .btn:hover {
    background-color: #f4f6f9;
    color: #2f3a45;
}

.wizard-subsection .phone-widget {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
}

.wizard-subsection .phone-widget .form-select,
.wizard-subsection .phone-widget .nice-select {
    flex: 0 0 170px;
    max-width: 170px;
    width: 170px;
}

.wizard-subsection .phone-widget .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.step-form-control {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    min-height: 36px;
}

.step-form-control:focus {
    border-color: var(--primary-color1);
    box-shadow: 0 0 0 0.2rem rgba(75, 0, 130, 0.15);
    outline: none;
}

.step-form-control::placeholder {
    color: #adb5bd;
    font-size: 0.8125rem;
}

/* Address Section Styling */
.address-detail-wrapper {
    position: relative;
}

.address-detail-wrapper textarea {
    resize: vertical;
    min-height: 60px;
}

.address-counter-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.address-counter-wrapper small {
    font-size: 0.75rem;
    color: #6c757d;
}

#addressCharCount {
    font-weight: 600;
    color: #495057;
}

/* Step Actions */
.step-actions {
    margin: 0.75rem -1rem -1rem -1rem;
    padding: 0.75rem 1rem;
}

.step-actions-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.step-actions-extra {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.step-actions-nav {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.step-btn {
    min-width: 120px;
    border-radius: 0.5rem;
}

.step-btn-soft {
    min-width: auto;
    font-weight: 500;
}

.step-btn.btn-primary {
    background: #F9D100FF;
    border: none;
    color:#000000;
}

.step-btn.btn-primary:hover {
    background: var(--primary-color1);
    color:#fff3cd;
}

.step-btn.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.step-btn.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.saved-address-form {
    border: 1px solid #e9edf2;
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #fbfcfe;
}

.saved-address-form-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #34414d;
    margin-bottom: 0.5rem;
}

.saved-address-form-new {
    margin-bottom: 0;
}

.saved-address-form .form-control,
.saved-address-form .form-select {
    min-height: 34px;
}

.saved-address-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.saved-address-item {
    border: 1px solid #e9edf2;
    border-radius: 0.75rem;
    padding: 0.75rem;
    background: #fbfcfe;
}

.saved-address-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #34414d;
    line-height: 1.2;
}

.saved-address-item-subtitle {
    font-size: 0.75rem;
    color: #6c757d;
}

.saved-address-item-line {
    font-size: 0.85rem;
    color: #2f3a45;
}

.saved-address-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 0.75rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.saved-address-actions {
    display: flex;
    justify-content: flex-end;
}

.wizard-address-modal .modal-content {
    border: 1px solid #e2e7ec;
    border-radius: 0.75rem;
}

.wizard-address-modal .modal-header {
    border-bottom-color: #edf1f5;
}

.wizard-address-modal .modal-footer {
    border-top-color: #edf1f5;
}

.wizard-address-modal .modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2f3a45;
}

/* Responsive adjustments for step card */
@media (max-width: 768px) {
    .step-card {
        padding: 1.25rem !important;
    }
    
    .step-icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .step-icon-wrapper i {
        font-size: 1rem;
    }
    
    .step-form-label {
        font-size: 0.8125rem;
    }
    
    .step-form-label-small {
        font-size: 0.75rem;
    }

    .wizard-type-toggle {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .wizard-split-sections > [class*="col-"] {
        display: block;
    }

    .wizard-subsection {
        padding: 0.75rem;
    }

    .wizard-subsection .phone-widget .form-select,
    .wizard-subsection .phone-widget .nice-select {
        flex-basis: 130px;
        max-width: 130px;
        width: 130px;
    }

    .step-form-control {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
    
    .step-actions {
        margin: 1rem -1.25rem -1.25rem -1.25rem;
        padding: 1rem 1.25rem;
    }

    .step-actions-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .step-actions-extra,
    .step-actions-nav {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }
