/*
 Theme Name: Twenty Twenty-Five Child
 Template: twentytwentyfive
*/

@import url("../twentytwentyfive/style.css");


body:has(.mc-portal-shell) {
    --wp--style--root--padding-left: 0px;
    --wp--style--root--padding-right: 0px;
}

body:has(.mc-portal-shell) #wp--skip-link--target {
    margin-top: 0 !important;
}

body:has(.mc-portal-shell)
.wp-block-group.alignfull.has-global-padding.is-layout-constrained {
    padding-top: 0 !important;
}

/* MediCompare custom styles */
.mc-register-form {
    max-width: 500px;
    margin: 0 auto;
}

.mc-register-form label {
    font-weight: bold;
    margin-top: 15px;
    display: block;
}

.mc-register-form input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

.mc-register-form button {
    margin-top: 20px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
}
/* Dashboard Header */
.mc-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

/* Logout Button */
.mc-logout-btn {
    background: #c62828;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.mc-logout-btn:hover {
    background: #b71c1c;
}

/* Cards */
.mc-card {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

/* Success Message */
.mc-success {
    background: #d4edda;
    color: #155724;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

/* Muted text */
.mc-muted {
    color: #777;
}

/* Layout 
.mc-search-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
*/
/* Restore correct grid layout for the search page */
/* Desktop only */
@media (min-width: 769px) {

    body.page-id-71 .mc-search-layout {
        display: grid !important;
        grid-template-columns: 1.6fr 1fr !important;
        gap: 24px !important;
        align-items: flex-start !important;
    }

}


.mc-search-left,
.mc-search-right {
    flex: 1;
}

/* Search bar */
.mc-search-bar {
    margin-bottom: 15px;
}

#mc-search-input {
    width: 100%;
    padding: 6px;
    /*border: 1px solid #ccc;*/
    border-radius: 4px;
}

/* Search results -OLD
.mc-search-results {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    background: #fff;
} */

.mc-search-results {
    margin-top: 6px;
    border: 2px solid #d9e2ef;
    border-radius: 12px;
    padding: 0;
    background: #ffffff;
    max-height: none;
    overflow: hidden;
}

.mc-search-results-table {
    width: 100%;
    border-collapse: collapse;
}

.mc-search-results-table th,
.mc-search-results-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    font-weight: 500;
}

.mc-search-row {
    cursor: pointer;
}

.mc-search-row:hover {
    background: #f5f5f5;
}

.mc-search-row-selected {
    background: #e3f2fd;
}

/* Selected item */
.mc-selected-item {
    margin-top: 15px;
}

.mc-selected-item-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    background: #fafafa;
}

/* Order tabs */
.mc-order-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.mc-order-tab {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 16px;
}

.mc-order-tab-active {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
}

/* Order panels */
.mc-order-panel {
    display: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
    min-height: 150px;
}

.mc-order-panel-active {
    display: block;
}

/* Pending order tables */
.mc-pending-supplier-block {
    margin-bottom: 15px;
}

.mc-pending-order-table {
    width: 100%;
    border-collapse: collapse;
}

.mc-pending-order-table th,
.mc-pending-order-table td {
    padding: 6px 8px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color:darkslateblue;
}

.mc-remove-pending-item {
    border: none;
    background: transparent;
    color: #c62828;
    cursor: pointer;
    font-size: 14px;
}

/* Totals */
.mc-supplier-total,
.mc-overall-total {
    font-weight: 600;
    margin-top: 6px;
}

/* Transfer button */
.mc-order-actions {
    margin-top: 10px;
    text-align: right;
}

