/*:root {*/
/*    --tblr-primary: #ff1281;*/
/*    --tblr-primary-rgb: 0, 162, 227;*/
/*}*/

/* body {
    background-color: #ebae2951;
} */

body {
    font-family: "Cairo", sans-serif !important;
}
.available-sizes input {
    width: 100%;
}

img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

a {
    color: var(--tblr-heading-color);
    text-decoration: none !important;
}

.inline-inputs {
    display: grid;
    align-items: stretch;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.image-input,
.icon-image-input {
    position: relative;
    border-radius: 5px;
    border: var(--tblr-border-width) solid var(--tblr-border-color);
    overflow: hidden;
    background-color: var(--tblr-body-bg);
}

/* .image-input::before,
.icon-image-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: url(../../static/img-placeholder.png) center;
    background-size: cover;
} */

.image-input .overlay-icon,
.icon-image-input .overlay-icon {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background-color: #000000;
    color: white;
    opacity: 0;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    z-index: 10;
}

.image-input:hover .overlay-icon,
.icon-image-input:hover .overlay-icon {
    opacity: 0.7;
}

.image-input img,
.icon-image-input img {
    position: relative;
    height: 58px;
    aspect-ratio: 1;
}

.icon-image-input img {
    padding: 0.5rem;
    object-fit: contain;
}

.image-input.product-preview-image,
.image-input.profile-photo {
    min-width: 100%;
}

.image-input.product-preview-image img,
.image-input.profile-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.image-input.profile-photo img {
    object-fit: cover;
}

.form-floating > .form-control {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > .form-control ~ label {
    color: rgba(var(--tblr-body-color-rgb), 0.65);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > .form-control::placeholder {
    color: rgba(var(--tblr-muted-rgb), 0.7) !important;
}

.form-floating > .form-control:placeholder-shown ~ label::after {
    position: absolute;
    inset: 1rem 0.375rem;
    z-index: -1;
    height: 1.5em;
    content: "";
    background-color: var(--tblr-bg-forms);
    border-radius: var(--tblr-border-radius);
}

.table-image {
    background-color: var(--tblr-body-bg);
    border: var(--tblr-border-width) solid var(--tblr-border-color);
    border-radius: 5px;
}

.form-floating .ts-control {
    padding: 1.825rem 0.75rem 0.225rem !important;
}

.ts-dropdown.multi {
    z-index: 1060;
}

.size,
.piece {
    position: relative;
}

.size-remove-btn,
.piece-remove-btn {
    position: absolute;
    top: 11px;
    right: 20px;
}

.piece-remove-btn {
    top: 22px;
    right: 60px;
    z-index: 10;
}

.vertical-separator {
    height: 100%;
    border-left: 1px solid var(--tblr-border-color);
}

.admins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.admin-card {
    opacity: 0.5;
}

.admin-card:hover {
    opacity: 1;
}

.admin-card .admin-avatar .avatar {
    height: 60px !important;
    width: auto;
    aspect-ratio: 1;
}

.admin-card .admin-avatar {
    position: relative;
}

.admin-card.active {
    opacity: 1;
    box-shadow: inset 5px 0 0 0 #2fb344;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.product-card {
    border: 1px solid var(--tblr-body-bg);
    transition: 0.2s;
}

.product-card:hover {
    background-color: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 5px;
}

.product-card .product-image {
    background-color: var(--tblr-body-bg);
}

.product-card:hover .product-image img {
    width: auto;
    aspect-ratio: 1;
}

.product-card .product-info,
.product .product-info {
    padding: 1rem;
}

.product-card .product-info .product-attributes,
.product .product-info .product-attributes {
    color: var(--tblr-muted);
    font-size: 0.8rem;
}

.pieces-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.pieces-form .piece-input {
    background-color: var(--tblr-bg-surface);
    padding: 1rem;
    border-radius: 5px;
}
/* يحط كل النصوص في وسط كل الخلايا والأعمدة */
/* table.dataTable th,
table.dataTable td {
    text-align: center !important;
    vertical-align: middle !important; 
} */

/* لو فيه flex داخل الخلايا (مثلاً صور أو أزرار) */
table.dataTable td .d-flex,
table.dataTable th .d-flex {
    justify-content: center !important;
    align-items: center !important;
}

.page-wrapper table.dataTable tbody tr.odd {
    background-color: #ffffff;
}

.page-wrapper table.dataTable tbody tr.even {
    background-color: #e9f9ee;
}

/* --------------------------------------------------------------------------- */
.navbar-expand-lg.navbar-vertical ~ .navbar,
.navbar-expand-lg.navbar-vertical ~ .page-wrapper {
    margin-left: 15rem;
}
/* table.dataTable tbody tr:nth-child(odd) td {
    background-color: #ffffff !important;
}

table.dataTable tbody tr:nth-child(even) td {
    background-color: #e9f9ee !important;
}

table.dataTable thead th {
    background-color: #2f855a !important;
    color: #ffffff !important;
    font-weight: 600;
    text-align: center;
} */
table.dataTable tbody tr:nth-child(odd) td {
    background-color: #ffffff !important;
}

table.dataTable tbody tr:nth-child(even) td {
    background-color: #a0dbed3f !important;
}

table.dataTable thead th {
    background-color: #0b5c77 !important;
    color: #ffffff !important;
    font-weight: 600;
    text-align: center;
}

.active > .page-link,
.page-link.active {
    z-index: 3;
    color: var(--tblr-pagination-active-color);
    background-color: #0b5c77;
    border-color: var(--tblr-pagination-active-border-color);
}

.bg1 {
    background-color: #0b5c77 !important;
    color: white;
}

table.dataTable tbody td {
    padding: 6px 10px !important;
    font-size: 13px;
    vertical-align: middle;
}

@media (min-width: 992px) {
    :root {
        margin-left: 0 !important;
    }
}

.page-wrapper {
    /* background: linear-gradient(135deg, #e2eff0 0%, #45717cb6 100%); */
    background: linear-gradient(200deg, #6893a141 70%);
}

.card {
    border: 1px solid #e8edf3;
    border-radius: 14px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.25s;
    animation: cardIn 0.4s ease both;
}

.card:hover {
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.06);
}

*/

        /* Card header row */
  .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: #fdfdfe;
    border-bottom: 1px solid #e8edf3;
}

/* Coloured icon box — set --hi on the element inline */
.card-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--hi) 13%, transparent);
    color: var(--hi);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-header-icon.sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

