/* custom css start */
.net4gym-orders-order-cancel-confirm .form-actions .dialog-cancel {
    margin-bottom: 0 !important;
    margin-top: 20px !important;
}

.net4gym-orders-order-cancel-confirm .form-actions {
    gap: 10px !important;
}

/* custom css end */
.routine-exercises-table-wrapper {
    max-width: 1180px !important;
    margin: 20px 0 !important;
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.routine-session-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 20px 0 12px !important;
}

.routine-exercises-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    background: #fff !important;
}

.routine-exercises-table thead th {
    background: #f6f6f6 !important;
    color: #222 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    text-align: left !important;
}

.routine-exercises-table tbody td {
    padding: 12px !important;
    border: 1px solid #ddd !important;
    vertical-align: middle !important;
    font-size: 14px !important;
    color: #222 !important;
}

.routine-col-thumb {
    width: 90px !important;
}

.routine-col-thumb img {
    width: 58px !important;
    height: 58px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    display: block !important;
}

.routine-col-exercise {
    width: 280px !important;
    font-weight: 600 !important;
}

.routine-col-series,
.routine-col-reps,
.routine-col-load,
.routine-col-rpe {
    width: 90px !important;
}

.routine-col-rest {
    width: 180px !important;
}

.exercise-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.exercise-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.exercise-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.exercise-modal-content img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 10px;
}

/* Exercise detail carousel */
.exercise-gallery {
    margin-top: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    max-width: 520px;
}

.exercise-main-image {
    text-align: center;
    margin-bottom: 12px;
}

.exercise-main-image img {
    width: 100%;
    max-width: 420px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.exercise-carousel-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.exercise-thumb-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.exercise-thumb-img:hover {
    border-color: #d71920;
}



/* REMOVE GAP */
.exercise-main-image {
    width: 100%;
    height: 320px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
}

/* MAKE IMAGE FULL WIDTH OF DARK BOX */
.exercise-main-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin: 0 !important;
    border-radius: 10px;
}



/* ============================= */
/* Create Routine Button UI FIX */
/* ============================= */

.view-id-staff_routines .view-header a,
.view .view-header a[href*="/node/add"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #d71920 !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    margin: 15px 0 !important;
    border: none !important;
}

/* Hover effect */
.view-id-staff_routines .view-header a:hover,
.view .view-header a[href*="/node/add"]:hover {
    background: #b9151b !important;
}

.views-exposed-form .js-form-item-field-coach-target-id {
    display: none !important;
}


/* My Routines: do not hide sidebar exposed search (region facets). Only target a duplicate form inside main column if present. */
.path-my-routines .container_center .views-exposed-form,
.path-my-routines .container_center .views-exposed-form .form-actions {
    display: none !important;
}

/* Convert action icon to button */
.path-my-routines td.views-field-view-node a,
.path-my-routines td.views-field-operations a,
.path-my-routines .views-field-nothing a {
    background: #e31b23 !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-size: 0 !important;
}

/* Show "View" text */
.path-my-routines td.views-field-view-node a::after,
.path-my-routines td.views-field-operations a::after,
.path-my-routines .views-field-nothing a::after {
    content: "View";
    font-size: 14px !important;
}

.path-my-routines .messages--warning,
.path-my-routines .alert-warning {
    display: none !important;
}



.path-my-routines .messages--warning,
.path-my-routines .alert-warning,
.path-my-routines [class*="messages--warning"] {
    display: none !important;
}


















label {
    display: flex;
    justify-content: left;
}

/* button#edit-field-routine-sessions-0-actions-delete {
    position: relative;
    left: -300px;
    top: -58px;
} */






.routine-inline-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
}

.routine-inline-actions button {
    margin: 0 !important;
}

/* hide drag/order column only */
#field-routine-sessions-values td.field-multiple-drag,
#field-routine-sessions-values td.delta-order,
#field-routine-sessions-values .tabledrag-handle,
#field-routine-sessions-values .tabledrag-toggle-weight-wrapper {
    display: none !important;
}

/* main content full width */
#field-routine-sessions-values td {
    width: 100% !important;
}

/* buttons alignment */
.routine-inline-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
}

