:root {
    --primary-color: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --secondary-color: #10b981;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.main-header {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
}

.header-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.header-desc {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
}

/* Dashboard */
.dashboard {
    padding-bottom: 4rem;
}

.category-section {
    margin-bottom: 3rem;
}

.category-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
    color: var(--text-primary);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--card-shadow);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-light);
}

.card-icon {
    font-size: 2rem;
    background: #eff6ff;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Content Pages */
.page-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.back-link {
    text-decoration: none;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-color);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.content-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.content-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
}

.content-body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.content-body h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.content-body p {
    margin-bottom: 1rem;
}

.content-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--text-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.highlight-box {
    background-color: #eff6ff;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.5rem 0;
}

/* Q&A Box */
.qa-box {
    background-color: #f0fdf4;
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.5rem 0;
}

.qa-box h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.qa-box dl {
    margin: 0;
}

.qa-box dt {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.qa-box dt:first-child {
    margin-top: 0;
}

.qa-box dd {
    margin-left: 0;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Note Text */
.note-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.unit-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.reference-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.reference-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: 1.5rem;
    }
}

/* Data Modal Styles */
.data-load-btn {
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color, #f59e0b);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.data-load-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.data-modal {
    background: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color, #f8fafc);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.meta-info {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.full-width {
    width: 100%;
}

.external-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.external-link:hover {
    text-decoration: underline;
}

.download-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.download-link:hover {
    opacity: 0.9;
}

/* Manual Section Styles */
.manual-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.manual-section h2 {
    color: var(--primary-dark);
    font-size: 1.6rem;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    margin-left: 1rem;
    font-size: 0.95rem;
}

.card-manual {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-left: 4px solid var(--primary-color);
}

.card-manual:hover {
    border-left-color: var(--primary-dark);
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.card-manual .card-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Enhanced Table Styles for Manual Pages */
.content-body .data-table {
    font-size: 0.9rem;
}

.content-body .data-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-primary);
    font-weight: 600;
}

.content-body .data-table td strong {
    color: var(--primary-dark);
}

.content-body .data-table tr:hover td {
    background-color: #f8fafc;
}

/* Unit Large Style */
.content-body .unit-large {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* List Styles for Manual */
.content-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-body ol li {
    margin-bottom: 0.75rem;
}

.content-body h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

/* Featured Card */
.card-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.card-featured .card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2.5rem;
    width: 4rem;
    height: 4rem;
}

.card-featured .card-content h3 {
    color: white;
    font-size: 1.3rem;
}

.card-featured .card-content p {
    color: rgba(255, 255, 255, 0.9);
}

.card-featured .card-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.card-featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
    border-color: transparent;
}

/* Manual Page Styles */
.manual-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.manual-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.manual-hero p {
    opacity: 0.9;
    font-size: 1rem;
}

.version-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.manual-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 2rem;
}

.manual-nav {
    position: sticky;
    top: 1rem;
    width: 240px;
    flex-shrink: 0;
    height: fit-content;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--card-shadow);
}

.manual-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.manual-nav li {
    margin-bottom: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-item:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.nav-icon {
    font-size: 1.2rem;
}

.manual-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 4rem;
}

.manual-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.manual-section.highlight-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-icon {
    font-size: 2.5rem;
    background: #eff6ff;
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.section-header .section-desc {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.subsection {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.subsection:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.subsection h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Obligation Grid */
.obligation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.obligation-card {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.obligation-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.obligation-card .deadline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem;
}

.obligation-card .penalty {
    font-size: 0.8rem;
    color: #dc2626;
    margin: 0;
    font-weight: 500;
}

/* Issues Card */
.issues-card {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    padding: 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 1rem;
}

.issues-card h4 {
    margin: 0 0 0.75rem;
    color: #dc2626;
    font-size: 1rem;
}

.issues-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.issues-card li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Table Enhancements */
.unit-highlight {
    font-weight: 700;
    color: var(--primary-color);
}

.good-example {
    color: #16a34a;
}

.bad-example {
    color: #dc2626;
}

/* Responsive for Manual Cards */
/* ===== Guide Page Styles ===== */
.guide-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
}

.guide-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.guide-hero p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.view-toggle {
    margin-top: 1rem;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

/* Tabs */
.guide-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: white;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--card-shadow);
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--tab-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-icon {
    font-size: 1.2rem;
}

/* Obligations Banner */
.obligations-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #f59e0b;
}

.obligations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.obligations-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #92400e;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #92400e;
    padding: 0 0.5rem;
}

