﻿/* CSS Reset and Base */
body {
    font-family: 'Inter', sans-serif;
    /* Soft dark blue gradient matching the design */
    /* background: linear-gradient(135deg, #2b2e59 0%, #1e1f3d 100%); */
    background-attachment: fixed;
    font-size:14px
}

/* Filter Tabs */
.btn-filter {
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 50px;
    border: 1px solid #e4e4e7;
    background: #fff;
    color: #3f3f46;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    background: #f4f6fa;
    border-color: #d4d4d8;
    color: #272746;
}

.btn-filter.active {
    background: #2b2d5c;
    border-color: #2b2d5c;
    color: #fff;
}

.btn-filter.active:hover {
    background: #3A3A68;
    border-color: #3A3A68;
}

/* Container & Card */
.login-container {
    padding: 1rem;
    background: linear-gradient(135deg, #272746 0%, #3A3A68 50%, #272746 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.login-card .form-control {
    min-height: 48px;
}

/* Dark Icon Box */
.icon-box {
    width: 48px;
    height: 48px;
    background-color: #1a1e2f;
    border-radius: 12px;
}

/* Typography styles */
.login-card h4 {
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* Input Styles */
.form-label {
    font-size: 0.85rem;
}

.input-group {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    overflow: hidden;
}

.input-group:focus-within {
    border-color: #e1b260;
    box-shadow: 0 0 0 0.25rem rgba(225, 178, 96, 0.25);
}

/* .input-group-text,
.form-control {
    background-color: transparent;
} */

.input-group-text {
    color: #a0a0a0 !important;
}

.form-control-lg+.input-icon,
.form-control-lg~.password-eye-icon {
    top: 14px;
}

.form-control:focus {
    box-shadow: none;
    border-color: inherit;
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 0.95rem;
}

/* Checkbox alignment */
.form-check-label {
    padding-top: 1px;
}

/* Custom Gold Button */
.btn-gold {
    background: #EDBD62;
    background: linear-gradient(150deg, rgba(237, 189, 98, 1) 0%, rgba(245, 208, 132, 1) 100%);
    border-color: transparent;
    color: #272746;
    border-radius: 16px !important;
    transition: all 0.2s ease;
}

.btn-gold:hover,
.btn-gold:focus,
.btn-gold:active {
    background-color: #cca05d !important;
    border-color: #cca05d !important;
    color: #1a1a1a !important;
    box-shadow: 0 4px 12px rgba(220, 171, 98, 0.3);
}

/* Footer text */
.footer-text {
    font-size: 0.75rem;
    color: #999 !important;
}

/* =========================================
   Contractors Dashboard Styles
   ========================================= */

/* Layout & Backgrounds */
.bg-light-blue {
    background-color: #f4f6fa;
}

.bg-dark-blue {
    background-color: #2b2d5c !important;
}

.text-dark-blue {
    color: #2b2d5c !important;
}

.bg-gold {
    background-color: #e1b260 !important;
}

/* Sidebar */
.sidebar {
    width: 260px;
}

.sidebar-nav .nav-link {
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
}

.icon-box-sm {
    width: 32px;
    height: 32px;
    background-color: #1a1e2f;
    border-radius: 8px;
}

.search-input-sm .input-group-text,
.search-input-sm .form-control {
    background-color: #f3f4f6 !important;
}

.search-input-sm .input-group {
    border-radius: 6px;
}

/* Stat Cards */
.stat-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Specific text colors */
.text-warning {
    color: #e89524 !important;
    /* Adjust default warning to match design orange */
}

/* Table */
.custom-table {
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table th {
    border-bottom: 1px solid #eef0f4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: #4A5565 !important;
}

.custom-table td {
    border-bottom: 1px solid #eef0f4;
    vertical-align: middle;
    font-size:13px!important;
    color: #212529 !important;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge-active {
    background-color: #e8f5ed;
    color: #2e8b57;
}

.badge-pending {
    background-color: #fdf5e6;
    color: #df9e30;
}

.badge-inactive {
    background-color: #f5f5f5;
    color: #6c757d;
}

/* Status Pills */
.status-pill {
    display: inline-block;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 50px;
    line-height: 1.4;
    white-space: nowrap;
}

.status-approved {
    background: #ecfdf5;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.status-pending {
    background: #fffbeb;
    color: #ca8a04;
    border: 1px solid #fde68a;
}

.status-rejected {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Action Buttons — shared base */

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 24px;
    transition: background 0.2s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked+.toggle-slider {
    background: #22c55e;
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(20px);
}

/* Action Buttons — shared base */
.btn-action-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    line-height: 1.6;
    vertical-align: middle;
}

.btn-action-pill:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Approve ID */
.btn-approve-id {
    composes: btn-action-pill;
    color: #fff;
    background: #3b82f6;
    border-color: #3b82f6;
}

.btn-approve-id:hover {
    background: #2563eb;
}

.btn-approve-id:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Delete */
.btn-delete-user {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.btn-delete-user:hover {
    background: #fee2e2;
}

/* Recover */
.btn-recover-user {
    color: #16a34a;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.btn-recover-user:hover {
    background: #dcfce7;
}

/* Activate */
.btn-activate-user {
    color: #16a34a;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.btn-activate-user:hover {
    background: #dcfce7;
}

/* Deactivate */
.btn-deactivate-user {
    color: #d97706;
    background: #fffbeb;
    border-color: #fde68a;
}

.btn-deactivate-user:hover {
    background: #fef3c7;
}

/* Actions Buttons */
.btn-action {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
    border-radius: 16px;
    font-weight: 500;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-icon:hover {
    background-color: #f8f9fa !important;
}

/* Filters */
.filter-container .search-input {
    border-radius: 20px;
    border: 1px solid #eef0f4;
    height: 44px;
}

.filter-pills .btn {
    font-weight: 500;
}

.bg-secondary-subtle {
    background-color: #f8f9fa !important;
}

/* =========================================
   Sidebar Collapse Styles
   ========================================= */
.sidebar {
    transition: width 0.3s ease;
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .sidebar-text,
.sidebar.collapsed .search-input-sm,
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .quick-stats-box,
.sidebar.collapsed .profile-text {
    display: none !important;
}

.sidebar.collapsed .nav-link {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.sidebar.collapsed .nav-link i {
    margin: 0 !important;
    font-size: 1.2rem;
}

.sidebar.collapsed .p-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    justify-content: center !important;
}

.sidebar.collapsed .mt-auto .d-flex {
    justify-content: center;
}

.avatar-circle {
    height: 40px;
    width: 40px;
}

.password-eye-icon {
    position: absolute;
    right: 13px;
    top: 13px;
}

.eye-pass {
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index:9
}

.position-relative.passwordinput input {
    padding-right: 50px;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.dataTables_wrapper .dataTables_length {
    float: left;
    padding-top: 8px;
    padding-left: 30px;
    font-size: 15px;
}

.user-set-menu .dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    position: absolute;
    top: 28px;
    right: 0;
}

.user-set-menu .dropdown-toggle,
.user-set-menu .dropdown-toggle:focus,
.user-set-menu .dropdown-toggle:active {
    border: none;
    outline: none;
}

.sidebar-logo-col {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    border-bottom: solid 1px rgba(226, 232, 240, 0.6);
    margin: 0 0 15px;
}

.nav-item.active i img {
    filter: invert(1) brightness(100);
}

/* --------------------------------------------------------------------------
   Service Item admin — layout aligned to Figma (ServiceItem + modal frames)
   Control Master shares the same tokens (cm-figma-* aliases).
   -------------------------------------------------------------------------- */

.svc-figma-page,
.cm-figma-page {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.svc-figma-page__title,
.cm-figma-page__title {
    font-size: clamp(1.35rem, 1.5vw, 1.50rem);
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.svc-figma-page__subtitle,
.cm-figma-page__subtitle {
    font-size: 0.9375rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.5;
    max-width: 40rem;
}

.svc-figma-page__cta,
.cm-figma-page__cta {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    border: none;
    color: #ffffff !important;
    background: linear-gradient(180deg, #f0d080 0%, #e4b24a 50%, #d9a03d 100%);
    box-shadow: 0 6px 20px rgba(212, 160, 58, 0.35);
    min-height: 44px;
}

.svc-figma-page__cta:hover,
.svc-figma-page__cta:focus,
.svc-figma-page__cta:active,
.cm-figma-page__cta:hover,
.cm-figma-page__cta:focus,
.cm-figma-page__cta:active {
    color: #ffffff !important;
    filter: brightness(1.03);
    opacity: 1;
}

.svc-figma-stat {
    border-radius: 16px !important;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

.svc-figma-stat__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
}

.svc-figma-stat__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.svc-figma-stat__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.25rem;
}

.svc-figma-stat__icon--amber {
    background: #fef3c7;
    color: #b45309;
}

.svc-figma-stat__icon--green {
    background: #d1fae5;
    color: #047857;
}

.svc-figma-stat__icon--orange {
    background: #ffedd5;
    color: #c2410c;
}

.svc-figma-section-title,
.cm-figma-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

.svc-figma-list-card,
.cm-figma-list-card {
    border-radius: 16px !important;
    background: #ffffff;
}

.svc-figma-filter,
.cm-figma-filter {
    background: #ffffff;
    border-bottom: 1px solid #eef0f4 !important;
}

.svc-figma-search,
.cm-figma-search {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    overflow: hidden;
}

.svc-figma-search:focus-within,
.cm-figma-search:focus-within {
    border-color: #e8b54a;
    box-shadow: 0 0 0 3px rgba(232, 181, 74, 0.18);
    background: #ffffff;
}

.svc-figma-page #data-table_serviceItem thead th,
.cm-figma-page #data-table_controlsMaster thead th,
#data-table_users thead th {
    background-color: #f9fafb !important;
    color: #4b5563 !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 0.875rem 1rem !important;
    vertical-align: middle;
}

.svc-figma-page #data-table_serviceItem tbody td,
.cm-figma-page #data-table_controlsMaster tbody td,
#data-table_users tbody td {
    padding: 0.875rem 1rem !important;
    font-size: 0.9375rem !important;
    color: #1f2937 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    vertical-align: middle;
    background-color: #ffffff !important;
}

.svc-figma-page #data-table_serviceItem tbody tr:nth-child(even) td,
.cm-figma-page #data-table_controlsMaster tbody tr:nth-child(even) td {
    background-color: #fafbfc !important;
}

.svc-figma-actions .btn-link,
.cm-figma-actions .btn-link {
    line-height: 1;
    border-radius: 999px;
}

.svc-figma-actions .bi-pencil,
.cm-figma-actions .bi-pencil {
    font-size: 1.05rem;
    color: #9ca3af;
}

.svc-figma-actions .svc-btn-edit:hover .bi-pencil,
.svc-figma-actions .svc-btn-edit:focus .bi-pencil,
.cm-figma-actions .svc-btn-edit:hover .bi-pencil,
.cm-figma-actions .svc-btn-edit:focus .bi-pencil {
    color: #6b7280;
}

.svc-figma-actions .bi-trash3,
.cm-figma-actions .bi-trash3 {
    font-size: 1.05rem;
    color: #ef4444;
}

.svc-figma-actions .svc-btn-delete:hover .bi-trash3,
.svc-figma-actions .svc-btn-delete:focus .bi-trash3,
.cm-figma-actions .svc-btn-delete:hover .bi-trash3,
.cm-figma-actions .svc-btn-delete:focus .bi-trash3 {
    color: #dc2626;
}

.svc-figma-link {
    color: #ca8a04 !important;
    font-size: 0.875rem;
    font-weight: 600;
}

.svc-figma-link:hover,
.svc-figma-link:focus {
    color: #a16207 !important;
}

/* Modal (Create / Edit service) */

.svc-figma-modal .modal-content {
    border-radius: 16px !important;
    background: #ffffff;
}

.svc-figma-modal .modal-header {
    background: #ffffff !important;
    padding-bottom: 0.5rem !important;
}

.svc-figma-modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.svc-figma-modal__subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.45;
    max-width: 42rem;
}

.svc-figma-modal__close {
    opacity: 0.55;
}

.svc-figma-field-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.svc-figma-modal .svc-figma-input,
.svc-figma-modal .form-control,
.svc-figma-modal .form-select {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    min-height: 46px;
    font-size: 0.9375rem;
    padding: 0.5rem 0.9rem;
}

.svc-figma-modal .form-control-sm,
.svc-figma-modal .form-select-sm {
    min-height: 38px;
    border-radius: 10px;
    font-size: 0.875rem;
}

.svc-figma-modal .form-control:focus,
.svc-figma-modal .form-select:focus {
    border-color: #e8b54a;
    box-shadow: 0 0 0 3px rgba(232, 181, 74, 0.2);
}

.svc-figma-subtable-wrap {
    border: 1px solid #eef0f4 !important;
    background: #fafafa;
}

.svc-figma-subtable thead th {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 0.65rem 0.75rem !important;
    vertical-align: middle;
}

.svc-figma-subtable tbody td {
    background: #ffffff !important;
    border-bottom: 1px solid #f3f4f6 !important;
    vertical-align: middle;
    padding: 0.5rem 0.75rem !important;
}

.svc-figma-total-row {
    border-top: 1px solid #e5e7eb !important;
}

.svc-figma-total-row__label {
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
}

.svc-figma-total-row__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.svc-figma-modal .modal-footer {
    background: #ffffff;
}

/* Responsive height: the dialog/content never exceed the viewport, the body flexes and
   scrolls, and the header + footer (Cancel / Create Service) stay pinned and visible.
   No fixed pixel height — it adapts to whatever the viewport is. */
.svc-figma-modal .modal-dialog {
    max-height: calc(100vh - 1rem);
}

.svc-figma-modal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 1rem);
}

.svc-figma-modal .modal-header,
.svc-figma-modal .modal-footer {
    flex: 0 0 auto;
}

.svc-figma-modal .modal-body {
    flex: 1 1 auto;
    /* min-height:0 lets the flex body shrink below its content so it scrolls internally
       instead of pushing the footer off-screen. Also override the global 500px cap. */
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

.svc-figma-btn-cancel {
    border-radius: 16px !important;
    border: none !important;
    background: #f3f4f6 !important;
    color: #374151 !important;
    font-weight: 600;
    font-size: 0.9375rem;
    min-height: 44px;
}

.svc-figma-btn-cancel:hover,
.svc-figma-btn-cancel:focus {
    background: #e5e7eb !important;
    color: #1f2937 !important;
}

.svc-figma-btn-primary {
    border-radius: 16px !important;
    border: none !important;
    background: linear-gradient(180deg, #f0d080 0%, #e4b24a 50%, #d9a03d 100%) !important;
    color: #272746 !important;
    font-size: 0.9375rem;
    min-height: 44px;
    box-shadow: 0 4px 14px rgba(212, 160, 58, 0.28);
}

.svc-figma-btn-primary:hover,
.svc-figma-btn-primary:focus {
    color: #111827 !important;
    filter: brightness(1.02);
}

/* Control Master — modal width + primary column (Figma list) */
.cm-figma-modal-dialog {
    max-width: 520px;
}

.cm-figma-page #data-table_controlsMaster tbody td:nth-child(2) {
    font-weight: 600;
    color: #111827;
}

.cm-figma-ctrl-modal .svc-figma-subtable .form-control-sm {
    min-height: 40px;
}

.nav-link.active i img {
    filter: invert(1) brightness(100);
}

.service-item-gp {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-item-gp li {
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    margin: 0 0 10px;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}

.service-item-gp li h6 {
    font-size: 12px;
    color: #62748E;
    margin: 0 0 15px;
    width: 100%;
}

.service-item-gp li .svc-sub-controls button.btn-link {
    margin-bottom: 10px;
}

.service-item-gp li .svc-sub-control-line .form-select {
    flex: 1;
}

.svc-figma-modal .svc-sub-depends-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

.svc-figma-modal .svc-sub-depends-check .form-check-input {
    float: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    border: 2px solid #CBD5E1;
    border-radius: 6px;
    cursor: pointer;
    background-color: #fff;
    background-image: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.svc-figma-modal .svc-sub-depends-check .form-check-input:hover {
    border-color: #EDBD62;
}

.svc-figma-modal .svc-sub-depends-check--locked {
    cursor: default;
    opacity: 0.85;
}

.svc-figma-modal .svc-sub-depends-check--locked .form-check-input {
    cursor: not-allowed;
}

.svc-figma-modal .svc-sub-price-wrap--locked .svc-sub-price {
    background-color: #F1F5F9;
    color: #64748B;
    cursor: not-allowed;
}

.svc-figma-modal .svc-sub-price-wrap--locked .form-label::after {
    content: ' (from control)';
    font-weight: 400;
    color: #94A3B8;
    font-size: 0.85em;
}

.svc-figma-modal .svc-sub-depends-check .form-check-input:focus {
    border-color: #EDBD62;
    box-shadow: 0 0 0 3px rgba(237, 189, 98, 0.25);
    outline: none;
}

.svc-figma-modal .svc-sub-depends-check .form-check-input:checked {
    background-color: #EDBD62;
    border-color: #EDBD62;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23272746' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.svc-figma-modal .svc-sub-depends-check .svc-sub-depends-label {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
    padding: 0;
    margin: 0;
}

.svc-figma-modal .svc-sub-measurement-block {
    width: 100%;
    padding-top: 4px;
}

.svc-figma-modal .svc-sub-measurement-block--locked {
    opacity: 0.85;
}

.svc-figma-modal .svc-sub-depends-row {
    width: 100%;
    margin-bottom: 0;
}

.svc-figma-modal .svc-sub-section-label {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
}

.svc-figma-modal .svc-sub-surface-section {
    width: 100%;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #E2E8F0;
}

.svc-figma-modal .svc-sub-surface-section--locked {
    opacity: 0.55;
}

.svc-figma-modal .svc-sub-surface-heading {
    margin-bottom: 10px;
}

.svc-figma-modal .svc-sub-surface-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.svc-figma-modal .svc-sub-section-divider {
    display: block;
    width: 100%;
    height: 0;
    margin: 14px 0 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #E2E8F0;
    opacity: 1;
}

.svc-figma-modal .svc-sub-control-section {
    width: 100%;
    margin-top: 0;
    padding-top: 14px;
    border-top: 0;
}

.svc-figma-modal .svc-sub-control-section--compact {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #E2E8F0;
}

.svc-figma-modal .svc-sub-control-heading {
    margin-bottom: 8px;
}

.svc-figma-modal .svc-sub-control-section .svc-sub-controls {
    margin-top: 0;
}

.svc-figma-modal .svc-sub-add-control-wrap {
    margin-top: 8px !important;
}

.svc-figma-modal .svc-sub-surface-check-item {
    display: inline-flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto !important;
    flex: 0 0 auto;
    padding-left: 0;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.svc-figma-modal .svc-sub-surface-check-item .form-check-input {
    margin: 0 !important;
}

.add-item-col-btn-gp {
    position: absolute;
    right: 16px;
    top: 10px;
}

.ser-item-total-col {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FEF9EF;
    border: solid 2px #EDBD62;
    font-size: 16px;
    padding: 15px;
    border-radius: 16px;
}

/* ----- Service modal: responsive layout for small screens ----- */
@media (max-width: 575.98px) {
    /* Use almost the full viewport on phones */
    .svc-figma-modal .modal-dialog {
        margin: 0.5rem;
    }

    /* Sub-item card: Title and Price stack to full width instead of cramping side by side */
    .svc-figma-modal .service-item-gp li > .flex-grow-1,
    .svc-figma-modal .service-item-gp li > .svc-sub-price-wrap,
    .svc-figma-modal .service-item-gp li > .w-25 {
        flex: 1 1 100%;
        width: 100% !important;
        max-width: 100%;
    }

    /* Move/remove buttons flow in the card (relative) instead of overlapping the header */
    .svc-figma-modal .add-item-col-btn-gp {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        justify-content: flex-end;
        margin-top: 4px;
    }

    /* Surface radios and the totals row wrap/stack */
    .svc-figma-modal .svc-sub-surface-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .ser-item-total-col {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* Reserve room at the top of the card so the header label never sits under the buttons */
    .svc-figma-modal .service-item-gp li {
        padding: 14px 12px;
    }
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length {
    font-size: 13px;
    color: #6b7280;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 13px;
    border-radius: 9px;
    color: #6b7280;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #fff !important;
    border: 1px solid #3A3A68;
    background: #3A3A68;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #fff !important;
    border: 1px solid #3A3A68;
    background: #3A3A68;
}

.btn-light-primary {
    background: #FEF9EF;
    color: #EDBD62;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: 0;
    line-height: 30px;
    padding: 7px 15px;
}

.filter-box {
    background: #fff;
    padding: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 16px 0 10px;
    gap: 10px
}

.filter-box .search-input {
    max-width: 375px;
}

.filterbtn-gp {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 290px);
    min-height: 100px;
}

/* Contractor details page css  */

.contractor-detail-header-btn {
    min-width: 130px;
    border-radius: 12px !important;
    border: 0 !important;
    padding: 10px 22px !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.18);
}

    .contractor-detail-header-btn.btn-success {
        background: #16a34a !important;
        box-shadow: 0 4px 12px rgba(22, 163, 74, 0.22);
    }

    .contractor-detail-header-btn.btn-danger {
        background: #ef4444 !important;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    }

.contractor-detail-initials {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: #f3f4f6;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Used when ContractorProfile.LogoUrl resolves to a presigned URL — same 72x72 footprint as the
   initials tile so the layout doesn't shift between the two states. object-fit:cover keeps the
   logo cropped to the square without distortion when the source isn't 1:1. */
.contractor-detail-avatar-img {
    object-fit: cover;
    background: #f3f4f6;
}

.contractor-detail-info-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.contractor-detail-info-icon--email {
    background: #eef2ff;
    color: #4f46e5;
}

.contractor-detail-info-icon--phone {
    background: #ecfdf5;
    color: #16a34a;
}

.contractor-detail-info-icon--location {
    background: #fef3f2;
    color: #ef4444;
}

.contractor-detail-info-icon--joined {
    background: #fffbeb;
    color: #d97706;
}

.contractor-detail-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
}

.contractor-detail-tile-icon--completed {
    background: #ecfdf5;
    color: #16a34a;
}

.contractor-detail-tile-icon--active {
    background: #fffbeb;
    color: #d97706;
}

.contractor-detail-tile-icon--earnings {
    background: #f5f3ff;
    color: #7c3aed;
}

.contractor-detail-tile-value {
    font-size: 1.75rem;
}

.contractor-detail-tile-value--completed {
    color: #16a34a;
}

.contractor-detail-tile-value--active {
    color: #111827;
}

/* Clickable summary tiles double as deep-links to their tab. role="button" + tabindex="0"
   gives keyboard activation; the cursor + hover lift just confirms it visually. */
.contractor-detail-tile--clickable {
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.contractor-detail-tile--clickable:hover,
.contractor-detail-tile--clickable:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.08) !important;
}

.contractor-detail-tile--clickable:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Defensive overflow guard for the contractor-info row (Email / Phone / Location / Joined).
   Each .contractor-detail-info-item is a flex row; the inner text wrapper has min-width:0 so
   text-truncate inside it can ellipsis correctly even when the long location string would
   otherwise have pushed past the column boundary into the Joined column. */
.contractor-detail-info-item {
    min-width: 0;
    overflow: hidden;
}

.contractor-detail-info-text {
    flex: 1 1 auto;
    min-width: 0;
}

.contractor-detail-info-text .text-truncate {
    display: block;
    max-width: 100%;
}

.contractor-detail-tabs {
    border-bottom: 1px solid #e5e7eb;
    gap: 4px;
}

    .contractor-detail-tabs .nav-link {
        background: transparent !important;
        border: 0 !important;
        border-bottom: 2px solid transparent !important;
        border-radius: 0 !important;
        color: #6b7280;
        font-weight: 600;
        padding: 10px 16px;
        margin-bottom: -1px;
    }

        .contractor-detail-tabs .nav-link:hover,
        .contractor-detail-tabs .nav-link:focus {
            color: #111827;
        }

        .contractor-detail-tabs .nav-link.active {
            color: #111827;
            border-bottom-color: #111827 !important;
        }

#contractorDetailHeader .svc-figma-page__title {
    font-size: 1.4rem;
}

#contractorDetailHeader .svc-figma-page__subtitle {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Admin Support Tickets — card list layout */
table.dataTable.svc-support-cards {
    border-collapse: separate !important;
    border-spacing: 0 16px !important;
    background: transparent;
}

.svc-support-cards thead {
    display: none;
}

.svc-support-cards tbody tr {
    background: transparent !important;
}

.svc-support-cards tbody tr.table-active,
.svc-support-cards tbody tr:hover {
    background: transparent !important;
}

.svc-support-cards tbody td,
.svc-support-cards__cell {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.svc-support-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.svc-support-card__body {
    min-width: 0;
    flex: 1 1 auto;
}

.svc-support-card__code {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.svc-support-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.3;
}

.svc-support-card__desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
    word-break: break-word;
}

.svc-support-card__meta {
    color: #374151;
    font-size: 0.82rem;
}

.svc-support-card__action {
    flex: 0 0 auto;
}

.svc-support-page .search-input {
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 4px 6px;
    background: #fff;
}

.svc-support-page .svc-support-cards-wrap {
    margin-top: 4px;
}

.svc-support-page .dataTables_wrapper > .top:last-of-type {
    margin-top: 8px;
    padding-top: 8px;
}

@media (max-width: 576px) {
    .svc-support-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .svc-support-card__action {
        align-self: flex-end;
    }
}

/* Admin Dashboard — Support Tickets / Recent Contractors cards and Pending Actions strip.
   Each list entry is rendered as its own mini-card (subtle border + 12px radius) so the
   cards feel like a stack of discrete items rather than a striped table. */
.svc-dashboard-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

.svc-dashboard-card__subtitle {
    font-size: 0.8125rem;
    color: #6b7280;
}

.svc-dashboard-viewall {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.svc-dashboard-viewall:hover {
    color: #111827;
}

.svc-dashboard-viewall .bi-chevron-right {
    font-size: 0.75rem;
}

.svc-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.svc-dashboard-row {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.svc-dashboard-row:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.svc-dashboard-row__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.25;
}

.svc-dashboard-row__subtitle {
    font-size: 0.8125rem;
    color: #4b5563;
    margin-top: 2px;
    line-height: 1.35;
}

/* Support ticket description — quieter than the subtitle, clamped to two lines so a long
   ticket body never blows out the card height. Title attribute exposes the full text on hover. */
.svc-dashboard-row__description {
    font-size:13px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.svc-dashboard-row__meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 6px;
    line-height: 1;
}

/* Dashboard stat tiles — coloured rounded-square icon chip + optional meta caption.
   Matches the Figma: white card, small label, bold number, trend/meta line, coloured icon. */
.svc-tile {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.svc-tile:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-1px);
}

.svc-tile__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0;
}

.svc-tile__value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.svc-tile__meta {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
}

.svc-tile__meta-icon {
    color: #16a34a;
    font-size: 0.85rem;
    line-height: 1;
}

.svc-tile__meta-icon--neutral {
    color: #6b7280;
}

/* Trend modifiers — applied to .svc-tile__meta to colour both the icon and the
   delta number so the up/down direction is reinforced visually. Default
   .svc-tile__meta-icon (green) covers the "up" case; the modifiers below override
   it for "down" / "flat" rows so the icon doesn't look celebratory next to a
   negative number. */
.svc-tile__meta--up,
.svc-tile__meta--up .svc-tile__meta-icon {
    color: #16a34a;
}

.svc-tile__meta--down,
.svc-tile__meta--down .svc-tile__meta-icon {
    color: #dc2626;
}

.svc-tile__meta--flat,
.svc-tile__meta--flat .svc-tile__meta-icon {
    color: #6b7280;
}

.svc-tile__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.svc-tile__icon--purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.svc-tile__icon--green {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.svc-tile__icon--orange {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.svc-tile__icon--blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

/* Recent Contractors avatar — rounded square with the admin's dark-navy/indigo brand colour.
   A single fixed swatch (not colour-cycled) so the visual stays calm and matches the Figma. */
.svc-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
    background: #2b2d5c;
}

/* Mail pill on Support Tickets — outlined capsule with paper-plane icon. */
.svc-mail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 999px;
    background: #ffffff;
    color: #2F3549;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.svc-mail-btn:hover {
    background: #ffffff;
    border-color: #94A3B8;
    color: #1E293B;
    text-decoration: none;
}

.svc-mail-btn .bi {
    font-size: 0.875rem;
    line-height: 1;
    color: inherit;
}

.svc-mail-btn.disabled {
    pointer-events: none;
    opacity: 0.55;
}
.btn {
    font-size:15px!important
}
/* Flat status pills used on dashboard rows — soft fill, no border, small and quiet. */
.svc-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 999px;
    line-height: 1.5;
    white-space: nowrap;
}

.svc-pill--active {
    background: #dcfce7;
    color: #166534;
}

.svc-pill--pending {
    background: #fef3c7;
    color: #92400e;
}

.svc-pill--inactive {
    background: #f3f4f6;
    color: #6b7280;
}

/* Pending Actions strip — amber wash with pink "Requires Attention" badge and a red
   highlight over the count to mirror the urgency used in the Figma. */
.svc-pending-actions {
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d !important;
}

.svc-pending-actions__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.25);
}

.svc-pending-actions__badge {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 3px 10px 3px 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.svc-pending-actions__badge .bi-dot {
    font-size: 1.1rem;
    line-height: 0;
    color: #dc2626;
}

.svc-pending-actions__body {
    color: #374151;
    font-size: 0.9rem;
}

.svc-pending-actions__highlight {
    color: #dc2626;
    font-weight: 600;
}

.svc-pending-actions__cta {
    background-color: #2b2d5c;
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
}

.svc-pending-actions__cta:hover {
    background-color: #1f2147;
    color: #fff;
}

table.dataTable th, table.dataTable td {
    font-size:13px
}


/* Searchable control dropdown inside the service modal */
.svc-sub-control-line .select2-container {
    flex: 1 1 12rem;
    min-width: 0;
    max-width: 100%;
}
    /* Match the small Bootstrap input height select2 replaces */
    .svc-sub-control-line .select2-container .select2-selection--single {
        height: calc(1.5em + 0.5rem + 2px);
        display: flex;
        align-items: center;
    }

.svc-sub-control-line .select2-container--default .select2-selection--single {
    border-color: var(--bs-border-color, #ced4da);
    border-radius: 0.375rem;
}
/* Keep the open dropdown above the modal */
.select2-container--open {
    z-index: 1060;
}

.select2-dropdown {
    z-index: 1060;
}

/* ---------- Drag-and-drop reordering ---------- */
/* Always-visible hint explaining reorder + move-across-pages */
.svc-reorder-hint {
    font-size: .8rem;
    color: #5b6472;
    background: #eef2ff;
    border: 1px solid #dbe3ff;
    border-radius: 999px;
    padding: .35rem .85rem;
    line-height: 1.25;
    max-width: 460px;
}

    .svc-reorder-hint > i {
        color: #4c6ef5;
        font-size: 1rem;
        flex: 0 0 auto;
    }

    .svc-reorder-hint strong {
        color: #38415a;
        font-weight: 600;
    }

/* While dragging, turn the pager into an obvious, boxed drop zone the user can clearly aim at */
.svc-reorder-dragging .dataTables_paginate {
    position: relative;
    padding: .4rem .55rem;
    border: 2px dashed #9db4ff;
    border-radius: 12px;
    background: #f5f8ff;
}

    .svc-reorder-dragging .dataTables_paginate::before {
        content: "Drop on a page to move it there";
        position: absolute;
        right: 0;
        bottom: 100%;
        margin-bottom: 10px;
        white-space: nowrap;
        background: #38415a;
        color: #fff;
        font-size: .74rem;
        font-weight: 500;
        padding: .35rem .65rem;
        border-radius: 6px;
        box-shadow: 0 6px 16px rgba(16, 24, 40, .18);
    }

    /* Enlarge every droppable page button so it's a clear, hittable target */
    .svc-reorder-dragging .dataTables_paginate .paginate_button {
        min-width: 40px;
        height: 36px;
        margin: 0 3px !important;
        padding: 0 .6rem !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px !important;
        font-weight: 600;
        transition: transform .12s ease, background-color .12s ease, color .12s ease, box-shadow .12s ease;
    }

        .svc-reorder-dragging .dataTables_paginate .paginate_button:not(.current):not(.disabled) {
            border: 1.5px solid #b9c6ff !important;
            background: #fff !important;
            color: #38415a !important;
            box-shadow: 0 2px 5px rgba(16, 24, 40, .08);
        }

        /* Dim the current page + disabled controls so the valid targets stand out */
        .svc-reorder-dragging .dataTables_paginate .paginate_button.current,
        .svc-reorder-dragging .dataTables_paginate .paginate_button.disabled {
            opacity: .4;
        }

/* The button directly under the cursor: unmistakable. z-index lifts it above the
       floating row clone (z-index 2000) so the highlight is never hidden by the drag helper. */
.dataTables_paginate .paginate_button.svc-pager-drop-hover {
    position: relative;
    z-index: 2100;
    background: #4c6ef5 !important;
    color: #fff !important;
    border-color: #4c6ef5 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(76, 110, 245, .28), 0 12px 26px rgba(76, 110, 245, .5);
    transform: translateY(-4px) scale(1.22);
    animation: svcPagerPulse 1s ease-in-out infinite;
}

@@keyframes svcPagerPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(76, 110, 245, .28), 0 12px 26px rgba(76, 110, 245, .5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(76, 110, 245, .12), 0 12px 26px rgba(76, 110, 245, .5);
    }
}

/* "Drop here" badge that floats above the hovered button, clear of the drag clone */
.dataTables_paginate .paginate_button.svc-pager-drop-hover::after {
    content: "Drop here";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 9px;
    white-space: nowrap;
    background: #4c6ef5;
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .25rem .5rem;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(76, 110, 245, .4);
    pointer-events: none;
}

/* Little pointer under the badge */
.dataTables_paginate .paginate_button.svc-pager-drop-hover::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 3px;
    border: 5px solid transparent;
    border-top-color: #4c6ef5;
    pointer-events: none;
}


/* Drag handle column */
#data-table_serviceItem th.svc-col-drag,
#data-table_serviceItem td.svc-col-drag {
    width: 44px;
    text-align: center;
    padding-left: .5rem !important;
    padding-right: .5rem !important;
}