/* Text block beside the icon */
.card-header-text {
    flex: 1;
    min-width: 0;
}

/* card-title — bold override on top of Tabler defaults */
.card-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 2px !important;
    line-height: 1.3;
}

/* New helper: a small grey subtitle line under card-title */
.card-subtitle {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0;
}

/* Badge pushed to the far right of the card-header */
.card-header-badge {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    background: #fef3c7;
    color: #92400e;
}

/* Card body */
.card-body {
    padding: 22px;
}

/*
         * ═══════════════════════════════════════════════════
         *  PAGE-SPECIFIC (vendor create form only)
         * ═══════════════════════════════════════════════════
         */

/* Page header */
.page-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #0b5c77;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 10px;
    width: fit-content !important;
}

.page-pretitle-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 5px;
    letter-spacing: -0.03em;
}

.page-pretitle-sub {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
}

@media (max-width: 767px) {
    .page-pretitle-title {
        text-align: center;
    }

    .page-pretitle-sub {
        text-align: center;
    }
}

/* form-control polish */
.form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 0.875rem;
    padding: 9px 13px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.submit-btn {
    /* background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important; */
    border: none !important;
    /* box-shadow: 0 4px 14px rgba(37, 99, 235, .35) !important; */
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s !important;
}

.submit-btn:hover {
    transform: translateY(-1px);
    /* box-shadow: 0 6px 20px rgba(37, 99, 235, .45) !important; */
}

/* Toggle rows (active/verified) */
.toggle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.toggle-info {
    flex: 1;
}

.toggle-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px;
}

.toggle-desc {
    font-size: 0.74rem;
    color: #64748b;
    margin: 0;
}

/* Custom switch */
.pretty-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.pretty-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    border-radius: 99px;
    cursor: pointer;
    transition: 0.3s;
}

.switch-slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    left: 3px;
    top: 3px;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pretty-switch input:checked + .switch-slider {
    background: #10b981;
}

.pretty-switch input:checked + .switch-slider:before {
    transform: translateX(20px);
}

.btn:hover {
    color: white;
}
@media (max-width: 991px) {
    .navbar-expand-lg.navbar-vertical ~ .page-wrapper {
        margin-left: 0 !important;
    }
}
@media (max-width: 991px) {
    .navbar-expand-lg.navbar-vertical ~ .page-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .navbar-vertical {
        height: auto !important;
        position: relative !important;
    }

    .page {
        flex-direction: column !important;
    }
}
@media (max-width: 991px) {
    .navbar-vertical .navbar-brand {
        display: none !important;
    }
}

@media (max-width: 767px) {
    div.dt-layout-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    div.dt-layout-cell {
        width: 100% !important;
    }

    .dt-length {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        margin-bottom: 10px;
    }

    .dt-length select {
        order: 1 !important;
    }

    .dt-length label {
        order: 2 !important;
    }

    .dt-search {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .dt-search input {
        flex: 1 !important;
    }
}

.dt-length select {
    order: 2 !important;
}

.dt-length label {
    order: 1 !important;
}

@media (min-width: 992px) {
    [dir="rtl"] .navbar-expand-lg.navbar-vertical ~ .page-wrapper {
        margin-left: 0 !important;
        margin-right: 15rem !important;
    }
}

table.dataTable td {
    text-transform: capitalize;
}

div.dt-layout-row {
    justify-content: flex-start !important;
}

div.dt-layout-cell.dt-start {
    justify-content: flex-start !important;
    margin-right: 0 !important;
    margin-left: auto !important;
}

div.dt-layout-cell.dt-end {
    justify-content: flex-end !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* ── إخفاء سهام الترتيب ── */
/* table.dataTable thead > tr > th span.dt-column-order {
    display: none !important;
} */

/* ── شيل الـ padding الزيادة اللي اتضافت عشان السهام ── */
/* table.dataTable thead > tr > th.dt-orderable-asc,
table.dataTable thead > tr > th.dt-orderable-desc,
table.dataTable thead > tr > th.dt-ordering-asc,
table.dataTable thead > tr > th.dt-ordering-desc {
    padding-right: 12px !important;
} */

/* ── بوردر الهيدر ── */
table.dataTable thead > tr > th {
    border-bottom: 2px solid #063141 !important;
    border-top: 1px solid #e2e8f0 !important;
}
