*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f6f8fb;
    color:#111827;
}

.app{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:260px;
    background:#fff;
    border-right:1px solid #e5e7eb;
    padding:24px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.logo{
    font-size:22px;
    font-weight:700;
    margin-bottom:40px;
}

.nav a{
    display:block;
    padding:14px 16px;
    color:#111827;
    text-decoration:none;
    border-radius:10px;
    margin-bottom:8px;
}

.nav a.active,
.nav a:hover{
    background:#eef4fb;
}

.main{
    flex:1;
}

.topbar{
    height:72px;
    background:#fff;
    border-bottom:1px solid #e5e7eb;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    padding:0 32px;
    color:#374151;
}

.content{
    padding:40px;
}

.page-title h1{
    margin:0;
    font-size:36px;
}

.page-title p{
    margin-top:8px;
    color:#6b7280;
}

.cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin:30px 0;
}

.card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:28px;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
}

.card-title{
    color:#374151;
    font-size:15px;
    margin-bottom:10px;
}

.card-number{
    font-size:36px;
    font-weight:700;
}

.card-note{
    color:#6b7280;
    font-size:14px;
    margin-top:8px;
}

.panel{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
    overflow:hidden;
}

.panel h2{
    margin:0;
    padding:24px 28px;
    border-bottom:1px solid #e5e7eb;
}

table{
    width:100%;
    border-collapse:collapse;
}

th{
    color:#4b5563;
    font-weight:600;
    text-align:left;
    background:#fafafa;
}

th,td{
    padding:16px 28px;
    border-bottom:1px solid #e5e7eb;
}

.btn,
.btn-small,
button{
    display:inline-block;
    background:#fff;
    color:#111827;
    border:1px solid #d1d5db;
    padding:9px 14px;
    border-radius:9px;
    text-decoration:none;
    cursor:pointer;
}

.btn:hover,
.btn-small:hover,
button:hover{
    background:#f9fafb;
}

.status{
    display:inline-block;
    padding:6px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:600;
}

.status-new{
    background:#eaf2ff;
    color:#1f4f8f;
}

.status-waiting{
    background:#fff3d6;
    color:#9a6200;
}

.status-info{
    background:#e8f4ff;
    color:#075985;
}

.status-success{
    background:#e8f7ee;
    color:#166534;
}

.status-danger{
    background:#fde8e8;
    color:#991b1b;
}

.footer{
    margin-top:40px;
    color:#9ca3af;
    font-size:14px;
}
.form-grid{
    padding:28px;
    max-width:720px;
}

.form-group{
    margin-bottom:22px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#374151;
}

select,
textarea,
input[type="text"],
input[type="email"],
input[type="date"]{
    width:100%;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:12px 14px;
    font-size:15px;
    background:#fff;
    color:#111827;
}

select:focus,
textarea:focus,
input:focus{
    outline:none;
    border-color:#94a3b8;
    box-shadow:0 0 0 3px rgba(148,163,184,.18);
}

textarea{
    resize:vertical;
    min-height:120px;
}

.form-actions{
    display:flex;
    gap:12px;
    align-items:center;
    margin-top:10px;
}
.timeline{
    padding:25px;
}

.timeline-item{
    position:relative;
    padding:18px 20px;
    margin-bottom:15px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#fafafa;
}

.timeline-date{
    font-size:13px;
    color:#6b7280;
    margin-bottom:8px;
}

.timeline-status{
    font-size:16px;
    margin-bottom:8px;
}

.timeline-note{
    color:#374151;
    line-height:1.6;
}
.public-page{
    min-height:100vh;
    background:#f6f8fb;
    padding:50px 20px;
}

.public-card{
    max-width:860px;
    margin:0 auto;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    box-shadow:0 12px 35px rgba(15,23,42,.08);
    overflow:hidden;
}

.public-header{
    padding:36px 42px;
    border-bottom:1px solid #e5e7eb;
}

.public-header h1{
    margin:0;
    font-size:34px;
}

.public-header p{
    color:#6b7280;
    line-height:1.6;
}

.merchant-box{
    margin:30px 42px 0;
    padding:20px;
    background:#fafafa;
    border:1px solid #e5e7eb;
    border-radius:14px;
    line-height:1.7;
}

.public-form{
    padding:34px 42px 42px;
}