.obligations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.obligation-item {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.obligation-name {
    font-weight: 600;
    color: var(--text-primary);
}

.obligation-deadline {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.obligation-penalty {
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 500;
}

/* Content Header */
.content-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--cat-color);
}

.cat-icon {
    font-size: 2.5rem;
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.content-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.item-count {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.25rem;
}

/* 1件のみの場合 - 横長に */
.items-grid.single {
    grid-template-columns: 1fr;
}

.items-grid.single .item-card {
    max-width: 100%;
}

/* 2件の場合 - 均等2列 */
.items-grid.double {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .items-grid.double {
        grid-template-columns: 1fr;
    }
}

.item-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--item-color);
    transition: all 0.2s;
}

.item-card:hover {
    box-shadow: var(--card-hover-shadow);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.item-title-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-title-area h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.manual-icon {
    font-size: 1.5rem;
}

.item-card-open {
    background: white;
}

.new-badge {
    background: #dc2626;
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.item-summary {
    background: var(--item-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.item-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.item-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.toggle-details {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.toggle-details:hover {
    background: #f8fafc;
    color: var(--text-primary);
}

.detail-link {
    background: var(--item-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.detail-link:hover {
    opacity: 0.9;
    transform: translateX(2px);
}

.item-details {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.item-details.show {
    display: block;
}

.detail-block {
    margin-bottom: 1rem;
}

.detail-block h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.detail-block p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail-block ul {
    margin: 0;
    padding-left: 1.25rem;
}

.detail-block li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.detail-block.warning {
    background: #fef2f2;
    padding: 1rem;
    border-radius: var(--radius-md);
    border-left: 3px solid #dc2626;
}

.detail-block.warning h4 {
    color: #dc2626;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.detail-table th,
.detail-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.detail-table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Manual Block */
.manual-block {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--card-shadow);
}

.manual-block-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.block-icon {
    font-size: 2rem;
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.manual-block-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.manual-block-header p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.manual-section {
    margin-bottom: 1.5rem;
}

.manual-section h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin: 0 0 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary-color);
}

.issue-block {
    background: #fef2f2;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    border-left: 3px solid #dc2626;
}

.issue-block h5 {
    margin: 0 0 0.5rem;
    color: #dc2626;
    font-size: 0.9rem;
}

.issue-block ul {
    margin: 0;
    padding-left: 1.25rem;
}

.issue-block li {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.penalty {
    color: #dc2626 !important;
    font-weight: 500;
}

.period {
    font-weight: 600;
    color: var(--primary-color) !important;
}

/* Guide Featured Card */
.card-guide {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.card-guide:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .card-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .manual-section h2 {
        font-size: 1.4rem;
    }

    .manual-container {
        flex-direction: column;
    }

    .manual-nav {
        position: static;
        width: 100%;
        overflow-x: auto;
    }

    .manual-nav ul {
        display: flex;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .manual-nav li {
        margin-bottom: 0;
    }

    .nav-item {
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
    }

    .nav-text {
        display: none;
    }

    .nav-icon {
        font-size: 1.5rem;
    }

    .manual-section {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .obligation-grid {
        grid-template-columns: 1fr;
    }

    .card-featured {
        grid-column: auto;
    }

    .guide-tabs {
        padding: 0.75rem 0;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
    }

    .tab-name {
        display: none;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .item-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .item-actions {
        flex-direction: column;
    }

    .obligations-grid {
        grid-template-columns: 1fr;
    }

    .manual-block-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}