/* =========================================================
   File: assets/css/theme-components.css
   Purpose: Enterprise Theme Components Styling
   Stack: AdminLTE + Bootstrap 5
   Depends on: theme-core.css
   ========================================================= */

/* =========================================================
   DATATABLE WRAPPER
   ========================================================= */
.theme-datatable-wrapper {
    width: 100%;
}

.theme-datatable-wrapper .dataTables_length,
.theme-datatable-wrapper .dataTables_filter,
.theme-datatable-wrapper .dataTables_info,
.theme-datatable-wrapper .dataTables_paginate {
    margin: 0;
}

.theme-datatable-wrapper .dt-length-wrap,
.theme-datatable-wrapper .dt-filter-wrap,
.theme-datatable-wrapper .dt-buttons-wrap {
    gap: var(--space-3);
}

.theme-datatable-wrapper .dataTables_length label,
.theme-datatable-wrapper .dataTables_filter label {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #475467;
}

.theme-datatable-wrapper .dataTables_length select,
.theme-datatable-wrapper .dataTables_filter input {
    margin: 0 !important;
}

.theme-datatable-wrapper .dataTables_filter {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.theme-datatable-wrapper .dataTables_filter label {
    justify-content: flex-end;
}

.theme-datatable-wrapper .dataTables_filter input.form-control,
.theme-datatable-wrapper .dataTables_filter input.theme-dt-filter-input {
    width: 220px !important;
    max-width: 100%;
}

.theme-datatable-wrapper .dataTables_length select.form-select,
.theme-datatable-wrapper .dataTables_length select.theme-dt-length-select {
    width: 78px;
    min-width: 78px;
    padding-right: 1.75rem !important;
}

.theme-datatable-wrapper .dataTables_info {
    font-size: var(--font-size-sm);
    color: #667085;
    padding-top: 0 !important;
}

.theme-datatable-wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.theme-datatable-wrapper .pagination {
    gap: var(--space-2);
    flex-wrap: wrap;
}

.theme-datatable-wrapper .page-item .page-link {
    min-width: 30px;
    height: 30px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.theme-datatable-wrapper .page-item.active .page-link {
    color: #fff;
}

.theme-datatable-wrapper .dt-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.theme-datatable-wrapper .dt-buttons .btn {
    min-width: auto;
}

/* =========================================================
   DATATABLE TABLE ENHANCEMENTS
   ========================================================= */
.theme-datatable,
.theme-datatable.table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
}

.theme-datatable.table thead th {
    position: relative;
    vertical-align: middle;
    border-top: 1px solid var(--table-border);
    border-bottom: 1px solid var(--table-border);
}

.theme-datatable.table tbody td {
    vertical-align: middle;
}

.theme-datatable.table thead th:first-child,
.theme-datatable.table tbody td:first-child {
    border-left: 1px solid var(--table-border);
}

.theme-datatable.table thead th:last-child,
.theme-datatable.table tbody td:last-child {
    border-right: 1px solid var(--table-border);
}

.theme-datatable.table tbody tr:last-child td {
    border-bottom: 1px solid var(--table-border);
}

.theme-datatable.table.dataTable.no-footer {
    border-bottom: none !important;
}

.theme-datatable.table tbody tr.selected,
.theme-datatable.table tbody tr.table-active {
    background: rgba(var(--theme-primary-rgb), 0.08);
}

.theme-datatable.table tbody tr td.dataTables_empty {
    text-align: center;
    padding: 1rem !important;
    color: #667085;
    font-weight: 500;
}

/* =========================================================
   SORT ICON ALIGNMENT
   ========================================================= */
table.dataTable thead > tr > th.sorting,
table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc,
table.dataTable thead > tr > th.sorting_asc_disabled,
table.dataTable thead > tr > th.sorting_desc_disabled {
    padding-right: 1.6rem !important;
}

table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    top: 50% !important;
    transform: translateY(-50%);
    opacity: 0.35;
}

/* =========================================================
   RESPONSIVE DETAILS ROW
   ========================================================= */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    padding-left: 1.8rem !important;
    position: relative;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    top: 50% !important;
    left: 0.55rem !important;
    transform: translateY(-50%);
    margin-top: 0 !important;
    width: 14px !important;
    height: 14px !important;
    line-height: 12px !important;
    border: none !important;
    box-shadow: none !important;
    background-color: var(--theme-primary) !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before {
    background-color: var(--theme-danger) !important;
}

table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%;
    margin: 0.25rem 0;
}

table.dataTable > tbody > tr.child ul.dtr-details > li {
    border-bottom: 1px dashed #e4e7ec;
    padding: 0.35rem 0;
}

