body {
    font-family: Arial, sans-serif;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
    background-color: #f0f0f0;
    border-radius: 12px;
    padding: 3px 8px;
}

.update-icon {
    margin-right: 3px;
    font-size: 0.7rem;
}

.info-box {
    margin: 10px 0;
    border: 1px solid #eee;
    border-radius: 7px;
    background-color: #fafafa;
}

.info-header {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 0.7rem;
    cursor: pointer;
    color: #666;
}

.info-toggle {
    font-size: 0.7rem;
    color: #999;
}

.info-content {
    font-size: 0.7rem;
    color: #666;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    padding: 0 10px;
}

.info-content.active {
    max-height: 100px;
    padding-bottom: 6px;
}

.tabs-container {
    overflow-x: auto;
}

.tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    padding-top: 2px;
    overflow-x: auto;
    gap: 6px;
}

.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    padding: 0 6px 6px;
    margin-bottom: 1px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.tab.active {
    font-weight: 700;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: black;
    border-radius: 2px;
}

.tab-complete.active::after {
    bottom: -2px;
}

.sub-tabs {
    display: none;
    gap: 5px;
    padding: 10px 0 0 2px;
    overflow-x: auto;
    white-space: nowrap;
}

.sub-tabs.active {
    display: flex;
}

.sub-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 14px;
    background-color: #f2f2f2;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid #e0e0e0;
}

.sub-tab.active {
    background-color: #111;
    color: white;
    border: none;
}

.tab-content {
    display: none;
    padding: 2px;
}

.tab-content.active {
    display: block;
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f4f4f4;
    white-space: nowrap;
    text-align: center;
}

td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

a.no-underline {
    text-decoration: none;
    color: inherit;
}

a.no-underline:visited {
    color: inherit;
}

a.no-underline:hover {
    text-decoration: none;
}

a.no-underline:active {
    color: inherit;
}

/**/

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-buttons {
    display: flex;
    gap: 3px;
}

button {
    font-size: 8pt;
    width: 100%;
    color: #000000;
    background-color: #f3f3f3;
    border: none;
    border-radius: 12px;
    padding: 3px 12px;
    cursor: pointer;
}

button:hover {
    background-color: #efefef;
}

button:active {
    background-color: #dadada;
}

th.product-title, td.product-title {
    width: 80%;
}

th.percent, td.percent {
    width: 20%;
}

th.complete-title, td.complete-title {
    width: 70%;
}

th.event-date, td.event-date {
    width: 15%;
    font-size: 90%;
    text-align: center;
}

th.end-product-title, td.end-product-title {
    width: 70%;
}

th.end-date, td.end-date {
    width: 30%;
    text-align: center;
}

th.waiting-genre, td.waiting-genre {
    width: 15%;
    text-align: center;
}

td.waiting-genre {
    font-size: 11px;
}

th.waiting-product-title, td.waiting-product-title {
    width: 60%;
}

th.open-date, td.open-date {
    width: 25%;
    text-align: center;
}

.deadline {
    font-size: small;
}

.extra {
    font-weight: bold;
    font-size: 80%;
}

.in-event {
    background-color: #d9f6ff;
}

.one_hundred_percent {
    background-color: #D9E5FF;
}

.ninety_percent {
    background-color: #fffad9; /*노란색*/
}

.percent {
    white-space: nowrap;
    text-align: center;
    align-items: center;
}

/**/

@media (max-width: 768px) {
    table, th, td {
        font-size: small;
    }

    .deadline {
        font-size: smaller;
    }
}

@media (min-width: 769px) {
    body {
        max-width: 500px;
        margin: 10px auto;
    }
}