/* remove drag + order columns */
#field-routine-sessions-values td.field-multiple-drag,
#field-routine-sessions-values td.delta-order,
#field-routine-sessions-values .tabledrag-handle,
#field-routine-sessions-values .tabledrag-toggle-weight-wrapper {
    display: none !important;
}


/* Common badge style */
.status-btn {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Active → light green (professional) */
.status-Active {
    background: rgba(40, 167, 69, 0.15);
    /* light green */
    color: #28a745;
}

/* Draft → orange */
.status-Draft {
    background: rgba(255, 193, 7, 0.2);
    color: #d39e00;
}

/* Archived → grey */
.status-Archived {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}


/* 🔵 Table header blue */
table thead th {
    background: black !important;
    /* Bootstrap blue */
    color: #ffffff !important;
    font-weight: 600;
    border: none;
}

/* Table header rounded look (optional professional) */
table thead th:first-child {
    border-top-left-radius: 8px;
}

table thead th:last-child {
    border-top-right-radius: 8px;
}

/* 🖤 Table body text black */
table tbody td {
    color: #000000 !important;
    font-weight: 500;
}

/* Links (like test, admin) */
table tbody td a {
    color: #000000 !important;
    text-decoration: none;
}

/* Hover effect (clean UI) */
table tbody tr:hover {
    background: #f5f7fa;
}

/* View button blue */
.views-field-operations .button,
.views-field-operations .btn,
.views-field-operations a {
    background: #d41616 !important;
    border-color: #d41616 !important;
    color: #fff !important;
}

/* Hover effect */
.views-field-operations .button:hover,
.views-field-operations .btn:hover,
.views-field-operations a:hover {
    background: #d41616 !important;
    border-color: #d41616 !important;
}






.path-my-routines .views-field-view-node-2 a {
    background: #d41616 !important;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0 !important;
    text-decoration: none !important;
    display: inline-block !important;
    min-width: 70px;
    text-align: center;
}

.path-my-routines .views-field-view-node-2 a::after {
    content: "View";
    font-size: 14px !important;
}


.path-my-routines .views-field-view-node-2 a:hover {
    background: #d41616 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(227, 27, 35, 0.25);
    transform: translateY(-1px);
}



.status-btn {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.status-Active {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.status-Draft {
    background: rgba(255, 193, 7, 0.22);
    color: #d39e00;
}

.status-Archived {
    background: rgba(108, 117, 125, 0.22);
    color: #6c757d;
}




/* Fix Actions column alignment */
.path-my-routines th.views-field-view-node-2,
.path-my-routines td.views-field-view-node-2,
.path-my-routines th.views-field-operations,
.path-my-routines td.views-field-operations {
    text-align: center !important;
    vertical-align: middle !important;
    width: 220px !important;
}

/* Center View button inside Actions cell */
.path-my-routines td.views-field-view-node-2 a,
.path-my-routines td.views-field-operations a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 78px !important;
    height: 42px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
}



/* Common base for all status buttons */
.status-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    /* sab same width */
    height: 36px;
    /* same height */
    padding: 0 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}


.status-btn.status-draft {
    background: #e8d3a3 !important;
    color: #b88700 !important;
}


.status-btn.status-active {
    background: #c8e6c9 !important;
    color: #2e7d32 !important;
}


.status-btn.status-archived {
    background: #d6d8db !important;
    color: #6c757d !important;
}

/* FIX extra space in header area */
.counters-view-header {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove unnecessary height */
.counters-view-header:empty {
    display: none !important;
}

/* If flex is causing space */
.counters-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Reduce spacing below */
.counters-view-header+.view-content {
    margin-top: 10px !important;
}


/* FORCE button look */
a.btn.btn-primary {
    display: inline-block !important;
    background-color: #e11d2e !important;
    border: 1px solid #e11d2e !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 500;
}

/* hover */
a.btn.btn-primary:hover {
    background-color: #c51625 !important;
    border-color: #c51625 !important;
    color: #fff !important;
}




/* Paragraph session full width fix */
.field--name-field-routine-sessions table td {
    width: 100%;
}

/* Inner wrapper full width */
.field--name-field-routine-sessions .form-wrapper,
.field--name-field-routine-sessions .js-form-wrapper {
    width: 100%;
}

/* Input & textarea full stretch */
.field--name-field-routine-sessions .form-control,
.field--name-field-routine-sessions input,
.field--name-field-routine-sessions textarea {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}






.formsubmit {
    padding: 6px;
}

/* Remove Eliminate button (exercise/session delete) */
button[id*="actions-delete"] {
    display: none !important;
}

div#edit-actions {
    display: flex;
}




/* All action buttons equal */
#edit-actions input,
#edit-actions .button {
    height: 42px;
    position: relative;
    min-width: 140px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 7px;
}

