.sc-container {
    background: #fff;
    padding: 20px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.sc-points-box {
    background: #f2f2f2;
    border-left: 5px solid #b6402c;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-weight: bold;
    box-sizing: border-box;
}

.sc-notice { padding:10px 12px; margin-bottom: 16px; }
.sc-notice-ok { color: #155724; background:#d4edda; }
.sc-notice-warn { color:#856404; background:#fff3cd; }
.sc-notice-error { color:#842029; background:#f8d7da; }

.sc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sc-tab-btn {
    background: #b6402c;
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.2;
}

.sc-tab-btn.sc-active {
    background: #8f3122;
}

.sc-tab-panel {
    display: none;
    width: 100%;
}

.sc-tab-panel.sc-active {
    display: block;
}

.sc-accordion-item {
    border-bottom: 1px solid #ddd;
    padding: 0;
}

.sc-accordion-toggle {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 14px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    font-size: 18px;
    font-weight: bold;
    box-sizing: border-box;
}

.sc-accordion-toggle span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

.sc-accordion-toggle span:last-child {
    flex: 0 0 auto;
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}

.sc-accordion-content {
    display: none;
    padding: 0 0 16px 0;
    box-sizing: border-box;
}

.sc-accordion-item.sc-open .sc-accordion-content {
    display: block;
}

.sc-points {
    color: #b6402c;
    font-weight: bold;
}

.sc-muted {
    color: #666;
    font-size: 13px;
}

.sc-empty {
    padding: 12px 0;
    color: #666;
}

.sc-status {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    margin-bottom: 8px;
    max-width: 100%;
}

.sc-approved { background: #d4edda; color: #155724; }
.sc-pending { background: #fff3cd; color: #856404; }
.sc-rejected { background: #f8d7da; color: #721c24; }

.sc-btn,
.sc-container a.sc-btn {
    display: inline-block;
    background: #b6402c;
    color: #fff !important;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    line-height: 1.2;
}

.sc-btn:hover,
.sc-container a.sc-btn:hover {
    background: #8f3122;
    color: #fff !important;
    text-decoration: none;
}

textarea.sc-textarea {
    width: 100%;
    min-height: 80px;
    margin-bottom: 8px;
    box-sizing: border-box;
    max-width: 100%;
}

.sc-classifica-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
}

.sc-classifica-name {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

.sc-classifica-score {
    flex: 0 0 auto;
    font-weight: bold;
    color: #b6402c;
    white-space: nowrap;
}

.sc-admin-card {
    background:#fff;
    border:1px solid #ddd;
    padding:16px;
    margin:0 0 16px 0;
}

.sc-widget-frame {
    background: #fff;
    border: 1px solid #d9d9d9;
    width: 100%;
    max-width: 100%;
    height: 700px;
    overflow: hidden;
    box-sizing: border-box;
}

.sc-widget-header {
    background: #f3f3f3;
    border-bottom: 1px solid #ddd;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    box-sizing: border-box;
}

.sc-widget-inner {
    height: calc(100% - 52px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.sc-widget-inner .sc-container {
    padding: 20px;
    background: #fff;
    box-sizing: border-box;
    min-height: 100%;
}

.sc-widget-inner::-webkit-scrollbar {
    width: 10px;
}
.sc-widget-inner::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.sc-widget-inner::-webkit-scrollbar-thumb {
    background: #b6402c;
}
.sc-widget-inner::-webkit-scrollbar-thumb:hover {
    background: #8f3122;
}

@media (max-width: 768px) {
    .sc-container { padding: 16px 12px; }
    .sc-accordion-toggle { flex-direction: column; align-items: flex-start; gap: 6px; }
    .sc-classifica-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .sc-classifica-score { white-space: normal; }
}


.sc-admin-card h2 {
    margin-top: 0;
}


.sc-inline-reject-reason {
    display: block;
    font-size: 13px;
    margin-top: 4px;
    color: #842029;
    font-weight: 500;
}

.sc-wod-mission {
    border: 2px solid #b6402c;
    background: #fffaf7;
}

.sc-wod-highlight {
    border: 1px solid #e7c3ba;
    background: #fff7f4;
    padding: 12px;
    margin-top: 8px;
}
