/* refresh.css - light visual refresh (Phase 3c, 2026-11-20).
   Loaded LAST on every page (footer.inc.php, login.php, the technician report
   pages). Remove those <link> lines (or empty this file) to get the old look
   back. CSS only: the HTML is untouched (Phase 3d added one viewport line to
   the header and the login page), every element stays in its place on a
   desktop screen and no text is smaller than before.

   Palette
     ink     #1f2937   text, header bar, main buttons
     paper   #ffffff   page, fields, cards
     mist    #f3f4f6   panels, table header            line  #d1d5db  borders
     brass   #f59e0b   the brand line: header rule, selected tab, nothing else
     blue    #1d4ed8   links                           ring  #2563eb  keyboard focus
   Contrast: text pairs are WCAG 2.1 AA (4.5:1 or more); field and button
   edges are 3:1 or more against their background. */

/* 1. Fonts: the system font of each device, with full Hebrew coverage
      (San Francisco / Segoe UI / Roboto / Noto all include Hebrew; Arial Hebrew
      and Arial are fallbacks). Sizes are left as they were. */
body, td, th, p, div, span, a, li, label, font, b, strong, h1, h2, h3, h4,
input, select, textarea, button,
.NormalText, .NormalTextbold, .NormalTextBold, .BoldText, .smallText, .main, .FormField, .inputtext, .Tiptool, .ChartText {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif !important;
}
body { color: #1f2937; }

/* 2. Header bar: black -> ink, with the brass rule under it */
table[bgcolor="#000000"], table[bgcolor="#000000"] td, td[style*="background-color:black"] {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;                 /* "- Admin Control Panel": was grey on black (too faint) */
}
td[bgcolor="#CCCCCC"][height="3"] { background: linear-gradient(to bottom, #f59e0b 0, #f59e0b 3px, #e5e7eb 3px) !important; }

/* 3. Links: one readable blue; the coloured status links keep their meaning
      in darker shades (orange, lime and bright red were too faint on white) */
a.link, a.bluelink, a.Link, a.blueLink, a.BlueLink, a.LinkBoldBlue { color: #1d4ed8; }
a.link:hover, a.bluelink:hover, a.Link:hover, a.blueLink:hover, a.BlueLink:hover { color: #1e3a8a; text-decoration: underline; }
a[style*="color:blue"]   { color: #1d4ed8 !important; }
a[style*="color:green"]  { color: #166534 !important; }
a[style*="color:orange"] { color: #9a3412 !important; }
a[style*="color:red"], a[style*="color:#FF0000" i] { color: #b91c1c !important; }
a[style*="color:lime"]   { color: #3f6212 !important; }
a[style*="background:#eef"] { background: #e0e7ff !important; border-radius: 6px; }
font[color="red" i], font[color="#FF0000" i] { color: #b91c1c !important; }
font[color="green" i] { color: #166534 !important; }
font[color="orange" i] { color: #9a3412 !important; }
font[color="lime" i] { color: #3f6212 !important; }
font[color="blue" i] { color: #1d4ed8 !important; }
/* "Today, no technician yet" rows (job_today.php, job_list.php mark them bgcolor #FF9B9D): still pink, but light
   enough that the links and the coloured status words on it reach 4.5:1 (blue 4.85, green 5.16, red 4.68;
   on the old pink they were 3.2-3.6). Found on the server with real rows, 2026-11-20. */
td[bgcolor="#FF9B9D" i] { background-color: #ffd0d2; }

/* 4. Fields: a little taller, soft corners, light edge, clear focus */
input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"],
input:not([type]), select, textarea, .inputtext, .inputbox, .checkout_input {
    border: 1px solid #76808f;
    border-radius: 6px !important;
    background-color: #ffffff;
    color: #111827;
    padding: 5px 7px;
    transition: border-color .12s, box-shadow .12s;
}
textarea { padding: 4px 6px; border-radius: 8px !important; }
input[type="text"]:hover, input[type="password"]:hover, input:not([type]):hover, select:hover, textarea:hover { border-color: #4b5563; }
input[type="text"]:focus, input[type="password"]:focus, input:not([type]):focus, select:focus, textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
    outline: 2px solid transparent;            /* stays visible in Windows high-contrast mode */
}
input[readonly], input[disabled], select[disabled], textarea[readonly] { background-color: #f3f4f6; color: #374151; }
input[type="checkbox"], input[type="radio"] { accent-color: #1f2937; }

/* 5. Buttons: one family. Main actions (Update, Search, Send Text, login) are
      filled ink; helper buttons (Toggle Message, small Update) are outlined. */
input[type="submit"], input[type="button"], input[type="reset"], button {
    border-radius: 6px !important;
    padding: 6px 14px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: background-color .12s, border-color .12s, box-shadow .12s;
}
input[type="submit"], button:not(.btn-info):not(.btn-warning):not(.btn-danger):not(.BlueLink):not(.link):not(.button2), input.button {
    background: #1f2937;
    color: #ffffff;
    border: 1px solid #1f2937;
}
input[type="submit"]:hover, button:not(.btn-info):not(.btn-warning):not(.btn-danger):not(.BlueLink):not(.link):not(.button2):hover, input.button:hover {
    background: #374151;
    border-color: #374151;
}
input[type="submit"]:active, button:active { background: #111827; }
input[type="button"], input[type="reset"], button.BlueLink, button.link, button.button2 {
    padding: 6px 14px;
    font-weight: 600;
    font-size: 12px;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #6b7280;
    text-decoration: none;
}
button.BlueLink { padding: 6px 14px !important; font-size: 12px !important; font-weight: 600 !important; }   /* Toggle Message carries its own tiny inline padding */
input[type="button"]:hover, input[type="reset"]:hover, button.BlueLink:hover, button.link:hover, button.button2:hover {
    background: #f3f4f6;
    border-color: #1f2937;
    color: #111827;
}
input[disabled], button[disabled] { opacity: .6; cursor: not-allowed; }
/* the coloured row buttons (SMS / Edit / Delete): same place and size, darker
   shades so the white text is readable */
.btn { border-radius: 6px !important; font-weight: 600; transition: background-color .12s; }
.btn-info    { background-color: #0e7490 !important; border-color: #0e7490 !important; color: #ffffff !important; }
.btn-warning { background-color: #b45309 !important; border-color: #b45309 !important; color: #ffffff !important; }
.btn-danger  { background-color: #b91c1c !important; border-color: #b91c1c !important; color: #ffffff !important; }
.btn-info:hover    { background-color: #155e75 !important; border-color: #155e75 !important; }
.btn-warning:hover { background-color: #92400e !important; border-color: #92400e !important; }
.btn-danger:hover  { background-color: #991b1b !important; border-color: #991b1b !important; }

/* 6. Tables: lighter lines, a clean header row; the row colours
      (pale green / pale grey / yellow marks) stay exactly as they are */
td[bgcolor="#E1E1E1" i], th[bgcolor="#E1E1E1" i], td[bgcolor="#E3E3E3" i], th[bgcolor="#E3E3E3" i],
td[bgcolor="#CCCCCC" i]:not([height]), td[bgcolor="#C0C0C0" i], tr.tableHeader td, .tableHeader {
    background-color: #e9edf2 !important;
    color: #111827;
    box-shadow: inset 0 -2px 0 #c3cad5;        /* header underline, takes no space */
    padding-top: 7px;
    padding-bottom: 7px;
}
td[style*="background-color:silver"] { background-color: #e5e7eb !important; }      /* the band between jobs */
td[style*="1px dashed black"] { border: 1px solid #d1d5db !important; border-radius: 6px; }   /* the Texts box */
table.borderT, table.borderB, table.borderL, table.borderR, .gryL, .gryT, .gryR, .gryB { border-color: #d1d5db !important; }
hr { border: 0; border-top: 1px solid #e5e7eb; }

/* 7. Home panel: light card, same icons, same places */
table[style*="background:silver"] {
    background: #f3f4f6 !important;
    border-radius: 14px !important;
    box-shadow: 0 0 0 1px #e5e7eb, 0 1px 2px rgba(31, 41, 55, .08), 0 10px 28px rgba(31, 41, 55, .07);
}
table[style*="background:silver"] a.link { display: inline-block; padding: 6px 8px; border-radius: 10px; transition: background-color .12s; }
table[style*="background:silver"] a.link:hover { background: #ffffff; text-decoration: none; }

/* 8. Tabs (Edit Job / Credit Card / Rate Card, and the list titles): drawn
      with CSS instead of the old picture, wide enough for their text */
.dynamic-tab-pane-control .tab-row .tab,
.dynamic-tab-pane-control .tab-row .tab.selected,
.dynamic-tab-pane-control .tab-row .tab.hover {
    background: #e9edf2 !important;
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    padding: 6px 14px !important;
    margin: 0 3px 0 0 !important;
    top: 1px !important;
    border: 1px solid #d1d5db;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    font-size: 12px !important;
    line-height: 16px;
    cursor: pointer;
}
.dynamic-tab-pane-control .tab-row .tab.hover { background: #f3f4f6 !important; }
.dynamic-tab-pane-control .tab-row .tab.selected {
    background: #ffffff !important;
    box-shadow: inset 0 3px 0 #f59e0b;          /* the brass line marks the open tab */
    font-weight: 600;
}
.dynamic-tab-pane-control .tab-row .tab a { color: #374151 !important; font-size: 12px !important; cursor: pointer; }
.dynamic-tab-pane-control .tab-row .tab.selected a { color: #111827 !important; }
.dynamic-tab-pane-control .tab-page {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0 8px 8px 8px;
    top: 0;
    clear: left;
}

/* 9. Login card: white card, soft shadow, same layout */
.login {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(31, 41, 55, .08), 0 12px 32px rgba(31, 41, 55, .08);
}
.login h1, .login-form, .login-text { color: #111827; }
.form-block { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 10px; }
.form-block .inputbox { padding: 7px 8px; }
a.sLink { color: #1d4ed8 !important; }
a.sLink:hover { color: #1e3a8a !important; }

/* 10. Keyboard focus: always visible, on everything that can be reached */
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible,
input[type="submit"]:focus-visible, input[type="button"]:focus-visible, input[type="reset"]:focus-visible,
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible {
    outline: 2px solid #2563eb !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .2);
}

/* People who ask their device for less motion get none */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ===========================================================================
   Phase 3d (2026-11-20): larger text where asked.
   The phone / tablet layout of Phase 3d (viewport line, section 13) was
   taken out again on 2026-11-23 at the owner's request: a phone shows the
   full desktop page zoomed out to fit, as the original site does. There
   are no screen-width rules in this file.
   =========================================================================== */

/* 11. Larger on every screen: greeting and date, the top menu, the home icons */
table.NormalText[width="550"] td { font-size: 16px; color: #111827; }                 /* "Hello ...," and the date */
table[style*="background:silver"] img { width: 72px; height: 72px; }                    /* home icons (were 64) */
table[style*="background:silver"] a.link { font-size: 14px; }
.ThemeOfficeMenu, .ThemeOfficeSubMenuTable { font-size: 15px !important; }
.ThemeOfficeMenu td.ThemeOfficeMainItem, .ThemeOfficeMenu td.ThemeOfficeMainItemHover, .ThemeOfficeMenu td.ThemeOfficeMainItemActive {
    padding: 9px 12px !important;
    border: 0 !important;
    color: #111827;
}
.ThemeOfficeMenu td.ThemeOfficeMainItemHover, .ThemeOfficeMenu td.ThemeOfficeMainItemActive { background-color: #dbe4f3 !important; box-shadow: inset 0 -3px 0 #f59e0b; }
.ThemeOfficeSubMenu { border: 1px solid #d1d5db !important; border-radius: 8px; box-shadow: 0 8px 24px rgba(31, 41, 55, .16); background: #ffffff; overflow: hidden !important; }
.ThemeOfficeSubMenuTable td { padding-top: 6px !important; padding-bottom: 6px !important; color: #111827; }
.ThemeOfficeSubMenuTable td.ThemeOfficeMenuItemText { padding-right: 18px !important; }
.ThemeOfficeSubMenuTable tr.ThemeOfficeMenuItemHover td, .ThemeOfficeSubMenuTable tr.ThemeOfficeMenuItemActive td { background-color: #dbe4f3 !important; }

/* 12. Login: one centred card, larger fields and button, same fields and order */
#ctr { padding: 0 16px; }
.liberty-logo-login { display: block; margin: 28px auto 0; }            /* logo above the login card (2026-11-23) */
.liberty-logo-login + .login { margin-top: 18px; }
.login { width: 520px; max-width: 100%; margin-top: 4.5em; padding: 24px; box-sizing: border-box; text-align: left; }
.login-form { width: 56%; }
.login .inputlabel { font-size: 13px; font-weight: 600; color: #374151; margin: 0 0 4px; }
.form-block { padding: 18px 16px 16px; }
.form-block .inputbox { width: 100%; box-sizing: border-box; font-size: 16px; padding: 9px 10px; margin-bottom: 14px; }
.form-block input.button { font-size: 15px; padding: 10px 22px; min-height: 44px; margin-bottom: 6px; }
.form-block input[type="checkbox"] { width: 18px; height: 18px; vertical-align: middle; margin: 0 6px 2px 0; }
.form-block, .login-text, .login-text p { font-size: 13px; }
a.sLink { font-size: 13px !important; display: inline-block; padding: 6px 0; text-decoration: underline; }
.login-text { padding-left: 8px; }
#demodiv1 { font-size: 13px; }
