@import url("/assets/application-33e739e5.css");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Roboto:wght@500;700&display=swap');

:root {
    --md-primary: #1976d2;
    --md-primary-dark: #0f5ca8;
    --md-secondary: #43a047;
    --md-surface: #f4f6fb;
    --md-surface-alt: #ffffff;
    --md-border: rgba(20, 43, 63, 0.12);
    --md-divider: rgba(20, 43, 63, 0.16);
    --md-text: #26333b;
    --md-text-muted: #607687;
    --md-shadow-sm: 0 1px 3px rgba(15, 35, 52, 0.12);
    --md-shadow-md: 0 4px 16px rgba(15, 35, 52, 0.14);
}

/* Header Quick Search & Project Jump */
#quick-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-left: auto;
}

#quick-search form {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

#quick-search label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: normal;
    font-size: 0.8125rem;
    line-height: 1;
    color: var(--md-text-muted);
}

#quick-search label::after {
    display: none;
}

#quick-search label a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

#quick-search label a:hover,
#quick-search label a:focus {
    color: var(--md-primary);
}

#header #quick-search #q {
    min-width: 200px;
    padding: 6px 12px;
    border: 1px solid var(--md-border);
    border-radius: 10px;
    background: var(--md-surface-alt);
    color: var(--md-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#header #quick-search #q:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
    background: #fff;
}

#project-jump {
    position: relative;
}

#project-jump .drdn-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 38px 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--md-border);
    background: var(--md-surface-alt);
    color: var(--md-text);
    font-weight: normal;
    min-width: 185px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#project-jump .drdn-trigger::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--md-text-muted);
    border-bottom: 2px solid var(--md-text-muted);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
    pointer-events: none;
}

#project-jump.open .drdn-trigger::after,
#project-jump.expanded .drdn-trigger::after {
    transform: translateY(-20%) rotate(225deg);
}

#project-jump.open .drdn-trigger,
#project-jump.expanded .drdn-trigger {
    border-color: rgba(25, 118, 210, 0.5);
    background: rgba(25, 118, 210, 0.08);
}

#project-jump .drdn-trigger:hover {
    border-color: rgba(25, 118, 210, 0.4);
}

#project-jump .drdn-trigger:active {
    background: rgba(25, 118, 210, 0.1);
}

#project-jump .drdn-trigger:hover::after,
#project-jump .drdn-trigger:focus-visible::after,
#project-jump.open .drdn-trigger::after,
#project-jump.expanded .drdn-trigger::after {
    border-color: var(--md-primary);
}

#project-jump .drdn-content {
    position: absolute;
    z-index: 20;
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--md-border);
    background: var(--md-surface-alt);
    box-shadow: var(--md-shadow-md);
    width: 280px;
    left: auto;
    right: 0;
}

#project-jump .drdn-content::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 28px;
    width: 12px;
    height: 12px;
    background: var(--md-surface-alt);
    border-top: 1px solid var(--md-border);
    border-left: 1px solid var(--md-border);
    transform: rotate(45deg);
}

#project-jump .quick-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

#project-jump .quick-search svg {
    width: 18px;
    height: 18px;
    fill: var(--md-text-muted);
}

#project-jump .quick-search input {
    flex: 1;
    width: 100%;
}

#project-jump .drdn-items.selection {
    margin-top: 12px;
    border-top: 1px solid var(--md-divider);
    padding-top: 12px;
    max-height: 220px;
    overflow-y: auto;
}

#project-jump .drdn-items.selection a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--md-text);
    transition: background 0.2s ease, color 0.2s ease;
}

#project-jump .drdn-items.selection a:hover,
#project-jump .drdn-items.selection a:focus {
    background: rgba(25, 118, 210, 0.1);
    color: #0d47a1 !important;
}

#project-jump .drdn-items.selection a:active {
    background: rgba(25, 118, 210, 0.18);
}

body,
input,
textarea,
select,
button {
    font-family: "Noto Sans JP", "メイリオ", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Verdana", sans-serif;
}

tr.odd.priority-7,
table.list tbody tr.odd.priority-7:hover {
    color:
        #900;
    font-weight: bold;
}

tr.odd.priority-7 {
    background: #ffc4c4;
}

tr.even.priority-7,
table.list tbody tr.even.priority-7:hover {
    color:
        #900;
    font-weight: bold;
}

