
html, body {
    margin: 0;
    padding: 0;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background: #f5f6f8;
    color: #222;
    min-width: 1200px;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

input, button, select, textarea {
    font: inherit;
}

.admin-login-page {
    background: #f5f6f8;
}

.admin-login-container {
    width: 480px;
    margin: 100px auto 0;
}

.admin-login-card {
    background: #fff;
    border: 1px solid #dcdfe4;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.admin-login-logo {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.admin-login-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 28px;
}

.admin-login-subtitle {
    margin: 0 0 24px;
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.admin-login-footer {
    margin-top: 20px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #c9ced6;
    border-radius: 6px;
    background: #fff;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-actions {
    margin-top: 24px;
}

.form-error-box {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #e0b4b4;
    background: #fff4f4;
    border-radius: 6px;
    color: #b42318;
}

.form-error-box ul {
    margin: 0;
    padding-left: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-secondary {
    background: #6b7280;
    color: #fff;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-width: 72px;
    padding: 0 12px;
    font-size: 13px;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    font-weight: bold;
}

.btn-logout {
    background: #4b5563;
    color: #fff;
}

.admin-body {
    background: #f5f6f8;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #1f2937;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 24px 20px;
}

.admin-sidebar__logo {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 28px;
}

.admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-sidebar__link {
    display: block;
    padding: 12px 14px;
    border-radius: 6px;
    background: transparent;
    color: #fff;
}

.admin-sidebar__link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar__bottom {
    margin-top: auto;
}

.admin-sidebar__user {
    margin-bottom: 12px;
    font-size: 14px;
    color: #d1d5db;
    word-break: break-all;
}

.admin-main {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 28px;
}

.admin-page-header {
    margin-bottom: 24px;
}

.admin-page-header h1 {
    margin: 0;
    font-size: 28px;
}

.admin-card {
    background: #fff;
    border: 1px solid #dcdfe4;
    border-radius: 10px;
    padding: 24px;
}

.admin-login-links {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

.admin-login-links a {
    color: #2563eb;
    text-decoration: underline;
}

.form-success-box {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #b7dfb9;
    background: #f1fbf1;
    border-radius: 6px;
    color: #1f6b24;
}

.mt-24 {
    margin-top: 24px;
}

.kit-search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kit-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 18px 20px;
}

.kit-date-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(360px, 1fr));
    gap: 18px 24px;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range input[type="date"] {
    width: 170px;
}

.search-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.list-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.admin-table th,
.admin-table td {
    border: 1px solid #d7dce3;
    padding: 10px 12px;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 14px;
}

.admin-table th {
    background: #f3f6fa;
    font-weight: bold;
    text-align: left;
}

.kit-list-table td.text-right {
    text-align: right;
}

.kit-list-table td.text-center {
    text-align: center;
}

.empty-cell {
    text-align: center;
    color: #666;
    padding: 30px 12px !important;
}

.sort-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sort-head__label {
    display: inline-block;
}

.sort-head__arrows {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    gap: 2px;
}

.sort-arrow {
    color: #6b7280;
    font-size: 10px;
    text-decoration: none;
}

.sort-arrow.is-active {
    color: #2563eb;
    font-weight: bold;
}

.pagination {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.page-link {
    display: inline-block;
    min-width: 38px;
    padding: 8px 10px;
    text-align: center;
    border: 1px solid #cdd5df;
    border-radius: 6px;
    background: #fff;
    color: #222;
    text-decoration: none;
}

.page-link.is-current {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.section-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: bold;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.inline-form {
    margin: 0;
}

.detail-page-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.detail-table th,
.detail-table td {
    border: 1px solid #d7dce3;
    padding: 12px 14px;
    vertical-align: middle;
    font-size: 14px;
}

.detail-table th {
    width: 180px;
    background: #f3f6fa;
    text-align: left;
    font-weight: bold;
}

.detail-result-table th,
.detail-result-table td {
    vertical-align: middle;
}

.table-input {
    width: 100%;
    min-width: 180px;
    height: 38px;
    padding: 8px 10px;
    border: 1px solid #c9ced6;
    border-radius: 6px;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}

.empty-block {
    padding: 24px 0;
    color: #666;
}

