/* === APP LAYOUT === */
.ppm-app {
    display: flex;
    min-height: 100vh;
    background: #f9fafb;
    font-family: system-ui, -apple-system, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* === SIDEBAR === */
.ppm-sidebar {
    width: 260px;
    min-width: 260px;
    background: #111827;
    color: #fff;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.ppm-sidebar.closed {
    transform: translateX(-100%);
}

.ppm-sidebar-brand {
    padding: 0 20px 20px;
    border-bottom: 1px solid #1f2937;
    margin-bottom: 10px;
}

.ppm-sidebar-brand h2 {
    font-size: 20px;
    margin-bottom: 4px;
    color: #fff;
}

.ppm-sidebar-brand span {
    font-size: 13px;
    color: #9ca3af;
}

/* === SIDEBAR NAV === */
.ppm-sidebar-nav {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ppm-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: left;
    margin-bottom: 2px;
    text-decoration: none;
}

.ppm-nav-item:hover {
    background: #1f2937;
    color: #fff;
}

.ppm-nav-item.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.ppm-nav-item .ppm-nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ppm-logout {
    margin-top: auto !important;
    color: #f87171 !important;
}

.ppm-logout:hover {
    background: #1f2937 !important;
    color: #fca5a5 !important;
}

/* === SIDEBAR TOGGLE === */
.ppm-sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1100;
    background: #2563eb;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ppm-sidebar-toggle:hover {
    background: #1d4ed8;
}

/* === SIDEBAR OVERLAY === */
.ppm-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.ppm-sidebar-overlay.active {
    display: block;
}

/* === MAIN CONTENT === */
.ppm-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
    width: calc(100% - 260px);
    max-width: 100%;
    box-sizing: border-box;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.ppm-main.expanded {
    margin-left: 0;
    width: 100%;
}

.ppm-main-header {
    margin-bottom: 32px;
}

.ppm-main-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

/* === TODAY CARDS GRID === */
.ppm-today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ppm-today-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ppm-today-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ppm-today-card-body {
    padding: 24px;
}

.ppm-today-pool {
    font-size: 20px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 12px;
}

.ppm-today-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.ppm-today-phone {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 4px;
}

.ppm-today-time {
    font-size: 14px;
    color: #6b7280;
}

.ppm-today-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e5e7eb;
}

.ppm-today-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: filter 0.2s ease;
}

.ppm-today-action:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.ppm-today-action.whatsapp {
    background: #25D366;
}

.ppm-today-action.call {
    background: #2563eb;
}

.ppm-today-action:hover {
    filter: brightness(1.1);
    color: #ffffff;
    text-decoration: none;
}

.ppm-today-action svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* === FILTERS === */
.ppm-client-filter {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.ppm-client-filter label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.ppm-client-filter select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 14px;
}

/* === SECTION ACTIONS === */
.ppm-section-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.ppm-client-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.ppm-client-btn:hover {
    background: #1d4ed8;
}

.ppm-client-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.ppm-client-btn.secondary:hover {
    background: #e5e7eb;
}