tr.even.priority-7 {
    background: #ffd4d4;
}

tr.priority-7 a,
tr.priority-7:hover a {
    color: #900;
}

tr.odd.priority-7 td,
tr.even.priority-7 td {
    border-color: #ffb4b4;
}

tr.odd.priority-6,
table.list tbody tr.odd.priority-6:hover {
    color: #900;
}

tr.odd.priority-6 {
    background: #ffc4c4;
}

tr.even.priority-6,
table.list tbody tr.even.priority-6:hover {
    color: #900;
}

tr.even.priority-6 {
    background: #ffd4d4;
}

tr.priority-6 a {
    color: #900;
}

tr.odd.priority-6 td,
tr.even.priority-6 td {
    border-color: #ffb4b4;
}

tr.odd.priority-5,
table.list tbody tr.odd.priority-5:hover {
    color: #900;
}

tr.odd.priority-5 {
    background: #fee;
}

tr.even.priority-5,
table.list tbody tr.even.priority-5:hover {
    color: #900;
}

tr.even.priority-5 {
    background: #fff2f2;
}

tr.odd.priority-5 td,
tr.even.priority-5 td {
    border-color: #fcc;
}

tr.odd.priority-3,
table.list tbody tr.odd.priority-3:hover {
    color: #559;
}

tr.odd.priority-3 {
    background: #eaf7ff;
}

tr.even.priority-3,
table.list tbody tr.even.priority-3:hover {
    color: #559;
}

tr.even.priority-3 {
    background: #f2faff;
}

tr.priority-3 a {
    color: #559;
}

tr.odd.priority-3 td,
tr.even.priority-3 td {
    border-color: #add7f3;
}


#header {
    z-index: 30;
}

#header a {
    color: #444444;
}

#main-menu {
    position: absolute;
    margin: 15px 0px 0px 0px;
    /*
        margin-top: 23px;
        margin-left: 0px;
        margin-right: 0px;
    */
    padding-left: 0px;
    left: 0px;
    /*
        float: left;
    */
    position: relative;
    background-color: #FFFFFF;
    width: 148px;
    min-height: 600px;
    height: auto !important;
    height: 600px;
    /*
    border-left: 2px solid #DCDCDC;
    border-top: 2px solid #F5F5F5;
    border-bottom: 2px solid #C0C0C0;
    border-right: 2px solid #C0C0C0;
    */
    font-family: "Noto Sans JP", "メイリオ", "Yu Gothic", Verdana, sans-serif;

}

#header #main-menu>ul>li>a {
    color: #2F4F4F;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #FFFFFF;
    margin-right: 0px;
    margin-left: 1px;
    height: 22px;
    line-height: 22px;
    padding: 0 12px;
    font-weight: normal;
}

#header #main-menu>ul>li>a::before {
    content: "";
    display: none;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: 1;
}

#header #main-menu>ul>li>a:hover::before,
#header #main-menu>ul>li>a.selected::before {
    opacity: 1;
}

#header #main-menu>ul>li>a.new-object {
    justify-content: center;
    gap: 0;
}

#header #main-menu>ul>li>a.new-object::before {
    display: none;
}



#header #main-menu>ul>li>a.selected,
#header #main-menu>ul>li>a.selected:hover {
    background-color: #EEEEEE;
    border-width: 1px;
    border-style: solid;
    border-color: #c0c0c0;
    /*
        color:#4169E1;
    */
    font-weight: bold;

}

#header #main-menu>ul>li>a:hover {
    color: #1E90FF;
    font-weight: bold;
}

#header {
    margin-left: 0px;
    padding-left: 0px;
    padding-bottom: 0px;
    height: 5em;
    min-height: 0px;
}



#main {
    margin-left: 150px;
}

#main-menu ul {
    margin-top: 0px;
    padding-bottom: 10px;
    white-space: normal;
    display: block;
}

#main-menu div.tabs-buttons button {
    display: none;

}

#main-menu li {
    float: none;
    margin: 0 0 0 0;
    white-space: normal;
    display: block;

}


.tabular p {
    clear: none;
}

div#activity dt,
#search-results dt {
    clear: none;

}

tr.issue {
    white-space: normal;
}

#activity dt,
.journal {
    clear: none;
}

