:root{--navy:#142946;--blue:#1976f3;--bg:#f5f6f8;--text:#17233a;--muted:#6c7788;--line:#dbe1ea;--ok:#19a76f;--bad:#ef476f;--card:#fff}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}.topbar{height:82px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 26px}.brand{display:flex;gap:14px;align-items:center;font-size:23px;font-weight:800}.brand img{height:42px;border-radius:8px}.date-pill{background:rgba(255,255,255,.13);padding:12px 20px;border-radius:28px;font-size:22px}.wrap{max-width:1120px;margin:0 auto;padding:28px}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#10284a,#1d4273)}.login-card{width:min(430px,92vw);background:#fff;border-radius:24px;padding:34px;box-shadow:0 30px 80px rgba(0,0,0,.25)}.login-card img{display:block;width:230px;margin:0 auto 18px}.login-card h1{text-align:center;margin:8px 0 4px}.login-card p{text-align:center;color:var(--muted);margin-bottom:24px}.field{margin-bottom:14px}.field label{display:block;font-weight:700;margin-bottom:7px}.input,select,textarea{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:13px;font-size:15px;background:#fff}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:14px;padding:12px 17px;font-weight:800;cursor:pointer;background:var(--blue);color:#fff}.btn.secondary{background:#e9edf4;color:#142946}.btn.danger{background:var(--bad)}.btn.full{width:100%}.nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.nav a{background:rgba(255,255,255,.12);color:#fff;padding:10px 13px;border-radius:12px}.tabs{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#fff;border-radius:38px;box-shadow:0 20px 55px rgba(0,0,0,.16);display:flex;gap:6px;padding:7px;z-index:9}.tabs a{min-width:130px;text-align:center;padding:15px 18px;border-radius:31px;font-weight:800}.tabs a.active{background:#e9edf4;color:var(--blue)}.section-title{font-size:34px;letter-spacing:1px;margin:0 0 18px;display:flex;align-items:center;gap:10px}.count{font-size:18px;border:2px solid var(--navy);border-radius:50%;width:34px;height:34px;display:grid;place-items:center}.flight-card{background:var(--card);border-radius:24px;padding:24px;margin:14px 0;border-left:9px solid var(--navy);box-shadow:0 10px 30px rgba(15,23,42,.05);display:grid;grid-template-columns:1fr 180px 1fr;gap:18px;align-items:center}.flight-no{font-size:27px;font-weight:900;letter-spacing:2px}.airport{font-size:16px;color:var(--muted);margin-top:8px}.plane{font-size:48px}.mid{text-align:center}.mid img{max-width:120px;max-height:50px}.codes{color:var(--bad);font-size:20px;margin-top:8px}.line{height:2px;background:#aab3bf;margin:10px 0}.reg{font-size:17px;color:#445064}.times{display:grid;grid-template-columns:70px 1fr;gap:10px;margin-top:14px;font-size:20px}.times b{font-size:24px}.depart{text-align:right}.alert{padding:13px 15px;border-radius:14px;margin-bottom:15px;background:#fff3cd;color:#6d4c00}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.panel{background:#fff;border-radius:22px;padding:22px;box-shadow:0 10px 30px rgba(15,23,42,.05);margin-bottom:18px}.check-item{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin:12px 0}.check-top{display:flex;justify-content:space-between;gap:14px}.seg{display:flex;gap:8px;flex-wrap:wrap}.seg label{border:1px solid var(--line);border-radius:999px;padding:8px 12px;font-weight:800}.seg input{margin-right:6px}.readonly{background:#f7f9fc}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px;border-bottom:1px solid var(--line);text-align:left}.badge{display:inline-block;border-radius:999px;padding:6px 10px;font-weight:800;background:#e9edf4}.badge.completed{background:#dff7eb;color:#0a7c4b}.badge.in_progress{background:#fff3cd;color:#806000}@media(max-width:760px){.wrap{padding:22px 10px 100px}.topbar{padding:0 14px}.date-pill{font-size:17px}.grid{grid-template-columns:1fr}.flight-card{grid-template-columns:1fr 100px 1fr;padding:18px 12px}.mid img{max-width:80px}.flight-no{font-size:22px}.times{font-size:16px}.times b{font-size:19px}.tabs a{min-width:95px}.section-title{font-size:28px}}

.mobile-ops-body {
    margin: 0;
    background: #f4f6f9;
    color: #14213d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.mobile-app {
    min-height: 100vh;
    padding-bottom: 100px;
}

.mobile-top {
    background: #142b4c;
    color: #fff;
    padding: 18px 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.mobile-top strong {
    display: block;
    font-size: 18px;
    font-weight: 650;
    margin-top: 2px;
}

.small-title {
    font-size: 12px;
    opacity: .8;
}

.mobile-date-form input {
    max-width: 138px;
    border: 0;
    border-radius: 999px;
    padding: 10px 12px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-weight: 600;
}

.mobile-content {
    padding: 18px 14px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-heading h1 {
    margin: 0;
    font-size: 30px;
    letter-spacing: .5px;
    font-weight: 500;
}

.section-heading span {
    display: inline-flex;
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.mobile-flight-list {
    display: grid;
    gap: 14px;
}

.mobile-flight-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 24px;
    padding: 18px 16px 14px 20px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.card-status-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 7px;
    height: 100%;
    background: #1d4ed8;
}

.card-status-bar.done { background: #0f766e; }
.card-status-bar.progress { background: #f59e0b; }
.card-status-bar.delayed { background: #dc2626; }
.card-status-bar.scheduled { background: #1e3a5f; }

.mobile-flight-top {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 8px;
    align-items: center;
}

.flight-side h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 1px;
    font-weight: 800;
}

.flight-side span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #334155;
}

.flight-side.right {
    text-align: right;
}

.plane-icon {
    font-size: 35px;
    line-height: 1;
    margin-top: 2px;
    font-weight: 900;
}

.plane-icon.arrival {
    color: #16a34a;
    transform: rotate(-45deg);
    display: inline-block;
}

.plane-icon.departure {
    color: #ef4444;
    transform: rotate(-25deg);
    display: inline-block;
}

.flight-centre {
    text-align: center;
    min-width: 0;
}

.airline-badge {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airline-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.route-compact {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aircraft-reg {
    margin-top: 6px;
    padding-top: 7px;
    border-top: 1px solid #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.mobile-times {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f8fafc;
    border-radius: 18px;
    padding: 10px 8px;
    gap: 6px;
}

.mobile-times div {
    text-align: center;
}

.mobile-times span {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}

.mobile-times strong {
    font-size: 15px;
    color: #0f172a;
}

.mobile-card-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
}

.mobile-pill {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.mobile-pill.done {
    background: #ccfbf1;
    color: #115e59;
}

.mobile-pill.progress {
    background: #fef3c7;
    color: #92400e;
}

.mobile-pill.delayed {
    background: #fee2e2;
    color: #991b1b;
}

.mobile-pill.scheduled {
    background: #e0ecff;
    color: #1e3a8a;
}

.mobile-delay {
    margin-top: 10px;
    border-radius: 14px;
    background: #fff1f2;
    color: #9f1239;
    padding: 9px 11px;
    font-size: 13px;
}

.mobile-delay strong {
    margin-right: 6px;
}

.mobile-empty {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 16px 45px rgba(15,23,42,.08);
}

.mobile-empty h2 {
    margin: 0 0 6px;
}

.mobile-empty p {
    margin: 0;
    color: #64748b;
}

.mobile-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: calc(100% - 38px);
    max-width: 420px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    box-shadow: 0 20px 55px rgba(15,23,42,.18);
    z-index: 50;
}

.mobile-bottom-nav a {
    text-decoration: none;
    color: #111827;
    text-align: center;
    border-radius: 999px;
    padding: 9px 6px;
    font-size: 12px;
    font-weight: 700;
}

.mobile-bottom-nav a span {
    display: block;
    font-size: 23px;
    line-height: 1;
    margin-bottom: 3px;
}

.mobile-bottom-nav a.active {
    background: #e5e7eb;
    color: #1275ff;
}

@media (min-width: 760px) {
    .mobile-app {
        max-width: 430px;
        margin: 0 auto;
        background: #f4f6f9;
        min-height: 100vh;
        box-shadow: 0 0 80px rgba(15,23,42,.12);
    }

    body.mobile-ops-body {
        background: #dbe3ee;
    }
}

.ops-report-body {
    margin: 0;
    background: #dbe3ee;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #071733;
}

.ops-report-app {
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
    background: #f8fafc;
    padding-bottom: 96px;
    box-shadow: 0 0 80px rgba(15,23,42,.16);
}

.ops-report-header {
    background: #172f52;
    color: #fff;
    padding: 14px 18px 0;
}

.phone-status {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 22px;
}

.report-title-row {
    display: grid;
    grid-template-columns: 42px 1fr 70px;
    align-items: center;
    margin-bottom: 22px;
}

.report-title-row strong {
    text-align: center;
    font-size: 20px;
    letter-spacing: .5px;
}

.back-link,
.reports-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.back-link {
    font-size: 34px;
    line-height: 1;
}

.reports-link {
    font-size: 16px;
    text-align: right;
}

.report-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

.report-tabs span {
    padding: 14px 4px 15px;
    opacity: .96;
}

.report-tabs .active {
    position: relative;
    font-weight: 800;
}

.report-tabs .active:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 13px solid #e9eef5;
}

.turn-panel {
    background: #e9eef5;
    padding: 16px 18px 20px;
}

.turn-route-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: start;
    gap: 8px;
}

.turn-side {
    text-align: left;
}

.turn-side.right {
    text-align: right;
}

.turn-date {
    display: block;
    font-size: 15px;
    color: #172033;
    margin-bottom: 3px;
}

.turn-side strong {
    display: block;
    font-size: 25px;
    letter-spacing: 2px;
}

.turn-plane {
    display: inline-block;
    font-size: 40px;
    line-height: .8;
    font-weight: 900;
    margin-top: 4px;
}

.arrival-plane {
    color: #ff3f5d;
    transform: rotate(-45deg);
}

.departure-plane {
    color: #ff3f5d;
    transform: rotate(-25deg);
}

.turn-centre {
    text-align: center;
    padding-top: 25px;
}

.turn-centre img {
    max-width: 58px;
    max-height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
}

.turn-centre strong {
    font-size: 25px;
    letter-spacing: 5px;
    font-weight: 500;
}

.turn-line {
    height: 2px;
    background: #071733;
    margin-top: 16px;
}

.turn-times-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 18px;
    column-gap: 8px;
}

.turn-times-grid div {
    display: flex;
    justify-content: center;
    gap: 9px;
    align-items: baseline;
}

.turn-times-grid span {
    font-size: 15px;
    color: #334155;
}

.turn-times-grid strong {
    font-size: 17px;
    color: #071733;
}

.blue-time {
    color: #1677ff !important;
}

.turn-meta {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 18px;
    font-size: 13px;
    color: #334155;
}

.turn-meta strong {
    color: #071733;
}

.turn-dots {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.turn-dots span {
    width: 9px;
    height: 9px;
    background: #fff;
    border-radius: 50%;
}

.turn-dots span.active {
    background: #071733;
}

.checklist-screen {
    background: #fff;
    padding: 18px 18px 8px;
}

.filter-row {
    display: grid;
    grid-template-columns: 38px 38px 1fr 82px;
    gap: 9px;
    align-items: center;
    margin-bottom: 12px;
}

.round-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 17px;
    background: #fff;
}

.segmented {
    background: #e9eef5;
    border-radius: 8px;
    padding: 2px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.segmented button {
    border: 0;
    background: transparent;
    padding: 10px 4px;
    border-radius: 7px;
    font-weight: 700;
    color: #071733;
}

.segmented button.active {
    background: #fff;
    box-shadow: 0 1px 4px rgba(15,23,42,.08);
}

.crew-toggle {
    font-size: 12px;
    color: #071733;
    display: grid;
    justify-items: center;
    gap: 3px;
}

.crew-toggle input {
    display: none;
}

.crew-toggle i {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #e5e7eb;
    position: relative;
}

.crew-toggle i:before {
    content: "";
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    box-shadow: 0 2px 5px rgba(15,23,42,.2);
    transition: .2s;
}

.crew-toggle input:checked + i {
    background: #1677ff;
}

.crew-toggle input:checked + i:before {
    left: 17px;
}

.checklist-list {
    border-top: 1px solid #cbd5e1;
}

.check-row {
    display: grid;
    grid-template-columns: 42px 1fr 16px 126px;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid #cbd5e1;
    padding: 12px 0;
}

.check-icon {
    font-size: 24px;
    opacity: .75;
    text-align: center;
}

.check-main {
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0;
    color: #071733;
}

.check-main strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
}

.check-main small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 145px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.row-not-started .status-dot { background: transparent; }
.row-progress .status-dot { background: #f59e0b; }
.row-complete .status-dot { background: #10b981; }
.row-issue .status-dot { background: #ef4444; }
.row-na .status-dot { background: #94a3b8; }

.status-select {
    border: 0;
    background: transparent;
    font-size: 14px;
    color: #64748b;
    width: 126px;
    appearance: none;
}

.row-progress .status-select { color: #ff3150; }
.row-complete .status-select { color: #059669; }
.row-issue .status-select { color: #dc2626; }

.row-expand {
    display: none;
    grid-column: 2 / 5;
    padding: 8px 0 4px;
}

.check-row.open .row-expand {
    display: block;
}

.row-expand textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px;
    resize: vertical;
    font: inherit;
    box-sizing: border-box;
}

.mini-save {
    margin-top: 7px;
    border: 0;
    background: #1677ff;
    color: #fff;
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 800;
}

.delay-report-box {
    margin-top: 18px;
    background: #f8fafc;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid #e2e8f0;
}

.delay-report-box h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.delay-report-box label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    margin-bottom: 5px;
}

.delay-grid {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
}

.delay-report-box input,
.delay-report-box textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px;
    font: inherit;
    margin-bottom: 10px;
}

.delay-report-box textarea {
    min-height: 90px;
    resize: vertical;
}

.save-report-btn,
.complete-report-form button {
    width: 100%;
    border: 0;
    background: #172f52;
    color: #fff;
    padding: 13px 15px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 15px;
}

.complete-report-form {
    margin: 14px 0 20px;
}

.complete-report-form button {
    background: #10b981;
}

.readonly-banner {
    margin: 14px 0;
    background: #e0ecff;
    color: #1e3a8a;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
}

.ops-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: #f7f7f8;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px 0 12px;
    box-shadow: 0 -8px 22px rgba(15,23,42,.08);
    z-index: 50;
}

.ops-bottom-nav a {
    text-decoration: none;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.ops-bottom-nav a span {
    display: block;
    font-size: 27px;
    line-height: 1;
    margin-bottom: 3px;
}

.ops-bottom-nav a.active {
    color: #1677ff;
}

@media (min-width: 760px) {
    .ops-report-app {
        min-height: 100vh;
    }
}