/* === STATS GRID === */
.ppm-client-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.ppm-client-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ppm-client-stat-card strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ppm-client-stat-card span {
    color: #6b7280;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === CARDS === */
.ppm-client-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ppm-client-card strong {
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.ppm-client-card span {
    display: block;
    margin: 6px 0;
    color: #4b5563;
}

.ppm-client-card small {
    color: #6b7280;
}

.ppm-client-card .ppm-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* === CALENDAR === */
.ppm-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.ppm-calendar-header button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.ppm-calendar-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.ppm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.ppm-calendar-weekdays {
    margin-bottom: 12px;
}

.ppm-calendar-weekdays div {
    font-weight: 700;
    text-align: center;
    color: #374151;
    padding: 8px;
    font-size: 14px;
}

.ppm-calendar-day {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    min-height: 100px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ppm-calendar-day:hover {
    border-color: #93c5fd;
}

.ppm-today {
    border-color: #2563eb !important;
    background: #eff6ff;
}



.ppm-day-number {
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.ppm-day-booking {
    background: #dbeafe;
    border-radius: 6px;
    padding: 6px;
    margin-bottom: 4px;
    font-size: 11px;
    cursor: pointer;
    position: relative;
}

.ppm-day-booking:hover {
    background: #bfdbfe;
}

.ppm-booking-client-name {
    display: block;
    font-size: 11px;
    margin-top: 2px;
    color: #374151;
}

.ppm-mini-delete {
    position: absolute;
    right: 4px;
    top: 4px;
    border: none;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 16px;
    cursor: pointer;
    display: none;
}

.ppm-day-booking:hover .ppm-mini-delete {
    display: block;
}

/* === MODALS === */
.ppm-client-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ppm-client-modal.active {
    display: flex;
}

.ppm-client-modal-box {
    background: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.ppm-client-close {
    position: absolute;
    right: 16px;
    top: 16px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.ppm-client-close:hover {
    background: #f3f4f6;
}

.ppm-client-modal-box h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #111827;
}

/* === FORMS === */
#ppm-client-booking-form,
#ppm-client-expense-form,
#ppm-client-pool-form {
    display: grid;
    gap: 16px;
}

#ppm-client-booking-form label,
#ppm-client-expense-form label,
#ppm-client-pool-form label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

#ppm-client-booking-form input,
#ppm-client-booking-form select,
#ppm-client-booking-form textarea,
#ppm-client-expense-form input,
#ppm-client-expense-form textarea,
#ppm-client-pool-form input,
#ppm-client-pool-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

#ppm-client-booking-form input:focus,
#ppm-client-booking-form select:focus,
#ppm-client-booking-form textarea:focus,
#ppm-client-expense-form input:focus,
#ppm-client-expense-form textarea:focus,
#ppm-client-pool-form input:focus,
#ppm-client-pool-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* === LOGIN PAGE === */
.ppm-login-container {
    max-width: 440px;
    margin: 80px auto;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ppm-login-container h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #111827;
}

.ppm-login-container p {
    color: #6b7280;
    margin-bottom: 32px;
}

.ppm-login-form {
    display: grid;
    gap: 20px;
}

.ppm-login-form label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.ppm-login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.ppm-login-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ppm-login-form button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.ppm-login-form button:hover {
    background: #1d4ed8;
}

.ppm-login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ============================================ */
/* RESPONSIVE - MOBILE & TABLET */
/* ============================================ */

/* Tablet and below - sidebar hidden by default */
@media (max-width: 1024px) {
    .ppm-sidebar {
        transform: translateX(-100%);
    }
    
    .ppm-sidebar.open {
        transform: translateX(0);
    }
    
    .ppm-sidebar-toggle {
        display: flex;
    }
    
    .ppm-main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px;
    }
    
    .ppm-today-grid {
        grid-template-columns: 1fr;
    }
    
    .ppm-client-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .ppm-calendar-grid {
        gap: 4px;
    }
    
    .ppm-calendar-day {
        min-height: 70px;
        padding: 6px;
        font-size: 11px;
    }
    
    .ppm-calendar-weekdays div {
        font-size: 11px;
        padding: 4px;
    }
    
    .ppm-main-header h1 {
        font-size: 22px;
        margin-top: 10px;
    }
}

/* Desktop - sidebar visible */
@media (min-width: 1025px) {
    .ppm-sidebar {
        transform: translateX(0) !important;
    }
    
    .ppm-sidebar-toggle {
        display: none !important;
    }
    
    .ppm-sidebar-overlay {
        display: none !important;
    }
    
    .ppm-main {
        margin-left: 260px !important;
        width: calc(100% - 260px) !important;
    }
    
    .ppm-main.expanded {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Phone */
@media (max-width: 640px) {
    .ppm-main {
        padding: 16px;
    }
    
    .ppm-main-header h1 {
        font-size: 20px;
    }
    
    .ppm-today-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ppm-client-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .ppm-client-stat-card {
        padding: 16px;
    }
    
    .ppm-client-stat-card strong {
        font-size: 24px;
    }
    
    .ppm-client-stat-card span {
        font-size: 11px;
    }
    
    .ppm-calendar-grid {
        gap: 2px;
    }
    
    .ppm-calendar-day {
        min-height: 55px;
        padding: 4px;
    }
    
    .ppm-calendar-weekdays div {
        font-size: 9px;
        padding: 2px;
    }
    
    .ppm-day-number {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .ppm-day-booking {
        font-size: 9px;
        padding: 3px;
    }
    
    .ppm-calendar-header {
        padding: 12px;
    }
    
    .ppm-calendar-header h3 {
        font-size: 16px;
    }
    
    .ppm-calendar-header button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .ppm-client-modal-box {
        padding: 20px;
        margin: 10px;
    }
    
    .ppm-client-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ppm-client-filter select,
    .ppm-client-filter button {
        width: 100%;
    }
    
    .ppm-section-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .ppm-section-actions .ppm-client-btn {
        width: 100%;
        text-align: center;
    }
    
    .ppm-client-card .ppm-card-actions {
        flex-direction: column;
    }
    
    .ppm-client-card .ppm-card-actions .ppm-client-btn {
        width: 100%;
        text-align: center;
    }
}
/* ================================
   STEP 13.2B - DESKTOP FULL WIDTH FIX
================================ */

@media (min-width: 1025px) {

    html, body {
        overflow-x: hidden;
    }

    #ppm-client-dashboard.ppm-app {
        width: 100vw !important;
        max-width: 100vw !important;
        min-height: 100vh;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }

    #ppm-client-dashboard .ppm-main {
        width: calc(100vw - 260px) !important;
        max-width: calc(100vw - 260px) !important;
        margin-left: 260px !important;
        padding: 40px 48px !important;
        box-sizing: border-box;
    }

    #ppm-client-dashboard .ppm-sidebar {
        width: 260px !important;
        min-width: 260px !important;
    }
}
/* === LOGIN PAGE FIX === */

.ppm-login-container {
    width: 100%;
    max-width: 460px;
    margin: 80px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
}

.ppm-login-container h1 {
    font-size: 28px;
    margin: 0 0 10px;
    color: #111827;
}

.ppm-login-container > p {
    color: #6b7280;
    margin: 0 0 28px;
    font-size: 16px;
}

#ppm-login-form p {
    margin: 0 0 18px;
}

#ppm-login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

#ppm-login-form input[type="text"],
#ppm-login-form input[type="password"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
}

#ppm-login-form input[type="submit"] {
    width: 100%;
    height: 46px;
    background: #2563eb;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

#ppm-login-form .login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

#ppm-login-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.ppm-login-message,
.ppm-login-error {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.ppm-login-message {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.ppm-login-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

@media (max-width: 600px) {
    .ppm-login-container {
        max-width: calc(100vw - 32px);
        margin: 40px auto;
        padding: 30px 22px;
    }

    .ppm-login-container h1 {
        font-size: 26px;
    }
}
/* ================================
   CLIENT EXPENSES TABLE
================================ */

.ppm-expenses-table-wrap {
    width: 100%;
    max-width: 900px;
    overflow-x: auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.ppm-expenses-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.ppm-expenses-table th,
.ppm-expenses-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

.ppm-expenses-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 700;
}

.ppm-expenses-table tfoot td {
    background: #f8fafc;
}

.ppm-money-col {
    text-align: right !important;
    white-space: nowrap;
}

.ppm-actions-col {
    width: 150px;
    white-space: nowrap;
}

.ppm-mini-btn {
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
    font-size: 12px;
    margin-right: 6px;
}

.ppm-mini-btn.danger {
    color: #dc2626;
    border-color: #fecaca;
}

.ppm-empty-row {
    text-align: center !important;
    color: #6b7280;
    padding: 28px !important;
}
/* PROFILE PAGE */



.ppm-profile-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.ppm-profile-card label {
    display: block;
    margin-top: 12px;
    font-size: 13px;
}

.ppm-profile-card input {
    width: 100%;
    height: 40px;
    margin-top: 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 10px;
}
/* SETTINGS PROFILE LAYOUT */

.ppm-settings-page {
    max-width: 860px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.ppm-settings-section {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 28px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.ppm-settings-section:last-child {
    border-bottom: 0;
}

.ppm-settings-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ppm-settings-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.ppm-settings-fields {
    max-width: 420px;
}

.ppm-settings-fields label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.ppm-settings-fields input {
    width: 100%;
    height: 42px;
    margin-bottom: 16px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Disabled + Readonly styling */

.ppm-settings-fields input:disabled,
.ppm-settings-fields input[readonly] {
    background: #f3f4f6;
    color: #6b7280;
    cursor: default;
}

.ppm-settings-fields .ppm-client-btn {
    width: auto;
    min-width: 140px;
}

@media (max-width: 768px) {
    .ppm-settings-section {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 20px;
    }

    .ppm-settings-fields {
        max-width: 100%;
    }
}
.ppm-settings-fields select {
    width: 100%;
    height: 42px;
    margin-bottom: 16px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    font-size: 14px;
    box-sizing: border-box;
    background: #ffffff;
}

.ppm-toggle-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px !important;
    font-weight: 400 !important;
}

.ppm-toggle-row input {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
}
.ppm-paid-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ppm-paid-toggle input {
    width: 18px;
    height: 18px;
}
/* TODAY EXPECTED COLLECTION */

.ppm-today-money {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 6px;
}

.ppm-today-money div {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.ppm-today-money span {
    color: #6b7280;
}

.ppm-today-money strong {
    color: #111827;
}

.ppm-today-money .collect strong {
    color: #16a34a;
    font-size: 15px;
}

.ppm-today-revenue-summary {
    margin-top: 24px;
    max-width: 520px;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ppm-today-revenue-summary table {
    width: 100%;
    border-collapse: collapse;
}

.ppm-today-revenue-summary th,
.ppm-today-revenue-summary td {
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.ppm-today-revenue-summary td {
    text-align: right;
    font-size: 20px;
    font-weight: 800;
    color: #16a34a;
}
/* CALENDAR AVAILABILITY STATUS */

.ppm-day-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
}

.ppm-day-status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 999px;
    white-space: nowrap;
}

.ppm-free-day {
    border-left: 4px solid #22c55e !important;
}

.ppm-free-day .ppm-day-status {
    background: #dcfce7;
    color: #166534;
}

.ppm-partially-booked {
    border-left: 4px solid #f59e0b !important;
}

.ppm-partially-booked .ppm-day-status {
    background: #fef3c7;
    color: #92400e;
}

.ppm-fully-booked {
    border-left: 4px solid #ef4444 !important;
    background: #fef2f2 !important;
    cursor: not-allowed !important;
    opacity: 0.75;
}

.ppm-fully-booked .ppm-day-status {
    background: #fee2e2;
    color: #991b1b;
}

.ppm-past-day {
    opacity: 0.35;
    cursor: not-allowed !important;
}
/* TOAST NOTIFICATIONS */

#ppm-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ppm-toast {
    min-width: 260px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: ppmToastIn 0.25s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ppm-toast.success { background: #16a34a; }
.ppm-toast.error { background: #dc2626; }
.ppm-toast.info { background: #2563eb; }

.ppm-toast-close {
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
}

@keyframes ppmToastIn {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* MODERN CONFIRM MODAL */

.ppm-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ppm-confirm-modal.active {
    display: flex;
}

.ppm-confirm-box {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.ppm-confirm-box h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ppm-confirm-box p {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.ppm-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
/* SMART FILTER SEARCH */

.ppm-smart-search-wrap {
    position: relative;
    min-width: 280px;
}

.ppm-filter-search {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background: #ffffff;
    box-sizing: border-box;
}

.ppm-clear-search {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #374151;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.ppm-search-suggestions {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.ppm-search-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.ppm-search-suggestion-item:hover {
    background: #f8fafc;
}

@media (max-width: 768px) {
    .ppm-smart-search-wrap {
        width: 100%;
        min-width: 100%;
    }
}
/* ================================
   MOBILE COMPACT BOOKINGS TABLE
================================ */

@media (max-width: 768px) {

    .ppm-bookings-table th:nth-child(3),
    .ppm-bookings-table td:nth-child(3), /* Phone */

    .ppm-bookings-table th:nth-child(5),
    .ppm-bookings-table td:nth-child(5), /* Time */

    .ppm-bookings-table th:nth-child(6),
    .ppm-bookings-table td:nth-child(6), /* People */

    .ppm-bookings-table th:nth-child(8),
    .ppm-bookings-table td:nth-child(8)  /* Notes / extra */
    {
        display: none;
    }

    .ppm-bookings-table th,
    .ppm-bookings-table td {
        font-size: 13px;
        padding: 8px;
        white-space: nowrap;
    }
}
/* MOBILE COMPACT BOOKING LIST */
@media (max-width: 768px) {
    .ppm-bookings-compact-table th:nth-child(3),
    .ppm-bookings-compact-table td:nth-child(3),
    .ppm-bookings-compact-table th:nth-child(5),
    .ppm-bookings-compact-table td:nth-child(5),
    .ppm-bookings-compact-table th:nth-child(6),
    .ppm-bookings-compact-table td:nth-child(6),
    .ppm-bookings-compact-table th:nth-child(9),
    .ppm-bookings-compact-table td:nth-child(9) {
        display: none;
    }

    .ppm-bookings-compact-table th,
    .ppm-bookings-compact-table td {
        padding: 9px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
}

.ppm-details-list {
    display: grid;
    gap: 10px;
}

.ppm-details-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ppm-details-list strong {
    color: #374151;
}

.ppm-details-list span {
    text-align: right;
    color: #111827;
}

.ppm-details-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
/* MOBILE BOOKINGS: Date | Customer | Paid only */
@media (max-width: 768px) {
    .ppm-bookings-compact-table th:nth-child(3),
    .ppm-bookings-compact-table td:nth-child(3), /* Phone */

    .ppm-bookings-compact-table th:nth-child(4),
    .ppm-bookings-compact-table td:nth-child(4), /* Pool */

    .ppm-bookings-compact-table th:nth-child(5),
    .ppm-bookings-compact-table td:nth-child(5), /* Time */

    .ppm-bookings-compact-table th:nth-child(6),
    .ppm-bookings-compact-table td:nth-child(6), /* Price */

    .ppm-bookings-compact-table th:nth-child(8),
    .ppm-bookings-compact-table td:nth-child(8)  /* Actions */
    {
        display: none !important;
    }

    .ppm-booking-row-clickable {
        cursor: pointer;
    }

    .ppm-booking-row-clickable:hover {
        background: #f8fafc;
    }
}
/* FINAL MOBILE BOOKINGS TABLE FIT */
@media (max-width: 768px) {
    .ppm-expenses-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .ppm-bookings-compact-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .ppm-bookings-compact-table th,
    .ppm-bookings-compact-table td {
        font-size: 13px !important;
        padding: 10px 8px !important;
        white-space: normal !important;
    }

    .ppm-bookings-compact-table th:nth-child(1),
    .ppm-bookings-compact-table td:nth-child(1) {
        width: 34% !important;
    }

    .ppm-bookings-compact-table th:nth-child(2),
    .ppm-bookings-compact-table td:nth-child(2) {
        width: 46% !important;
    }

    .ppm-bookings-compact-table th:nth-child(7),
    .ppm-bookings-compact-table td:nth-child(7) {
        width: 20% !important;
        text-align: center !important;
    }

    .ppm-bookings-compact-table th:nth-child(3),
    .ppm-bookings-compact-table td:nth-child(3),
    .ppm-bookings-compact-table th:nth-child(4),
    .ppm-bookings-compact-table td:nth-child(4),
    .ppm-bookings-compact-table th:nth-child(5),
    .ppm-bookings-compact-table td:nth-child(5),
    .ppm-bookings-compact-table th:nth-child(6),
    .ppm-bookings-compact-table td:nth-child(6),
    .ppm-bookings-compact-table th:nth-child(8),
    .ppm-bookings-compact-table td:nth-child(8) {
        display: none !important;
    }

    .ppm-paid-toggle {
        justify-content: center !important;
    }

    .ppm-paid-toggle span {
        display: none !important;
    }
}
.ppm-details-list {
    display: grid;
    gap: 8px;
}

.ppm-details-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ppm-details-list strong {
    color: #374151;
}

.ppm-details-list span {
    text-align: right;
    color: #111827;
}

.ppm-details-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .ppm-details-actions {
        flex-direction: column;
    }

    .ppm-details-actions .ppm-client-btn {
        width: 100%;
        text-align: center;
    }
}
/* MOBILE FIX — BOOKINGS FOOTER */
@media (max-width: 768px) {

    .ppm-bookings-compact-table tfoot tr {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 10px;
        border-top: 1px solid #e5e7eb;
        background: #f9fafb;
    }

    .ppm-bookings-compact-table tfoot td {
        display: block !important;
        border: none !important;
        padding: 0 !important;
    }

    /* Hide extra columns from footer */
    .ppm-bookings-compact-table tfoot td:not(:first-child):not(.ppm-money-col) {
        display: none !important;
    }

    /* Label (left) */
    .ppm-bookings-compact-table tfoot td:first-child {
        font-weight: 600;
        color: #374151;
    }

    /* Value (right) */
    .ppm-bookings-compact-table tfoot .ppm-money-col {
        font-weight: 700;
        color: #111827;
        text-align: right;
    }
}
.ppm-mobile-booking-summary {
    display: none;
}

@media (max-width: 768px) {
    .ppm-bookings-compact-table tfoot {
        display: none !important;
    }

    .ppm-mobile-booking-summary {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 14px;
    }

    .ppm-mobile-booking-summary div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #ffffff;
        border-radius: 14px;
        padding: 14px 16px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
        font-size: 16px;
    }

    .ppm-mobile-booking-summary span {
        font-weight: 700;
        color: #111827;
    }

    .ppm-mobile-booking-summary strong {
        font-weight: 800;
        color: #16a34a;
    }
}
.ppm-mobile-expense-summary {
    display: none;
}

@media (max-width: 768px) {
    .ppm-expenses-compact-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .ppm-expenses-compact-table th,
    .ppm-expenses-compact-table td {
        font-size: 13px !important;
        padding: 10px 8px !important;
        white-space: normal !important;
    }

    .ppm-expenses-compact-table th:nth-child(1),
    .ppm-expenses-compact-table td:nth-child(1) {
        width: 34% !important;
    }

    .ppm-expenses-compact-table th:nth-child(2),
    .ppm-expenses-compact-table td:nth-child(2) {
        width: 40% !important;
    }

    .ppm-expenses-compact-table th:nth-child(4),
    .ppm-expenses-compact-table td:nth-child(4) {
        width: 26% !important;
        text-align: right !important;
    }

    .ppm-expenses-compact-table th:nth-child(3),
    .ppm-expenses-compact-table td:nth-child(3),
    .ppm-expenses-compact-table th:nth-child(5),
    .ppm-expenses-compact-table td:nth-child(5) {
        display: none !important;
    }

    .ppm-expenses-compact-table tfoot {
        display: none !important;
    }

    .ppm-expense-row-clickable {
        cursor: pointer;
    }

    .ppm-expense-row-clickable:hover {
        background: #f8fafc;
    }

    .ppm-mobile-expense-summary {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 14px;
    }

    .ppm-mobile-expense-summary div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #ffffff;
        border-radius: 14px;
        padding: 14px 16px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
        font-size: 16px;
    }

    .ppm-mobile-expense-summary span {
        font-weight: 700;
        color: #111827;
    }

    .ppm-mobile-expense-summary strong {
        font-weight: 800;
        color: #dc2626;
    }
}
/* FIX SEARCH CLEAR BUTTON OVERLAY (MOBILE) */
@media (max-width: 768px) {

    /* Ensure filter container has spacing */
    .ppm-filters,
    .ppm-expenses-filters,
    .ppm-bookings-filters {
        position: relative;
        padding-bottom: 12px;
    }

    /* Fix search input wrapper */
    .ppm-search-wrap {
        position: relative;
        width: 100%;
    }

    /* Proper input spacing */
    .ppm-search-wrap input {
        width: 100%;
        padding-right: 40px !important; /* space for X */
    }

    /* Fix the X button */
    .ppm-search-clear,
    .ppm-clear-search {
        position: absolute !important;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #e5e7eb;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    /* Prevent it from stretching full width */
    .ppm-search-clear::before,
    .ppm-clear-search::before {
        display: none;
    }
}
/* FINAL FIX — Mobile smart search field */
@media (max-width: 768px) {
    .ppm-smart-search-wrap {
        position: relative !important;
        width: 100% !important;
        min-width: 100% !important;
        height: 48px !important;
        margin-top: 8px !important;
    }

    .ppm-filter-search {
        display: block !important;
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 46px 0 14px !important;
        border: 1px solid #d1d5db !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        font-size: 15px !important;
        line-height: 48px !important;
        appearance: none !important;
        -webkit-appearance: none !important;
    }

    .ppm-clear-search {
        position: absolute !important;
        top: 50% !important;
        right: 12px !important;
        left: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;

        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        max-width: 24px !important;

        padding: 0 !important;
        margin: 0 !important;

        border: 0 !important;
        border-radius: 50% !important;
        background: #e5e7eb !important;
        color: #374151 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        font-size: 18px !important;
        line-height: 24px !important;
        cursor: pointer !important;
        z-index: 5 !important;
        box-shadow: none !important;
    }

    .ppm-clear-search::before,
    .ppm-clear-search::after {
        display: none !important;
        content: none !important;
    }

    .ppm-search-suggestions {
        top: 54px !important;
        z-index: 99999 !important;
    }
}
@media (max-width: 768px) {

    .ppm-filters-container {
        display: none;
    }

    .ppm-filter-toggle {
        background: #f1f5f9;
        padding: 10px 14px;
        border-radius: 10px;
        font-weight: 600;
        margin-bottom: 10px;
        text-align: center;
        cursor: pointer;
    }
}
.ppm-mobile-filter-toggle {
    display: none;
}

@media (max-width: 768px) {
    .ppm-mobile-filter-toggle {
        display: block;
        width: 100%;
        margin: 0 0 12px;
        padding: 12px 14px;
        border: 0;
        border-radius: 12px;
        background: #eef2ff;
        color: #1d4ed8;
        font-weight: 700;
        cursor: pointer;
    }

    .ppm-mobile-collapsible-filter {
        display: none !important;
    }

    .ppm-mobile-collapsible-filter.ppm-filter-open {
        display: flex !important;
    }
}
/* CLEAN CALENDAR CELLS */
.ppm-calendar-clean-cell {
    margin-top: 6px;
}

.ppm-calendar-count {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #374151;
}

.ppm-calendar-pool-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    background: #ffffff;
}

.ppm-calendar-pool-card.booked {
    border-left: 5px solid #ef4444;
}

.ppm-calendar-pool-card.free {
    border-left: 5px solid #22c55e;
}

.ppm-calendar-pool-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ppm-calendar-pool-head strong {
    font-size: 16px;
}

.ppm-calendar-pool-head span {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.ppm-calendar-pool-card.booked .ppm-calendar-pool-head span {
    background: #fee2e2;
    color: #991b1b;
}

.ppm-calendar-pool-card.free .ppm-calendar-pool-head span {
    background: #dcfce7;
    color: #166534;
}

@media (max-width: 768px) {
    .ppm-day-booking,
    .ppm-booking-client-name,
    .ppm-mini-delete {
        display: none !important;
    }

    .ppm-calendar-day {
        overflow: hidden;
    }

    .ppm-day-status {
        font-size: 9px;
        padding: 3px 5px;
    }
}
/* FINAL CLEAN CALENDAR CELL FIX */
.ppm-calendar-day {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    overflow: hidden !important;
}

.ppm-day-number {
    font-weight: 800;
    color: #111827;
    margin: 0 !important;
}

.ppm-day-status-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

.ppm-calendar-count {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #374151;
    line-height: 1;
}

@media (max-width: 768px) {
    .ppm-calendar-day {
        min-height: 66px !important;
        padding: 8px !important;
    }

    .ppm-day-status {
        font-size: 9px !important;
        padding: 3px 6px !important;
        max-width: 100%;
        white-space: nowrap;
    }

    .ppm-calendar-count {
        font-size: 10px !important;
    }
}
/* FINAL MOBILE SIDEBAR TOGGLE POLISH */
@media (max-width: 1024px) {
    .ppm-main-header {
        padding-left: 64px !important;
        min-height: 52px !important;
        display: flex !important;
        align-items: center !important;
        margin-bottom: 22px !important;
    }

    .ppm-main-header h1,
    #ppm-page-title {
        margin: 0 !important;
        line-height: 1.15 !important;
    }

    .ppm-sidebar-toggle {
        display: flex !important;
        position: fixed !important;
        top: 18px !important;
        left: 20px !important;
        width: 52px !important;
        height: 52px !important;
        border-radius: 16px !important;
        z-index: 1201 !important;
        transition: left 0.28s ease, background 0.28s ease, transform 0.28s ease !important;
    }

    body.ppm-sidebar-open .ppm-sidebar-toggle {
        left: 198px !important;
        background: #ef4444 !important;
        transform: rotate(90deg);
    }

    .ppm-sidebar-overlay {
        background: rgba(15, 23, 42, 0.45) !important;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
}
/* Mobile filter toggle only */
.ppm-mobile-filter-toggle {
    display: none !important;
}


/* Hide mobile filter toggles by default */
.ppm-mobile-filter-toggle {
    display: none !important;
}

/* Show only when JS adds active class on mobile */
@media (max-width: 768px) {
    .ppm-mobile-filter-toggle.ppm-filter-toggle-active {
        display: block !important;
    }
}
/* Prevent iPhone input auto-zoom */
@media (max-width: 768px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ================================
   BILINGUAL EN / AR TOGGLE + RTL
================================ */
.ppm-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ppm-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 96px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.ppm-lang-toggle .ppm-lang-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
}

#ppm-client-dashboard.ppm-rtl {
    direction: rtl;
    text-align: right;
}

body.ppm-client-rtl {
    direction: rtl;
}

body.ppm-client-rtl .ppm-sidebar {
    left: auto;
    right: 0;
}

body.ppm-client-rtl .ppm-sidebar.closed {
    transform: translateX(100%);
}

body.ppm-client-rtl .ppm-main {
    margin-left: 0;
    margin-right: 260px;
}

body.ppm-client-rtl .ppm-nav-item {
    text-align: right;
}

body.ppm-client-rtl .ppm-client-filter,
body.ppm-client-rtl .ppm-section-actions,
body.ppm-client-rtl .ppm-calendar-header,
body.ppm-client-rtl .ppm-details-actions,
body.ppm-client-rtl .ppm-card-actions {
    direction: rtl;
}

body.ppm-client-rtl .ppm-client-filter select,
body.ppm-client-rtl input,
body.ppm-client-rtl select,
body.ppm-client-rtl textarea {
    text-align: right;
}

body.ppm-client-rtl .ppm-client-close {
    right: auto;
    left: 16px;
}

body.ppm-client-rtl .ppm-mini-delete {
    right: auto;
    left: 4px;
}

body.ppm-client-rtl .ppm-today-action:first-child {
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

body.ppm-client-rtl .ppm-money-col {
    text-align: left !important;
}

body.ppm-client-rtl .ppm-expenses-table th,
body.ppm-client-rtl .ppm-expenses-table td {
    text-align: right;
}

body.ppm-client-rtl .ppm-mini-btn {
    margin-right: 0;
    margin-left: 6px;
}

body.ppm-client-rtl #ppm-toast-container {
    right: auto;
    left: 20px;
}

body.ppm-client-rtl .ppm-toast-close {
    margin-left: 0;
    margin-right: 10px;
}

body.ppm-client-rtl .ppm-smart-search-wrap .ppm-filter-search,
body.ppm-client-rtl .ppm-filter-search {
    padding: 0 14px 0 42px;
}

body.ppm-client-rtl .ppm-clear-search {
    right: auto;
    left: 8px;
}

body.ppm-client-rtl .ppm-details-list span {
    text-align: left;
}

body.ppm-client-rtl .ppm-free-day,
body.ppm-client-rtl .ppm-partially-booked,
body.ppm-client-rtl .ppm-fully-booked,
body.ppm-client-rtl .ppm-calendar-pool-card.booked,
body.ppm-client-rtl .ppm-calendar-pool-card.free {
    border-left-width: 1px !important;
    border-right-width: 5px !important;
    border-right-style: solid !important;
}

body.ppm-client-rtl .ppm-free-day,
body.ppm-client-rtl .ppm-calendar-pool-card.free {
    border-right-color: #22c55e !important;
}

body.ppm-client-rtl .ppm-partially-booked {
    border-right-color: #f59e0b !important;
}

body.ppm-client-rtl .ppm-fully-booked,
body.ppm-client-rtl .ppm-calendar-pool-card.booked {
    border-right-color: #ef4444 !important;
}

@media (min-width: 1025px) {
    body.ppm-client-rtl #ppm-client-dashboard .ppm-main {
        margin-left: 0 !important;
        margin-right: 260px !important;
        width: calc(100vw - 260px) !important;
        max-width: calc(100vw - 260px) !important;
    }
}

@media (max-width: 1024px) {
    body.ppm-client-rtl .ppm-sidebar-toggle {
        left: auto !important;
        right: 20px !important;
    }

    body.ppm-client-rtl.ppm-sidebar-open .ppm-sidebar-toggle {
        left: auto !important;
        right: 198px !important;
    }

    body.ppm-client-rtl .ppm-main-header {
        padding-left: 0 !important;
        padding-right: 64px !important;
    }

    body.ppm-client-rtl .ppm-main {
        margin-right: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    body.ppm-client-rtl .ppm-filter-search {
        padding: 0 14px 0 46px !important;
    }

    body.ppm-client-rtl .ppm-clear-search {
        right: auto !important;
        left: 12px !important;
    }

    .ppm-main-header {
        gap: 10px;
    }

    .ppm-lang-toggle {
        min-width: 86px;
        height: 38px;
        padding: 0 8px;
    }
}
.ppm-stacked-date {
    line-height: 1.45;
    white-space: nowrap;
}

.ppm-stacked-date + .ppm-stacked-date {
    margin-top: 4px;
    color: #64748b;
}
body.ppm-modal-open {
    overflow: hidden;
}

body.ppm-modal-open .ppm-client-dashboard {
    overflow: hidden;
}

.ppm-client-modal {
    overscroll-behavior: contain;
}

.ppm-client-modal-box {
    overscroll-behavior: contain;
}
html.ppm-modal-open,
body.ppm-modal-open {
    overflow: hidden !important;
    height: 100% !important;
}

html.ppm-modal-open .ppm-client-page,
html.ppm-modal-open .ppm-client-dashboard,
html.ppm-modal-open .ppm-main-content,
html.ppm-modal-open .ppm-client-content,
body.ppm-modal-open .ppm-client-page,
body.ppm-modal-open .ppm-client-dashboard,
body.ppm-modal-open .ppm-main-content,
body.ppm-modal-open .ppm-client-content {
    overflow: hidden !important;
}
/* === FINAL TODAY CARDS FIX === */

.ppm-today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    align-items: start;
}

.ppm-today-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.ppm-today-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.ppm-today-card-body {
    padding: 24px;
}

.ppm-today-meta {
    margin-bottom: 0;
}

.ppm-today-time {
    min-height: 18px;
}

.ppm-today-money {
    margin-top: 14px !important;
    padding-top: 12px !important;
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 6px;
}

.ppm-today-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid #e5e7eb;
}

.ppm-today-action {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 14px !important;
    min-height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.ppm-today-action:first-child {
    border-right: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .ppm-today-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
/* ===== MOBILE BOOKINGS TABLE (FINAL CLEAN VERSION) ===== */

@media (max-width: 768px) {

    .ppm-bookings-compact-table {
        table-layout: fixed;
        width: 100%;
    }

    .ppm-bookings-compact-table th,
    .ppm-bookings-compact-table td {
        font-size: 12px;
        padding: 8px 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hide unnecessary columns */
    .ppm-bookings-compact-table th:nth-child(3),
    .ppm-bookings-compact-table td:nth-child(3),
    .ppm-bookings-compact-table th:nth-child(4),
    .ppm-bookings-compact-table td:nth-child(4),
    .ppm-bookings-compact-table th:nth-child(5),
    .ppm-bookings-compact-table td:nth-child(5),
    .ppm-bookings-compact-table th:nth-child(6),
    .ppm-bookings-compact-table td:nth-child(6),
    .ppm-bookings-compact-table th:nth-child(9),
    .ppm-bookings-compact-table td:nth-child(9) {
        display: none;
    }

    /* Keep only: Date | Customer | Price | Paid */
    .ppm-bookings-compact-table th:nth-child(1),
    .ppm-bookings-compact-table td:nth-child(1) {
        width: 28%;
    }

    .ppm-bookings-compact-table th:nth-child(2),
    .ppm-bookings-compact-table td:nth-child(2) {
        width: 34%;
    }

    .ppm-bookings-compact-table th:nth-child(7),
    .ppm-bookings-compact-table td:nth-child(7) {
        width: 22%;
        text-align: center;
    }

    .ppm-bookings-compact-table th:nth-child(8),
    .ppm-bookings-compact-table td:nth-child(8) {
        width: 16%;
        text-align: center;
    }

    .ppm-toggle-booking-paid {
        width: 18px;
        height: 18px;
    }
}
/* FINAL FORCE — Mobile bookings: Date | Customer | Price | Paid */
@media (max-width: 768px) {
    .ppm-bookings-compact-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .ppm-bookings-compact-table th,
    .ppm-bookings-compact-table td {
        display: table-cell !important;
        font-size: 12px !important;
        padding: 8px 4px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        vertical-align: middle !important;
    }

    .ppm-bookings-compact-table th:nth-child(3),
    .ppm-bookings-compact-table td:nth-child(3),
    .ppm-bookings-compact-table th:nth-child(4),
    .ppm-bookings-compact-table td:nth-child(4),
    .ppm-bookings-compact-table th:nth-child(5),
    .ppm-bookings-compact-table td:nth-child(5),
    .ppm-bookings-compact-table th:nth-child(6),
    .ppm-bookings-compact-table td:nth-child(6),
    .ppm-bookings-compact-table th:nth-child(9),
    .ppm-bookings-compact-table td:nth-child(9) {
        display: none !important;
    }

    .ppm-bookings-compact-table th:nth-child(1),
    .ppm-bookings-compact-table td:nth-child(1) {
        width: 28% !important;
    }

    .ppm-bookings-compact-table th:nth-child(2),
    .ppm-bookings-compact-table td:nth-child(2) {
        width: 34% !important;
    }

    .ppm-bookings-compact-table th:nth-child(7),
    .ppm-bookings-compact-table td:nth-child(7) {
        display: table-cell !important;
        width: 22% !important;
        text-align: center !important;
    }

    .ppm-bookings-compact-table th:nth-child(8),
    .ppm-bookings-compact-table td:nth-child(8) {
        display: table-cell !important;
        width: 16% !important;
        text-align: center !important;
    }

    .ppm-bookings-compact-table .ppm-paid-toggle {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .ppm-bookings-compact-table .ppm-paid-toggle span {
        display: none !important;
    }

    .ppm-bookings-compact-table input.ppm-toggle-booking-paid {
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}
.ppm-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ppm-refresh-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}
#ppm-client-modal.active {
    z-index: 10050 !important;
}

#ppm-calendar-day-modal.active,
#ppm-booking-details-modal.active,
#ppm-expense-details-modal.active {
    z-index: 10000 !important;
}
.ppm-payment-status {
    width: 78px;
    max-width: 78px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 6px 4px;
    font-size: 12px;
    font-weight: 700;
    background: #fff;
    color: #111827;
}

@media (max-width: 768px) {
    .ppm-bookings-compact-table th:nth-child(7),
    .ppm-bookings-compact-table td:nth-child(7) {
        width: 19% !important;
        text-align: left !important;
    }

    .ppm-bookings-compact-table th:nth-child(8),
    .ppm-bookings-compact-table td:nth-child(8) {
        width: 19% !important;
        text-align: center !important;
    }

    .ppm-payment-status {
        width: 72px !important;
        max-width: 72px !important;
        font-size: 11px !important;
        padding: 5px 2px !important;
    }
}
.ppm-disabled-field {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
}
.ppm-nav-separator {
    height: 1px !important;
    background: rgba(255,255,255,0.08) !important;
    margin: 12px 16px !important;
}

.ppm-nav-support-group {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.ppm-nav-support-group .ppm-nav-item {
    margin-bottom: 2px !important;
}

/* WhatsApp booking confirmation */
.ppm-whatsapp-confirm-box {
    max-width: 520px;
}

.ppm-whatsapp-confirm-text {
    margin: 6px 0 14px;
    color: #555;
    line-height: 1.5;
}

.ppm-whatsapp-confirm-preview {
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
    white-space: pre-wrap;
    line-height: 1.55;
    color: #222;
    font-size: 14px;
}

.ppm-whatsapp-confirm-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.ppm-whatsapp-confirm-send {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ppm-secondary-btn {
    background: #f1f1f1 !important;
    color: #222 !important;
}

@media (max-width: 600px) {
    .ppm-whatsapp-confirm-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ppm-whatsapp-confirm-actions .ppm-client-btn {
        width: 100%;
        text-align: center;
    }
}


/* Smart booking time builder */
.ppm-time-builder {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    margin: 6px 0 14px;
}

.ppm-time-row {
    display: grid;
    grid-template-columns: 1fr 92px;
    gap: 10px;
    margin-bottom: 10px;
}

.ppm-time-row:nth-of-type(2) {
    grid-template-columns: 1fr 1fr 92px;
}

.ppm-time-field span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 5px;
}

.ppm-time-field input,
.ppm-time-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 10px;
    background: #fff;
    color: #0f172a;
}

.ppm-checkout-date[readonly] {
    background: #e5e7eb;
    color: #334155;
    cursor: not-allowed;
    font-weight: 700;
}

.ppm-time-help {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .ppm-time-row,
    .ppm-time-row:nth-of-type(2) {
        grid-template-columns: 1fr;
    }
}


/* PPM patch: simple no-keyboard time selectors */
.ppm-clock-selects {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
    align-items: center;
    gap: 8px;
}

.ppm-clock-selects strong {
    color: #334155;
    font-size: 18px;
    line-height: 1;
    text-align: center;
}

.ppm-clock-selects select,
.ppm-hour-select,
.ppm-minute-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: center;
    font-weight: 700;
}

.ppm-period-select {
    font-weight: 700;
}


/* First-login owner onboarding — final fixed visibility */
body.ppm-onboarding-active {
    overflow: hidden !important;
}

.ppm-onboarding-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99980 !important;
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none !important;
}

.ppm-onboarding-tooltip {
    display: none;
    position: absolute;
    z-index: 100020 !important;
    width: min(340px, calc(100vw - 32px));
    background: #ffffff;
    color: #0f172a;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.28);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.ppm-onboarding-tooltip strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.ppm-onboarding-tooltip p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.ppm-onboarding-language {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100030 !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: auto !important;
}

.ppm-onboarding-language[style*="display: block"] {
    display: flex !important;
}

.ppm-onboarding-language,
.ppm-onboarding-language * {
    pointer-events: auto !important;
}

.ppm-onboarding-language-box {
    width: min(420px, 100%);
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0,0,0,0.3);
}

.ppm-onboarding-language-box h2 {
    margin: 0 0 20px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.35;
}

.ppm-onboarding-language-box h2 span {
    color: #64748b;
    font-size: 20px;
}

.ppm-onboarding-language-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ppm-onboarding-modal-front {
    z-index: 100000 !important;
}

.ppm-onboarding-modal-front .ppm-client-modal-box {
    position: relative !important;
    z-index: 100005 !important;
}

.ppm-onboarding-highlight,
.ppm-onboarding-highlight * {
    pointer-events: auto !important;
}

.ppm-onboarding-highlight {
    position: relative !important;
    z-index: 100010 !important;
    opacity: 1 !important;
    filter: none !important;
    transform: scale(1.03);
    border-radius: 18px !important;
    box-shadow:
        0 0 0 5px #ffffff,
        0 0 0 10px #2563eb,
        0 18px 45px rgba(37, 99, 235, 0.45) !important;
}

.ppm-nav-item.ppm-onboarding-highlight,
button.ppm-onboarding-highlight,
.ppm-client-btn.ppm-onboarding-highlight {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

input.ppm-onboarding-highlight,
select.ppm-onboarding-highlight,
textarea.ppm-onboarding-highlight {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #2563eb !important;
    box-shadow:
        0 0 0 5px #ffffff,
        0 0 0 10px #2563eb,
        0 18px 45px rgba(37, 99, 235, 0.45) !important;
}

.ppm-rtl .ppm-onboarding-tooltip {
    text-align: right;
}

.ppm-rtl .ppm-time-row .ppm-clock-selects {
    direction: ltr;
}

.ppm-rtl .ppm-time-row .ppm-clock-selects select,
.ppm-rtl .ppm-time-row .ppm-period-select {
    text-align: center;
}

@media (max-width: 768px) {
    .ppm-onboarding-language-actions {
        grid-template-columns: 1fr;
    }
}


/* === PREMIUM ONBOARDING ANIMATION POLISH === */
@keyframes ppmOnboardingPulse {
    0% {
        box-shadow:
            0 0 0 5px #ffffff,
            0 0 0 10px #2563eb,
            0 18px 45px rgba(37, 99, 235, 0.35);
        transform: scale(1.02);
    }
    50% {
        box-shadow:
            0 0 0 6px #ffffff,
            0 0 0 14px rgba(37, 99, 235, 0.85),
            0 24px 60px rgba(37, 99, 235, 0.55);
        transform: scale(1.045);
    }
    100% {
        box-shadow:
            0 0 0 5px #ffffff,
            0 0 0 10px #2563eb,
            0 18px 45px rgba(37, 99, 235, 0.35);
        transform: scale(1.02);
    }
}

@keyframes ppmTooltipIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ppmOverlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ppm-onboarding-overlay {
    animation: ppmOverlayFade 0.22s ease both;
}

.ppm-onboarding-highlight {
    animation: ppmOnboardingPulse 1.55s ease-in-out infinite !important;
    outline: none !important;
}

.ppm-onboarding-tooltip {
    animation: ppmTooltipIn 0.28s cubic-bezier(.2,.8,.2,1) both;
}

.ppm-onboarding-tooltip::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 28px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(226, 232, 240, 0.9);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.ppm-rtl .ppm-onboarding-tooltip::before {
    left: auto;
    right: 28px;
}

.ppm-onboarding-step-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    padding: 0 9px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.ppm-onboarding-tooltip strong {
    font-size: 20px !important;
    letter-spacing: -0.02em;
}

.ppm-onboarding-tooltip p {
    font-size: 17px !important;
    line-height: 1.55 !important;
}

.ppm-onboarding-language-box {
    animation: ppmTooltipIn 0.32s cubic-bezier(.2,.8,.2,1) both;
}

.ppm-onboarding-language-box::before {
    content: "BookMyPool";
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
}
