/* ====== Shared Card Style ====== */
.card {
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    font-family: "system-ui" !important;
}

/* ====== Rental Card ====== */
.rental-card {
    background: linear-gradient(to bottom right, rgba(42,156,161,0.1), #ffffff);
    border: 1px solid rgba(42,156,161,0.2);
    margin-top: 32px !important;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    background-color: transparent;
    border: unset;
    padding: 0;
}

.card-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 1.55em;
    font-family: "system-ui" !important;
    margin-bottom: 0px !important;
}

.status-badge {
    background: #22c55e;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.info-box {
    background: #fff;
    padding: 16px;
    border-radius: 10px;
}

.info-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.info-value {
    font-size: 22px;
    font-weight: bold;
    color: #222;
}

.due-date {
    color: #dc2626;
}

.deposit {
    color: #2A9CA1;
}

.action-button {
    width: 100%;
    background: #2A9CA1;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.action-button:hover, .action-button:focus {
    background: #238b8f;
}

/* ====== Sustainability Card ====== */
.sustain-card {
    background: linear-gradient(to bottom right, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
}

.sustain-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sustain-header svg {
    width: 20px;
    height: 20px;
    stroke: #16a34a;
}

.sustain-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-bottom: 0px !important;
}

.sustain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sustain-grid > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.green-text {
    color: #15803d;
    font-weight: bold;
}

/* ====== Responsive ====== */
@media (max-width: 992px) {
    .info-grid,
    .sustain-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .info-grid,
    .sustain-grid {
        grid-template-columns: 1fr;
    }
}


/* ========= Refund Popup ========== */

.modal-dialog {
    font-family: 'Segoe ui';
}

h5.modal-title {
    color: #111827;
}

.modal-dialog .modal-header button.close {
    background: #2A9CA1;
    color: #fff;
}

#refundInstruction {
    color: #111827;
    font-size: 16px;
}

#orderData {
    margin-top: 20px;
}

tbody#orderList tr{
    border-top: 1px solid #E5E7EB;
}

.modal-dialog .modal-header button.close:hover {
    background-color: #238b8f;
    color: #fff;
}

.modal-dialog .modal-footer button {
    background: #2A9CA1;
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer !important;
    transition: background 0.3s ease;
}

.modal-dialog .modal-footer button:hover, .modal-dialog .modal-footer button:focus {
    background: #238b8f;
}

.process-deposit:hover, .process-deposit:focus {
    background-color: #238b8f;
    color: #fff;
}

.process-deposit {
    background: #2A9CA1;
    color: #fff;
    padding: 8px 10px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer !important;
    transition: background 0.3s ease;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 767px;
    }
}

/************* Data table *******************/
#refundOrdersTable_wrapper {
    max-height: 550px !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    width: 100% !important;
    background-color: #fff !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Table container */
#refundOrdersTable {
    border: 1px solid #E5E7EB;
	box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    /* overflow: hidden; */
    overflow-y: scroll;
    border-collapse: collapse !important;
}

/* Header */
#refundOrdersTable thead {
    background: #2A9CA1;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.deposite-table td, .deposite-table th {
	padding: 10px !important;
    text-align: left !important;
    vertical-align: middle !important;
}

/* Rows */
#refundOrdersTable tbody tr {
    transition: all 0.2s ease;
}

#refundOrdersTable tbody tr:hover {
    background: #f1f3f5;
}

#refundOrdersTable.deposite-table tbody tr {
    border-bottom: 1px solid #E5E7EB !important;
}

/* Search box */

#refundOrdersTable_filter label{
    width: 100%;
}

#refundOrdersTable_filter label input[type=search] {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #E5E5E5;
    color: #111827;
}

.dataTables_filter input {
    border-radius: 30px;
    border: 1px solid #ddd;
    padding: 6px 14px;
    font-size: 14px;
}

/* Pagination */
.dataTables_paginate .pagination {
    margin: 0;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 50px;
}

.dataTables_paginate {
	display: flex;
	gap: 10px;
	justify-content: end;
	font-size: 18px;
}

.dataTables_paginate a {
	cursor: pointer;
	padding: 2px 8px;
}

.dataTables_paginate span {
	display: flex;
	gap: 10px;
}

.dataTables_paginate span a.current {
	color: #fff !important;
	background-color: #2A9CA1;
}

/* Info text */
.dataTables_info {
    font-size: 13px;
    color: #6c757d;
}

#refundOrdersTable .info-icon {
    width: 16px;
    height: 16px;
    font-size: 14px;
    margin-left: 4px;
}

#refundOrdersTable tbody#orderList td.deposit-status {
    text-align: center !important;
    padding: 4px !important;
}

#refundOrdersTable tbody#orderList td.deposit-status span {
    padding: 6px;
    border-radius: 99px;
}

