/* ============================================================
   OKEGAWA FC Shift Manager - Frontend (SaaS UI v2.5.79)
   ============================================================ */
:root {
    --ofc-primary: #3A7F4A;
    --ofc-primary-dark: #2d5f3a;
    --ofc-primary-darker: #1e4527;
    --ofc-accent: #f57c00;
    --ofc-info: #1976d2;
    --ofc-success: #3A7F4A;
    --ofc-danger: #c62828;
    --ofc-warn: #f57c00;

    --ofc-bg: #f5f7fa;
    --ofc-card: #ffffff;
    --ofc-border: #e5e9ee;
    --ofc-border-strong: #d0d7de;

    --ofc-text: #1f2937;
    --ofc-text-muted: #6b7280;
    --ofc-text-soft: #9ca3af;

    --ofc-sidebar-w: 240px;
    --ofc-topbar-h: 60px;
    --ofc-bottomnav-h: 62px;

    --ofc-radius: 10px;
    --ofc-radius-sm: 6px;
    --ofc-radius-lg: 14px;

    --ofc-shadow-sm: 0 1px 3px rgba(0,0,0,.05);
    --ofc-shadow: 0 2px 8px rgba(0,0,0,.06);
    --ofc-shadow-lg: 0 8px 24px rgba(0,0,0,.10);
}

/* ============================================================
   Reset & Body
   ============================================================ */
.ofc-sm-body {
    margin: 0;
    background: var(--ofc-bg);
    color: var(--ofc-text);
    font-family: -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.ofc-sm-body * { box-sizing: border-box; }
.ofc-sm-body a { text-decoration: none; color: inherit; }
.ofc-sm-body button { font-family: inherit; }

/* WordPress admin bar 対応 */
.admin-bar .ofc-app { padding-top: 32px; }
@media (max-width: 782px) {
    .admin-bar .ofc-app { padding-top: 46px; }
}

/* ============================================================
   App Layout
   ============================================================ */
.ofc-app {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar (PC/Tablet) ---------- */
.ofc-app__sidebar {
    width: var(--ofc-sidebar-w);
    background: linear-gradient(180deg, #2d5f3a 0%, #1e4527 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform .25s ease;
}
.admin-bar .ofc-app__sidebar { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .ofc-app__sidebar { top: 46px; }
}

.ofc-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    text-decoration: none;
    color: inherit;
    transition: opacity .15s;
}
.ofc-sidebar__brand:hover { opacity: .85; }
.ofc-sidebar__brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255,255,255,.95);
    padding: 4px;
    flex-shrink: 0;
}
.ofc-sidebar__brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.ofc-sidebar__brand-text {
    color: #fff;
    min-width: 0;
    flex: 1;
}
.ofc-sidebar__brand-title {
    color: #fff !important;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ofc-sidebar__brand-sub {
    font-size: .68rem;
    color: rgba(255,255,255,.75) !important;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ofc-sidebar__nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}
.ofc-sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: rgba(255,255,255,.85);
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 500;
    transition: background .15s, color .15s;
    position: relative;
}
.ofc-sidebar__link i {
    width: 20px;
    text-align: center;
    font-size: .95rem;
    opacity: .85;
}
.ofc-sidebar__link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.ofc-sidebar__link.is-active {
    background: #fff;
    color: var(--ofc-primary-dark);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.ofc-sidebar__link.is-active i { opacity: 1; color: var(--ofc-primary); }

.ofc-sidebar__foot {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.10);
}
.ofc-sidebar__logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: rgba(255,255,255,.75);
    border-radius: 8px;
    font-size: .85rem;
    transition: background .15s, color .15s;
}
.ofc-sidebar__logout i { width: 20px; text-align: center; }
.ofc-sidebar__logout:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
}

.ofc-app__scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99;
}
.ofc-app__scrim.is-open { display: block; }

/* ---------- Content Area ---------- */
.ofc-app__content {
    flex: 1;
    margin-left: var(--ofc-sidebar-w);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ---------- Top Bar ---------- */
.ofc-app__topbar {
    height: var(--ofc-topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--ofc-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-bar .ofc-app__topbar { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .ofc-app__topbar { top: 46px; }
}

.ofc-topbar__menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--ofc-text);
    font-size: 1.15rem;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 6px;
}
.ofc-topbar__menu-btn:hover { background: var(--ofc-bg); }

.ofc-topbar__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ofc-text);
    flex: 1;
}

.ofc-topbar__user {
    position: relative;
}
.ofc-topbar__user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}
.ofc-topbar__user-btn:hover { background: var(--ofc-bg); }
.ofc-topbar__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ofc-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.ofc-topbar__avatar--fallback {
    background: linear-gradient(135deg, var(--ofc-primary), var(--ofc-primary-dark));
    font-size: 1rem;
}
.ofc-topbar__user-name {
    font-size: .88rem;
    color: var(--ofc-text);
    font-weight: 500;
}
.ofc-topbar__user-btn i.fa-chevron-down {
    font-size: .7rem;
    color: var(--ofc-text-muted);
}
.ofc-topbar__user-drop {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--ofc-border);
    border-radius: 10px;
    box-shadow: var(--ofc-shadow-lg);
    padding: 6px;
    display: none;
    z-index: 200;
}
.ofc-topbar__user.is-open .ofc-topbar__user-drop { display: block; }
.ofc-topbar__user-drop a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--ofc-text);
    font-size: .85rem;
    border-radius: 6px;
    transition: background .1s;
}
.ofc-topbar__user-drop a:hover { background: var(--ofc-bg); }
.ofc-topbar__user-drop a i { width: 16px; text-align: center; color: var(--ofc-text-muted); }