table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
    border-bottom: none;
}

table.dataTable > tbody > tr.child span.dtr-title {
    font-weight: 700;
    color: #344054;
    min-width: 110px;
    display: inline-block;
}

table.dataTable > tbody > tr.child span.dtr-data {
    color: #475467;
}

/* =========================================================
   ACTION BUTTONS
   ========================================================= */
.theme-action-group {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.theme-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 28px;
    height: 28px;
    padding: 0 0.55rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.theme-action-btn i,
.theme-action-btn svg {
    font-size: 0.8rem;
}

.theme-action-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.theme-action-btn-primary {
    background: rgba(var(--theme-primary-rgb), 0.10);
    color: var(--theme-primary);
    border-color: rgba(var(--theme-primary-rgb), 0.18);
}

.theme-action-btn-success {
    background: rgba(var(--theme-success-rgb), 0.10);
    color: var(--theme-success);
    border-color: rgba(var(--theme-success-rgb), 0.18);
}

.theme-action-btn-danger {
    background: rgba(var(--theme-danger-rgb), 0.10);
    color: var(--theme-danger);
    border-color: rgba(var(--theme-danger-rgb), 0.18);
}

.theme-action-btn-warning {
    background: rgba(var(--theme-warning-rgb), 0.18);
    color: #7a5200;
    border-color: rgba(var(--theme-warning-rgb), 0.28);
}

.theme-action-btn-secondary {
    background: rgba(var(--theme-secondary-rgb), 0.10);
    color: var(--theme-secondary);
    border-color: rgba(var(--theme-secondary-rgb), 0.18);
}

.theme-action-btn-dark {
    background: rgba(var(--theme-dark-rgb), 0.08);
    color: var(--theme-dark);
    border-color: rgba(var(--theme-dark-rgb), 0.14);
}

/* =========================================================
   DROPDOWN ACTION MENU
   ========================================================= */
.theme-action-dropdown .dropdown-toggle::after {
    margin-left: 0.35rem;
}

.theme-action-menu {
    min-width: 180px;
    padding: var(--space-2);
}

.theme-action-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.theme-action-menu .dropdown-item i,
.theme-action-menu .dropdown-item svg {
    width: 14px;
    text-align: center;
}

.theme-action-menu .dropdown-divider {
    margin: var(--space-2) 0;
}

/* =========================================================
   STATUS PILLS / BADGES
   ========================================================= */
.theme-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 24px;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid transparent;
}

.theme-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.theme-status-success {
    background: rgba(var(--theme-success-rgb), 0.10);
    color: var(--theme-success);
    border-color: rgba(var(--theme-success-rgb), 0.18);
}

.theme-status-danger {
    background: rgba(var(--theme-danger-rgb), 0.10);
    color: var(--theme-danger);
    border-color: rgba(var(--theme-danger-rgb), 0.18);
}

.theme-status-warning {
    background: rgba(var(--theme-warning-rgb), 0.20);
    color: #8a5a00;
    border-color: rgba(var(--theme-warning-rgb), 0.28);
}

.theme-status-info {
    background: rgba(var(--theme-info-rgb), 0.12);
    color: #0b7d95;
    border-color: rgba(var(--theme-info-rgb), 0.22);
}

.theme-status-primary {
    background: rgba(var(--theme-primary-rgb), 0.10);
    color: var(--theme-primary);
    border-color: rgba(var(--theme-primary-rgb), 0.18);
}

.theme-status-secondary {
    background: rgba(var(--theme-secondary-rgb), 0.10);
    color: var(--theme-secondary);
    border-color: rgba(var(--theme-secondary-rgb), 0.18);
}

/* =========================================================
   MINI SUMMARY / STATS BOX
   ========================================================= */
.theme-mini-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    min-height: 78px;
}

.theme-mini-stat + .theme-mini-stat {
    margin-top: var(--space-3);
}

.theme-mini-stat-content {
    min-width: 0;
}

.theme-mini-stat-label {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: #667085;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.theme-mini-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #101828;
    line-height: 1.1;
}

.theme-mini-stat-subtext {
    margin-top: 0.15rem;
    font-size: var(--font-size-xs);
    color: #667085;
}

.theme-mini-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--theme-primary-rgb), 0.08);
    color: var(--theme-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

/* =========================================================
   TABLE CONTENT HELPERS
   ========================================================= */
.theme-cell-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #101828;
    line-height: 1.25;
    margin: 0;
}

