/* ==========================================================================
   PakPay on Laravel: pieces the static demo did not need
   (bottom sheets, flash toasts, bell badge, pagination, form errors)
   ========================================================================== */

[hidden] { display: none !important; }

/* bell dot only when there is something new */
.nb-bell::after { display: none; }
.nb-bell.has-new::after { display: block; }

/* ---------- bottom sheet ---------- */
.pk-sheet-back {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    align-items: end;
    justify-items: center;
    background: rgba(14, 23, 51, .4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .3s ease;
}

.pk-sheet-back.open { opacity: 1; }

.pk-sheet {
    width: min(480px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    padding: 12px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    background: var(--off);
    box-shadow: 0 -20px 40px -20px rgba(14, 23, 51, .5);
    transform: translateY(40px);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.pk-sheet-back.open .pk-sheet { transform: none; }

.pk-sheet-handle { display: block; width: 44px; height: 5px; margin: 0 auto 14px; border-radius: 5px; background: #D7DAE3; }

.pk-sheet-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    border-radius: 50%;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(140deg, #FF8A4C, var(--orange) 50%, var(--red));
    box-shadow: 0 10px 20px -10px var(--red);
}

.pk-sheet h3 { font-family: var(--head); font-size: 19px; font-weight: 800; text-align: center; color: var(--ink); }
.pk-sheet > p { margin-top: 6px; font-size: 13px; text-align: center; color: var(--muted); }
.pk-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.pk-sheet ol { display: grid; gap: 8px; margin: 14px 0 0; padding-left: 20px; font-size: 13.5px; color: #2B3350; }
.btn-danger { color: #fff; background: linear-gradient(140deg, #FF8A4C, var(--red)); box-shadow: 0 14px 24px -14px var(--red); }

/* ---------- flash messages ---------- */
.pk-toasts {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 200;
    width: min(440px, calc(100% - 28px));
    display: grid;
    gap: 8px;
    transform: translateX(-50%);
}

.pk-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #EEF0F6;
    box-shadow: 0 16px 30px -16px rgba(14, 23, 51, .45);
    transition: opacity .5s ease, transform .5s ease;
}

.pk-toast.out { opacity: 0; transform: translateY(-10px); }
.pk-toast i { font-size: 18px; }
.pk-toast.success i { color: var(--green); }
.pk-toast.error i { color: var(--red); }
.pk-toast.warning i, .pk-toast.info i { color: var(--blue); }

/* ---------- Laravel pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }

.pagination .page-link,
.pagination span.page-link {
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    border-radius: 12px;
    font-weight: 700;
    color: #4A5068;
    background: #fff;
    border: 1px solid var(--line);
}

.pagination .active .page-link { color: #fff; border-color: transparent; background: var(--orange); }
.pagination .disabled .page-link { opacity: .45; }

/* ---------- form validation ---------- */
.invalid-feedback, .pk-error { display: block; margin-top: 4px; font-size: 12px; color: var(--red); }

/* ---------- Laravel form grids (dynamic forms) are not list rows ----------
   style.css styles `.row` as a list card; generated forms use `.row` + `col-*` as a plain grid. */
.row:has(> [class*="col-"]) {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.row:has(> [class*="col-"]) > [class*="col-"] { flex: 1 1 100%; min-width: 0; }
.row:has(> [class*="col-"]) > [class*="col-md-6"],
.row:has(> [class*="col-"]) > [class*="col-sm-6"],
.row:has(> [class*="col-"]) > [class*="col-lg-6"] { flex-basis: calc(50% - 6px); }
