﻿/* ---------------------------------------------------------------------------
 * Community page shell (KENT-59)
 *
 * The Community layout no longer renders site.css's #page / #header / #body / .main-content
 * wrappers, so none of that file's chrome for them applies any more -- no green outline, no
 * drop shadow, no teal content band, and nothing here has to override them. An earlier pass
 * did keep those wrappers and neutralise them rule-by-rule; this replaces that with the
 * structure the design actually describes.
 *
 * site.css's `body { width: 950px }` is the one rule still worth answering. It is also the
 * real reason the layout used to carry an inline `style="width: 1150px"` -- not to pin the
 * page at 1150px for its own sake, but to override a *narrower* fixed width underneath.
 * Removing that inline attribute therefore did not make the page responsive; it dropped it
 * to 950px, and the page still overflowed a 768px viewport by 182px.
 *
 * Left in Community.css rather than site.css because the ROOT (non-Community) layout shares
 * `body` and keeps its fixed-width look. Same specificity, later file, so this wins without
 * !important.
 * ------------------------------------------------------------------------- */
/* site.css also gives <html> a paper texture and <body> a 20px top margin:
 *
 *     html { background-color: #d1e5e4; background-image: url(./images/texture8.png); }
 *     body { width: 950px; margin-top: 20px; margin-left: auto; margin-right: auto; }
 *
 * That margin let the texture show as a strip above the header, and it showed again below
 * the footer whenever the content was shorter than the viewport. Both are the old
 * "floating sheet of paper" treatment, and neither belongs in the new full-bleed design.
 *
 * The texture is neutralised on <html> as well as zeroing the margin, so there is no
 * surface left that can show through -- belt and braces, since <html> paints behind
 * <body> for the whole canvas regardless of body's box.
 */
html {
    background-color: #EEF2F6;
    background-color: var(--kc-v2-ink-100, #EEF2F6);
    background-image: none;
}

/* Full-height flex column: header, then the page field taking the slack, then the footer.
 * This is what pins the footer to the bottom on a short page instead of leaving a band of
 * canvas beneath it. The skip link is position:absolute and the vulnerability tab is
 * position:fixed, so neither becomes a flex item. */
body {
    width: auto;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Bands must not be compressed. A flex item's default is flex-shrink: 1, and because
   .community-page below is flex: 1 0 auto (won't shrink), the header and footer were the
   only items left able to give -- so on a short viewport the footer squeezed to 88px and
   its content spilled out of its own padding box, colliding with the fixed
   "Report a vulnerability" tab. Both bands are sized by their content, always.
   `body >` rather than a bare class: kc-v2-navigation.css loads after this file, so a
   (0,1,0) selector here would lose to the component's own rule. */
body > .kc-v2-site-header,
body > .kc-v2-footer {
    flex-shrink: 0;
}

/* The vulnerability tab is position: fixed at the bottom-left, and the footer is now always
   at the bottom of the viewport, so the two share that corner. Extra bottom padding keeps
   the footer's own content clear of it. */
body > .kc-v2-footer {
    padding-bottom: 64px;
}

/* The tinted field the cards sit on, per the Figma "external landing" frame. Literal
   fallbacks alongside each var(): an undefined custom property invalidates the whole
   declaration, which would leave these unset rather than degrading. */
.community-page {
    flex: 1 0 auto;
    background-color: #EEF2F6;
    background-color: var(--kc-v2-ink-100, #EEF2F6);
    padding: 32px 24px;
    padding: var(--kc-v2-space-5, 40px) var(--kc-v2-space-4, 24px);
}

/* Content column. Shared by the page body and the footer so the two line up, which is what
   makes the header/footer read as full-bleed bands with aligned content rather than as a
   boxed container. */
.community-page__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 520px) {
    .community-page {
        padding: 16px 12px;
        padding: var(--kc-v2-space-3, 16px) 12px;
    }
}

/* KENT-44: the legacy bordered white box. Seven Community views still use #mainContainer
   (Annual, AnnualReconciliation x2, BusinessLicenseAdd, BusinessLicenseApplication,
   DocumentUpload, Quarterly), so this rule cannot be deleted.

   A converted page opts out by adding .kc-v2-shell to the same element. It has to be an opt-out
   rather than an override because #mainContainer is an ID selector at (1,0,0) -- no class kc-v2
   could add would outrank it.

   The element itself must stay, with its id: AnnualController.js:72 sets
   `this.element_selector = '#mainContainer'`, so Sammy's client-side routing is scoped to it.
   Removing the div (the original plan's wording) would have silently broken every step
   transition in the annual flow. */
#mainContainer:not(.kc-v2-shell) {
    background-color: white;
    border-color: black;
    border-width: 1px;
    border: solid;
    padding: 15px;
    -moz-border-radius: 8px;
    border-radius: 8px;
}

.form-group,
.form-group label,
.form-group input {
    float: left;
    display: inline;
    margin: 0 5px 0 0;
}

.form-group {
    margin-right: 5px;
}

label, .display-text {
    line-height: 22px;
}

.content-box {
    padding: 10px;
}

legend {
    width: inherit;
    padding: 0 10px;
    border-bottom: none;
    font-size: 12pt;
}

.number {
    text-align: right;
}

.col-same-height {
    height: 200px;
}

.margin-fix {
    margin: 0;
}

.break-text {
    padding-bottom: 10px;
}

.empoyee-grid select[multiple] {
    width: 100%;
    height: 8em;
}

.empoyee-grid h2 {
    margin-top: 0.4em;
    font-weight: bold;
    font-size: 1.2em;
}

.empoyee-grid table,
.empoyee-grid td,
.empoyee-grid th {
    padding: 0.2em;
    border-width: 0;
}

.empoyee-grid td input {
    width: 13em;
}

tr {
    vertical-align: top;
}

.empoyee-grid input.error {
    border: 1px solid red;
    background-color: #FDC;
}

.empoyee-grid label.error {
    display: block;
    color: Red;
    font-size: 0.8em;
}

.empoyee-grid th {
    font-weight: bold;
}

li {
    list-style-type: disc;
    margin-left: 20px;
}

.recon-alert-box {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}