.theme-cell-subtitle {
    margin-top: 0.1rem;
    font-size: var(--font-size-xs);
    color: #667085;
    line-height: 1.25;
}

.theme-code {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: #344054;
    background: #f2f4f7;
    border: 1px solid #e4e7ec;
    border-radius: var(--radius-xs);
    padding: 0.15rem 0.35rem;
    letter-spacing: 0.02em;
}

.theme-price {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: #101828;
    white-space: nowrap;
}

.theme-muted {
    color: #667085 !important;
}

.theme-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   SWEETALERT2
   ========================================================= */
.swal2-popup {
    border-radius: var(--radius-md) !important;
    padding: 1rem !important;
    box-shadow: var(--shadow-md) !important;
}

.swal2-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #101828 !important;
    padding: 0 !important;
    margin-bottom: 0.5rem !important;
}

.swal2-html-container,
.swal2-content,
.swal2-text {
    font-size: var(--font-size-sm) !important;
    color: #475467 !important;
    line-height: 1.45 !important;
    margin-top: 0 !important;
}

.swal2-icon {
    margin: 0.25rem auto 0.75rem !important;
}

.swal2-actions {
    margin-top: 0.9rem !important;
    gap: var(--space-2);
}

.swal2-styled {
    min-height: var(--control-height) !important;
    height: var(--control-height) !important;
    padding: 0 var(--space-4) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
    font-size: var(--font-size-sm) !important;
    font-weight: 600 !important;
}

.swal2-confirm {
    background-color: var(--theme-primary) !important;
}

.swal2-cancel {
    background-color: var(--theme-secondary) !important;
}

.swal2-deny {
    background-color: var(--theme-danger) !important;
}

/* =========================================================
   TOASTR
   ========================================================= */
#toast-container {
    z-index: var(--z-toast);
}

#toast-container > .toast,
#toast-container > .toast-success,
#toast-container > .toast-error,
#toast-container > .toast-info,
#toast-container > .toast-warning {
    opacity: 1;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.7rem 0.8rem 0.7rem 0.9rem;
    width: 320px;
    max-width: calc(100vw - 1rem);
    background-image: none !important;
}

#toast-container > .toast-success {
    background-color: #ecfdf3;
    border-left: 4px solid var(--theme-success);
    color: #065f46;
}

#toast-container > .toast-error {
    background-color: #fef3f2;
    border-left: 4px solid var(--theme-danger);
    color: #b42318;
}

#toast-container > .toast-warning {
    background-color: #fffaeb;
    border-left: 4px solid #d4a017;
    color: #946200;
}

#toast-container > .toast-info {
    background-color: #eff8ff;
    border-left: 4px solid var(--theme-info);
    color: #095c75;
}

.toast-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.toast-message {
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

#toast-container .toast-close-button {
    right: 0.15rem;
    top: 0.1rem;
    font-size: 1rem;
    text-shadow: none;
    opacity: 0.65;
}

#toast-container .toast-progress {
    height: 3px;
    opacity: 0.35;
}

/* =========================================================
   CARD TOOL BUTTONS
   ========================================================= */
.theme-card-tools {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.theme-card-tool-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e7ec;
    background: #fff;
    color: #475467;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease-in-out;
}

.theme-card-tool-btn:hover {
    background: #f8fafc;
    color: var(--theme-primary);
    border-color: rgba(var(--theme-primary-rgb), 0.22);
}

/* =========================================================
   INLINE FILTER BAR
   ========================================================= */
.theme-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--space-3);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
}

.theme-filter-item {
    min-width: 140px;
    flex: 1 1 140px;
}

.theme-filter-item-sm {
    flex: 0 0 110px;
    min-width: 110px;
}

.theme-filter-item-md {
    flex: 0 0 180px;
    min-width: 180px;
}

.theme-filter-item-lg {
    flex: 1 1 240px;
    min-width: 240px;
}

/* =========================================================
   EMPTY / HELPER BLOCKS
   ========================================================= */
.theme-empty-state {
    padding: 1.25rem 1rem;
    text-align: center;
    border: 1px dashed #d0d5dd;
    border-radius: var(--radius-md);
    background: #fcfcfd;
}

.theme-empty-state-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2f4f7;
    color: #667085;
    font-size: 1.05rem;
}

.theme-empty-state-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #101828;
    margin-bottom: 0.25rem;
}

.theme-empty-state-text {
    font-size: var(--font-size-sm);
    color: #667085;
    margin: 0;
}

/* =========================================================
   FORM HELPER / VALIDATION
   ========================================================= */
.theme-help-text {
    margin-top: var(--space-2);
    font-size: var(--font-size-xs);
    color: #667085;
    line-height: 1.35;
}

