/* Page chrome */
body { font-family: Arial, Helvetica, sans-serif; font-size: 13px; margin: 0; padding: 16px; }
#DIVFull { float: left; width: 100%; }
.botline { border-bottom: 1px solid #ccc; margin-bottom: 10px; padding-bottom: 6px; }
.msg { min-height: 18px; margin: 6px 0; }

/* Section menu */
.tool-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.tool-nav a {
    text-decoration: none; color: #5a4f4a; font-weight: 600; font-size: 12.5px;
    padding: 7px 13px; border-radius: 7px; white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}
.tool-nav a:hover { background: #fdf0ea; color: #e05b26; }
.tool-nav a.active { background: #e05b26; color: #fff; }

/* Ported from SupportTools.aspx inline <style> */
.support-section { margin-bottom: 20px; }
.support-section h3 { background-color: #f0f0f0; padding: 6px 10px; border-left: 4px solid #e05b26; margin: 0 0 10px 0; }
.will-fix { color: green; font-weight: bold; }
.skipped { color: #999; }
.not-found { color: red; }

/* Minimal equivalents for the ERP-wide control classes this page relied on */
.textbox { padding: 3px 5px; border: 1px solid #999; }
.button { padding: 4px 12px; border: 1px solid #e05b26; background-color: #fdf0ea; cursor: pointer; }
.button:hover { background-color: #fbe1d3; }

table.GridViewStyle { border-collapse: collapse; }
table.GridViewStyle th.titlecolr, .HeaderStyle { background-color: #e05b26; color: #fff; padding: 5px 8px; text-align: left; }
table.GridViewStyle td { border: 1px solid #ddd; padding: 5px 8px; }
table.GridViewStyle tr.RowStyle { background-color: #fff; }
table.GridViewStyle tr.AltRowStyle { background-color: #f7f7f7; }

/* Long result grids (e.g. the 100+ row Fix preview) scroll in place instead of
   pushing the whole page down; header row stays visible while scrolling. */
.scroll-table { max-height: 420px; overflow-y: auto; overflow-x: auto; border: 1px solid #ddd; }
.scroll-table table.GridViewStyle { width: 100%; }
.scroll-table th.titlecolr { position: sticky; top: 0; z-index: 1; }

/* Single-record property sheets (current state, summary facts) - not a list of
   rows, so no header row, just a consistent bordered look matching GridViewStyle. */
table.kv-table { border-collapse: collapse; }
table.kv-table td { border: 1px solid #ddd; padding: 5px 8px; }
table.kv-table td:first-child { background-color: #f7f7f7; font-weight: 600; white-space: nowrap; }

/* Plain-language "what/where/when" line shown above a change preview or result grid. */
.change-note { color: #555; font-size: 0.9em; margin: 4px 0 8px; }

/* Sign-in landing: no photo - a layered CSS gradient (brand charcoal wash, two
   soft orange glow blobs, a faint dot-grid for texture), glass card centered on top. */
html { height: 100%; }
body.signin-body {
    margin: 0; padding: 0; height: 100%; min-height: 100vh; overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.5px) 0 0 / 28px 28px,
        radial-gradient(ellipse 620px 520px at 12% 15%, rgba(224, 91, 38, 0.20), transparent 60%) no-repeat,
        radial-gradient(ellipse 700px 600px at 88% 88%, rgba(224, 91, 38, 0.16), transparent 60%) no-repeat,
        linear-gradient(135deg, #1a1614 0%, #2b211d 40%, #3d2a1e 72%, #1f1815 100%) no-repeat;
}
/* #DIVFull/#contentarea are the real layout wrapper (see _Layout.cshtml) - the flex
   positioning has to live on #contentarea, not <body>, or #DIVFull's width:100% just
   swallows the space and the card ends up pinned to the left regardless of <body>. */
body.signin-body #DIVFull { float: none; height: 100%; }
body.signin-body #contentarea {
    height: 100%;
    display: flex; align-items: center; justify-content: center;
    box-sizing: border-box;
}
.signin-card {
    position: relative; z-index: 1;
    width: 350px; max-width: calc(100vw - 48px);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(224, 91, 38, 0.35);
    border-radius: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 25px 60px rgba(0, 0, 0, 0.45);
    padding: 32px 32px 28px;
    text-align: center;
}
.signin-logo-chip {
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    margin: 0 auto 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.signin-logo-chip img { display: block; height: 26px; width: auto; }
.signin-card h1 { font-size: 20px; font-weight: 600; margin: 0 0 8px; color: #fff; letter-spacing: 0.2px; text-shadow: 0 1px 4px rgba(0,0,0,0.35); }
.signin-card p.tagline { font-size: 12.5px; color: #e4edf6; opacity: 0.85; margin: 0 0 26px; line-height: 1.55; }
.btn-ms-signin {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 28px;
    background: #fff; color: #1f1f1f;
    border: none; border-radius: 6px;
    font-size: 13.5px; font-weight: 600; text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-ms-signin:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
.signin-footnote { margin-top: 22px; font-size: 11px; color: #cdd9e4; opacity: 0.75; }

/* Post sign-in dashboard */
.welcome-bar { margin: 4px 0 22px; color: #5a4f4a; font-size: 14px; }
.welcome-bar strong { color: #231f20; }
.tile-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.tile {
    display: block; text-decoration: none;
    background: #fff; border: 1px solid #e8e2de; border-left: 4px solid #e05b26;
    border-radius: 8px; padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(35, 31, 32, 0.06);
    transition: box-shadow 0.15s, transform 0.15s;
}
.tile:hover { box-shadow: 0 6px 16px rgba(35, 31, 32, 0.12); transform: translateY(-1px); }
.tile h4 { margin: 0 0 6px; font-size: 13.5px; color: #231f20; }
.tile p { margin: 0; font-size: 12px; color: #746b66; line-height: 1.4; }

/* Top bar shown only when signed in */
.top-bar {
    display: flex; align-items: center; gap: 22px;
    padding: 10px 18px; margin: -16px -16px 18px;
    background: #fff; border-bottom: 2px solid #e05b26;
}
.top-bar .brand { display: flex; align-items: center; padding-right: 22px; border-right: 1px solid #e8e2de; }
.top-bar .brand img { height: 22px; width: auto; }
.top-bar .tool-nav { flex: 1; }
.top-bar .user-chip { font-size: 12px; color: #746b66; white-space: nowrap; }
.top-bar .user-chip a { color: #e05b26; text-decoration: none; margin-left: 10px; }
.top-bar .user-chip a:hover { text-decoration: underline; }
