.for-web-logo {
    width: 10.9125rem !important;
    display: block !important;
}
.for-seller-logo {
    width: 3rem !important;
    height: 2rem !important;
    display: block !important;
}
.code-example {
    position: relative;
}

.code-example .btn-clipboard {
    outline: none;
    background: transparent;
    border: 0;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.code-example .btn-clipboard:hover {
    color: rgba(0, 0, 0, 0.9);
}

.color-palette .color-entry {
    position: relative;
    display: block;
    height: 170px;
    color: #fff;
    border-radius: 0.25rem;
}

.color-palette a > .color-entry {
    -webkit-transition: all 200ms ease-in;
    -webkit-transform: scale(1);
    -ms-transition: all 200ms ease-in;
    -ms-transform: scale(1);
    -moz-transition: all 200ms ease-in;
    -moz-transform: scale(1);
    transition: all 200ms ease-in;
    transform: scale(1);
}

.color-palette a:hover > .color-entry {
    box-shadow: 0px 0px 80px rgba(0, 0, 0, 0.5);
    z-index: 2;
    -webkit-transform: scale(1.3);
    -ms-transform: scale(1.3);
    -moz-transform: scale(1.3);
    transform: scale(1.3);
}

.color-palette a.active > .color-entry,
.color-palette a.active:hover > .color-entry {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -moz-transform: scale(1.1);
    transform: scale(1.1);
}

.color-palette .color-entry .color-code {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
}

.color-code-preview {
    border: 1px solid 0.25rem;
    padding: 6px;
}

.color-code-preview .color-preview {
    height: 150px;
    position: relative;
}

.color-code-preview .color-code-rgb {
    display: block;
    padding: 0 0 5px;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
}

.color-code-preview .color-code-hex {
    display: block;
    padding: 10px 0 5px;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
}

.color-code-preview .color-text {
    position: absolute;
    width: 100%;
    top: 50%;
    margin-top: -10px;
    display: block;
    text-align: center;
}

.color-code-preview .color-class {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
}
.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: black;
    margin-top: 4px;
    /* color: white; */
}
.select2-container--default .select2-selection--multiple {
    /* height: auto; */
}
.scrollable_preview {
    height: 66vh;
    overflow: auto;
}
.scrollable_preview:nth-of-type(0){
    border-right: 2px solid #1e1e1e;
}
.select2-container--default .color-preview {
    height: 12px;
    width: 12px;
    display: inline-block;
    margin-inline-end: 5px;
    margin-inline-start: 3px;
    margin-top: 2px;
}
.sortSelectCustom .select2-selection--single {
    border-color: #ccc;
    height: auto;
    padding: 0 10px;
}

.sortSelectCustom .select2-selection--single .select2-selection__rendered {
    padding: 8px 0;
    color: #777;
    font-size: 13px;
}

.page-item.active .page-link {
    background-color: #00868f !important;
}
ol.breadcrumb {
    padding: 1px;
}

/* ===== Admin Tasks Widget ===== */
#admin-tasks-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #00c9a7;
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 201, 167, 0.35);
    z-index: 1040;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
