.layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 1.5rem 1rem;
    transition: transform .25s ease;
    z-index: 1000;
}

/* hidden by default on mobile */
.sidebar.hidden {
    transform: translateX(-260px);
}

/* CONTENT */
.content {
    flex: 1;
    padding: 1.2rem;
    margin-left: 240px;
    font-size: 1rem;
}

/* TOPBAR */
.topbar {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* HAMBURGER (mobile only) */
.hamburger {
    display: none;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Navigation buttons */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.nav-item {
    padding: .6rem 1rem;
    background: none;
    border: none;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    color: black;
}
.nav-item.active {
    background: #d3d3ff;
}

/* MOBILE MODE */
@media (max-width: 900px) {

    .hamburger {
        display: block;
    }

    .sidebar {
        transform: translateX(-260px);
    }

    .sidebar.visible {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0,0,0,.3);
    }

    .content {
        margin-left: 0;
        padding: 0;
    }
}

.note-section {
    display: none;
}
.note-section.active {
    display: block;
}

/* normal pagination buttons */
#accountsList .gridjs-pages button {
    color: var(--pico-primary);
}

/* hover */
#accountsList .gridjs-pages button:hover {
    background: var(--pico-primary);
    color: var(--pico-primary-inverse);
    border-color: var(--pico-primary);
}

/* active page */
#accountsList .gridjs-pages .gridjs-currentPage {
    background: var(--pico-primary);
    color: var(--pico-primary-inverse);
    border-color: var(--pico-primary);
}

/* Remove Pico list bullets and resets */
#accountsList ul.pagination,
#accountsList ul.pagination li,
#accountsList ul.pagination li::before {
    list-style: none !important;
    content: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Horizontal layout using Pico grid layout */
#accountsList ul.pagination {
    display: flex;
    gap: 0.4rem;
}

/* Ellipsis style: plain muted text, no hover, no pointer */
#accountsList ul.pagination .disabled a {
    all: unset; /* reset everything */
    cursor: default;
    color: var(--pico-muted-color);
    padding: 0.2rem 0.3rem;
}

/* Remove hover effects on ellipsis */
#accountsList ul.pagination .disabled a:hover {
    color: var(--pico-muted-color);
}

#rakutenResults {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#rakutenResults .product-image {
    max-width: 128px;
}

.btn-small {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.6rem !important;
    border-radius: 4px !important;
    line-height: 1 !important;
}

td.gridjs-td {
    border: 1px solid #e5e7eb;
    box-sizing: content-box;
    padding: 4px 10px;
}

.toastui-editor-toolbar button {
    background-color: unset;
}

.toastui-editor-defaultUI {
    border: 1px solid #dadde6;
    border-radius: 4px;
    font-family: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Arial, "Noto Sans JP", Meiryo, sans-serif;
    height: 100%;
    position: relative;
}

.toastui-editor-contents {
    font-family: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Arial, "Noto Sans JP", Meiryo, sans-serif;
    font-size: 21px;
    margin: 0;
    padding: 0;
    z-index: 20;
}

.ProseMirror {
    font-family: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Arial, "Noto Sans JP", Meiryo, sans-serif;
    font-size: 21px;
}