﻿
/* =========================================================
   ClientInfo.aspx – Responsive & Cross‑Browser Overrides
   SAFE: No markup or server‑side dependency changes
========================================================= */
/* ---------- Global fixes (Safari / Firefox consistency) ---------- */
/* =========================================================
   UNIFIED BACKGROUND COLOR OVERRIDE
   Matches existing green margin color (#e2e8ca)
========================================================= */
/* Page + document */
html,
body {
    background-color: #e2e8ca !important;
}

/* Main layout containers */
.body-content,
.form-container,
form,
asp\:panel,
.aspNetHidden {
    background-color: #e2e8ca !important;
}

/* ASP.NET Panels, FormViews, UpdatePanels */
div,
table,
tbody,
tr,
td {
    background-color: transparent;
}

/* Ensure FormView and Panel content blends */
asp\:formview,
asp\:panel,
form > div {
    background-color: #e2e8ca;
}

/* UpdateProgress overlay remains readable */
#Progress {
    background-color: #ffffff; /* keep contrast */
}

/* Remove any default white backgrounds from inputs */
input,
select,
textarea,
.DataField,
.fld {
    background-color: #ffffff;
}

/* Optional: soften borders to match design */
input,
select,
textarea {
    border-color: #aab48f;
}



*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent iOS Safari zoom on focus */
input,
select,
textarea {
    font-size: 16px;
}

/* Body content container */
.body-content,
.form-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
}

/* ---------- Inputs & controls ---------- */
.DataField,
.fld,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    max-width: 420px; /* desktop limit */
}

/* ---------- Labels ---------- */
.Title2Class,
.Title3Class,
label {
    display: inline-block;
    margin-bottom: 4px;
    color: black;
}

/* ---------- Buttons (touch‑friendly) ---------- */
button,
input[type="submit"],
input[type="button"] {
    min-height: 44px; /* Apple HIG */
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    /* FIX */
    color: #000 !important;
    background-color: #ffffff;
}

/* ---------- Radio / checkbox usability ---------- */
input[type="radio"],
input[type="checkbox"] {
    transform: scale(1.15);
    margin-right: 6px;
}

/* ---------- Tables (legacy WebForms layouts) ---------- */
table {
    max-width: 100%;
}

/* ---------- UpdateProgress overlay (Safari‑safe) ---------- */
#Background {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}

#Progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 16px 24px;
    border-radius: 6px;
    z-index: 9999;
    text-align: center;
}

/* =========================================================
   MOBILE OVERRIDES
========================================================= */
@media (max-width: 767px) {

    /* Stack labels and inputs */
    label,
    .Title3Class {
        display: block;
        width: auto !important;
    }

    .DataField,
    .fld,
    input,
    select,
    textarea {
        max-width: 100%;
    }

    /* Neutralize fixed‑width auto‑style classes */
    .auto-style2,
    .auto-style6,
    .auto-style7,
    .auto-style8,
    .auto-style9,
    .auto-style10,
    .auto-style11,
    .auto-style12 {
        width: auto !important;
        margin-left: 0 !important;
    }

    /* Stack legacy table layouts */
    table,
    tbody,
    tr,
    td {
        display: block;
        width: 100%;
        text-align: left;
    }

    /* Prevent off‑screen buttons */
    input[type="submit"],
    input[type="button"],
    button {
        width: 100%;
        max-width: 320px;
    }
}

/* =========================================================
   LARGE SCREEN POLISH
========================================================= */
@media (min-width: 1200px) {
    .body-content,
    .form-container {
        padding: 24px;
    }
}
