/* ============================================================
   MOBILE WRAPPER — Professional App Layout  SAFE FOR ALL PHONES
============================================================ */
#upg-mobile-wrapper {
    width: 100%;
    max-width: 360px;              /* Fits all iPhones */
    margin: 0 auto;
    padding: 16px;                 /* Safe mobile padding */
    box-sizing: border-box;
    text-align: center;            /* Center ALL text + inputs */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* ============================================================
    FORCE MOBILE INPUT SIDE PADDING 
============================================================ */
#upg-mobile-wrapper input,
#upg-mobile-wrapper select,
#upg-mobile-wrapper textarea {
    padding-left: 14px !important;
    padding-right: 14px !important;
}



/* ============================================================
   GLOBAL MOBILE SAFE PADDING — FIXES TEXT & INPUT EDGE TOUCHING
============================================================ */
#upg-mobile-wrapper * {
    padding-left: 4px;
    padding-right: 4px;
    box-sizing: border-box;
}

/* ============================================================
   INPUTS — Mobile Balanced
============================================================ */
#upg-mobile-wrapper input,
#upg-mobile-wrapper select,
#upg-mobile-wrapper textarea {
    width: 100%;
    font-size: 16px;
    padding: 12px 14px;            /* Horizontal padding restored */
    margin-top: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
}

/* ============================================================
   BUTTONS — Professional Mobile Size
============================================================ */
.upg-mobile-screen button {
    width: 90%;
    display: block;
    margin: 14px auto;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: #0073aa;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: background 0.2s ease, transform 0.1s ease;
}

.upg-mobile-screen button:hover {
    background: #005f8d;
    transform: scale(1.01);
}

/* ============================================================
   EMPLOYEE SELECT BUTTON — Full Hitbox (SMS Fix)
============================================================ */
.upg-select-emp {
    width: 100%;
    display: block;
    padding: 14px 16px;
    margin-top: 12px;
    text-align: left;
    border-radius: 10px;
    background: #f2f2f2;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
}

/* ============================================================
   EMPLOYEE DISABLED BADGE + ROW DIMMING
============================================================ */
.upg-disabled-badge {
    background: #c00;
    color: #fff;
    padding: 2px 6px;
    margin-left: 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.upg-row-disabled {
    opacity: 0.55;
}


/* ============================================================
   HEADERS — Professional Dashboard Style
============================================================ */
.upg-mobile-screen h1,
.upg-mobile-screen h2,
.upg-mobile-screen h3,
.upg-mobile-screen p,
.upg-mobile-screen label {
    padding-left: 4px;
    padding-right: 4px;
    margin: 10px 0;
    font-weight: 600;
    color: #333;
}

/* ============================================================
   PASSWORD SCREEN — Mobile Layout
============================================================ */
#upg-screen-password .upg-pass-wrap {
    position: relative;
    margin-bottom: 12px;
}

#upg-screen-password .upg-pass-wrap input {
    width: 100%;
    padding: 12px;
    padding-right: 40px;
}

#upg-screen-password .upg-pass-wrap span {
    position: absolute;
    right: 12px;
    top: 12px;
    cursor: pointer;
    font-size: 20px;
}

/* ============================================================
   MESSAGES — Mobile Readability
============================================================ */
#upg-password-message,
#upg-firsttime-code-status,
#upg-firsttime-status,
#upg-login-status {
    margin-top: 8px;
    font-size: 14px;
    color: #d00;
}

/* ============================================================
   DASHBOARD — Professional Card Layout
============================================================ */
#upg-mobile-dashboard {
    margin-top: 20px;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
}

/* ============================================================
   PROJECT EDITOR — Mobile Admin Panel
============================================================ */
#upg-mobile-project-editor {
    background: #fff;
    padding: 15px;
    border: 1px solid #ccc;
    margin-top: 20px;
    border-radius: 10px;
}

/* ============================================================
   THEME OVERRIDES — Required for Mobile App Look
============================================================ */
header,
footer,
.site-header,
.site-footer,
nav,
.menu,
.entry-title,
.page-title,
#masthead,
#colophon {
    display: none !important;
}

.site,
.site-content,
.content-area,
.entry-content,
#primary,
#main {
    padding: 0 !important;
    margin: 0 !important;
}

.wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body {
    background: #fff !important;
}
/* ============================================================
   MANAGER PERMISSIONS
============================================================ */

#upg-manager-permissions-list label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    width: 100%;
}

#upg-manager-permissions-list input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    flex-shrink: 0;
}

#upg-manager-permissions-list h3 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}