#header {
    background: #ffffff;
}

p.progress-info {
    clear: none;
}


* html #main {
    position: relative;

    margin-top: -600px;

    margin-left: 157px;
    z-index: 10;

}

* html #content {
    z-index: 11;
}

* html #sidebar {
    z-index: 30;
}

* html #header #main-menu {
    margin-top: 26px;
}


p.progress-info {
    clear: none;
}

table.progress {
    border: 1px solid dimgray;
}

table.progress td.closed {
    background: #BAE0BA;
}

table.progress td.done {
    background: #DEF0DE;
    border-right: 1px solid gray;
}

table.progress td.todo {
    background: #ffffff;
}

.wiki h1 {
    background: none;
    padding-bottom: 3px;
    padding-left: 0;
    padding-top: 2px;
    border-bottom: 0;
    font-size: 24px;
    line-height: 2em;
}

.wiki h2 {
    background: none;
    padding-bottom: 3px;
    padding-left: 0;
    padding-top: 2px;
    border-bottom: 0;
    line-height: 1.5em;
}

.wiki p {
    margin-left: 20px;
}



.wiki ul li {
    list-style-image: none;
}

table.list th {
    background: #EEEEEE;
}

#sidebar {
    background-color: #EEEEEE;
    height: auto !important;
    height: 600px;
}

.task_late {
    background: #FF6666;
}

.task_done {
    background: #92C5FF;
}

.task_todo {
    background: #B8B8B8;
}

#footer {
    height: 25px;
    background-color: #FFFFFF;
    color: #444444;
}

#footer a {
    color: #ff0000;

}

div.wiki ul.toc li {
    list-style-image: none;
}

div.wiki ul.toc li.heading1 {
    margin-left: 15px;
    list-style-type: disc;
}

div.wiki ul.toc li.heading2 {
    margin-left: 25px;
    list-style-type: circle;
}

div.wiki ul.toc li.heading3 {
    margin-left: 35px;
    list-style-type: circle;
}

.wiki table {
    border: 1px solid rgba(20, 43, 63, 0.12) !important;
    border-radius: 14px;
    box-shadow: 0px 2px 3px rgba(15, 35, 52, 0.15);
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.wiki table th {
    background: rgba(25, 118, 210, 0.12);
    color: var(--md-text);
    border-bottom: 1px solid var(--md-border);
    padding: 10px 16px;
}

.wiki table td {
    border-bottom: 1px solid var(--md-divider);
    padding: 12px 16px;
}

h1,
h2,
h3,
h4 {
    font-family: "Roboto", "Noto Sans JP", "メイリオ", "Trebuchet MS", Verdana, sans-serif;
    text-shadow: 2px 2px 2px #808080;
}

pre {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

div.wiki ul.toc {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border-right-width: 3px;
    border-right-color: #c0c0c0;
    border-bottom-width: 3px;
    border-bottom-color: #c0c0c0;
}

div.box {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border-right-width: 3px;
    border-right-color: #c0c0c0;
    border-bottom-width: 3px;
    border-bottom-color: #c0c0c0;
}

div.issue {
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 5px;
    border-right-width: 3px;
    border-right-color: #a0a0a0;
    border-bottom-width: 3px;
    border-bottom-color: #a0a0a0;
}

#main.no-main-menu {
    margin-left: 0px;
}

#main #content {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border-width: 1px;
    border-color: #c0c0c0;
    border-style: solid;
    margin-bottom: 1px;
}

#top-menu {
    background-color: #000000;
    height: 1.8em;
    font-size: 1em;
}

#top-menu {
    color: #EEEEEE;
}

#top-menu #loggedas {
    color: #EEEEEE;
}

/* メインメニュー用SVGアイコン（テーマ内アセット） */
#header #main-menu ul li a.overview::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/overview-e7d0e4a3.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/overview-e7d0e4a3.svg");
}

#header #main-menu ul li a.activity::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/activity-a6b2907b.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/activity-a6b2907b.svg");
}

#header #main-menu ul li a.issues::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/issues-58fbae86.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/issues-58fbae86.svg");
}

#header #main-menu ul li a.time-entries::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/time-entries-bb5bc227.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/time-entries-bb5bc227.svg");
}

#header #main-menu ul li a.gantt::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/gantt-b48dcf8e.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/gantt-b48dcf8e.svg");
}