/* Preview controls equal UI */
.node-preview-container {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 22px 28px !important;
}

/* Back + Change same size */
.node-preview-container .node-preview-backlink,
.node-preview-container input[type="submit"],
.node-preview-container button {
    height: 52px !important;
    min-width: 220px !important;
    padding: 0 22px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Back button outline */
.node-preview-container .node-preview-backlink {
    background: #fff !important;
    color: #d71920 !important;
    border: 1px solid #d71920 !important;
    text-decoration: none !important;
}

/* Change button red */
.node-preview-container input[type="submit"],
.node-preview-container button {
    background: #d71920 !important;
    color: #fff !important;
    border: 1px solid #d71920 !important;
}

/* Select same height */
.node-preview-container select {
    height: 52px !important;
    min-width: 150px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
}


/* Hide last empty column */
/* #field-routine-sessions-values td:last-child {
    display: none !important;
} */

/* Hide only "to Exercises" text */
/* [id*="field-exercises-add-more-wrapper"] em {
    display: none !important;
} */


/* Hide remaining "to" text */
[id*="field-exercises-add-more-wrapper"] .clearfix {
    font-size: 0 !important;
}

/* Keep "Agregar Exercise in Session" visible */
[id*="field-exercises-add-more-wrapper"] .clearfix::before {
    content: "Agregar Exercise in Session";
    font-size: 16px !important;
    color: #d71920 !important;
}




table tbody tr:hover {
    background: inherit !important;
}

#field-routine-sessions-values td:nth-child(3),
#field-routine-sessions-values th:nth-child(3) {
    display: none !important;
}

form .field-multiple-table {
    margin: 0;
    width: 1344px !important;
    margin-left: -14px;
}


/* Staff routine action columns */
table.views-table th.views-field-view-node,
table.views-table th.views-field-edit-node,
table.views-table th.views-field-delete-node,
table.views-table td.views-field-view-node,
table.views-table td.views-field-edit-node,
table.views-table td.views-field-delete-node {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    padding: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* Icon/link exact center */
table.views-table td.views-field-view-node a,
table.views-table td.views-field-edit-node a,
table.views-table td.views-field-delete-node a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 64px !important;
    margin: 0 auto !important;
    line-height: 1 !important;
}

/* If Drupal wraps icon inside .field-content */
table.views-table td.views-field-view-node .field-content,
table.views-table td.views-field-edit-node .field-content,
table.views-table td.views-field-delete-node .field-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.views-table th.views-field-view-node {
    display: flex;
    justify-content: end;
    position: absolute;
    right: 265px;
    top: 180px;
}


/* Fix Training Tables text -> Button */
a[href^="/training-tables"] {
    display: inline-block !important;
    background: #ff5733 !important;
    color: #fff !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    margin: 50px 0 10px 20px !important;
}

/* Remove font tag effect */
a[href^="/training-tables"] font {
    color: inherit !important;
    font-family: inherit !important;
}

/* Hover */
a[href^="/training-tables"]:hover {
    background: #e64a2e !important;
    color: #fff !important;
}



a[href^="/training-tables"] {
    position: absolute !important;
    top: 90px !important;
    /* adjust karo */
    left: 80px !important;
    /* sidebar ton thoda right */
    z-index: 9999;
}

/* Net4Gym staff: scroll micro-motion (theme js/staff-scroll-parallax.js sets --n4g-scroll-y on html). */
:root {
    --n4g-scroll-y: 0;
}

@media (prefers-reduced-motion: no-preference) {
    body.user-logged-in .container_center {
        transform: translate3d(0, calc(var(--n4g-scroll-y, 0) * 0.006px), 0);
        transition: transform 0.15s linear;
    }
}