@import url("https://fonts.googleapis.com/css2?family=Kosugi+Maru&display=swap");

:root {
    --radius-card: 7px;
    --radius-control: 8px;
    --radius-popup: 10px;
    --radius-focus: 4px;
    --radius-pill: 999px;
    --app-page-background:
        radial-gradient(circle at top left, rgba(173, 201, 219, 0.32), transparent 34%),
        radial-gradient(circle at top right, rgba(206, 221, 199, 0.28), transparent 26%),
        linear-gradient(180deg, #dfe7ed 0%, #edf2f4 45%, #eef0ea 100%);
    --font-main:
        "hiragino-kaku-gothic-pron",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Yu Gothic",
        "YuGothic",
        "Meiryo",
        sans-serif;
}

body {
    background-color: #f8f9fa;
    font-family: var(--font-main);
    font-weight: 300;
    letter-spacing: 0.01em;
}

html.wf-loading body {
    visibility: hidden;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button,
.btn {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.navbar {
    background-color: #2A74AF !important;
    box-shadow:
        inset 0 3px 0 rgba(0, 0, 0, 0.08),
        inset 0 -3px 0 rgba(255, 255, 255, 0.15);
    padding-top: 7px;
    padding-bottom: 7px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF !important;
    text-decoration: none;
}

.navbar-brand img {
    height: 26px;
    width: auto;
    display: block;
}

.system-title {
    font-family: "Kosugi Maru", "Meiryo", sans-serif;
    font-size: 23px;
    font-weight: 550;
    letter-spacing: 0.04em;
    line-height: 1;
    color: #FFFFFF;
    display: inline-block;
    margin-top: 3px;
    transform: translateY(-1px);
    white-space: nowrap;
}

@media (max-width: 576px) {
  html:not(.force-desktop) .navbar-brand img {
    height: 23px;
  }

  html:not(.force-desktop) .system-title {
    font-size: 17px;
  }
}

.user-menu-btn {
    border: none;
    background: transparent;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-family:"Meiryo", "Yu Gothic UI", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    white-space: nowrap;
}
.user-dropdown-menu {
    margin-top: 8px !important;
}

.user-caret {
    font-size: 11px;
}

.user-menu-wrap {
    margin-right: 1rem;
}

.btn-add-payment {
    margin-right: 16px;
}

.card {
    border: 1px solid #e9ecef;
    border-radius: var(--radius-card);
}

.page-width-card {
    width: 100%;
    box-sizing: border-box;
    margin-inline: auto;
}

.app-page-main-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem 0.75rem;
}

.app-page-shell {
    margin: 0 auto;
}

.app-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.app-form-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e5ebf0;
    border-radius: var(--radius-card);
    box-shadow: 0 14px 36px rgba(34, 50, 64, 0.06);
    overflow: visible;
}

html.force-desktop,
html.force-desktop body {
    min-width: 1204px;
}

html.force-desktop body {
    overflow-x: auto;
}

html.force-desktop .page-main-shell,
html.force-desktop .app-page-main-shell,
html.force-desktop main.container {
    width: 100%;
    box-sizing: border-box;
}

.view-mode-toggle-item {
    display: none;
}

@media (max-width: 767px) {
    .user-menu-wrap {
        margin-right: 0.5rem;
    }

    .view-mode-toggle-item {
        display: block;
    }
}
