/*
 * Exercise submission: only the app's own elements. Everything else (header, footer, tables,
 * buttons, boxes) comes from the main site's style.css and na.css and its colour variables.
 */

/* forms */
.ab-form { margin: 1.5rem 0 2rem; padding: 1.25rem 1.5rem; background: var(--na-grey, #f2f2f2); border-left: 4px solid var(--na-red, #a51e37); }
.ab-form label { display: block; font-weight: 600; color: var(--na-slate, #32414b); margin: 0 0 .5rem; }
.ab-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; }
.ab-row input { flex: 1 1 18rem; min-width: 0; }
.ab-form input[type="email"], .ab-form input[type="file"] {
  box-sizing: border-box; font: inherit; color: var(--na-text, #444e57); background: #fff;
  padding: .55rem .8rem; border: 1px solid #c8cdd1; border-radius: var(--na-radius, 2px);
}
.ab-form input:focus { border-color: var(--na-red, #a51e37); outline: none; box-shadow: 0 0 0 3px rgba(165, 30, 55, .15); }
.ab-form button { font: inherit; font-weight: 600; cursor: pointer; }
.ab-hint { margin: .75rem 0 0; font-size: .9rem; line-height: 1.6; color: var(--na-muted, #6b757d); }
.ab-small { font-size: .9rem; color: var(--na-muted, #6b757d); }
.na-box form { margin-top: 1rem; }
.na-box button { font: inherit; font-weight: 600; cursor: pointer; }
.ab-box-links { margin-top: .75rem; }
.ab-break { overflow-wrap: anywhere; }

/* flash messages */
.ab-flash { margin: 0 0 1.5rem; padding: .75rem 1rem; border-left: 4px solid; line-height: 1.6; }
.ab-flash--error { border-color: var(--na-red, #a51e37); background: #f9eaed; color: var(--na-red-dark, #7a1629); }
.ab-flash--ok { border-color: #3c7a3c; background: #edf5ec; color: #275227; }
.ab-flash--info { border-color: var(--na-gold, #b4a069); background: var(--na-gold-light, #f4f1e8); color: var(--na-text, #444e57); }

/* sheet tables (na-courses from the main site) */
.ab-sheets .ab-col-no { width: 4.5rem; }
.ab-sheets .ab-col-date { width: 11rem; }
.na-courses .ab-col-date { width: 12rem; }
.na-courses .ab-col-status { width: 15rem; }
.ab-sheets .ab-col-count { width: 7rem; }
.ab-sheets .ab-col-dl { width: 10rem; }
.ab-status { display: inline-block; font-size: .85rem; font-weight: 600; padding: .05rem .5rem; border-radius: var(--na-radius, 2px); background: var(--na-grey, #f2f2f2); color: var(--na-muted, #6b757d); }
.ab-status--ok { background: #edf5ec; color: #275227; }
.ab-status--open { background: var(--na-gold-light, #f4f1e8); color: var(--na-gold-dark, #7d6b39); }
.ab-status--missed { background: #f9eaed; color: var(--na-red-dark, #7a1629); }
.ab-tag { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--na-gold-dark, #7d6b39); vertical-align: middle; }

/* receipt */
.na-prose table.ab-receipt { width: auto; max-width: 100%; }
.ab-receipt th { color: var(--na-slate, #32414b); white-space: nowrap; vertical-align: top; }
.ab-receipt code { font-size: .85rem; }

/* the buttons of the main site are links; the same look for <button> */
button.na-btn { border-radius: 0; }
.na-prose p > .na-btn + .na-btn { margin-left: .5rem; }

/* team on the sheet page */
.ab-team { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.ab-team li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; padding: .5rem 0; border-bottom: 1px solid var(--na-grey, #f2f2f2); }
.ab-team form { margin: 0; }
.ab-link-btn { font: inherit; font-size: .9rem; color: var(--na-red, #a51e37); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