#admin-tasks-fab:hover {
    background: #00a98c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 169, 140, 0.45);
}
#admin-tasks-fab i {
    color: #fff;
    font-size: 26px;
}
#admin-tasks-fab .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ed4c78;
    color: #fff;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 0 rgba(237, 76, 120, 0.55);
    animation: admin-tasks-fab-pulse 1.8s ease-out infinite;
}
#admin-tasks-fab .badge.has-overdue {
    background: #c0392b;
    animation: admin-tasks-fab-pulse-overdue 1.1s ease-out infinite;
}
#admin-tasks-fab .badge.zero {
    display: none;
}
@keyframes admin-tasks-fab-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(237, 76, 120, 0.55); transform: scale(1); }
    70%  { box-shadow: 0 0 0 10px rgba(237, 76, 120, 0);    transform: scale(1.08); }
    100% { box-shadow: 0 0 0 0   rgba(237, 76, 120, 0);    transform: scale(1); }
}
@keyframes admin-tasks-fab-pulse-overdue {
    0%   { box-shadow: 0 0 0 0   rgba(192, 57, 43, 0.7); transform: scale(1); }
    70%  { box-shadow: 0 0 0 14px rgba(192, 57, 43, 0);   transform: scale(1.15); }
    100% { box-shadow: 0 0 0 0   rgba(192, 57, 43, 0);   transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    #admin-tasks-fab .badge { animation: none !important; }
}

/* ===== Task Card ===== */
.admin-task-card {
    position: relative;
    display: flex;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.admin-task-card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border-color: #dbe2ed;
}

.admin-task-card__strip {
    width: 4px;
    flex-shrink: 0;
    background: #377dff;
}
.admin-task-card--overdue .admin-task-card__strip { background: #dc3545; }
.admin-task-card--completed .admin-task-card__strip { background: #00c9a7; }
.admin-task-card--cancelled .admin-task-card__strip { background: #97a4af; }
.admin-task-card--cancelled { background: #fafbfc; }

.admin-task-card__body {
    flex: 1;
    padding: 14px 16px;
    min-width: 0;
}

.admin-task-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.admin-task-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}
.admin-task-card--cancelled .admin-task-card__title {
    text-decoration: line-through;
    color: #94a3b8;
}

.admin-task-card__status {
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
}
.admin-task-card__status--cancelled { background: #f1f5f9; color: #64748b; }
.admin-task-card__status--completed { background: #ecfdf5; color: #059669; }
.admin-task-card__status--overdue { background: #fee2e2; color: #b91c1c; }

.admin-task-card__desc {
    margin: 0 0 10px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.admin-task-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.admin-task-card__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease;
}
.admin-task-card__pill i { font-size: 12px; line-height: 1; }
.admin-task-card__pill--due.is-overdue {
    background: #fee2e2;
    color: #b91c1c;
}
.admin-task-card__pill--order {
    background: #eff6ff;
    color: #1d4ed8;
}
.admin-task-card__pill--order:hover {
    background: #dbeafe;
    color: #1d4ed8;
    text-decoration: none;
}
.admin-task-card__pill--order:focus-visible {
    outline: 2px solid #377dff;
    outline-offset: 1px;
}

.admin-task-card__people {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    margin-bottom: 10px;
    border-top: 1px dashed #e2e8f0;
}
.admin-task-card__person {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}
.admin-task-card__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e2e8f0;
}
.admin-task-card__person-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}
.admin-task-card__person-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 600;
}
.admin-task-card__person-name {
    font-size: 12px;
    color: #334155;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-task-card__arrow {
    color: #cbd5e1;
    flex-shrink: 0;
    font-size: 14px;
}
[dir="rtl"] .admin-task-card__arrow { transform: scaleX(-1); }

.admin-task-card__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-task-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.admin-task-card__btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
.admin-task-card__btn:focus-visible {
    outline: 2px solid #377dff;
    outline-offset: 1px;
}
.admin-task-card__btn i { font-size: 13px; line-height: 1; }

.admin-task-card__btn--complete {
    background: #00c9a7;
    border-color: #00c9a7;
    color: #fff;
}
.admin-task-card__btn--complete:hover {
    background: #00a98c;
    border-color: #00a98c;
    color: #fff;
}
.admin-task-card__btn--reopen {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}
.admin-task-card__btn--reopen:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #1e293b;
}
.admin-task-card__btn--cancel {
    color: #b91c1c;
    border-color: #fecaca;
}
.admin-task-card__btn--cancel:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.admin-task-empty {
    text-align: center;
    padding: 48px 20px;
    color: #94a3b8;
    font-size: 13px;
}

/* Board page columns */
#admin-tasks-board .task-column {
    min-height: 420px;
    background: #f8fafc;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 14px;
}
#admin-tasks-board .task-column h5 {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}
#admin-tasks-board .task-column h5 [data-count] {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}
#admin-tasks-board .task-column-body .admin-task-card { cursor: grab; }
#admin-tasks-board .task-column-body .admin-task-card:active { cursor: grabbing; }

@media (prefers-reduced-motion: reduce) {
    .admin-task-card,
    .admin-task-card__btn,
    .admin-task-card__pill { transition: none !important; }
    .admin-task-card--urgent { animation: none !important; }
}

/* Priority */
.admin-task-card__priority {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.4;
    margin-right: 6px;
}
.admin-task-card__priority--low    { background: #f1f5f9; color: #64748b; }
.admin-task-card__priority--normal { display: none; }
.admin-task-card__priority--high   { background: #fff7ed; color: #c2410c; }
.admin-task-card__priority--urgent { background: #fef2f2; color: #b91c1c; }

.admin-task-card--high {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
}
.admin-task-card--urgent {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.35), 0 0 18px rgba(220, 38, 38, 0.25);
    border-color: #fecaca !important;
    animation: admin-task-card-urgent-glow 2s ease-in-out infinite;
}
@keyframes admin-task-card-urgent-glow {
    0%, 100% { box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.35), 0 0 14px rgba(220, 38, 38, 0.2); }
    50%      { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.55), 0 0 22px rgba(220, 38, 38, 0.4); }
}

.admin-task-card__code {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: 500;
    vertical-align: middle;
}

/* Search input above lists */
.admin-tasks-search {
    position: relative;
    margin-bottom: 12px;
}
.admin-tasks-search input {
    padding-left: 32px;
}
.admin-tasks-search .tio-search {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}
[dir="rtl"] .admin-tasks-search input { padding-left: 0.75rem; padding-right: 32px; }
[dir="rtl"] .admin-tasks-search .tio-search { left: auto; right: 10px; }

/* Compact dispatch related-tasks card */
#dispatch-related-tasks.dispatch-related-tasks--compact {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
#dispatch-related-tasks.dispatch-related-tasks--compact .dispatch-related-tasks__scroll {
    overflow-y: auto;
    flex: 1 1 auto;
    max-height: 240px;
}
#dispatch-related-tasks.dispatch-related-tasks--compact .table {
    font-size: 12.5px;
    margin-bottom: 0;
}
#dispatch-related-tasks.dispatch-related-tasks--compact .table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 1;
}