#header #main-menu ul li a.calendar::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/calendar-da0e1c74.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/calendar-da0e1c74.svg");
}

#header #main-menu ul li a.news::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/news-720ebc50.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/news-720ebc50.svg");
}

#header #main-menu ul li a.documents::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/documents-7991c826.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/documents-7991c826.svg");
}

#header #main-menu ul li a.wiki::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/wiki-1d7ce43d.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/wiki-1d7ce43d.svg");
}

#header #main-menu ul li a.files::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/files-11eaa01d.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/files-11eaa01d.svg");
}

#header #main-menu ul li a.settings::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/settings-94907e10.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/settings-94907e10.svg");
}

#header #main-menu ul li a.boards::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/boards-99d7a301.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/boards-99d7a301.svg");
}

#header #main-menu ul li a.roadmap::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/roadmap-d8fcc0b7.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/roadmap-d8fcc0b7.svg");
}

#header #main-menu ul li a.new-issue::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/new-issue-85661b42.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/new-issue-85661b42.svg");
}

#header #main-menu ul li a.ai-helper-dashboard::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/ai-helper-dashboard-ebcd5c26.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/ai-helper-dashboard-ebcd5c26.svg");
}

#header #main-menu ul li a.repository::before {
    display: inline-block;
    -webkit-mask-image: url("/assets/themes/redmine_tokyo_theme/icons/repository-75b0f464.svg");
    mask-image: url("/assets/themes/redmine_tokyo_theme/icons/repository-75b0f464.svg");
}

@supports not ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
    #header #main-menu a::before {
        background-color: transparent;
    }

    #header #main-menu ul li a.overview::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/overview-e7d0e4a3.svg");
    }

    #header #main-menu ul li a.activity::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/activity-a6b2907b.svg");
    }

    #header #main-menu ul li a.issues::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/issues-58fbae86.svg");
    }

    #header #main-menu ul li a.time-entries::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/time-entries-bb5bc227.svg");
    }

    #header #main-menu ul li a.gantt::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/gantt-b48dcf8e.svg");
    }

    #header #main-menu ul li a.calendar::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/calendar-da0e1c74.svg");
    }

    #header #main-menu ul li a.news::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/news-720ebc50.svg");
    }

    #header #main-menu ul li a.documents::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/documents-7991c826.svg");
    }

    #header #main-menu ul li a.wiki::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/wiki-1d7ce43d.svg");
    }

    #header #main-menu ul li a.files::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/files-11eaa01d.svg");
    }

    #header #main-menu ul li a.settings::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/settings-94907e10.svg");
    }

    #header #main-menu ul li a.boards::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/boards-99d7a301.svg");
    }

    #header #main-menu ul li a.roadmap::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/roadmap-d8fcc0b7.svg");
    }

    #header #main-menu ul li a.new-issue::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/new-issue-85661b42.svg");
    }

    #header #main-menu ul li a.ai-helper-dashboard::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/ai-helper-dashboard-ebcd5c26.svg");
    }

    #header #main-menu ul li a.repository::before {
        background-image: url("/assets/themes/redmine_tokyo_theme/icons/repository-75b0f464.svg");
    }
}

.mobile-mode #header {
    background-image: none;
    background-color: #34495e;
}

/* -------------------------------------------------- */
/* Material Design refresh overrides (CSS only)       */
/* -------------------------------------------------- */

body {
    background: var(--md-surface);
    color: var(--md-text);
}

#wrapper {
    background: transparent;
}

#top-menu {
    background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
    color: #fff;
    height: 2.2em;
    line-height: 2.2em;
    border-bottom: none;
    box-shadow: var(--md-shadow-sm);
}

#top-menu a {
    color: #fff;
    padding: 0 0.9em;
    border-radius: 3px;
    transition: background 160ms ease, color 160ms ease;
}

#top-menu a:hover,
#top-menu a:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
}

#top-menu #loggedas {
    color: rgba(255, 255, 255, 0.8);
}

#header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 241, 247, 0.94));
    border-bottom: 1px solid var(--md-border);
    box-shadow: var(--md-shadow-sm);
    padding: 10px 28px 8px 16px;
    height: auto;
    position: relative;
}

