/*
 * LakesideSIS - Print / PDF Theme (Modern)
 * Professional document styling for wkhtmltopdf and browser print
 */

/* ==========================================================================
   PAGE SETUP
   ========================================================================== */

@page {
    size: auto;
    margin: 16mm 12mm 20mm 12mm;
}

html,
body,
input,
select,
textarea {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 10pt;
    color: #1e293b;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

html,
body {
    height: auto;
}

body {
    line-height: 1.55;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* ==========================================================================
   HIDE WEBSITE NAVIGATION AND SCREEN-ONLY CONTROLS
   ========================================================================== */

#menu,
#menu.fixedmenu-fixed + div,
#footer,
#footerwrap,
#footerhelp,
#BottomButtonMenu,
.BottomButton,
.button-upsell-premium,
.ajax-error,
#cboxOverlay,
#cboxWrapper,
#colorbox,
.wp-submenu,
.ls-menu-filter,
.ls-fav-btn,
.ls-density-btn,
#ls-shortcuts,
div.updated,
div.error,
.noscript,
noscript,
input[type=button],
input[type=reset],
input[type=submit],
button,
.list-nav,
.list-save {
    display: none !important;
}

#wrap {
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
}

#body {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    background-image: none !important;
}

.mod {
    overflow: visible !important;
}