.mc-transfer-btn {
    padding: 8px 14px;
    background: #2e7d32;
    color: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.mc-transfer-btn:hover {
    background: #1b5e20;
}
/* Clickable dashboard card */
.mc-card-clickable {
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mc-card-clickable:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Edit details layout tweaks */
.mc-edit-details input[disabled] {
    background: #f5f5f5;
    color: #555;
}

/* Reset password buttons */
.mc-reset-password-form button {
    padding: 8px 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}

.mc-reset-password-form button:hover {
    background: #005f8a;
}
/* Two-column layout */
.mc-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Error message */
.mc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}
/* ---------------------------------------------------------
   PREMIUM SAAS-STYLE DASHBOARD CARD
--------------------------------------------------------- */

.mc-card-pro {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.18s ease;
    cursor: pointer;
    position: relative;
}

.mc-card-pro:hover {
    transform: translateY(-3px);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.06),
        0 12px 24px rgba(0,0,0,0.08);
}

.mc-card-pro h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.mc-card-pro p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* Icon styling */
.mc-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.85;
}

/* Optional: subtle gradient header (Shopify style) */
.mc-card-pro {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 60%);
}

/* Optional: right arrow indicator (Stripe style) */
.mc-card-pro::after {
    content: "→";
    position: absolute;
    right: 20px;
    top: 24px;
    font-size: 20px;
    opacity: 0.25;
    transition: opacity 0.2s ease;
}

.mc-card-pro:hover::after {
    opacity: 0.6;
}
/* Base premium card (already added earlier) */
.mc-card-pro {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.18s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 20px;
}

.mc-card-pro:hover {
    transform: translateY(-3px);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.06),
        0 12px 24px rgba(0,0,0,0.08);
}

.mc-card-pro h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.mc-card-pro p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

.mc-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.85;
}

/* Colour variants */
.mc-card-blue {
    border-left: 6px solid #1976d2;
}

.mc-card-green {
    border-left: 6px solid #2e7d32;
}

.mc-card-orange {
    border-left: 6px solid #ef6c00;
}

/* Hover arrow (Stripe style) */
.mc-card-pro::after {
    content: "→";
    position: absolute;
    right: 20px;
    top: 24px;
    font-size: 20px;
    opacity: 0.25;
    transition: opacity 0.2s ease;
}

.mc-card-pro:hover::after {
    opacity: 0.6;
}

/* Disable arrow for non-clickable cards */
.mc-card-green::after {
    display: none;
}
/* Dashboard grid layout */
.mc-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

/* Responsive: 1 card per row on mobile */
@media (max-width: 900px) {
    .mc-dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* Purple accent card */
.mc-card-purple {
    border-left: 6px solid #6a1b9a;
}

/* Modal background */
.mc-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
}

/* Modal content */
.mc-modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    width: 420px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: mcModalFade 0.2s ease;
}

