.dash-graph {
    margin: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.dropdown {
    margin: 20px;
    width: 300px;
}

.button {
    margin: 10px;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.button:hover {
    background-color: #0056b3;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.input-field {
    width: 100%;
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-container {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.error-message {
    color: red;
    margin-top: 10px;
}

.dashboard-container {
    height: 100vh;
    background-color: #f8f9fa;
    width: 100%;
}

.sidebar-container {
    background-color: #343a40;
    padding: 0;
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar {
    padding: 20px;
    color: white;
}

.sidebar-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.sidebar-link {
    color: #fff !important;
    padding: 0;
    margin: 5px 0;
    border-radius: 5px;
    transition: all 0.3s;
}

/* .sidebar-link:hover {
    background-color: #495057;
} */

.sidebar-link.active {
    background-color: #007bff;
}

.content-container {
    padding: 30px;
    background-color: white;
}

.content-title {
    margin-bottom: 30px;
    color: #343a40;
}

.main-content {
    padding: 20px;
}

.summary-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.summary-box p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.logout-button {
    margin-top: 20px;
    width: 100%;
}

.graph-container {
    margin: 20px 0;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.refresh-button {
    margin-bottom: 10px;
    width: 100%;
    background-color: #28a745;  /* 緑色 */
}

.refresh-button:hover {
    background-color: #218838;
}

/* サイドバーのメニュー基本スタイル */
.menu-item {
    margin-bottom: 0.5rem;
}

.parent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

/* ナビゲーションリンク共通スタイル */
.nav-link {
    color: white;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 階層ごとのスタイル */
.nav-link-level-1 {
    font-weight: bold;
    flex-grow: 1;
}

.nav-link-level-2 {
    font-size: 0.95rem;
}

.nav-link-level-3 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* サブメニューのスタイル */
.submenu {
    display: block;
}

.submenu.collapsed {
    display: none;
}

/* 第2階層のメニューアイテム */
.submenu .menu-item {
    margin-bottom: 0;
}

/* インデント設定 */
.submenu .parent-item {
    padding-left: 2rem;
}

.submenu .submenu .parent-item,
.nav-link-level-3 {
    padding-left: 3rem;
}

/* 展開ボタン */
.expand-button {
    cursor: pointer;
    transition: transform 0.3s;
    color: white;
    margin-left: 0.5rem;
}

.expand-button.rotated {
    transform: rotate(180deg);
}

/* セグメントヘッダースタイル */
.segment-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.segment-header:hover {
    background-color: #f0f0f0;
}

.segment-header .redash-segment-title {
    cursor: pointer;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.segment-header .expand-button {
    font-size: 0.8rem;
    color: #666;
    transition: transform 0.3s ease;
    margin-right: 1rem;
}

/* セグメントコンテンツ */
.segment-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    max-height: 1000px;
}

.segment-content.collapsed {
    max-height: 0;
    transition: max-height 0.3s ease-in;
}

/* 第2階層以降の展開ボタン */
.submenu .expand-button {
    font-size: 0.8em;
}

.control-panel {
    background-color: #f8f9fa;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.control-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.control-dropdown {
    min-width: 120px;
}

.control-button {
    font-size: 0.9rem;
    padding: 0.375rem 1rem;
}

.summary-box {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2196f3;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

/* 週次カテゴリ注文数ダッシュボード用スタイル */
.tables-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.year-table-container {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
}

.year-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    color: #333;
    font-size: 1.5rem;
}

/* Redashスタイル - コンテナ */
.redash-dashboard-container {
    min-height: 100vh;
    background-color: #f9f9f9;
}

.redash-sidebar-container {
    padding: 0;
    min-height: 100vh;
    background-color: #ffffff;
    box-shadow: 1px 0 3px rgba(0,0,0,0.05);
}

.redash-content-container {
    padding: 20px 30px;
    background-color: #f9f9f9;
}

/* Redashスタイル - ヘッダー */
.redash-navbar {
    padding: 0 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.redash-navbar .navbar-brand {
    font-weight: 600;
    font-size: 18px;
    color: white;
}

/* Redashスタイル - サイドバー */
.redash-sidebar {
    padding: 20px;
    background-color: #ffffff;
    color: #333;
    height: 100%;
    border-right: 1px solid #e0e0e0;
}

.redash-sidebar-title {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-left: 10px;
}

.redash-menu-item {
    margin-bottom: 5px;
}

.redash-nav-link {
    display: block;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.redash-nav-link:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.redash-nav-link.active {
    background-color: #edf2f7;
    color: #3d4852;
}

/* Redashスタイル - カード */
.redash-card {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background-color: #ffffff;
    margin-bottom: 20px;
    border: none;
}

.redash-card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
}

.redash-card-body {
    padding: 20px;
}

/* Redashスタイル - 折りたたみ可能なセグメント */
.redash-segment {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    margin-bottom: 1rem;
}

.redash-segment-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapsible-segment .segment-header {
    cursor: pointer;
    user-select: none;
}

.collapsible-segment .segment-header:hover {
    background-color: #f8f8f8;
}

.collapsible-segment .expand-button {
    font-size: 0.8rem;
    color: #666;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.collapsible-segment .expand-button.rotated {
    transform: rotate(-90deg);
}

.collapsible-segment .segment-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* モダンダッシュボードスタイル */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #f9fafb;
}

.redash-dashboard-container {
    background-color: #f9fafb;
    min-height: 100vh;
}

.redash-content-container {
    padding: 24px 32px;
    background-color: #f9fafb;
}

/* カード改善 */
.dash-graph, .redash-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
}

.dash-graph:hover, .redash-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* ボタン改善 */
.btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

/* ドロップダウン改善 */
.Select-control {
    border-radius: 8px !important;
    border-color: #e5e7eb !important;
    min-height: 40px !important;
}

.Select-control:hover {
    border-color: #d1d5db !important;
}

.Select-focused:not(.Select--multi) > .Select-control {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* タイトル改善 */
.content-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

/* テーブル改善 */
.dash-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dash-table .dash-header {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.dash-table .dash-cell {
    border-color: #e5e7eb;
}

/* ローディング状態 */
._dash-loading {
    position: relative;
}

._dash-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ナビゲーションバー改善 */
.redash-navbar {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* レスポンシブグリッド */
@media (max-width: 1024px) {
    .redash-content-container {
        padding: 16px;
    }
}

/* フォーカススタイル */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* ダッシュボードレイアウト */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar-fixed {
    flex: 0 0 260px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.content-flexible {
    flex: 1;
    padding: 24px 32px;
    background-color: #f9fafb;
    min-width: 0;
    overflow-x: auto;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .content-flexible {
        padding: 16px 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .sidebar-fixed {
        position: relative;
        height: auto;
        flex: none;
    }
} 