[dir="rtl"] #admin-tasks-fab {
    left: 24px;
}
[dir="rtl"] #admin-tasks-fab .badge {
    right: auto;
    left: -4px;
}

/* TomSelect dropdown must sit above the Bootstrap modal (z-index 1050) */
.ts-dropdown { z-index: 1060 !important; }
.ts-wrapper.single .ts-control { min-height: 38px; }

/* ===== Schedule Availability Widget (POS / Parcel POS) ===== */
.schedule-avail {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.schedule-avail__hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 200ms ease, color 200ms ease;
}

.schedule-avail__hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.6);
}

.schedule-avail__hero-body {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.schedule-avail__hero-title {
    font-weight: 700;
    font-size: 14px;
}

.schedule-avail__hero-sub {
    margin-top: 2px;
    font-size: 12px;
    opacity: 0.85;
}

.schedule-avail__hero-sub-label {
    font-weight: 600;
}

/* State variants */
.schedule-avail__hero--available {
    background: #ecfdf5;
    color: #065f46;
    border-bottom-color: #a7f3d0;
}
.schedule-avail__hero--unavailable {
    background: #fef2f2;
    color: #991b1b;
    border-bottom-color: #fecaca;
}
.schedule-avail__hero--closed {
    background: #fff7ed;
    color: #9a3412;
    border-bottom-color: #fed7aa;
}
.schedule-avail__hero--idle {
    background: #eff6ff;
    color: #1e3a8a;
    border-bottom-color: #bfdbfe;
}
.schedule-avail__hero--past {
    background: #f5f3ff;
    color: #5b21b6;
    border-bottom-color: #ddd6fe;
}

/* Working hours block */
.schedule-avail__hours {
    padding: 10px 14px 12px;
}

.schedule-avail__hours-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 600;
}

.schedule-avail__hours-header i {
    font-size: 14px;
}

.schedule-avail__hours-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.schedule-avail__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #1f2937;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
    border: 1px solid #e5e7eb;
}

.schedule-avail__pill-sep {
    color: #9ca3af;
    font-weight: 400;
}

.schedule-avail__empty {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #fecaca;
}

/* Title bar */
.schedule-avail__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.schedule-avail__title svg {
    flex-shrink: 0;
    color: #64748b;
}

/* Upcoming days */
.schedule-avail__upcoming {
    padding: 0 14px 12px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 10px;
    margin-top: 4px;
}

.schedule-avail__upcoming-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 8px;
}

.schedule-avail__upcoming-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.schedule-avail__upcoming-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    transition: background-color 150ms ease;
}

.schedule-avail__upcoming-item:hover {
    background: #f3f4f6;
}

.schedule-avail__upcoming-day {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex-shrink: 0;
    min-width: 64px;
}

.schedule-avail__upcoming-day-name {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
}

.schedule-avail__upcoming-day-date {
    font-size: 11px;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

.schedule-avail__upcoming-hours {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

/* Smaller pill variant for upcoming list */
.schedule-avail__pill--sm {
    padding: 3px 8px;
    font-size: 11px;
}

.schedule-avail__empty--sm {
    padding: 3px 8px;
    font-size: 11px;
}

@media (prefers-reduced-motion: reduce) {
    .schedule-avail__hero { transition: none; }
    .schedule-avail__upcoming-item { transition: none; }
}