@keyframes mcModalFade {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Close button */
.mc-modal-close {
    float: right;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.6;
}

.mc-modal-close:hover {
    opacity: 1;
}

/* Textarea */
.mc-modal-content textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Button */
.mc-modal-content button {
    padding: 10px 16px;
    background: #6a1b9a;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.mc-modal-content button:hover {
    background: #4a148c;
}

/* Toast notification */
.mc-toast {
    visibility: hidden;
    min-width: 260px;
    background: #2e7d32;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 14px 20px;
    position: fixed;
    z-index: 99999;

    left: 50%;
    bottom: 120px;
    transform: translateX(-50%) translateY(20px);

    opacity: 0;

    /* Make fade-out slower and smoother */
   transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When toast is active */
.mc-toast-show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/*
.mc-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}
*/

.mc-filter-bar input {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.mc-btn {
    padding: 8px 14px;
    background: #1976d2;
    color: #fff;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.mc-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mc-order-card {
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    border-left: 6px solid #ff9800;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mc-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mc-order-details {
    display: none;
    margin-top: 12px;
}

.mc-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.mc-order-table th,
.mc-order-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}
.mc-btn-inline {
    display: inline-block;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
}

.mc-btn-primary {
    background: #0073aa;
    color: #fff;
}

.mc-btn-secondary {
    background: #555;
    color: #fff;
}

.mc-btn-tertiary {
    background: #999;
    color: #fff;
}

.mc-btn-inline:hover {
    opacity: 0.9;
}
.mc-btn-inline {
    display: inline-block;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin: 0 8px;
}

.mc-btn-primary {
    background: #0073aa;
    color: #fff;
}

.mc-btn-secondary {
    background: #555;
    color: #fff;
}

.mc-btn-tertiary {
    background: #999;
    color: #fff;
}

.mc-btn-inline:hover {
    opacity: 0.9;
}
/* FILTER BAR WRAPPER */
.mc-filter-bar {
    margin-bottom: 0;
}

/* EACH FILTER ROW (date row + order number row) */
.mc-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* ORDER NUMBER ROW — slightly more spacing below */
.mc-filter-row--order {
    margin-bottom: 16px;
}

/* LABELS */
.mc-filter-row label {
    font-weight: 600;
}

/* VIEW ALL + CLEAR FILTERS */
.mc-filter-actions {
    text-align: center;
    margin: 15px 0 20px;
}

/* MESSAGE UNDER FILTERS */
.mc-filter-message {
    text-align: left;
    color: #555;
    margin: 10px 0 20px;
}

/* BUTTON STYLES */
.mc-btn-inline {
    display: inline-block;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin: 0 10px;
}

.mc-btn-primary {
    background: #0073aa;
    color: #fff;
}

.mc-btn-secondary {
    background: #555;
    color: #fff;
}

.mc-btn-tertiary {
    background: #999;
    color: #fff;
}

.mc-btn-inline:hover,
.mc-btn-primary:hover {
    opacity: 0.9;
}
/* ---------------------------------------------------------
   FIX PHARMACY FILTER LAYOUT (FINAL + SAFE)
--------------------------------------------------------- */

/* Force filter bar to stack rows vertically */
.mc-filter-bar {
    display: block !important;
    margin-bottom: 0 !important;
}

/* Each filter row behaves as its own row */
.mc-filter-row,
.mc-filter-row--order {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px !important;
}

/* Extra spacing under order number row */
.mc-filter-row--order {
    margin-bottom: 16px !important;
}

/* Buttons row */
.mc-filter-actions {
    text-align: center !important;
    margin: 15px 0 20px !important;
}

/* Message under filters */
.mc-filter-message {
    text-align: left !important;
    margin: 10px 0 20px !important;
}
/* ---------------------------------------------------------
   FINAL FIX — BUTTONS UNDER ORDER NUMBER ROW
--------------------------------------------------------- */

/* Ensure filter bar stacks rows vertically */
.mc-filter-bar {
    display: block !important;
}

/* Ensure each row behaves as a row */
.mc-filter-row,
.mc-filter-row--order {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px !important;
}

/* Extra spacing under the order number row */
.mc-filter-row--order {
    margin-bottom: 18px !important;
}

/* Buttons row sits clearly below both filter rows */
.mc-filter-actions {
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}
.mc-filter-bar {
    display: block !important;
}

.mc-filter-bar > * {
    display: block !important;
    width: 100% !important;
    margin-bottom: 12px !important;
}
/* Break TT25 layout forcing flex on everything */
.wp-block-group .mc-filter-bar,
.wp-block-group__inner-container .mc-filter-bar,
.wp-site-blocks .mc-filter-bar {
    display: block !important;
}

/* Ensure children stack vertically */
.mc-filter-bar > * {
    display: block !important;
    width: 100% !important;
    margin-bottom: 12px !important;
}
/* ---------------------------------------------------------
   FIX: Prevent mc-page-container from forcing flex layout
--------------------------------------------------------- */
.mc-page-container {
    display: block !important;
}
.mc-filter-bar {
    display: block;
    margin-bottom: 0;
}


.wp-block-template-part {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.wp-block-group {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* this is for the back to top being available on mobile */
#mc-back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    z-index: 9999;
}

:root :where(.is-layout-constrained) > * {
    margin-block-start: 0rem;
}
/* Show only on mobile */
@media (max-width: 768px) {
    #mc-back-to-top {
        display: block;
    }
}






