/* Feuille autonome, compatible Safari iOS 12.
   Tailwind 4 reste dans le projet Laravel, mais ses couleurs oklch et ses
   @layer ne s'appliquent pas sur iOS 12. Cette feuille sert donc le portail
   et l'administration. */

html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background: #f3f5f7;
    color: #1c2430;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.45;
}

a {
    color: #0b5cab;
}

.wrap {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.wrap-admin {
    max-width: 1100px;
}

.topbar {
    background: #12324d;
    color: #fff;
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 16px;
}

.brand {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 18px;
}

.nav {
    margin-top: 10px;
}

.nav a, .nav button.linkish {
    color: #d6e6f5;
    margin-right: 14px;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.card {
    background: #fff;
    border: 1px solid #d9e0e6;
    border-radius: 12px;
    padding: 20px 18px;
    margin-bottom: 16px;
}

h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 12px;
}

h2 {
    font-size: 20px;
    margin: 0 0 10px;
}

p, li {
    margin-top: 0;
}

.muted {
    color: #5c6b7a;
}

.steps, .privacy {
    padding-left: 20px;
    margin-bottom: 16px;
}

.qr {
    margin-top: 18px;
}

.qr-caption {
    margin: 18px 0 8px;
    text-align: center;
    color: #5c6b7a;
}

svg.qr-svg {
    display: block;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    background: #fff;
}

.steps li, .privacy li {
    margin-bottom: 8px;
}

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

input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="search"], select, textarea {
    width: 100%;
    font: inherit;
    font-size: 16px;
    padding: 12px;
    border: 1px solid #c5ced6;
    border-radius: 8px;
    background: #fff;
    color: inherit;
}

textarea {
    min-height: 90px;
}

.field {
    margin-bottom: 14px;
}

.btn {
    display: inline-block;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

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

.btn-danger {
    background: #9d2c2c;
    color: #fff;
}

.btn-ghost {
    background: #fff;
    color: #12324d;
    border-color: #c5ced6;
}

.btn-block {
    width: 100%;
}

.alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.alert-ok {
    background: #e7f6ee;
    color: #0f5132;
}

.alert-error {
    background: #fdecec;
    color: #842029;
}

.alert-warn {
    background: #fff6e5;
    color: #7a4b00;
}

.stats {
    margin: 0;
    padding: 0;
    list-style: none;
}

.stat {
    display: block;
    background: #fff;
    border: 1px solid #d9e0e6;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
}

.stat strong {
    display: block;
    font-size: 28px;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #d9e0e6;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e6ebf0;
    vertical-align: top;
}

th {
    background: #f7f9fb;
    font-size: 13px;
}

.mono {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 13px;
    word-break: break-all;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #e8edf2;
    color: #243140;
}

.badge-pending { background: #fff3cd; color: #7a5b00; }
.badge-approved { background: #dbeafe; color: #1e40af; }
.badge-rejected { background: #e5e7eb; color: #374151; }
.badge-registered { background: #dcfce7; color: #166534; }
.badge-failed { background: #fee2e2; color: #991b1b; }

.filters {
    margin-bottom: 16px;
}

.actions a, .actions button, .actions form {
    margin-right: 8px;
    margin-bottom: 8px;
}

.inline {
    display: inline;
}

.check {
    font-weight: 400;
}

.check input {
    width: auto;
    margin-right: 8px;
}

.pager {
    margin-top: 14px;
}

.pager a, .pager span {
    margin-right: 12px;
}

.pager-disabled {
    color: #8a97a3;
}

.definition {
    margin: 0;
}

.definition div {
    margin-bottom: 10px;
}

.definition dt {
    font-size: 13px;
    color: #5c6b7a;
}

.definition dd {
    margin: 0;
}

@media (min-width: 800px) {
    .stats {
        overflow: hidden;
    }

    .stat {
        float: left;
        width: 31%;
        margin-right: 2%;
    }
}