.theme-required {
    color: var(--theme-danger);
    font-weight: 700;
}

.invalid-feedback {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--theme-danger) !important;
}

/* =========================================================
   COMPACT SECTION TITLE BAR
   ========================================================= */
.theme-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.theme-section-title-wrap {
    min-width: 0;
}

.theme-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #101828;
    line-height: 1.2;
}

.theme-section-subtitle {
    margin-top: 0.15rem;
    font-size: var(--font-size-xs);
    color: #667085;
    line-height: 1.3;
}

.theme-section-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* =========================================================
   LIST / META CHIPS
   ========================================================= */
.theme-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 24px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.theme-chip-primary {
    background: rgba(var(--theme-primary-rgb), 0.10);
    color: var(--theme-primary);
}

.theme-chip-success {
    background: rgba(var(--theme-success-rgb), 0.10);
    color: var(--theme-success);
}

.theme-chip-danger {
    background: rgba(var(--theme-danger-rgb), 0.10);
    color: var(--theme-danger);
}

/* =========================================================
   LOADING / PROCESS STATE
   ========================================================= */
.is-processing {
    pointer-events: none;
    opacity: 0.75;
}

.theme-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(1px);
    border-radius: inherit;
}

.theme-spinner {
    width: 26px;
    height: 26px;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.18);
    border-top-color: var(--theme-primary);
    border-radius: 50%;
    animation: theme-spin 0.8s linear infinite;
}

/* =========================================================
   GLOBAL SEARCHABLE SELECTS
   ========================================================= */
.theme-searchable-select {
    position: relative;
}

.theme-native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.theme-searchable-control {
    display: flex;
    align-items: stretch;
    min-height: 34px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.theme-searchable-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 6px 10px;
    background: transparent;
    color: #0f172a;
    font-size: 13px;
    cursor: text;
}

.theme-searchable-input[readonly] {
    cursor: pointer;
}

.theme-searchable-input::placeholder {
    color: #64748b;
}

.theme-searchable-arrow {
    width: 34px;
    border: 0;
    border-left: 1px solid #dbeafe;
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
    color: #1d4ed8;
    font-size: 11px;
    cursor: pointer;
}

.theme-searchable-options {
    display: none;
    position: absolute;
    z-index: 2110;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    max-height: 190px;
    overflow-y: auto;
    border: 1px solid var(--ts-select-dropdown-border, #93c5fd);
    border-radius: 6px;
    background: var(--ts-select-dropdown-panel-bg, linear-gradient(180deg, #ffffff 0%, #f8fafc 100%));
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.theme-searchable-select.is-open .theme-searchable-options,
.theme-searchable-options.is-visible {
    display: block;
}

.theme-searchable-select.has-query .theme-searchable-options {
    border-color: #7c3aed;
    background: linear-gradient(180deg, #eef2ff, #fdf2f8);
}

.theme-searchable-option {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, .25);
    padding: 8px 10px;
    background: transparent;
    color: var(--ts-select-dropdown-text, #0f172a);
    text-align: left;
    font-size: 13px;
    font-weight: 700;
}

.theme-searchable-option:hover,
.theme-searchable-option.is-active {
    background: var(--ts-select-dropdown-active-bg, var(--ts-modal-header-bg, linear-gradient(135deg, #2563eb, #06b6d4))) !important;
    color: var(--ts-select-dropdown-active-text, #fff) !important;
}

.theme-searchable-option.is-selected {
    background: var(--ts-select-dropdown-active-bg, var(--ts-modal-header-bg, linear-gradient(135deg, #16a34a, #0ea5e9))) !important;
    color: var(--ts-select-dropdown-active-text, #fff) !important;
}

.theme-searchable-empty {
    padding: 8px 10px;
    color: #7c2d12;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 700;
}

/* Keep global dropdown/search widgets usable above Bootstrap modal overlays. */
.select2-container--open,
.select2-dropdown,
.choices__list--dropdown,
.premium-tag-select-dropdown,
.theme-searchable-options.theme-searchable-options-floating,
.flatpickr-calendar.open {
    z-index: 280020 !important;
}

@keyframes theme-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   ADMINLTE SMALL FIXES
   ========================================================= */
.card-tools {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.small-box,
.info-box {
    margin-bottom: var(--space-4);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.main-footer {
    padding: var(--space-4);
    font-size: var(--font-size-sm);
    color: #667085;
    border-top: 1px solid var(--border-color);
    background: #fff;
}

/* =========================================================
   END
   ========================================================= */