#header h1 {
    margin: 0;
    font-family: "Roboto", "Noto Sans JP", sans-serif;
    font-weight: normal;
    font-size: 24px;
    color: var(--md-text);
    text-shadow: none;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: flex-start;
    column-gap: 20px;
    padding: 0;
    height: auto;
}

#header h1::before {
    content: "";
    display: inline-block;
    width: 64px;
    height: 64px;
    margin-right: 0;
    background: url("/assets/themes/redmine_tokyo_theme/logo-c183f0c5.png") no-repeat center/contain;
    grid-row: 1 / span 2;
    grid-column: 1;
    align-self: flex-start;
}

#header h1 .breadcrumbs {
    font-size: 0.65em;
    color: var(--md-text-muted);
    margin: 6px 0 0;
    grid-column: 2;
    grid-row: 1;
}

#header h1 .current-project {
    margin: 4px 0 0;
    grid-column: 2;
    grid-row: 2;
}

#main-menu {
    position: absolute;
    top: 112px;
    left: 16px;
    width: 210px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    min-height: auto;
    height: auto;
    margin: 0;
}

#main-menu ul {
    padding: 0;
    margin: 0;
}

#main-menu li {
    margin: 0 0 8px;
    list-style: none;
}

#header #main-menu>ul>li>a {
    color: var(--md-text);
    padding: 6px 10px 6px 42px;
    font-weight: 500;
    font-size: 15px;
    border-left: none;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
    background-position: 18px center;
    background-color: transparent;
}

#header #main-menu>ul>li>a:hover {
    background-color: rgba(25, 118, 210, 0.08);
    color: var(--md-primary);
    box-shadow: none;
    border-radius: 12px;
}

#header #main-menu>ul>li>a.selected,
#header #main-menu>ul>li>a.selected:hover {
    background-color: rgba(25, 118, 210, 0.18);
    color: var(--md-primary-dark);
    border: none;
    box-shadow: 0px 3px 4px rgba(15, 35, 52, 0.15);
    font-weight: 600;
    border-radius: 12px;
    transform: translateY(-1px);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

/* Plus button styling */
#main-menu li:has(> a.new-object) {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
    height: 36px;
    min-height: 36px;
}

#main-menu li>a.new-object {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 0 2px 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(25, 118, 210, 0.12) !important;
    color: var(--md-primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    box-shadow: none;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease !important;
}

#main-menu li>a.new-object:hover {
    background: rgba(25, 118, 210, 0.22) !important;
    color: var(--md-primary-dark) !important;
    box-shadow: var(--md-shadow-sm);
    border-radius: 50% !important;
}

/* Dropdown menu styling fix */
#main-menu .menu-children {
    width: auto !important;
    min-width: 180px !important;
    background: transparent !important;
    top: 32px !important;
}

#main-menu .menu-children li {
    background: transparent !important;
    margin: 0 !important;
}

#main-menu .menu-children li a,
#main-menu .menu-children li a.new-issue-sub {
    background-color: #fff !important;
    color: #333 !important;
    padding: 8px 16px !important;
    width: 100% !important;
    height: auto !important;
    min-width: 148px !important;
    max-width: none !important;
    min-height: auto !important;
    border-radius: 8px !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    background-image: none !important;
    background-position: initial !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-family: Verdana, sans-serif !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    gap: initial !important;
    align-items: initial !important;
    justify-content: initial !important;
    flex-direction: initial !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#main-menu .menu-children li a:hover {
    background-color: #e3f2fd !important;
    color: var(--md-primary) !important;
}

#main {
    margin-left: 248px;
    padding: 32px 28px 28px;
}

#main.no-main-menu {
    margin-left: 28px;
}

#main #content,
div.box,
div.issue,
.wiki .box,
div.journal {
    background: var(--md-surface-alt);
    border: 1px solid var(--md-border);
    border-radius: 16px;
    box-shadow: var(--md-shadow-sm);
    padding: 22px 26px;
}

div.box {
    background-color: #f5f8ff;
}

div.issue {
    background-color: #fffce6;
    margin-bottom: 30px;
}

/* Issue detail page: child issues & related issues tables */
div.issue table.list.issues {
    background: transparent;
    border: none;
    box-shadow: none;
}

div.issue table.list.issues thead th {
    background: transparent;
    border-bottom: none;
}

