/* Shared modal form UI (stores, units, brands, modifiers, etc.) */

.modal-form-shell {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-form-header {
    background-color: var(--theme-color-primary);
    color: #fff;
    padding: 15px 20px;
    border-bottom: none;
}

.modal-form-header .close {
    color: #fff;
    opacity: 1;
    text-shadow: none;
}

.modal-form-header .modal-title {
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.modal-form-footer {
    background-color: #fff;
    border-top: 1px solid #f1f5f9;
    padding: 15px 25px;
    text-align: left;
}

.modal-form-btn-close {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    background-color: #e2e8f0;
    color: #475569;
    border: none;
    margin-right: 10px;
}

.modal-form-btn-primary {
    border-radius: 8px;
    padding: 8px 25px;
    font-weight: 600;
    background-color: var(--theme-color-primary);
    border: none;
    color: #fff;
}

.modal-form-ui .form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    min-height: 42px;
    transition: all 0.3s;
}

.modal-form-ui .form-control:focus {
    border-color: var(--theme-color-primary);
    box-shadow: 0 0 0 1px var(--theme-color-primary);
}

.modal-form-ui label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.modal-form-ui .modal-body {
    background-color: #f8fafc;
    padding: 25px;
}

.modal-form-ui .form-group {
    margin-bottom: 15px;
}

.modal-form-ui textarea.form-control {
    height: auto;
}

.modal-form-ui .select2-container--default .select2-selection--single {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-height: 42px;
}

.modal-form-ui .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-right: 12px;
    padding-left: 12px;
}

.modal-form-ui .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

/* Toggle card (active status, permissions, etc.) */
.modal-form-ui .tax-card-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    padding: 10px 20px;
    direction: rtl;
    margin-top: 0;
    transition: all 0.3s ease;
    background-color: #fff;
    border: 1px solid #e3e8ef;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.modal-form-ui .tax-card-container:hover {
    box-shadow: 0 4px 15px var(--theme-color-shadow, rgba(0, 0, 0, 0.08));
}

.modal-form-ui .tax-card-container .title-text {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.modal-form-ui .tax-card-container .toggle-group {
    display: flex;
    align-items: center;
}

.modal-form-ui .tax-card-container .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-bottom: 0;
}

.modal-form-ui .tax-card-container .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.modal-form-ui .tax-card-container .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}

.modal-form-ui .tax-card-container .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    transition: 0.4s;
}

.modal-form-ui .tax-card-container .switch input:checked + .slider {
    background-color: var(--theme-color-primary);
}

.modal-form-ui .tax-card-container .switch input:checked + .slider:before {
    transform: translateX(24px);
}

.modal-form-ui .tax-card-container .slider.round {
    border-radius: 34px;
}

.modal-form-ui .tax-card-container .slider.round:before {
    border-radius: 50%;
}

.modal-form-ui .tax-card-container.active-border {
    border-color: var(--theme-color-primary);
    box-shadow: 0 0 0 1px var(--theme-color-primary);
}

.modal-form-ui .table {
    background: #fff;
    border-radius: 8px;
}

/* Print template picker modal */
.modal-print-template-dialog {
    width: 100%;
    max-width: 620px;
    margin: 30px auto;
}

.modal-form-ui select.print-template-select {
    width: 100%;
    direction: rtl;
    text-align: right;
    padding: 12px 16px 12px 40px;
    font-size: 15px;
    line-height: 1.5;
    min-height: 48px;
    height: auto;
    white-space: normal;
    text-overflow: ellipsis;
}

.modal-form-ui select.print-template-select option {
    direction: rtl;
    text-align: right;
    padding: 8px 12px;
    white-space: normal;
}

.modal-form-ui .currency-checkbox-list {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    padding: 10px 16px;
    max-height: 140px;
    overflow-y: auto;
}

.modal-form-ui .currency-checkbox-list .checkbox {
    margin: 8px 0;
}

.modal-form-ui .currency-checkbox-list label {
    font-weight: 500;
    margin-bottom: 0;
    cursor: pointer;
}