/* Pending */
#refundOrdersTable tbody#orderList td.pending span {
    background-color: #f59e0b;
    color: #ffffff;
}

/* Awaiting Inspection */
#refundOrdersTable tbody#orderList td.awaiting_inspection span {
    background-color: #fbbf24;
    color: #000000;
}

/* Inspected */
#refundOrdersTable tbody#orderList td.inspected span {
    background-color: #3b82f6;
    color: #ffffff;
}

/* Approved For Refund */
#refundOrdersTable tbody#orderList td.approved_for_refund span {
    background-color: #14b8a6;
    color: #ffffff;
}

/* Requested */
#refundOrdersTable tbody#orderList td.requested span {
    background-color: #8b5cf6;
    color: #ffffff;
}

/* Rejected */
#refundOrdersTable tbody#orderList td.rejected span {
    background-color: #ef4444;
    color: #ffffff;
}

/* Refunded */
#refundOrdersTable tbody#orderList td.refunded span {
    background-color: #10b981;
    color: #ffffff;
}

/* Refund Failed */
#refundOrdersTable tbody#orderList td.refund_failed span {
    background-color: #b91c1c;
    color: #ffffff;
}

/* Disputed */
#refundOrdersTable tbody#orderList td.disputed  span{
    background-color: #eab308;
    color: #000000;
}

/* Disputed */
#refundOrdersTable tbody#orderList td.disputed div span {
    background-color: #eab308;
    color: #000000;
}

/* Buttons */

#refundOrdersTable .btn-disable {
    background-color: #2A9CA1;
    color: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 9999px;
    font-size: 14px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}
/****************** end Data Table **************/

/*********** Info tooltip ***************/
  .info-wrapper {
    position: relative;
    display: inline-block;
  }

  .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #2A9CA1;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
  }

  .info-icon:hover {
    background-color: #2A9CA1;
  }

  .btn-disable .info-icon {
    background-color: #fff;
    color: #2A9CA1;
  }

  .info-tooltip {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #333;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .info-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
  }

  .info-wrapper:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .info-label-tooltip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .sustain-grid .info-label-tooltip {
    justify-content: start;
  }

  .sustain-grid .member-since {
    min-height: 26px;
  }
/*********** end info tooltip ********/
/************ my account order tab ********/
.my-account-order-tabs {
    margin-top: 20px;
}

.my-account-order-tab-menu {
    list-style: none;
    padding: 0;
    display: flex;
    border-bottom: 2px solid #ddd;
}

.my-account-order-tab-menu li {
    padding: 10px 20px;
    cursor: pointer;
}

.my-account-order-tab-menu li.active {
    background-color: #f1f1f1;
    border-bottom: 2px solid #2A9CA1;
    font-weight: bold;
}

.my-account-order-tab-pane {
    display: none;
    margin-top: 20px;
}

.my-account-order-tab-pane.active {
    display: block;
}
/************end my account order tab *****/

/******* processDepositModal CSS ******/

#processDepositModal {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#processDepositModal .modal-body .form-check label.form-check-label {
    font-weight: 600;
}

#processDepositModal .modal-body {
    font-size: 16px;
    color: #374151;
}

#processDepositModal .modal-body #courierFields {
    padding: 20px;
}

#processDepositModal .modal-body #courierFields .form-label {
    /* font-weight: 600; */
    margin-bottom: 10px;
}

#processDepositModal .modal-body #courierFields input {
    border: 1px solid #E5E5E5;
    background-color: #f9fafa;
    border-radius: 6px;
    color: #374151;
    box-shadow: 0px 10px 15px -5px rgba(0, 0, 0, 0.1);
}



/* 1. Hide the Courier Fields by default */
#processDepositModal .modal-body #courierFields {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #2A9CA1;
    border-radius: 4px;
}

/* 2. Show Courier Fields ONLY when Own Courier radio is :checked */
/* We target the sibling container #courierFields */
#processDepositModal .modal-body input#ownCourierOption:checked ~ #courierFields {
    display: block !important;
}

/* 3. Custom Radio Button Styling */
#processDepositModal .modal-body .form-check {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

#processDepositModal .modal-body .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #2A9CA1;
    border-radius: 50%;
    margin-right: 10px;
    margin-left: 20px;
    position: relative;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
}

/* The "Dot" inside the radio when selected */
#processDepositModal .modal-body .form-check-input:checked::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2A9CA1;
}

/* Label styling */
#processDepositModal .modal-body .form-check-label {
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

/* Input field styling inside the toggle */
#processDepositModal .modal-body .form-control {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    transition: border-color 0.3s;
}

#processDepositModal .modal-body .form-control:focus {
    border-color: #2A9CA1;
    outline: none;
}

/******* End processDepositModal CSS *******/