div.issue table.list.issues tbody tr {
    background: transparent;
}

div.issue table.list.issues tbody tr:nth-child(even) {
    background: transparent;
}

div.issue table.list.issues tbody tr:hover {
    background: rgba(255, 245, 200, 0.3);
}

div.issue table.list.issues td {
    border-bottom: none;
}

#content>h2 {
    position: relative;
    margin: 0 0 20px;
    padding-left: 18px;
    font-size: 20px;
    font-weight: 600;
    color: var(--md-text);
}

#content>h2::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 4px;
    height: 1.12em;
    border-radius: 2px;
    background: var(--md-primary);
}

#sidebar {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-height: auto;
    margin-left: 32px;
}

#sidebar ul li,
#sidebar ol li {
    margin-bottom: 6px;
}

#sidebar ul li:last-child,
#sidebar ol li:last-child {
    margin-bottom: 0;
}

#sidebar ul li a,
#sidebar ol li a {
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.3;
}

#sidebar .sidebar-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
}

@media screen and (max-width: 960px) {
    #sidebar {
        margin-left: 0;
    }
}

div.issue {
    border-color: var(--md-divider);
}

.contextual {
    position: relative;
    z-index: 5;
}

.contextual a,
.contextual .icon {
    border-radius: 999px;
    background: rgba(25, 118, 210, 0.12);
    color: var(--md-primary);
    padding: 6px 12px;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.contextual a:hover,
.contextual a:focus {
    background: rgba(25, 118, 210, 0.22);
    color: var(--md-primary-dark);
    box-shadow: var(--md-shadow-sm);
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-family: "Roboto", "Noto Sans JP", sans-serif;
    color: var(--md-text);
    text-shadow: none;
}

.tabs {
    background: rgba(25, 118, 210, 0.06);
    border: 1px solid var(--md-border);
    border-radius: 999px;
    padding: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tabs a:not(#main-menu li:first-child > a) {
    border-radius: 999px 999px 0 0;
    padding: 8px 16px;
    transition: background 160ms ease, color 160ms ease;
    border-bottom: 3px solid transparent;
}

#content .tabs ul li a {
    border: none;
    background: transparent;
    color: var(--md-text-muted);
    padding-bottom: 6px;
}

#content .tabs ul li a.selected {
    background: transparent;
    border: none;
    color: var(--md-primary);
    border-bottom: 3px solid var(--md-primary);
    font-weight: 600;
}

.tabs-buttons {
    background: #f8f9fa !important;
}

.tabs-buttons button,
.tabs-buttons button.tab-left,
.tabs-buttons button.tab-right {
    background: #f8f9fa !important;
    border: none !important;
}

/* Moved to line 857-871 with improved styling */


