/* Mobile-first: big tap targets, minimal typing, readable in bright/dim light on a boat. */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f5f7;
    color: #1a1a1a;
    font-size: 18px;
}

.screen {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 20px 100px;
    min-height: 100vh;
}

.screen-wide {
    max-width: 900px;
}

.screen-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

h1 {
    font-size: 28px;
    margin: 0 0 8px;
}

.subheading {
    color: #555;
    margin: 0 0 24px;
    font-size: 16px;
}

label {
    display: block;
    font-weight: 600;
    margin: 20px 0 6px;
}

select,
input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

select:focus,
input:focus {
    outline: none;
    border-color: #0b5fff;
}

.photo-label {
    margin-top: 24px;
}

.photo-input {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    background: #fff;
    border: 2px dashed #999;
    border-radius: 8px;
}

.hint {
    color: #a33;
    font-size: 15px;
}

.btn-primary,
.btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    margin-top: 28px;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: #0b5fff;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #0b5fff;
    border: 2px solid #0b5fff;
}

.btn-sticky {
    position: sticky;
    bottom: 16px;
}

.checkmark {
    font-size: 64px;
    color: #1a9e4e;
    margin: 0;
}

textarea {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #0b5fff;
}

.radio-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
}

.nav-links {
    text-align: center;
    margin-top: 32px;
    font-size: 15px;
}

.nav-links a {
    color: #0b5fff;
    text-decoration: none;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-row select {
    margin: 0;
}

.request-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-card {
    display: block;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.request-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.request-card__vessel {
    font-weight: 600;
    color: #555;
}

.request-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.request-card__desc {
    color: #444;
    font-size: 15px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-card__meta {
    color: #888;
    font-size: 13px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending {
    background: #fff3cd;
    color: #8a6414;
}

.badge-approved {
    background: #d4edda;
    color: #1a6e2e;
}

.badge-rejected {
    background: #f8d7da;
    color: #a3232f;
}

.detail-text {
    margin: 0 0 4px;
    font-size: 17px;
    color: #222;
}

.decision-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.decision-row .btn-primary,
.decision-row .btn-secondary {
    margin-top: 0;
}

.decision-row--triple {
    flex-direction: column;
}

.decision-row--triple button {
    width: 100%;
}

.badge-submitted {
    background: #fff3cd;
    color: #8a6414;
}

.badge-revision-requested {
    background: #ffe4c4;
    color: #8a4b14;
}

.hint-neutral {
    color: #777;
}

.labor-line {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: center;
}

.labor-line select {
    flex: 2;
    margin: 0;
}

.labor-line input {
    flex: 1;
    margin: 0;
    min-width: 0;
}

.btn-remove-line {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 20px;
    color: #a33;
    cursor: pointer;
}

.btn-add-line {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 4px;
    border: 2px dashed #999;
    border-radius: 8px;
    background: #fff;
    font-weight: 600;
    color: #444;
    cursor: pointer;
}

.labor-table {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.labor-table__header,
.labor-table__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 10px 14px;
    font-size: 15px;
}

.labor-table__header {
    background: #f0f0f0;
    font-weight: 700;
}

.labor-table__row:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.labor-table__total {
    font-weight: 700;
    background: #f9f9f9;
}

.filter-row--dates {
    display: flex;
    gap: 10px;
    margin: 0;
}

.filter-row--dates input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
}

.filter-row input[type="text"] {
    margin: 0;
}

.btn-filter {
    margin-top: 0;
    padding: 12px;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.data-table th {
    background: #f0f0f0;
    font-weight: 700;
}

.data-table__actions {
    display: flex;
    gap: 10px;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: #a33;
    text-decoration: underline;
    font-size: 15px;
    cursor: pointer;
}

.summary-box {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    margin-top: 20px;
}

.summary-box__title {
    font-size: 18px;
    margin: 0 0 10px;
}

.summary-box__row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 15px;
}

.summary-box__row--total {
    border-top: 2px solid #ddd;
    margin-top: 8px;
    padding-top: 8px;
    font-weight: 700;
    font-size: 17px;
}

.report-week {
    color: #555;
    font-size: 16px;
    margin: 0 0 20px;
}

.report-vessel {
    margin-bottom: 32px;
}

.report-vessel__title {
    font-size: 20px;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 6px;
}

.report-vessel__total {
    text-align: right;
    font-weight: 700;
    font-size: 17px;
    margin-top: 6px;
}

@media print {
    body {
        background: #fff;
    }
    .no-print {
        display: none;
    }
    .data-table--print th {
        background: #fff;
        border-bottom: 2px solid #000;
    }
}