.public-form h2{
    margin-top:28px;
    margin-bottom:18px;
}

.checkbox-box{
    padding:18px;
    background:#fafafa;
    border:1px solid #e5e7eb;
    border-radius:12px;
    margin:24px 0;
    line-height:1.5;
}

.checkbox-box input{
    margin-right:8px;
}

.submit-btn{
    width:100%;
    padding:15px 18px;
    font-size:16px;
    font-weight:600;
}
.success-box{
    margin:34px 42px 0;
    padding:28px;
    background:#fafafa;
    border:1px solid #e5e7eb;
    border-radius:16px;
    text-align:center;
}

.success-label{
    color:#6b7280;
    font-size:14px;
    margin-bottom:8px;
}

.success-number{
    font-size:30px;
    font-weight:700;
    letter-spacing:.5px;
    margin-bottom:14px;
}

.public-info{
    padding:34px 42px 42px;
    line-height:1.7;
}

.public-info h2{
    margin-top:0;
}
.notice-success{
    background:#e8f7ee;
    color:#166534;
    border:1px solid #bbf7d0;
    padding:14px 18px;
    border-radius:12px;
    margin-bottom:20px;
}
.merchant-card{
    margin:30px 42px;
    padding:30px;
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#fafafa;
}

.merchant-title{
    font-size:28px;
    font-weight:700;
    margin-bottom:10px;
}

.merchant-company{
    font-size:18px;
    color:#4b5563;
    margin-bottom:25px;
}

.merchant-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-bottom:25px;
}

.merchant-address{
    border-top:1px solid #e5e7eb;
    padding-top:20px;
    line-height:1.7;
}
.legal-box{
    margin:0 42px 30px;
    padding:26px 30px;
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#fff;
    line-height:1.7;
}

.legal-box h2{
    margin-top:0;
    margin-bottom:12px;
    font-size:22px;
}

.legal-box p{
    color:#4b5563;
    margin-bottom:12px;
}
.logo-preview{
    margin-bottom:14px;
    padding:16px;
    border:1px solid #e5e7eb;
    border-radius:14px;
    background:#fafafa;
    display:inline-block;
}

.logo-preview img{
    max-width:220px;
    max-height:90px;
    display:block;
}
.public-logo{
    text-align:center;
    margin:20px 0 30px;
}

.public-logo img{
    max-width:280px;
    max-height:120px;
    width:auto;
    height:auto;
}
.login-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f6f8fb;
    padding:30px 20px;
}

.login-card{
    width:100%;
    max-width:420px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:34px;
    box-shadow:0 12px 35px rgba(15,23,42,.08);
}

.login-card .logo{
    margin-bottom:24px;
    text-align:center;
    font-size:24px;
}

.login-card h1{
    margin:0 0 24px;
    text-align:center;
    font-size:30px;
}

.login-card input[type="text"],
.login-card input[type="password"]{
    width:100%;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:12px 14px;
    font-size:15px;
    background:#fff;
}

.notice-error{
    background:#fde8e8;
    color:#991b1b;
    border:1px solid #fecaca;
    padding:14px 18px;
    border-radius:12px;
    margin-bottom:20px;
}
.thankyou-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:25px;
}

.thankyou-actions .btn-small{
    min-width:180px;
    text-align:center;
}
@media (max-width: 640px){

    .public-page{
        padding:20px 10px;
    }

    .public-card{
        border-radius:14px;
    }

    .public-header{
        padding:26px 22px;
        text-align:center;
    }

    .public-logo img{
        max-width:220px;
        max-height:90px;
    }

    .public-header h1{
        font-size:34px;
        line-height:1.15;
    }

    .public-header p{
        font-size:17px;
    }

    .merchant-card{
        margin:22px;
        padding:24px;
    }

    .merchant-title{
        font-size:30px;
        line-height:1.2;
    }

    .merchant-company{
        font-size:20px;
    }

    .merchant-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .merchant-grid div{
        word-break:break-word;
        overflow-wrap:anywhere;
    }

    .public-form{
        padding:28px 22px 32px;
    }

    .legal-box{
        margin:0 22px 24px;
        padding:22px;
    }

    .success-box{
        margin:28px 22px 0;
    }

    .public-info{
        padding:28px 22px 32px;
    }
}