/* =========================
   STYLE ANJUNGAN (UI layar)
   ========================= */

.hidden {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Judul utama */
.anjungan-title {
    font-weight: bold;
    text-transform: uppercase;
    background: #2c3e50;
    /* balok warna gelap */
    color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 6px;
    margin: 20px auto 30px auto;
    font-size: 40px;
    width: 80%;
}

/* Form input pasien: 2 kolom */
.form-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px auto;
    max-width: 90%;
}

.form-container .aturan,
.form-container .form-fields {
    flex: 1;
    /* masing-masing ambil porsi sama, 50:50 */
}

.form-fields {
    display: flex;
    flex-direction: column;
    /* susun vertikal */
    gap: 20px;
    /* jarak antar field */
}

.form-container .aturan {
    background: transparent;
    /* biarkan warna dasar */
    border: none;
    padding: 20px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 6px;
    text-align: left;
    color: #fff;
    /* sesuaikan dengan tema gelap */
}

.form-container .aturan h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    /* warna kontras untuk judul aturan */
}

.form-container .form-input {
    display: flex;
    /* aktifkan flexbox */
    flex-direction: column;
    /* susun vertikal */
    align-items: flex-start;
    /* rata kiri */
    background: transparent;
    border: none;
    padding: 20px;
    border-radius: 6px;
    text-align: left;
    /* teks rata kiri */
}

.form-container .form-input label {
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin-bottom: 12px;
    color: #fff;
}

.form-container .form-input input {
    font-size: 24px;
    padding: 12px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    border: 2px solid #2c3e50;
    border-radius: 6px;
    background: #f0f0f0;
    /* input tetap jelas */
}

/* Layout data pasien + poli */
.pasien-poli-layout {
    display: flex;
    gap: 2rem;
    margin: 20px auto;
    max-width: 90%;
}

#dataPasien {
    flex: 1;
    background: transparent;
    padding: 0.5rem;
    border: none;
    box-shadow: none;
}

#jadwalPoli {
    flex: 1.5;
    background: rgba(240, 240, 240, 0.1);
    padding: 1rem;
    border-radius: 6px;
}

/* Grid jadwal poli: 3 kolom */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-items: stretch;
    margin-bottom: 50px;
}

/* Card dokter/poli */
.card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    text-align: left;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    color: #fff;
    max-width: 220px;
    /* batasi lebar card */
}

.card img {
    max-width: 100%;
    /* biarkan menyesuaikan */
    max-height: 80px;
    /* lebih kecil, tidak bikin card melebar */
    object-fit: cover;
    /* proporsional */
    border-radius: 4px;
    background-color: transparent;
    /* biarkan warna dasar */
    padding: 2px;
}

.card:hover {
    transform: scale(1.03);
    background-color: rgba(255, 255, 255, 0.2);
}

.card h4 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.card p {
    margin: 4px 0;
    font-size: 14px;
    color: #ddd;
}

/* Tabel data pasien */
.pasien-table {
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
    width: 100%;
}

.pasien-table td {
    padding: 4px 6px;
    color: #fff;
    vertical-align: top;
}

.pasien-table .label {
    font-weight: bold;
    width: 160px;
}

.pasien-table .colon {
    width: 10px;
    text-align: center;
}

/* Tombol kembali */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 3px 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-back:active {
    transform: scale(0.95);
}

.kop-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo img {
    height: 80px;
}

.instansi h1 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.instansi p {
    margin: 0;
    font-size: 14px;
    color: #ddd;
}

.kuota-merah {
    color: red;
    font-weight: bold;
}

.ambil-antrian {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    color: #fff;
}

.btn-ambil {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    /* hijau */
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.btn-ambil:hover {
    background: #218838;
}

/* Kotak modern untuk nomor antrian */
.box-modern {
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nomor-box {
    font-size: 120px;
    font-weight: bold;
    color: #007bff;
    border: 3px solid #007bff;
    border-radius: 10px;
    padding: 20px 40px;
    margin: 20px auto;
    display: inline-block;
}

.action-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* =========================
   STYLE CETAK BUKTI (thermal)
   ========================= */
@page {
    margin: 0;
    size: 80mm auto;
}

.cetak-body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 74mm;
    /* margin sedikit agar tidak terpotong printer */
    margin: 4mm auto;
    font-size: 12px;
    line-height: 1.4;
    color: #000;
    background: #fff;
}

.cetak-header {
    text-align: center;
    margin-bottom: 12px;
}

.cetak-header h1 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

.cetak-header p {
    margin: 2px 0;
    font-size: 10px;
}

.cetak-divider {
    border-bottom: 1px dashed #000;
    margin: 8px 0;
}

.cetak-title {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin: 12px 0;
    padding: 6px;
    background: #000;
    color: #fff;
    border-radius: 4px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.cetak-content {
    margin: 8px 0;
}

.cetak-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.cetak-content td {
    vertical-align: top;
    padding: 3px 0;
    font-size: 12px;
}

.cetak-label {
    width: 30%;
}

.cetak-colon {
    width: 5%;
    text-align: center;
}

.cetak-val {
    width: 65%;
    font-weight: bold;
}

.cetak-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 11px;
    margin-bottom: 20px;
}

.nomor-antrian {
    font-size: 70px;
    font-weight: bold;
    margin: 10px 0;
    line-height: 1;
    text-align: center;
}

@media print {

    button,
    .header,
    .banner {
        display: none;
    }

    .cetak-body {
        background: #fff;
        color: #000;
    }

    .box {
        border: none;
    }

    .nomor-antrian {
        font-size: 70px;
        font-weight: bold;
    }

}