table.list {
    border: 1px solid var(--md-border);
    border-radius: 14px;
    box-shadow: var(--md-shadow-sm);
    background: var(--md-surface-alt);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

table.list th {
    background: rgba(25, 118, 210, 0.12);
    color: var(--md-text);
    border-bottom: 1px solid var(--md-border);
    padding: 10px 16px;
}

table.issues th {
    padding-left: 0;
    padding-right: 0;
}

table.list td {
    border-bottom: 1px solid var(--md-divider);
    padding: 12px 16px;
}

/* Issue List */
table.issues td {
    padding-left: 2px;
    padding-right: 9px;
}

table.list tbody tr:nth-child(even) td {
    background: rgba(25, 118, 210, 0.04);
}

table.list tbody tr:hover td {
    background: rgba(25, 118, 210, 0.09);
}

table.progress {
    border: none;
    border-radius: 999px;
    background: rgba(25, 118, 210, 0.08);
    overflow: hidden;
}

table.progress td {
    border: none;
}

table.list table.progress {
    height: 18px;
    max-height: 18px;
    margin: 1px auto !important;
    float: none !important;
}

table.list table.progress td {
    height: 18px;
    max-height: 18px;
    padding: 0;
    line-height: 18px;
}

table.progress td.closed {
    background: linear-gradient(90deg, #66bb6a, #388e3c);
}

table.progress td.done {
    background: #a5d6a7;
}

table.progress td.todo {
    background: rgba(25, 118, 210, 0.12);
}

.task_late {
    background: linear-gradient(90deg, #ef5350, #c62828);
}

.task_done {
    background: linear-gradient(90deg, var(--md-primary), var(--md-primary-dark));
}

.task_todo {
    background: linear-gradient(90deg, #90a4ae, #607d8b);
}

button,
input[type="submit"],
input[type="button"],
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 20px 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--md-shadow-sm);
    transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover {
    box-shadow: var(--md-shadow-md);
    transform: translateY(-1px);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
.button:active {
    transform: translateY(0);
    box-shadow: var(--md-shadow-sm);
}

/* File Input Button */
input[type="file"] {
    max-width: 100% !important;
    width: auto !important;
    min-width: 300px;
}

/* Fieldset styling */
fieldset {
    border-radius: 10px !important;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 20px 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--md-shadow-sm);
    transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
    margin-right: 10px;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
    box-shadow: var(--md-shadow-md);
    transform: translateY(-1px);
}

input[type="file"]::file-selector-button:active,
input[type="file"]::-webkit-file-upload-button:active {
    transform: translateY(0);
    box-shadow: var(--md-shadow-sm);
}

input,
textarea,
select {
    border: 1px solid var(--md-border);
    border-radius: 10px;
    padding: 0 12px;
    font-size: 0.92em;
    transition: border 160ms ease, box-shadow 160ms ease;
}


input:focus,
textarea:focus,
select:focus {
    border-color: var(--md-primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
    outline: none;
}

.wiki h1,
.wiki h2 {
    background: transparent;
    padding-left: 16px;
    padding-bottom: 4px;
    padding-top: 4px;
    position: relative;
}

.wiki h1::before,
.wiki h2::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 4px;
    height: 1.12em;
    border-radius: 2px;
    background: var(--md-primary);
}

.wiki ul li {
    list-style: none;
    padding-left: 1.2em;
    position: relative;
}

.wiki ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--md-primary);
    position: absolute;
    top: 0.75em;
    left: 0;
    transform: translateY(-50%);
}

#footer {
    background: transparent;
    color: var(--md-text-muted);
    border-top: 1px solid var(--md-border);
    margin-top: 8px;
    padding: 16px 0;
}

#footer a {
    color: var(--md-primary);
}

select {
    padding: 0 24px 0 14px !important;
}

/* -------------------------------------------------- */
/* Material Design Status Badges                      */
/* -------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 999px;
    border: none;
    box-shadow: var(--md-shadow-sm);
    transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.badge:hover {
    box-shadow: var(--md-shadow-md);
    transform: translateY(-1px);
}

.badge-status-closed {
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: #ffffff;
}

.badge-status-closed:hover {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.badge-status-open {
    background: linear-gradient(135deg, #fb8c00, #f57c00);
    color: #ffffff;
}

.badge-status-open:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
}

/* -------------------------------------------------- */
/* Mobile Layout Optimization                         */
/* -------------------------------------------------- */

@media screen and (max-width: 899px) {
    div.flyout-menu {
        padding-bottom: 84px;
    }

    #main {
        padding: 8px 0 16px;
        margin-left: 0;
        margin-right: 0;
    }

    #main.no-main-menu {
        margin-left: 0;
        margin-right: 0;
    }

    #main #content,
    div.box,
    div.issue,
    .wiki .box,
    div.journal {
        padding: 12px;
        margin-left: 0;
        margin-right: 0;
    }

    table.list th {
        padding: 8px 6px;
        font-size: 0.9em;
    }

    table.list td {
        padding: 4px 6px;
        line-height: 1.3;
    }

    table.issues td {
        padding-left: 2px;
        padding-right: 4px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    #header {
        padding: 8px 12px;
    }

    #content>h2 {
        font-size: 18px;
        margin: 0 0 14px;
    }

    .wiki table th,
    .wiki table td {
        padding: 8px 10px;
    }

    .wiki h1::before,
    .wiki h2::before,
    #content>h1::before,
    #content>h2::before {
        top: auto;
        bottom: 3px;
        transform: none;
    }

    .wiki h1,
    #content>h1 {
        line-height: 1.2 !important;
        padding: 2px 10px 2px 16px !important;
        margin-bottom: 10px;
    }

    .wiki h2,
    #content>h2 {
        line-height: 1.3 !important;
        padding: 2px 10px 2px 16px !important;
    }
}