/* ---------- Main ---------- */
.ofc-app__main {
    flex: 1;
    padding: 28px 32px 40px;
    max-width: 1200px;
    width: 100%;
}

/* ---------- Bottom Nav (SP) ---------- */
.ofc-app__bottomnav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--ofc-bottomnav-h);
    background: #fff;
    border-top: 1px solid var(--ofc-border);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 90;
    box-shadow: 0 -2px 8px rgba(0,0,0,.05);
}
.ofc-bottomnav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--ofc-text-muted);
    font-size: .68rem;
    transition: color .15s;
    padding: 4px 2px;
}
.ofc-bottomnav__item i { font-size: 1.2rem; }
.ofc-bottomnav__item.is-active {
    color: var(--ofc-primary);
    font-weight: 700;
}
.ofc-bottomnav__item.is-active i { transform: scale(1.05); }

/* ============================================================
   Page Container & Common Elements
   ============================================================ */
.ofc-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---------- Welcome Card ---------- */
.ofc-welcome, .ofc-welcome * {
    color: #fff;
}
.ofc-welcome {
    background: linear-gradient(135deg, #3A7F4A 0%, #2d5f3a 100%);
    color: #fff;
    padding: 28px 32px;
    border-radius: var(--ofc-radius-lg);
    box-shadow: var(--ofc-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.ofc-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.ofc-welcome__greeting {
    font-size: .85rem;
    opacity: .9;
    margin-bottom: 4px;
}
.ofc-welcome__name {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 700;
}
.ofc-welcome__date {
    font-size: .85rem;
    opacity: .88;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ofc-welcome__clock-badge {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 130px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,.20);
}
.ofc-welcome__clock-badge i { font-size: 1.5rem; }
.ofc-welcome__clock-badge span { font-weight: 700; font-size: .95rem; }
.ofc-welcome__clock-badge small { opacity: .85; font-size: .7rem; }
.ofc-welcome__clock-badge--working { background: rgba(255,183,77,.30); border-color: rgba(255,183,77,.50); }
.ofc-welcome__clock-badge--done    { background: rgba(129,199,132,.30); border-color: rgba(129,199,132,.50); }

/* ---------- Stats Row (3 cards) ---------- */
.ofc-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.ofc-stat-card {
    background: var(--ofc-card);
    border-radius: var(--ofc-radius);
    padding: 20px 22px;
    box-shadow: var(--ofc-shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--ofc-border);
    transition: transform .15s, box-shadow .15s;
}
.ofc-stat-card:hover { transform: translateY(-2px); box-shadow: var(--ofc-shadow); }
.ofc-stat-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}
.ofc-stat-card--primary .ofc-stat-card__icon { background: linear-gradient(135deg, #3A7F4A, #2d5f3a); }
.ofc-stat-card--info    .ofc-stat-card__icon { background: linear-gradient(135deg, #42a5f5, #1976d2); }
.ofc-stat-card--success .ofc-stat-card__icon { background: linear-gradient(135deg, #ffb74d, #f57c00); }
.ofc-stat-card__body { flex: 1; min-width: 0; }
.ofc-stat-card__label {
    font-size: .78rem;
    color: var(--ofc-text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}
.ofc-stat-card__value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--ofc-text);
    line-height: 1.2;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.ofc-stat-card__value small { font-size: .75rem; color: var(--ofc-text-muted); margin-left: 4px; font-weight: 500; }
.ofc-stat-card__sub {
    font-size: .72rem;
    color: var(--ofc-text-soft);
    margin-top: 3px;
}
.ofc-progress {
    height: 5px;
    background: var(--ofc-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}
.ofc-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #3A7F4A, #66bb6a);
    border-radius: 3px;
    transition: width .3s;
}

/* ---------- Two Column Layout ---------- */
.ofc-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---------- Panel ---------- */
.ofc-panel {
    background: var(--ofc-card);
    border: 1px solid var(--ofc-border);
    border-radius: var(--ofc-radius);
    box-shadow: var(--ofc-shadow-sm);
    overflow: hidden;
}
.ofc-panel__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ofc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fafbfc;
}
.ofc-panel__title {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: var(--ofc-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ofc-panel__title i { color: var(--ofc-primary); font-size: .9rem; }
.ofc-panel__badge {
    background: var(--ofc-primary);
    color: #fff !important;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 700;
}
.ofc-panel__link {
    font-size: .8rem;
    color: var(--ofc-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
}
.ofc-panel__link:hover { color: var(--ofc-primary-dark); }
.ofc-panel__link i { font-size: .7rem; }

/* ---------- Clock CTA (大ボタン) ---------- */
.ofc-clock-cta, .ofc-clock-cta * { color: #fff !important; }
.ofc-clock-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px;
    margin: 0;
    color: #fff;
    background: linear-gradient(135deg, #3A7F4A 0%, #2d5f3a 100%);
    transition: transform .1s, box-shadow .2s;
    position: relative;
    text-decoration: none;
}
.ofc-clock-cta:active { transform: scale(.98); }
.ofc-clock-cta--working { background: linear-gradient(135deg, #f57c00 0%, #e65100 100%); }
.ofc-clock-cta--done    { background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%); }
.ofc-clock-cta__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.ofc-clock-cta__label { font-size: 1.2rem; font-weight: 700; margin-bottom: 2px; }
.ofc-clock-cta__desc { font-size: .8rem; opacity: .9; }
.ofc-clock-cta__arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: .8;
}

/* ---------- Empty state ---------- */
.ofc-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--ofc-text-soft);
}
.ofc-empty i { font-size: 2rem; margin-bottom: 10px; opacity: .5; display: block; }
.ofc-empty p { margin: 0; font-size: .88rem; }

/* ---------- Shift Cards ---------- */
.ofc-shift-cards { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ofc-shift-card {
    padding: 12px 14px;
    background: #fafbfc;
    border-left: 4px solid #3A7F4A;
    border-radius: 6px;
}
.ofc-shift-card__row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.ofc-shift-card__time {
    font-weight: 700;
    color: var(--ofc-text);
    font-size: .95rem;
    font-variant-numeric: tabular-nums;
}
.ofc-shift-card__time i { color: var(--ofc-text-muted); font-size: .8rem; margin-right: 4px; }
.ofc-shift-card__team {
    background: #3A7F4A;
    color: #fff !important;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0,0,0,.1);
}
.ofc-shift-card__venue {
    font-size: .8rem;
    color: var(--ofc-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Schedule List ---------- */
.ofc-schedule-list { padding: 8px 0; }
.ofc-schedule-item {
    display: flex;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--ofc-border);
    transition: background .15s;
}
.ofc-schedule-item:last-child { border-bottom: none; }
.ofc-schedule-item:hover { background: #fafbfc; }
.ofc-schedule-item__date {
    flex: 0 0 60px;
    text-align: center;
    padding: 4px 0;
    background: #f0f7f2;
    border-radius: 8px;
}
.ofc-schedule-item__month { font-size: .68rem; color: var(--ofc-text-muted); }
.ofc-schedule-item__day { font-size: 1.35rem; font-weight: 700; color: var(--ofc-primary-dark); line-height: 1.1; }
.ofc-schedule-item__wday { font-size: .68rem; font-weight: 600; }
.ofc-schedule-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.ofc-schedule-item__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ofc-schedule-item__time {
    font-weight: 700;
    color: var(--ofc-text);
    font-size: .92rem;
    font-variant-numeric: tabular-nums;
}
.ofc-schedule-item__time i { color: var(--ofc-text-muted); font-size: .78rem; margin-right: 4px; }
.ofc-schedule-item__team {
    background: #3A7F4A;
    color: #fff !important;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: .7rem;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0,0,0,.1);
}
.ofc-schedule-item__venue {
    font-size: .8rem;
    color: var(--ofc-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   Sub-page: Clock, History, Schedule, TimeOff, Salary, Profile
   ============================================================ */
.ofc-sm-container {
    /* legacy compatibility */
}
.ofc-sm-page-title {
    font-size: 1.25rem;
    margin: 0 0 24px;
    color: var(--ofc-text);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ofc-border);
}
.ofc-sm-page-title i { color: var(--ofc-primary); }

.ofc-sm-section { margin-bottom: 24px; }
.ofc-sm-section__title {
    font-size: .95rem;
    margin: 0 0 12px;
    color: var(--ofc-text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form card */
.ofc-sm-form-card {
    background: #fff;
    border: 1px solid var(--ofc-border);
    border-radius: var(--ofc-radius);
    padding: 24px;
    box-shadow: var(--ofc-shadow-sm);
}
.ofc-sm-field { margin-bottom: 16px; }
.ofc-sm-field label {
    display: block;
    font-weight: 600;
    font-size: .82rem;
    margin-bottom: 6px;
    color: var(--ofc-text);
}
.ofc-sm-field input[type="text"],
.ofc-sm-field input[type="email"],
.ofc-sm-field input[type="password"],
.ofc-sm-field input[type="number"],
.ofc-sm-field input[type="date"],
.ofc-sm-field textarea,
.ofc-sm-field select {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--ofc-border-strong);
    border-radius: var(--ofc-radius-sm);
    font-size: .95rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.ofc-sm-field input:focus,
.ofc-sm-field textarea:focus,
.ofc-sm-field select:focus {
    outline: none;
    border-color: var(--ofc-primary);
    box-shadow: 0 0 0 3px rgba(58,127,74,.10);
}
.ofc-sm-field small {
    font-size: .74rem;
    color: var(--ofc-text-muted);
    display: block;
    margin-top: 4px;
}
.ofc-sm-field-row { display: flex; gap: 12px; }
.ofc-sm-field--half { flex: 1; }
.ofc-sm-field-readonly {
    padding: 10px 0;
    border-bottom: 1px solid var(--ofc-border);
    margin-bottom: 10px;
}
.ofc-sm-field-readonly label {
    font-size: .74rem;
    color: var(--ofc-text-muted);
    margin-bottom: 2px;
}

/* Buttons */
.ofc-sm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: none;
    border-radius: var(--ofc-radius-sm);
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .05s, box-shadow .15s, background .15s;
    text-decoration: none;
}
.ofc-sm-btn:active { transform: translateY(1px); }
.ofc-sm-btn--primary {
    background: var(--ofc-primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(58,127,74,.30);
}
.ofc-sm-btn--primary:hover { background: var(--ofc-primary-dark); }
.ofc-sm-btn--secondary {
    background: #fff;
    color: var(--ofc-primary);
    border: 1.5px solid var(--ofc-primary);
}
.ofc-sm-btn--secondary:hover { background: #f0f7f2; }

/* Big clock buttons (for /staff/clock/) */
.ofc-sm-btn-huge {
    display: block;
    width: 100%;
    padding: 28px 20px;
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    border-radius: var(--ofc-radius);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    transition: transform .05s, box-shadow .2s;
    margin-top: 16px;
    text-align: center;
}
.ofc-sm-btn-huge:active { transform: scale(.98); }
.ofc-sm-btn-huge i { margin-right: 10px; }
.ofc-sm-btn-huge--in {
    background: linear-gradient(135deg, #3A7F4A, #2d5f3a);
}
.ofc-sm-btn-huge--out {
    background: linear-gradient(135deg, #f57c00, #e65100);
}

/* Clock card (打刻画面) */
.ofc-sm-clock-card {
    background: #fff;
    border: 1px solid var(--ofc-border);
    border-radius: var(--ofc-radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--ofc-shadow);
    max-width: 480px;
    margin: 0 auto;
}
.ofc-sm-clock-card__date { color: var(--ofc-text-muted); font-size: .92rem; margin-bottom: 8px; }
.ofc-sm-clock-card__time {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--ofc-primary-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
    margin: 8px 0 20px;
}
.ofc-sm-clock-info {
    background: #f5f9f6;
    border-radius: var(--ofc-radius-sm);
    padding: 16px;
    text-align: left;
    font-size: .88rem;
    line-height: 1.9;
    margin-top: 16px;
}
.ofc-sm-clock-info strong { color: var(--ofc-primary-dark); }
.ofc-sm-clock-form { margin-top: 20px; text-align: left; }
.ofc-sm-clock-done { padding: 20px 0; }

/* Alerts */
.ofc-sm-alert {
    padding: 12px 16px;
    border-radius: var(--ofc-radius-sm);
    margin-bottom: 16px;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ofc-sm-alert--success { background: #e8f5e9; color: #1b5e20; border-left: 3px solid #3A7F4A; }
.ofc-sm-alert--error   { background: #ffebee; color: #b71c1c; border-left: 3px solid #c62828; }
.ofc-sm-alert--info    { background: #e3f2fd; color: #0d47a1; border-left: 3px solid #1976d2; }

/* Empty */
.ofc-sm-empty {
    background: #fff;
    border: 1px dashed var(--ofc-border-strong);
    border-radius: var(--ofc-radius);
    padding: 32px 16px;
    text-align: center;
    color: var(--ofc-text-muted);
    font-size: .9rem;
}

/* History list */
.ofc-sm-history-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ofc-sm-history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--ofc-border);
    border-radius: var(--ofc-radius);
    padding: 14px 16px;
}
.ofc-sm-history-item__date {
    flex: 0 0 48px;
    text-align: center;
    padding: 6px 0;
    background: #f0f7f2;
    border-radius: 6px;
}
.ofc-sm-history-item__day { font-weight: 700; font-size: 1.15rem; color: var(--ofc-primary-dark); line-height: 1.1; }
.ofc-sm-history-item__dow { font-size: .68rem; color: var(--ofc-text-muted); }
.ofc-sm-history-item__body { flex: 1; min-width: 0; font-size: .88rem; }
.ofc-sm-history-item__note { font-size: .78rem; color: var(--ofc-text-muted); margin-top: 2px; }
.ofc-sm-history-item__status { flex: 0 0 auto; font-size: .82rem; text-align: right; }

/* Salary card */
.ofc-sm-salary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ofc-sm-salary-card {
    background: #fff;
    border: 1px solid var(--ofc-border);
    border-radius: var(--ofc-radius);
    padding: 20px;
    box-shadow: var(--ofc-shadow-sm);
}
.ofc-sm-salary-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.ofc-sm-salary-card__ym { font-weight: 700; color: var(--ofc-primary-dark); font-size: 1.02rem; }
.ofc-sm-salary-card__status { font-size: .82rem; }
.ofc-sm-salary-card__amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ofc-primary);
    font-variant-numeric: tabular-nums;
}
.ofc-sm-salary-card__amount small { font-size: .9rem; margin-left: 4px; }
.ofc-sm-salary-card__meta { font-size: .82rem; color: var(--ofc-text-muted); margin: 8px 0 12px; line-height: 1.7; }
.ofc-sm-salary-card__actions { text-align: right; }

/* Slip detail */
.ofc-sm-slip {
    background: #fff;
    border: 1px solid var(--ofc-border);
    border-radius: var(--ofc-radius-lg);
    padding: 28px;
    box-shadow: var(--ofc-shadow);
}
.ofc-sm-slip__header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ofc-primary);
    margin-bottom: 20px;
}
.ofc-sm-slip__label { font-size: .72rem; color: var(--ofc-text-muted); }
.ofc-sm-slip__value { font-weight: 700; font-size: 1.05rem; }
.ofc-sm-slip__table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.ofc-sm-slip__table th,
.ofc-sm-slip__table td {
    padding: 12px 4px;
    text-align: right;
    border-bottom: 1px solid var(--ofc-border);
}
.ofc-sm-slip__table th { text-align: left; font-weight: 500; color: var(--ofc-text-muted); }
.ofc-sm-slip__table td { font-variant-numeric: tabular-nums; }
.ofc-sm-slip__total th, .ofc-sm-slip__total td {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ofc-primary);
    border-bottom: 3px double var(--ofc-primary);
}
.ofc-sm-slip__subtitle { font-size: .95rem; margin: 20px 0 10px; color: var(--ofc-primary-dark); }
.ofc-sm-slip__detail { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ofc-sm-slip__detail th, .ofc-sm-slip__detail td {
    padding: 6px 4px;
    border-bottom: 1px solid var(--ofc-border);
    text-align: right;
}
.ofc-sm-slip__detail thead th { background: #f5f9f6; color: var(--ofc-primary-dark); font-size: .75rem; }
.ofc-sm-slip__actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 24px; }

/* Month navigation */
.ofc-sm-monthnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background: #fff;
    padding: 10px 14px;
    border-radius: var(--ofc-radius-sm);
    border: 1px solid var(--ofc-border);
}
.ofc-sm-monthnav__btn {
    padding: 6px 12px;
    background: transparent;
    color: var(--ofc-primary);
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 600;
}
.ofc-sm-monthnav__btn:hover { background: var(--ofc-bg); }
.ofc-sm-monthnav__label { font-weight: 700; color: var(--ofc-text); }

/* Badge */
.ofc-sm-badge {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: .7rem;
    font-weight: 600;
    display: inline-block;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    :root { --ofc-sidebar-w: 220px; }
    .ofc-app__main { padding: 24px 24px 40px; }
    .ofc-stats-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .ofc-stat-card { padding: 16px; }
    .ofc-stat-card__value { font-size: 1.4rem; }
}

@media (max-width: 768px) {
    /* SP: サイドバー off-canvas */
    .ofc-app__sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 4px 0 24px rgba(0,0,0,.20);
    }
    .ofc-app__sidebar.is-open { transform: translateX(0); }

    .ofc-app__content { margin-left: 0; }
    .ofc-topbar__menu-btn { display: block; }
    .ofc-topbar__user-name { display: none; }
    .ofc-app__main { padding: 20px 16px 100px; }
    .ofc-app__bottomnav { display: flex; }

    /* Layout */
    .ofc-welcome {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 22px;
    }
    .ofc-welcome__name { font-size: 1.3rem; }
    .ofc-welcome__clock-badge { align-self: stretch; }

    .ofc-stats-row {
        grid-template-columns: 1fr;
    }
    .ofc-two-col { grid-template-columns: 1fr; }
    .ofc-clock-cta { padding: 20px; }
    .ofc-clock-cta__arrow { right: 14px; }
    .ofc-clock-cta__label { font-size: 1.05rem; }

    .ofc-panel__header { padding: 12px 16px; }
    .ofc-schedule-item { padding: 12px 16px; gap: 12px; }
    .ofc-schedule-item__date { flex-basis: 52px; }
    .ofc-schedule-item__day { font-size: 1.2rem; }

    .ofc-sm-clock-card__time { font-size: 2.4rem; }
}

@media (max-width: 480px) {
    .ofc-app__main { padding: 16px 12px 100px; }
    .ofc-welcome { padding: 20px 18px; }
    .ofc-welcome__name { font-size: 1.15rem; }
    .ofc-stat-card { padding: 14px; gap: 12px; }
    .ofc-stat-card__icon { width: 44px; height: 44px; font-size: 1.2rem; }
    .ofc-stat-card__value { font-size: 1.3rem; }
}

/* Print */
@media print {
    .ofc-app__sidebar, .ofc-app__topbar, .ofc-app__bottomnav,
    .ofc-sm-slip__actions { display: none !important; }
    .ofc-app__content { margin-left: 0; }
    .ofc-app__main { padding: 0; max-width: none; }
    body { background: #fff !important; }
}

/* ============================================================
   Login Screen (v2.5.75 リニューアル)
   ============================================================ */
.ofc-sm-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.06) 0%, transparent 40%),
        linear-gradient(135deg, #3A7F4A 0%, #2d5f3a 60%, #1e4527 100%);
    position: relative;
}
.ofc-sm-login-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 2px at 25% 15%, rgba(255,255,255,0.15) 100%, transparent),
        radial-gradient(circle 2px at 75% 45%, rgba(255,255,255,0.12) 100%, transparent),
        radial-gradient(circle 2px at 50% 80%, rgba(255,255,255,0.10) 100%, transparent);
    pointer-events: none;
}

.ofc-sm-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 6px 16px rgba(0, 0, 0, 0.10);
    position: relative;
    z-index: 1;
}
.ofc-sm-login-brand { text-align: center; margin-bottom: 28px; }
.ofc-sm-login-brand__icon {
    width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
    background: linear-gradient(135deg, #3A7F4A, #2d5f3a);
    display: flex; align-items: center; justify-content: center; color: #fff;
    font-size: 2rem; box-shadow: 0 6px 16px rgba(58, 127, 74, 0.35);
}
.ofc-sm-login-brand__title { margin: 0 0 4px; color: var(--ofc-primary); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; }
.ofc-sm-login-brand__sub { margin: 0; color: var(--ofc-text-muted); font-size: 0.85rem; letter-spacing: 0.05em; }
.ofc-sm-login-form { display: flex; flex-direction: column; gap: 18px; }
.ofc-sm-login-field { display: flex; flex-direction: column; gap: 6px; }
.ofc-sm-login-field label { font-size: 0.8rem; font-weight: 600; color: var(--ofc-primary-dark); letter-spacing: 0.02em; }
.ofc-sm-login-input {
    position: relative; display: flex; align-items: center;
    background: #f5f7f5; border: 1.5px solid transparent; border-radius: 10px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.ofc-sm-login-input:focus-within {
    background: #fff; border-color: var(--ofc-primary);
    box-shadow: 0 0 0 4px rgba(58, 127, 74, 0.10);
}
.ofc-sm-login-input > i:first-child {
    padding: 0 14px; color: var(--ofc-text-muted); font-size: .95rem; pointer-events: none;
}
.ofc-sm-login-input:focus-within > i:first-child { color: var(--ofc-primary); }
.ofc-sm-login-input input {
    flex: 1; background: transparent; border: none; outline: none;
    padding: 14px 4px 14px 0; font-size: 1rem; font-family: inherit; color: var(--ofc-text); min-width: 0;
}
.ofc-sm-login-input input::placeholder { color: #b5bdb7; font-size: .9rem; }
.ofc-sm-login-eye {
    background: transparent; border: none; padding: 0 14px; height: 100%;
    color: var(--ofc-text-muted); cursor: pointer; font-size: .95rem; transition: color .15s;
}
.ofc-sm-login-eye:hover { color: var(--ofc-primary); }
.ofc-sm-login-remember { margin-top: -4px; }
.ofc-sm-login-remember label {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    font-size: .85rem; color: var(--ofc-text); user-select: none;
}
.ofc-sm-login-remember input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ofc-primary); cursor: pointer; }
.ofc-sm-login-submit {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 15px 20px;
    background: linear-gradient(135deg, #3A7F4A 0%, #2d5f3a 100%); color: #fff;
    border: none; border-radius: 10px; font-size: 1rem; font-weight: 700;
    letter-spacing: 0.05em; cursor: pointer; box-shadow: 0 4px 12px rgba(58,127,74,.30);
    transition: transform .05s, box-shadow .2s, opacity .2s; margin-top: 4px;
    text-decoration: none;
}
.ofc-sm-login-submit:hover { box-shadow: 0 6px 18px rgba(58,127,74,.42); }
.ofc-sm-login-submit:active { transform: translateY(1px); }
.ofc-sm-login-help {
    text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid #eef1ee;
}
.ofc-sm-login-help a {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ofc-primary); text-decoration: none;
    font-size: .88rem; font-weight: 500; transition: color .15s;
}
.ofc-sm-login-help a:hover { color: var(--ofc-primary-dark); text-decoration: underline; }
.ofc-sm-login-help__note {
    margin: 12px 0 0; font-size: .75rem; color: var(--ofc-text-muted);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
@media (max-width: 480px) {
    .ofc-sm-login-card { padding: 32px 22px 24px; border-radius: 14px; }
    .ofc-sm-login-brand__icon { width: 60px; height: 60px; font-size: 1.65rem; }
    .ofc-sm-login-brand__title { font-size: 1.3rem; }
}

/* ============================================================
 * v2.5.89: シフト予定表 (複数人・タブ表示)
 * ============================================================ */
.ofc-sm-tabs {
    display: flex; gap: 0;
    background: #fff; border-radius: 12px;
    overflow: hidden; margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.ofc-sm-tab {
    flex: 1; padding: 14px 16px; text-align: center;
    color: #666; text-decoration: none; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .15s;
    position: relative;
}
.ofc-sm-tab:hover { background: #f8f9fa; color: #3A7F4A; }
.ofc-sm-tab.is-active {
    background: linear-gradient(135deg, #3A7F4A 0%, #2d5f3a 100%);
    color: #fff;
}
.ofc-sm-tab-count {
    background: rgba(255,255,255,.25); color: inherit;
    padding: 2px 8px; border-radius: 10px; font-size: 12px;
}
.ofc-sm-tab:not(.is-active) .ofc-sm-tab-count {
    background: #f0f0f0; color: #666;
}

/* シフト予定リスト */
.ofc-sm-shift-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.ofc-sm-shift-list__item {
    background: #fff; border-left: 4px solid #3A7F4A;
    border-radius: 8px; padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 14px; align-items: start;
    transition: all .15s;
}
.ofc-sm-shift-list__item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transform: translateY(-1px);
}
.ofc-sm-shift-list__item.is-past { opacity: 0.55; }
.ofc-sm-shift-list__item.is-mine {
    background: linear-gradient(135deg, #fff 0%, #f0f8f2 100%);
    border-left-width: 5px;
}
.ofc-sm-shift-list__date {
    text-align: center;
    font-size: 24px; font-weight: 700; color: #1e1e1e;
    line-height: 1.2;
}
.ofc-sm-shift-list__date small {
    display: block; font-size: 12px; color: #999; font-weight: 500;
}
.ofc-sm-shift-list__title {
    font-size: 15px; font-weight: 600; color: #1e1e1e;
    margin-bottom: 6px;
}
.ofc-sm-shift-list__meta {
    display: flex; flex-wrap: wrap; gap: 10px;
    font-size: 13px; color: #555;
    margin-bottom: 8px;
}
.ofc-sm-shift-list__time { color: #333; font-weight: 500; }
.ofc-sm-shift-list__time i { color: #3A7F4A; margin-right: 2px; }
.ofc-sm-shift-list__teams { display: inline-flex; gap: 4px; }
.ofc-sm-shift-list__team {
    color: #fff; padding: 2px 8px;
    border-radius: 3px; font-size: 11px; font-weight: 600;
}
.ofc-sm-shift-list__venue { color: #666; }
.ofc-sm-shift-list__venue i { color: #d32f2f; margin-right: 3px; }

.ofc-sm-shift-list__staff-list {
    display: flex; flex-wrap: wrap; gap: 5px;
    padding-top: 6px; border-top: 1px dashed #eee;
}
.ofc-sm-staff-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; background: #f0f4f8;
    border-radius: 12px; font-size: 12px; color: #333;
}
.ofc-sm-staff-pill i { color: #666; font-size: 10px; }
.ofc-sm-staff-pill em {
    font-style: normal; color: #888; font-size: 11px;
    margin-left: 2px;
}
.ofc-sm-staff-pill.is-me {
    background: #3A7F4A; color: #fff; font-weight: 600;
}
.ofc-sm-staff-pill.is-me i,
.ofc-sm-staff-pill.is-me em { color: rgba(255,255,255,.85); }

.ofc-sm-shift-list__unassigned {
    padding: 6px 10px; background: #fff3e0;
    color: #f57c00; border-radius: 6px;
    font-size: 12px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px dashed #ffb74d;
}

.ofc-sm-shift-list__mine-badge {
    margin-top: 8px; padding: 5px 10px;
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    color: #fff; font-size: 12px; font-weight: 600;
    border-radius: 4px; display: inline-flex; align-items: center; gap: 4px;
}

@media (max-width: 600px) {
    .ofc-sm-shift-list__item {
        grid-template-columns: 50px 1fr; gap: 10px; padding: 12px;
    }
    .ofc-sm-shift-list__date { font-size: 20px; }
    .ofc-sm-shift-list__meta { gap: 6px; font-size: 12px; }
}

/* ============================================================
 * v2.5.92: リスト/カレンダー表示切替
 * ============================================================ */

/* ビューバー (月ナビ + 表示切替) */
.ofc-sm-view-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    flex-wrap: wrap;
}
.ofc-sm-view-bar .ofc-sm-monthnav {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    box-shadow: none;
    padding: 0;
}
.ofc-sm-monthnav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: #f5f7f5;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    transition: all .15s;
}
.ofc-sm-monthnav__btn:hover { background: #3A7F4A; color: #fff; }
.ofc-sm-monthnav__label {
    font-size: 17px; font-weight: 700; color: #1e1e1e;
    padding: 0 8px;
}

/* 表示切替 (リスト/カレンダー) */
.ofc-sm-display-toggle {
    display: inline-flex;
    background: #f0f2f5;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.ofc-sm-display-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: transparent;
    color: #666;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
    border: none;
    cursor: pointer;
}
.ofc-sm-display-btn:hover { color: #3A7F4A; }
.ofc-sm-display-btn.is-active {
    background: #fff;
    color: #3A7F4A;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    font-weight: 600;
}

/* フロント カレンダーグリッド */
.ofc-fe-cal {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid #e5e9ee;
}
.ofc-fe-cal__head {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #f8f9fa;
    border-bottom: 1px solid #e5e9ee;
}
.ofc-fe-cal__hd {
    padding: 10px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #e5e9ee;
}
.ofc-fe-cal__hd:last-child { border-right: none; }
.ofc-fe-cal__hd.is-sun { color: #d32f2f; }
.ofc-fe-cal__hd.is-sat { color: #1976d2; }

.ofc-fe-cal__body {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: 100px;
}
.ofc-fe-cal__cell {
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 4px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}
.ofc-fe-cal__cell:nth-child(7n) { border-right: none; }
.ofc-fe-cal__cell.is-empty { background: #fafafa; }
.ofc-fe-cal__cell.is-sun { background: #fff8f8; }
.ofc-fe-cal__cell.is-sat { background: #f6faff; }
.ofc-fe-cal__cell.is-today {
    background: #fffde7;
    box-shadow: inset 0 0 0 2px #f57c00;
}

.ofc-fe-cal__day {
    font-size: 13px;
    font-weight: 700;
    color: #1e1e1e;
    padding: 0 2px;
    margin-bottom: 2px;
    flex-shrink: 0;
}
.ofc-fe-cal__cell.is-sun .ofc-fe-cal__day { color: #d32f2f; }
.ofc-fe-cal__cell.is-sat .ofc-fe-cal__day { color: #1976d2; }

.ofc-fe-cal__events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c3c4c7 transparent;
}
.ofc-fe-cal__events::-webkit-scrollbar { width: 3px; }
.ofc-fe-cal__events::-webkit-scrollbar-thumb { background: #c3c4c7; border-radius: 2px; }

.ofc-fe-cal__event {
    display: block;
    background: var(--ev-color, #3A7F4A);
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 10px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all .1s;
    flex-shrink: 0;
    font-family: inherit;
}
.ofc-fe-cal__event:hover {
    opacity: 0.85;
    transform: translateX(1px);
}
.ofc-fe-cal__event.is-mine {
    outline: 2px solid #ffb300;
    outline-offset: -2px;
    font-weight: 600;
}
.ofc-fe-cal__event-time {
    font-weight: 600;
    margin-right: 3px;
    opacity: 0.9;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 9px;
}

/* フロント モーダル */
.ofc-fe-modal {
    position: fixed;
    inset: 0;
    background: rgba(30, 30, 30, .55);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ofcFeFadeIn .2s;
}
@keyframes ofcFeFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ofc-fe-modal__dialog {
    background: #fff;
    border-radius: 14px;
    max-width: 480px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: ofcFeSlideIn .25s;
}
@keyframes ofcFeSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.ofc-fe-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #3A7F4A 0%, #2d5f3a 100%);
    color: #fff;
    border-radius: 14px 14px 0 0;
}
.ofc-fe-modal__header h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
}
.ofc-fe-modal__close {
    background: rgba(255,255,255,.2);
    color: #fff;
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.ofc-fe-modal__close:hover { background: rgba(255,255,255,.35); }

.ofc-fe-modal__body { padding: 16px 20px 20px; }
.ofc-fe-modal__meta { margin-bottom: 14px; }
.ofc-fe-modal__row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 14px;
    color: #333;
}
.ofc-fe-modal__row i { color: #3A7F4A; width: 16px; }
.ofc-fe-modal__team {
    display: inline-block;
    background: #3A7F4A;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
}
.ofc-fe-mine-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}
.ofc-fe-modal__staff-title,
.ofc-fe-modal__note-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin: 12px 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ofc-fe-modal__staff { display: flex; flex-direction: column; gap: 5px; }
.ofc-fe-modal__staffrow {
    padding: 7px 10px;
    background: #f5f7f5;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
}
.ofc-fe-modal__staffrow i { color: #666; margin-right: 4px; }
.ofc-fe-modal__staffrow em {
    font-style: normal;
    color: #888;
    font-size: 12px;
    margin-left: 4px;
}
.ofc-fe-modal__staffrow.is-me {
    background: linear-gradient(135deg, #3A7F4A 0%, #2d5f3a 100%);
    color: #fff;
}
.ofc-fe-modal__staffrow.is-me i,
.ofc-fe-modal__staffrow.is-me em {
    color: rgba(255,255,255,.85);
}
.ofc-fe-modal__unassigned {
    padding: 10px;
    background: #fff3e0;
    color: #f57c00;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px dashed #ffb74d;
    text-align: center;
}
.ofc-fe-modal__note {
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* モバイル */
@media (max-width: 640px) {
    .ofc-sm-view-bar {
        gap: 8px;
        padding: 8px 10px;
    }
    .ofc-sm-monthnav__label { font-size: 15px; padding: 0 4px; }
    .ofc-sm-display-btn { padding: 6px 10px; font-size: 12px; }
    .ofc-sm-display-btn span { display: none; }

    .ofc-fe-cal__body { grid-auto-rows: 80px; }
    .ofc-fe-cal__hd { font-size: 11px; padding: 6px 2px; }
    .ofc-fe-cal__day { font-size: 12px; }
    .ofc-fe-cal__event { font-size: 9px; padding: 1px 3px; }
    .ofc-fe-cal__event-time { display: none; }
}

/* v2.5.100: サイドバー バッジ */
.ofc-sidebar__link { position: relative; }
.ofc-sidebar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #f57c00;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
}
.ofc-sidebar__link.is-active .ofc-sidebar__badge {
    background: #fff;
    color: #3A7F4A;
}
