/* =========================================
   NULLNAVIGATOR LESSON PLANNER
   Basic layout
   ========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #eeeeee;
}

/* Main A4 page */

.lesson-planner {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 15mm;

    background: white;
}


/* =========================================
   HEADER
   ========================================= */

.header {
    height: 25mm;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    border-bottom: 1px solid #000;
    margin-bottom: 8mm;
}

.logo-area {
    width: 50%;
}

.website {
    font-size: 12px;
    text-align: right;
}


/* =========================================
   INFORMATION SECTION
   ========================================= */

.lesson-information {
    width: 100%;
    border: 1px solid #000;
    margin-bottom: 8mm;
}

.info-row {
    display: flex;
    width: 100%;

    border-bottom: 1px solid #000;
}

.info-row:last-child {
    border-bottom: none;
}

.info-field {
    flex: 1;
    padding: 4px;
    border-right: 1px solid #000;
}

/* First information row */
.info-row:first-child .info-field:nth-child(1) {
    flex: 2;
}

.info-row:first-child .info-field:nth-child(2) {
    flex: 0.8;
}

.info-row:first-child .info-field:nth-child(3) {
    flex: 0.9;
}

.info-field:last-child {
    border-right: none;
}

.info-field.full-width {
    flex: 1;
}

.info-field label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 3px;
}

.info-field input,
.info-field select,
.info-field textarea {
    width: 100%;
    border: 1px solid #999;
    padding: 4px;
    font-family: inherit;
    font-size: 11px;
}

.info-field textarea {
    height: 35px;
    resize: vertical;
}


/* =========================================
   LESSON PLAN TABLE
   ========================================= */

#lesson-plan-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#lesson-plan-table th,
#lesson-plan-table td {
    border: 1px solid #000;
    padding: 4px;
    vertical-align: top;
}

#lesson-plan-table th {
    font-size: 11px;
    text-align: center;
}

#lesson-plan-table textarea,
#lesson-plan-table select {
    width: 100%;
    font-family: inherit;
    font-size: 11px;
}

#lesson-plan-table textarea {
    min-height: 70px;
    resize: vertical;
}


/* Stage / Activity */

.stage-activity select {
    margin-bottom: 5px;
}


/* =========================================
   COLUMN WIDTHS
   ========================================= */

#lesson-plan-table th:nth-child(1),
#lesson-plan-table td:nth-child(1) {
    width: 18%;
}

#lesson-plan-table th:nth-child(2),
#lesson-plan-table td:nth-child(2) {
    width: 31%;
}

#lesson-plan-table th:nth-child(3),
#lesson-plan-table td:nth-child(3) {
    width: 31%;
}

#lesson-plan-table th:nth-child(4),
#lesson-plan-table td:nth-child(4) {
    width: 11%;
}

#lesson-plan-table th:nth-child(5),
#lesson-plan-table td:nth-child(5) {
    width: 9%;
}


/* =========================================
   ROW CONTROLS
   ========================================= */

.row-controls {
    margin-top: 8px;
}

.row-controls button {
    padding: 6px 12px;
    margin-right: 5px;

    font-size: 11px;
    cursor: pointer;
}


/* =========================================
   TOTAL TIME
   ========================================= */

.lesson-total {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-total label {
    font-weight: bold;
    font-size: 11px;
}

#total-time {
    width: 100px;
    padding: 4px;
}

/* =========================================
   TIME STATUS
   ========================================= */

#time-status {
    font-size: 11px;
}

.logo-area img {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
}

/* =========================================
   SAVE / PRINT CONTROLS
   ========================================= */

.row-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.row-buttons,
.save-print-buttons {
    display: flex;
    gap: 10px;
}

.row-controls button {
    padding: 8px 16px;
    cursor: pointer;
}


/* =========================================
   PRINT VERSION
   ========================================= */

@media print {

    .row-controls {
        display: none !important;
    }

}