/* Recharge storefront layout & image card grid */
.recharge-source-page .recharge-breadcrumb { margin-right: 0; }
.recharge-source-page h1.title { line-height: 1.4; font-size: 22px; font-weight: 700; }
.recharge-role-button { margin-left: 4px; font-size: 12px; text-align: left; white-space: normal; }
.recharge-source-page .multiline-placeholder { white-space: pre-line; }
.recharge-source-page input[type="file"] { max-width: 100%; }
.recharge-source-page [data-import-sample] { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.recharge-source-page .recharge-account-display { white-space: pre-line; }
.recharge-source-page .select2-container { max-width: 100%; width: 100% !important; }

/* Modern workspace overrides */
.recharge-modern-workspace.form-m1 {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Left Column: Hero Card */
.recharge-hero-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.recharge-hero-card__thumb {
    position: relative;
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.recharge-hero-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.recharge-hero-card__info {
    flex: 1;
    min-width: 0;
}
.recharge-hero-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.3;
}
.recharge-hero-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.recharge-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}
.recharge-tag--blue { background: #2563eb; }
.recharge-tag--green { background: #16a34a; }
.recharge-hero-card__desc {
    font-size: 13px;
    color: #6b7280;
}
.recharge-hero-card__actions {
    flex-shrink: 0;
}
.recharge-excel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626 !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease;
}
.recharge-excel-btn:hover {
    background: #fee2e2;
}

/* Left Column: Packages Card */
.recharge-packages-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.recharge-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
}
.recharge-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 12px;
}
.recharge-package-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}
.recharge-package-item:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}
.recharge-package-item.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}
.recharge-package-item__name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    padding-right: 36px;
}
.recharge-package-item__prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.recharge-package-item__net {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
}
.recharge-package-item__old {
    font-size: 12px;
    color: #9ca3af;
}
.recharge-package-item__disc {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}
.recharge-empty-packages {
    padding: 18px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

/* Left Column: Notes Card */
.recharge-notes-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 16px 20px;
}
.recharge-notes-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 6px;
}
.recharge-notes-card__body {
    font-size: 13px;
    color: #1e293b;
    line-height: 1.6;
}
.recharge-notes-card__body p:last-child {
    margin-bottom: 0;
}

/* Right Column: Order Card */
.recharge-order-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.recharge-order-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}
.recharge-field-group {
    margin-bottom: 14px;
}
.recharge-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.recharge-field-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.recharge-field-label-row .recharge-field-label {
    margin-bottom: 0;
}
.recharge-field-label::after {
    content: " *";
    color: #ef4444;
}
.recharge-order-card .form-control {
    height: 42px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    color: #111827;
}
.recharge-order-card .form-control[readonly] {
    background-color: #f9fafb;
    color: #374151;
    font-weight: 600;
}
.recharge-total-input {
    color: #dc2626 !important;
    font-weight: 700 !important;
}
.recharge-submit-wrap {
    margin-top: 18px;
}
.recharge-pay-btn {
    background: #4f94f8 !important;
    border-color: #4f94f8 !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    padding: 11px 18px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.recharge-pay-btn:hover:not(:disabled) {
    background: #2563eb !important;
    border-color: #2563eb !important;
}
.recharge-pay-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Catalog Image Cards Grid Section */
.recharge-catalog-section {
    margin-top: 24px;
    margin-bottom: 24px;
}
.recharge-catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.recharge-catalog-heading {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.recharge-search-box {
    position: relative;
    width: 260px;
    max-width: 100%;
}
.recharge-search-box .form-control {
    padding-right: 34px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    height: 38px;
    font-size: 13px;
    background: #fff;
}
.recharge-search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 13px;
    pointer-events: none;
}
.recharge-catalog-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
}
.recharge-service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none !important;
    color: #111827 !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.recharge-service-card:hover {
    transform: translateY(-2px);
    border-color: #fb923c;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.recharge-service-card.is-active {
    border-color: #f97316;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.18);
}
.recharge-service-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 10px;
}
.recharge-service-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.recharge-badge-hot {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
    line-height: 1.3;
    letter-spacing: 0.03em;
}
.recharge-badge-disc {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.8);
    color: #fde047;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
    line-height: 1.3;
}
.recharge-service-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 8px;
}
.recharge-service-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 35px;
}
.recharge-service-card__btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #fdba74;
    background: #fff;
    color: #ea580c;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.15s ease;
}
.recharge-service-card:hover .recharge-service-card__btn,
.recharge-service-card.is-active .recharge-service-card__btn {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}
.recharge-search-empty {
    padding: 28px;
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 1199.98px) {
    .recharge-catalog-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (max-width: 991.98px) {
    .recharge-catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .recharge-hero-card {
        flex-wrap: wrap;
    }
    .recharge-hero-card__actions {
        width: 100%;
    }
    .recharge-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .recharge-search-box {
        width: 100%;
    }
}
@media (max-width: 575.98px) {
    .recharge-source-page > .description {
        flex-wrap: wrap;
        gap: 8px;
    }
    .recharge-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .recharge-package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