.svc-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #b7bfcc;
    font-size: 1.05rem;
    line-height: 1;
    cursor: grab;
    transition: background-color .15s ease, color .15s ease;
}

    .svc-drag-handle:hover {
        background-color: #eef1f7;
        color: #566074;
    }

    .svc-drag-handle:active {
        cursor: grabbing;
    }

/* The row left behind while dragging */
#data-table_serviceItem tr.svc-row-dragging td {
    background-color: #fbfcfe;
    opacity: .55;
}

/* Floating clone that follows the cursor */
tr.svc-sortable-helper {
    display: table;
    table-layout: fixed;
    z-index: 2000;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(16, 24, 40, .18);
    outline: 1px solid #e6e9f0;
    overflow: hidden;
}

    tr.svc-sortable-helper > td {
        border: 0 !important;
        padding-top: .95rem !important;
        padding-bottom: .95rem !important;
        background: #fff !important;
        vertical-align: middle;
    }

    tr.svc-sortable-helper .svc-drag-handle {
        color: #4c6ef5;
    }

/* Gap shown where the row will drop — one clean band with a blue accent, not per-cell boxes */
tr.svc-sortable-placeholder > td {
    background: #eef2ff !important;
    border: 0 !important;
    border-top: 1px solid #dbe3ff !important;
    border-bottom: 1px solid #dbe3ff !important;
}

    tr.svc-sortable-placeholder > td:first-child {
        box-shadow: inset 3px 0 0 0 #4c6ef5;
    }