* {margin: 0px; padding: 0px;}
a{ text-decoration: none; }
li{ list-style: none; }

.wrapBox{width: 100%; max-width: 1000px; margin: 0px auto;}

/* ===== Staff Form Styles ===== */
.staff-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.form-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.form-section h4 {
    font-size: 15px;
    font-weight: bold;
    color: #184566;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #184566;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-row.full {
    grid-column: 1 / -1;
}

.form-row label {
    font-size: 12px;
    color: #555;
    font-weight: 600;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row select {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
}

.form-row input[type="file"] {
    font-size: 13px;
}

/* ===== Tab Navigation ===== */
.tab-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    border-bottom: 2px solid #184566;
}

.tab-nav button {
    padding: 8px 20px;
    border: 1px solid #ccc;
    border-bottom: none;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px 4px 0 0;
    color: #666;
}

.tab-nav button.active {
    background: #184566;
    color: #fff;
    border-color: #184566;
    font-weight: bold;
}

/* ===== Tab Content ===== */
.tab-content {
    display: none;
    border: 1px solid #e0e0e0;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 6px 6px;
    background: #fff;
    margin-bottom: 20px;
}

.tab-content.active {
    display: block;
}

/* ===== Add Section (동적 항목) ===== */
.add-section {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 14px 16px;
}

.add-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.add-section-header span {
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

.add-btn {
    padding: 3px 12px;
    background: #184566;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.add-btn:hover {
    background: #0d2f4a;
}

.items-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.input-row input[type="text"] {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px 8px;
    font-size: 13px;
}

.remove-btn {
    padding: 3px 10px;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.remove-btn:hover {
    background: #a93226;
}

/* ===== Action Bar ===== */
.action-bar {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}

.btn-primary {
    padding: 8px 24px;
    background: #184566;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0d2f4a;
}

.btn-secondary {
    padding: 8px 20px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #545b62;
    color: #fff;
}

.btn-clone-link {
    padding: 8px 20px;
    background: #5a6f83;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-clone-link:hover {
    background: #3e5264;
    color: #fff;
}

/* ===== 직원정보 등록/수정 폼 ===== */
.staff-form { max-width:900px; }
.form-section { background:#fff; border:1px solid #ddd; border-radius:6px; padding:20px 24px; margin-bottom:16px; }
.form-section h4 { margin:0 0 16px 0; font-size:14px; color:#184566; border-bottom:2px solid #184566; padding-bottom:8px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 24px; }
.form-row { display:flex; flex-direction:column; gap:4px; }
.form-row.full { grid-column:1/-1; }
.form-row label { font-size:12px; color:#555; font-weight:600; }
.form-row input[type=text],
.form-row input[type=email],
.form-row select { width:100%; padding:7px 10px; border:1px solid #ccc; border-radius:4px; font-size:13px; box-sizing:border-box; }
.form-row input[type=file] { padding:4px 0; font-size:13px; }
.add-section { margin-top:10px; }
.add-section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.add-section-header span { font-size:13px; font-weight:600; color:#333; }
.add-btn { padding:2px 12px; background:#184566; color:#fff; border:none; border-radius:3px; cursor:pointer; font-size:13px; }
.add-btn:hover { background:#0d2f4a; }
.input-row { display:flex; align-items:center; gap:6px; margin-bottom:5px; }
.input-row input[type=text] { flex:1; padding:6px 10px; border:1px solid #ccc; border-radius:4px; font-size:13px; }
.remove-btn { padding:2px 8px; background:#c0392b; color:#fff; border:none; border-radius:3px; cursor:pointer; font-size:12px; flex-shrink:0; }
.remove-btn:hover { background:#a93226; }
.tab-nav { display:flex; border-bottom:2px solid #184566; margin-bottom:0; }
.tab-nav button { padding:8px 20px; border:none; background:#f0f0f0; cursor:pointer; font-size:13px; border-radius:4px 4px 0 0; margin-right:4px; }
.tab-nav button.active { background:#184566; color:#fff; }
.tab-content { display:none; border:1px solid #ddd; border-top:none; padding:16px; border-radius:0 0 6px 6px; background:#fff; }
.tab-content.active { display:block; }
.action-bar { display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
.btn-primary { padding:10px 24px; background:#184566; color:#fff; border:none; border-radius:4px; cursor:pointer; font-size:14px; }
.btn-primary:hover { background:#0d2f4a; }
.btn-secondary { padding:10px 24px; background:#6c757d; color:#fff; border:none; border-radius:4px; cursor:pointer; font-size:14px; text-decoration:none; display:inline-flex; align-items:center; }
.btn-clone-link { padding:10px 24px; background:#5a6f83; color:#fff; border:none; border-radius:4px; cursor:pointer; font-size:14px; text-decoration:none; display:inline-flex; align-items:center; }
.btn-del-link { padding:10px 24px; background:#c0392b; color:#fff; border:none; border-radius:4px; cursor:pointer; font-size:14px; text-decoration:none; display:inline-flex; align-items:center; }
.form-row .img-preview { margin-top:6px; }
.form-row .img-preview img { max-height:120px; border:1px solid #ddd; border-radius:4px; }