/* District logo at the top of every printed page */
.header1::before {
    content: "";
    display: block;
    width: 52px;
    height: 52px;
    margin: 0 auto 8pt;
    background-image: url("assets/themes/FlatSIS/print-logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ==========================================================================
   DISTRICT IDENTITY AND PAGE HEADERS - CENTERED, NO LOGO
   ========================================================================== */

.header1::before {
    content: "";
    display: block;
    width: 52px;
    height: 52px;
    margin: 0 auto 8pt;
    background-image: url("assets/themes/FlatSIS/print-logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.header {
    width: auto;
    max-width: 520px;
    border-spacing: 0;
    margin: 0 auto 10pt;
    text-align: center;
}

.header tr,
.header td {
    text-align: center;
}

.header .align-right,
.header td.align-right {
    text-align: center !important;
}

.header1 {
    margin: 0 0 6pt;
    page-break-after: avoid;
    text-align: center;
}

.header1 h2 {
    font-size: 20pt;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.3pt;
    color: #003B82;
    border: 0;
    padding: 0;
    margin: 0 0 6pt;
    background: #ffffff !important;
    box-shadow: none !important;
    page-break-after: avoid;
    text-align: center;
}

/* Thin accent line under title */
.header1::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 6pt auto 10pt;
    background: linear-gradient(90deg, #003B82, #247447);
    border-radius: 2px;
}

/* District and report metadata strip - centered card */
.header2 {
    display: inline-block;
    width: auto;
    max-width: 90%;
    padding: 10pt 16pt;
    margin: 0 auto 16pt;
    border: 1px solid #D8E2EC;
    border-top: 3px solid #003B82;
    border-radius: 8px;
    background: #F8FAFC !important;
    color: #26364A;
    font-size: 9.5pt;
    line-height: 1.45;
    box-shadow: none !important;
    page-break-after: avoid;
    text-align: center;
}

.header2 table {
    margin: 0 auto;
    line-height: 1.3;
    border: 0;
}

.header2 .widefat {
    margin: 0;
    border: 0;
}

.header2 strong,
.header2 b {
    color: #003B82;
    font-weight: 700;
}

.header2 td {
    padding: 2pt 8pt;
    border: 0;
    text-align: center;
}

/* Section headings within reports */

h1,
h2,
h3,
h4 {
    color: #003B82;
    page-break-after: avoid;
}

h3 {
    font-size: 12.5pt;
    margin: 14pt 0 7pt;
    padding-bottom: 5pt;
    border-bottom: 2px solid #247447;
    font-weight: 700;
    text-align: left;
}

h4 {
    font-size: 10.5pt;
    margin: 11pt 0 5pt;
    font-weight: 600;
}

/* ==========================================================================
   TABLES - MODERN CLEAN DESIGN
   ========================================================================== */

.widefat {
    width: 100%;
    margin: 0 0 14pt;
    border: 1px solid #CDD7E3;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff !important;
    font-size: 9.5pt;
    page-break-inside: auto;
    box-shadow: 0 2px 8px rgba(0, 59, 130, 0.06);
}

.widefat th {
    padding: 8pt 10pt;
    border: 0;
    border-bottom: 2px solid #003B82;
    background: #003B82 !important;
    color: #ffffff !important;
    text-align: left;
    vertical-align: middle;
    font-size: 8.5pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4pt;
    page-break-inside: avoid;
}

.widefat td {
    padding: 7pt 10pt;
    border: 0;
    border-bottom: 1px solid #E8EDF3;
    color: #1e293b;
    background: #ffffff;
    font-size: 9.5pt;
    vertical-align: middle;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.widefat tr {
    background: #ffffff !important;
    page-break-inside: avoid;
    page-break-after: auto;
}

.widefat tr:last-child td {
    border-bottom: 0;
}

.widefat tbody tr:nth-child(even) td {
    background: #F5F8FC !important;
}

.widefat tbody tr:nth-child(odd) td {
    background: #ffffff !important;
}

.widefat thead {
    display: table-header-group;
}

.widefat tfoot {
    display: table-footer-group;
}

.widefat .alt,
.widefat .alternate,
.alt,
.alternate {
    color: #1e293b;
}

.widefat th a[href*=LO_dir]:after {
    content: "" !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   BOXES AND SECONDARY TABLES
   ========================================================================== */

.postbox {
    margin: 0 0 14pt;
    padding: 0;
    border: 1px solid #D8E2EC;
    border-radius: 10px;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 59, 130, 0.06);
    page-break-inside: auto;
    overflow: hidden;
}

.postbox > thead th,
.postbox > tbody th,
.postbox > tfoot th {
    padding: 8pt 10pt;
    color: #ffffff !important;
    background: #003B82 !important;
    border-bottom: 2px solid #247447;
    font-size: 8.5pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35pt;
}

.postbox h3,
.postbox h2,
.postbox .hndle {
    color: #003B82;
    background: #F1F5FA !important;
    border-bottom: 2px solid #247447;
    padding: 9pt 12pt;
    margin: 0;
    font-size: 11pt;
    font-weight: 700;
    box-shadow: none !important;
    border-radius: 10px 10px 0 0;
}

.postbox .inside {
    padding: 10pt;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

input[type=button],
input[type=reset],
input[type=submit],
button {
    display: none !important;
}

input[type=text],
input[type=email],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=url],
select,
textarea {
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 2pt 0;
    border: 0 !important;
    border-bottom: 1px solid #B9C7D8 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #1e293b !important;
    box-shadow: none !important;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 9.5pt;
}

input[type=checkbox],
input[type=radio] {
    vertical-align: middle;
}

label {
    color: #475569;
    font-weight: 600;
}

a {
    color: #003B82;
    text-decoration: none;
}

/* ==========================================================================
   LIST OUTPUT
   ========================================================================== */

.list-wrapper {
    overflow: visible;
    padding-bottom: 0;
    margin-bottom: 0;
}

.list,
.list-nav {
    width: 100%;
    border-spacing: 0;
}

.list-nav {
    margin-top: 12pt;
}

.list {
    margin-bottom: 12pt;
}

.list-header {
    margin-bottom: 0;
    padding-bottom: 5pt;
    border-bottom: 2px solid #247447;
    color: #003B82;
    font-weight: 700;
}

/* ==========================================================================
   REPORT METADATA, NOTES AND STATUS TEXT
   ========================================================================== */

small,
small * {
    font-size: 8.5pt;
}

hr {
    height: 0;
    border: 0;
    border-top: 1px solid #D8E2EC;
    margin: 11pt 0;
}

p {
    orphans: 3;
    widows: 3;
}

blockquote {
    margin: 8pt 0;
    padding: 8pt 12pt;
    border-left: 3px solid #247447;
    border-radius: 0 6px 6px 0;
    background: #F1F5FA;
    color: #334155;
}

.dashboard-module-title .module-icon,
.dashboard-module-title img {
    vertical-align: middle;
}

img {
    max-width: 100%;
}

.dashboard-module-title {
    color: #003B82;
    font-weight: 600;
}

/* ==========================================================================
   PAGE BREAKS
   ========================================================================== */

h1,
h2,
h3,
h4,
.header1,
.header2 {
    page-break-after: avoid;
}

img,
.postbox img {
    page-break-inside: avoid;
}

table {
    page-break-before: auto;
}

tr,
td,
th {
    page-break-after: auto;
}

.keep-together,
.no-page-break {
    page-break-inside: avoid;
}

/* ==========================================================================
   LAKESIDE ISD DOCUMENT FOOTER
   ========================================================================== */

@page {
    margin-bottom: 22mm;
}

body::after {
    content: "\00a9 2026 Lakeside Independent School District \2014 Student Information System. All rights reserved.";
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6pt 14mm 4pt;
    border-top: 2px solid #247447;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 8pt;
    line-height: 1.4;
    color: #526174;
    text-align: center;
    background: #ffffff;
}

/* ==========================================================================
   END - LAKESIDE ISD PRINT THEME
   ========================================================================== */
