* {
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
}
  
html,
body {
    -webkit-text-size-adjust: 100%;
    width:100%;
    height: 100vh;
    padding:0;
    margin:0;
    color: #000000;
    background-color: #e8f4f7;
    font-family: "Kanit", sans-serif;
}

img {
    width: 100%;
    height: auto;
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

@media screen and ( min-width: 300px ) {
    .page-container {
        display: block;
        width: 100%;
        padding: 0px;
        margin: 0px auto;
        text-align: center;
        position: relative;
        min-height: 100vh;
        border: 1px solid #000000;
    }

    .page-header,
    .page-footer {
        display: block;
        width: 100%;
        padding: 0px;
        margin: 0px auto;
    }

    .fix-image-header {
        display: block;
        width: 100%;
        height: 200px;
        object-fit: cover;      /* ❗ จุดสำคัญ */
        object-position: center;
    }

    .fix-image-footer {
        display: block;
        width: 100%;
        height: 90px;
        object-fit: cover;      /* ❗ จุดสำคัญ */
        object-position: center;
    }

    .page-logo {
        display: block;
        width: 30%;
        margin: 0px auto;
    }

    .page-content {
        display: block;
        text-align: left;
        max-width: 550px;
        padding: 20px 0px;
        padding-right: 0px;
        min-height: 65vh;
        margin: 0px auto;
    }

    .login-panel {
        display: block;
        width: 100%;
        text-align: center;
        margin: 20px auto;
    }

    .input-row,
    .input-row-90 {
        display: block;
        width: 70%;
        margin: 20px auto;
    }

    .input-row-100 {
        display: block;
        width: 100%;
        margin: 20px auto;
    }

    .input-row-90 {
        width: 90%;
    }

    .row-txt,
    .row-txt-100 {
        display: inline-block;
        width: 30%;
        text-align: left;
    }

    .row-txt-100 {
        width: 100%;
        margin: 5px auto;
    }

    .row-input {
        display: inline-block;
        width: 68%;
        text-align: left;
    }

    input[type='text'],
    input[type='password'] {
        display: block;
        width: 100%;
        padding: 5px;
        font-family: "Kanit", sans-serif;
    }

    .code-page {
        border: 1px solid #000000;
        border-radius: 10px;
        text-align: center;
        font-size: 14px;
    }

    .normal-btn,
    .normal-btn-02,
    .half-btn {
        display: block;
        min-width: 100px;
        max-width: 400px;
        padding: 5px 10px;
        margin: 20px auto;
        color: #000000;
        text-decoration: none;
    }

    .normal-btn-02 {
        max-width: 300px;
    }

    .half-btn {
        display: inline-block;
        margin: 20px 20px;
        width: 30%;
    }

    .add-btn {
        display: block;
        text-decoration: none;
        background-color: #ffffff;
        border: 1px solid #000000;
        border-radius: 10px;
        width: 100px;
        color: #000000;
    }

    .remove-btn {
        display: block;
        width: 100%;
        margin: 0px auto;
        padding: 0px 5px;
        background-color: #fab066;
        color: #000000;
        border-radius: 100px;
        text-decoration: none;
        text-align: center;
        border: 1px solid #000000;
    }

    .code-btn {
        display: inline-block;
        vertical-align: middle;
        width: 30%;
        margin: 20px 30px;
    }

    .red {
        color: #ff0000;
    }

    .column-left {
        display: inline-block;
        width: 5%;
        text-align: center;
        margin-right: 5px;
        vertical-align: top;
    }

    .column-center {
        display: inline-block;
        width: 85%;
        vertical-align: middle;
    }

    .column-right {
        display: inline-block;
        width: 5%;
        vertical-align: middle;
    }

    .row-no {
        display: block;
        width: 100%;
        text-align: center;
    }

    .row-code {
        display: block;
        width: 100%;
        text-align: center;
        margin-right: 0px;
        margin-bottom: 10px;
    }

    .row-name,
    .row-sname {
        display: inline-block;
        width: 48%;
        text-align: center;
        margin-right: 5px;
    }

    .row-action {
        display: block;
        width: 100%;
        text-align: center;
    }

    .circle-btn {
        display: inline-block;
        width: 40px;
        margin: 0px auto;
        padding: 5px 10px;
        background-color: #ffffff;
        color: #000000;
        border-radius: 100px;
        text-decoration: none;
        vertical-align: middle;
        border: 1px solid #000000;
    }

    .plan-panel {
        position: relative;
        justify-content: center;
        width: 100%;
        height: 550px;
        padding-top: 47%;
    }

    .plan-bg {
        position: absolute;
        inset: 0;               
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .zone-panel {
        position: relative;          
        width: 70%;
        display: flex;
        justify-content: space-between;
        z-index: 2;
        margin: 0px auto;
    }

    .plan-footer {
        position: relative;
        width: 50%;
        margin: 0 auto;
        z-index: 2;
    }

    .column-25 {
        flex: 1;
        height: 150px;
        padding: 0px;
        margin: 10px 5px;
        box-sizing: border-box;
        overflow: hidden; 
    }

    .column-25 img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
    }

    .seat-row {
        display: flex;
        width: 100%;
        margin: 5px auto;
        text-align: center;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0px;
    }

    .zone-a1 {
        justify-content: flex-end;
    }

    .zone-a4 {
        justify-content: flex-start;
    }

    .seating {
        border: 1px solid #000000;
        text-align: center;
        margin: 0px auto;
        font-size: clamp(3px, 1vw, 9px);
        padding: 5px;
        width: calc((100% - 2*20px)/18);
        flex-shrink: 0; 
        margin: 0px 0px;
        margin-right: 1px;
    }

    .seating-02 {
        border: 1px solid #000000;
        text-align: center;
        margin: 0px auto;
        font-size: clamp(3px, 1vw, 7px);
        padding: 5px;
        width: calc((100% - 2*15px)/24);
        flex-shrink: 0; 
        margin: 0px 0px;
        margin-right: 1px;
    }

    .column-10 {
        display: inline-block;
        width: 10%;
        text-align: center;
        border: 1px solid #000000;
        margin: 5px;
    }

    .bg-green {
        background-color: green;
    }

    .booked {
        background-color: #acadad;
    }

    .checkined {
        background-color: #0000ff;
    }

    .stage-row {
        display: block;
        position: relative;
        width: 100%;
        min-height: 80px;
        margin: 10px auto;
        padding: 20px 0px;
    }

    .stage-01,
    .stage-02,
    .stage-04 {
        display: block;
        position: absolute;
        text-align: center;
        background-color: grey;
        margin: 10px auto;
        padding: 20px 0px;
    }

    .stage-02 {
        width: 100%;
        top: 0px;
        left: 0px;
    }

    .stage-01 {
        width: 30%;
        top: 0px;
        right: 0px;
    }

    .stage-04 {
        width: 30%;
        top: 0px;
        left: 0px;
    }

    .pdpa {
        display: block;
        width: 100%;
        margin: 10px auto;
        font-size: smaller;
    }

    .info-row {
        display: flex;
        width: 90%;
        margin: 10px auto;
        text-align: center;
        flex-wrap: nowrap;
        align-items: center;
    }

    .detail-row {
        display: flex;
        width: 90%;
        margin: 10px auto;
        text-align: center;
        flex-wrap: nowrap;
        align-items: center;
        border-bottom: 1px solid #acadad;
    }

    .column-30 {
        flex: 1;
        width: calc((100% - 2*15px)/24);
        margin: 10px 20px;
        padding: 10px 20px;
        box-sizing: border-box;
        overflow: hidden; 
        border: 1px solid #000;
        background-color: #ffffff;
        font-weight: bold;
        border-radius: 50px;
    }

    .column-30-02 {
        flex: 1;
        width: calc((100% - 2*15px)/24);
        margin: 10px 20px;
        padding: 10px 20px;
        box-sizing: border-box;
        overflow: hidden; 
        font-weight: bold;
    }

    .ticket-pass {
        display: block;
        width: 80%;
        margin: 20px auto;
        padding: 20px;
        background-color: #ffffff;
        border-radius: 30px;
    }

    .qr-panel {
        display: block;
        width: 70%;
        margin: 0px auto;
    }

    .ticket-info {
        display: block;
        width: 80%;
        margin: 10px auto;
    }

    .password-wrapper {
    position: relative;
    }

    .password-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    }

    .password-wrapper i:hover {
    color: #000;
    }
}

@media screen and ( min-width: 100px ) {
    .plan-panel {
        margin-bottom: 150px;
    }
}