/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Sep 11, 2017, 10:39:21 AM
    Author     : George
    Extended for MOH 710/717 form layout
*/

:root {
  --moh-dark: #1a2a3a;
  --moh-gold: #d4a856;
  --moh-rule: #999;
  --head-bg: #f5f5f5;
  --ink-light: #666;
  --ink-mid: #999;
  --border-color: #333;
}

body{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #c6c9c5;
    font: 12pt "Tahoma", Arial, sans-serif;
}

*{
    box-sizing: border-box;
    -moz-box-sizing :border-box;
}

.page{
    width: 200mm;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 1mm 2mm 2mm 2mm;
    margin: 1mm auto;
    border: 1px #d3d3d3 solid;
    border-radius: 5px;
    background: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    overflow: visible;
}

.subpage {
    padding: 1mm 5mm 1mm 1mm;
    border: 0px green solid;
    height: auto;
    width: auto;
    display: block;
}

@page {
    size: Letter;
    margin: 0;
}
@media print {
    html, body {
        width: auto;
        height: auto;
    }
    .page {
        margin: 0;
        border: initial;
        border-radius: initial;
        width: auto;
        min-height: 0;
        height: auto;
        box-shadow: initial;
        background: initial;
        page-break-after: always;
    }
    .subpage{
        display:block;
        height:auto;
        width:100%;
    }
}

.logo{
    text-align: center;
}

.invTitle{
    text-align: center;
    font-family: sans-serif;
    font-size: small;
    font-weight: bold;
}

.reprintSS{
    text-align: center;
    font-family: sans-serif;
    font-size: small;
    font-weight: bold;
    color: red;
}

.invDetails{
    font-style: normal;
    font-family: helvetica;
    font-size: smaller;
}

.mainTitles{
    font-style:normal;
    font-family: helvetica;
    font-size: 18px;
    font-weight: bold;
}    

.itemTitles{
    font-style:normal;
    font-size: small;
    font-weight: bold;
}

.titlesRow{
    border: 2px solid #006064;
}

.pageNos{
    font-style: normal;
    font-family: helvetica;
    font-size: smaller;
    text-align: center;
}
th{
    border: 1px solid buttonshadow;
    background-color: #4caf50;
    color:white;
}

.chqDate{
    position: relative;
    left:580px;
    top: 25px;
    width:160px;
}
.chqAmount{
    position: relative;
    left:560px;
    top:140px;
    width:160px;
}
.chqPayee{
    position: relative;
    left:85px;
    top:160px;
    width:420px;
    padding-left: 40px;
    font-size: 12px;
}

.chqAmountDetails{
    position: relative;
    left:75px;
    top:125px;
    width:450px;
    padding-left: 120px;
    height: 60px;
    line-height: 260%;
    font-size: 12px;
}

/* ─────────────────────────────────────────────────── */
/* MOH 710/717 FORM STYLES                              */
/* ─────────────────────────────────────────────────── */

.form-label-tag {
    text-align: center;
    padding: 12px 0 4px;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--moh-dark);
    letter-spacing: 2px;
}

.form-label-tag span {
    display: inline-block;
    border-bottom: 3px solid var(--moh-gold);
    padding-bottom: 4px;
}

.form-desc {
    text-align: center;
    font-size: 11px;
    color: var(--ink-mid);
    margin-bottom: 14px;
    font-weight: 500;
}

.form-card {
    border: 1px solid var(--border-color);
    background: white;
    margin-bottom: 12px;
}

/* ── FORM HEADER ── */
.form-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    border-bottom: 2px solid var(--moh-gold);
    padding: 12px;
    background: white;
}

.form-header .coa {
    font-size: 24px;
    text-align: center;
    width: 40px;
}

.form-header .center-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.form-header .country {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-light);
    font-weight: 600;
}

.form-header .ministry {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-light);
    font-weight: 600;
}

.form-header .form-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--moh-dark);
    margin-top: 2px;
}

.form-header .form-subtitle {
    display: block;
    font-size: 10px;
    color: var(--ink-mid);
    font-weight: 500;
}

.form-header .form-code {
    text-align: right;
    font-size: 11px;
}

.form-header .form-code span {
    display: block;
    font-weight: bold;
    color: var(--moh-dark);
}

.form-header .form-code small {
    display: block;
    font-size: 9px;
    color: var(--ink-mid);
    margin-top: 2px;
}

/* ── FACILITY LINE ── */
.facility-line {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--moh-rule);
    background: var(--head-bg);
}

.facility-line .fl-item {
    padding: 8px 12px;
    border-right: 1px solid var(--moh-rule);
    font-size: 11px;
}

.facility-line .fl-item:last-child {
    border-right: none;
}

.facility-line label {
    display: block;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 3px;
    font-weight: 600;
}

.facility-line .fill-line {
    display: block;
    border-bottom: 1px solid var(--ink-mid);
    min-height: 16px;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* ── SECTION DIVIDER & HEADER ── */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, var(--border-color), transparent);
    margin: 16px 0 12px;
}

.section-header {
    font-size: 16px;
    font-weight: bold;
    color: var(--moh-dark);
    background: white;
    padding: 10px 8px;
    border-left: 4px solid var(--moh-gold);
    margin-bottom: 8px;
}

.sub-section-header {
    font-size: 13px;
    font-weight: bold;
    color: var(--moh-dark);
    background: white;
    padding: 8px 8px;
    border-left: 3px solid var(--moh-gold);
    margin-top: 10px;
    margin-bottom: 6px;
}

/* ── REPORT TABLE ── */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
    background: white;
}

.report-table th,
.report-table td {
    border: 1px solid var(--border-color);
    padding: 6px 4px;
    text-align: center;
    font-size: 10pt;
}

.report-table th {
    background-color: #e8e8e8;
    font-weight: bold;
    color: var(--moh-dark);
}

.report-table .left {
    text-align: left;
}

.report-table .label-cell {
    font-weight: bold;
    text-align: left;
    padding-left: 10px;
}

.report-table .input-cell {
    width: 70px;
    background: white;
}

.report-table .total-row {
    background: #f3f3f3;
    font-weight: bold;
}

.report-table .total-row td {
    background: #f3f3f3;
}
