.apc-wrap {
    --apc-ink: #000;
    --apc-lime-100: #eef5d1;
    --apc-lime-200: #d6e59a;
    --apc-olive-500: #7eaa00;
    --apc-olive-600: #699000;
    --apc-olive-700: #557400;
    --apc-line: #e0e2d8;
    --apc-ink-soft: #5a5d52;
    --apc-grey-50: #f7f8f4;
    --apc-grey-100: #eef0e6;
    font-family: 'Roboto', sans-serif;
    color: var(--apc-ink);
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 20px 80px;
    box-sizing: border-box;
}
.apc-wrap * { box-sizing: border-box; }

.apc-wrap.apc-denied {
    max-width: 640px;
    background: var(--apc-grey-50);
    border: 1px solid var(--apc-line);
    border-radius: 12px;
    padding: 28px 30px;
    font-size: 14px;
    line-height: 1.6;
}

.apc-hero h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; margin: 0 0 4px; }
.apc-hero p { color: var(--apc-ink-soft); font-size: 14px; margin: 0 0 20px; }

.panel-card {
    background: #fff;
    border: 1px solid var(--apc-line);
    border-radius: 14px;
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .18);
    overflow: hidden;
}
.toolbar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid var(--apc-line);
}
.search-wrap { flex: 1; min-width: 220px; max-width: 340px; }
.search-wrap input {
    width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--apc-line);
    font-family: 'Roboto'; font-size: 13.5px; background: var(--apc-grey-50); outline: none;
}
.search-wrap input:focus { border-color: var(--apc-olive-500); background: #fff; }
.apc-wrap .filters { display: flex; gap: 8px; flex-wrap: wrap; }
.apc-wrap .filters select {
    padding: 9px 12px; border-radius: 8px; border: 1px solid var(--apc-line);
    background: var(--apc-grey-50); font-family: 'Roboto'; font-size: 12.8px; color: var(--apc-ink);
}

.apc-wrap table { width: 100%; border-collapse: collapse; min-width: 640px; }
.apc-wrap thead th {
    text-align: left; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--apc-ink-soft);
    padding: 13px 18px; border-bottom: 1px solid var(--apc-line); cursor: pointer; user-select: none; font-weight: 700;
}
.apc-wrap thead th .arrow { opacity: .3; margin-left: 4px; font-size: 9px; }
.apc-wrap thead th.sorted .arrow { opacity: 1; color: var(--apc-olive-500); }
.apc-wrap tbody tr { border-bottom: 1px solid var(--apc-line); cursor: pointer; transition: .12s; }
.apc-wrap tbody tr:hover { background: var(--apc-grey-50); }
.apc-wrap tbody td { padding: 14px 18px; font-size: 13.5px; vertical-align: middle; }
.apc-wrap .name-cell b { display: block; font-weight: 700; font-size: 14px; }
.apc-wrap .name-cell span { color: var(--apc-ink-soft); font-size: 12px; }
.apc-wrap .tag { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--apc-grey-100); }
.apc-wrap .tag.moss { background: var(--apc-lime-100); color: var(--apc-olive-700); }
.apc-wrap .empty { padding: 50px 20px; text-align: center; color: var(--apc-ink-soft); }

.apc-wrap .overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none;
    transition: opacity .3s; z-index: 60;
}
.apc-wrap .overlay.show { opacity: 1; pointer-events: auto; }
.apc-wrap .sheet {
    position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 92vw); background: #fff;
    box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .4); transform: translateX(100%);
    transition: transform .35s cubic-bezier(.16, 1, .3, 1); z-index: 61; overflow-y: auto;
}
.apc-wrap .sheet.show { transform: translateX(0); }
.apc-wrap .sheet-head { padding: 26px; background: var(--apc-ink); color: #fff; position: relative; }
.apc-wrap .sheet-head .close {
    position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255, 255, 255, .14); border: none; color: #fff; font-size: 15px; cursor: pointer;
}
.apc-wrap .sheet-head h2 { margin: 0 0 4px; font-size: 20px; color: #fff; }
.apc-wrap .sheet-head .meta { font-size: 12.5px; color: var(--apc-lime-200); }
.apc-wrap .sheet-body { padding: 24px 26px; }
.apc-wrap .field-group { margin-bottom: 22px; }
.apc-wrap .field-group h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--apc-ink-soft); margin: 0 0 10px; font-weight: 700; }
.apc-wrap .field-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--apc-line); font-size: 13.5px; }
.apc-wrap .field-row span:first-child { color: var(--apc-ink-soft); }
.apc-wrap .field-row span:last-child { font-weight: 700; text-align: right; }
.apc-wrap .desc-box { background: var(--apc-grey-50); border: 1px solid var(--apc-line); border-radius: 10px; padding: 16px; font-size: 13.5px; line-height: 1.6; }

.apc-wrap .fiche-detail { background: #fff; border: 1px solid var(--apc-line); border-radius: 14px; padding: 30px; max-width: 720px; margin: 0 auto; }
.apc-wrap .fiche-detail h1 { font-size: 24px; font-weight: 900; margin: 0 0 20px; }
