* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 13px; background: #f5f7fb; color: #1f2937; }
.container { max-width: 1680px; margin: 0 auto; padding: 32px 20px; }
.narrow { max-width: 760px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.page-header > div:first-child { flex: 1 1 54%; max-width: 56%; min-width: 0; }
.page-header .header-actions { flex: 1 1 40%; justify-content: flex-end; align-items: flex-end; }
.page-title-with-icon { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.page-title-with-icon h1 { margin-bottom: 0; }
.page-title-icon { height: 50px; width: auto; display: block; object-fit: contain; flex: 0 0 auto; }
.page-help-title-row { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; max-width: 100%; }
.page-help-title-row h1 { margin-bottom: 0; }
.page-title-with-icon.page-help-title-row { align-items: center; margin-bottom: 8px; }
.page-help-heading-inline { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.page-help-panel { width: 100%; }
.page-help-toggle-link { flex: 0 0 auto; border: 0; background: transparent; padding: 0; margin: 0 0 2px; color: #2563eb; font: inherit; font-weight: 700; line-height: 1; cursor: pointer; text-decoration: underline; }
.page-help-toggle-link:hover { color: #1d4ed8; }
.page-title-icon { align-self: center; }
h1, h2, h3 { margin: 0 0 8px; }
.subtitle { margin: 0; color: #6b7280; line-height: 1.45; }
.card { background: #fff; border-radius: 14px; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08); padding: 24px; margin-bottom: 24px; overflow-x: auto; }
.card:has(table) { overflow: visible; }
.table-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.tile { display: block; text-decoration: none; padding: 18px; border-radius: 12px; background: #2563eb; color: #fff; font-weight: bold; text-align: center; }
.area-links { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.area-tile { display: grid; gap: 10px; justify-items: center; align-content: center; min-height: 142px; padding: 16px; background: linear-gradient(145deg, #ffffff, #edf4ff); border: 1px solid #d6e4ff; color: #102a43; text-align: center; box-shadow: 0 14px 28px rgba(37, 99, 235, 0.08); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.area-tile:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(37, 99, 235, 0.14); border-color: #93c5fd; }
.tile-icon-wrap { width: 84px; height: 84px; display: inline-flex; align-items: center; justify-content: center; }
.tile-icon { width: 64px; height: 64px; display: block; object-fit: contain; }
.tile-label { font-size: 13px; line-height: 1.2; font-weight: 700; }
.btn { display: inline-block; text-decoration: none; border: none; border-radius: 10px; background: #2563eb; color: #fff; padding: 12px 18px; font-weight: bold; cursor: pointer; line-height: 1.2; }
.btn:hover { opacity: 0.95; } .btn-secondary { background: #6b7280; } .btn-danger { background: #dc2626; } .btn-small { padding: 8px 12px; font-size: 12px; }
.btn[disabled] { background: #cbd5e1; color: #f8fafc; cursor: not-allowed; opacity: 1; }
.header-actions, .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.inline-form { margin: 0; display: inline-flex; align-items: center; }
.filter-toggle-row { margin-bottom: 16px; }
.filter-toggle-btn { min-width: 140px; }
.flash { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: bold; }
.flash.success { background: #dcfce7; color: #166534; } .flash.error { background: #fee2e2; color: #991b1b; }
.attention-text { color: #b91c1c; font-weight: 700; }
.warning-text { color: #a16207; font-weight: 700; }
.info-text { color: #1d4ed8; font-weight: 700; }
.success-text { color: #15803d; font-weight: 700; }
.pending-local-value { color: #1d4ed8 !important; font-weight: 700; }
table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 10px; }
thead { background: #eff6ff; }
th, td { padding: 14px 12px; text-align: left; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
thead th { position: sticky; top: 0; z-index: 10; background: #eff6ff; box-shadow: 0 1px 0 #dbe3ee; }
tr.selected-row td { background: #ecfdf5; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pill.status-approved { background: #dcfce7; color: #166534; }
.status-pill.status-draft { background: #f1f5f9; color: #475569; }
.actions-col { white-space: nowrap; }
.table-link { text-decoration: none; font-weight: bold; color: #2563eb; margin-right: 12px; }
.table-link.danger { color: #dc2626; }
.table-link.is-disabled { color: #cbd5e1; cursor: not-allowed; pointer-events: none; }
.empty-state { text-align: center; color: #6b7280; padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.single-col { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full, .actions.full { grid-column: 1 / -1; }
label { font-weight: bold; }
.required-marker { color: #dc2626; font-weight: 800; }
.mandatory-note { color: #6b7280; font-size: 12px; font-weight: 600; margin-top: -8px; }
.mandatory-note.full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px 14px; font-size: 13px; background: #fff; }
textarea { resize: vertical; }
.partner-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    background:
        linear-gradient(rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.32)),
        url('img/sfondo_bar.png') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}
.partner-context-inline { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.partner-identity { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.partner-logo-circle { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 54px; }
.partner-logo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.partner-inline-link { color: #ffffff; font-weight: 700; text-decoration: underline; }
.partner-inline-link:hover { color: #dbeafe; }
.audit-log-details p { margin: 0 0 10px; }
.audit-log-legend { margin: 10px 0 0; color: #475569; line-height: 1.5; }
.audit-log-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.audit-log-grid pre { margin: 8px 0 0; padding: 12px; border-radius: 12px; background: #f6f8fb; border: 1px solid #d7dfea; white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.45; }
.partner-bar .btn-secondary { background: #ffffff; color: #2563eb; }
.readonly-box { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px 14px; background: #f8fafc; font-weight: bold; }
.choice-group { display: flex; gap: 10px; flex-wrap: wrap; }
.choice-card { display: flex; align-items: center; gap: 10px; min-width: 120px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; cursor: pointer; font-weight: bold; }
.choice-card.is-disabled { background: #f8fafc; color: #94a3b8; cursor: not-allowed; }
.checkbox-section { display: grid; gap: 10px; }
.status-badge { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: bold; text-transform: lowercase; }
.status-badge.success { background: #dcfce7; color: #166534; }
.status-badge.pending { background: #fef3c7; color: #92400e; }
.grade-row, .grade-summary { display: grid; gap: 12px; padding: 16px; border: 1px solid #dbeafe; border-radius: 12px; background: #f8fbff; }
.grade-summary { border-color: #fde68a; background: linear-gradient(180deg, #fff8db, #fff3bf); }
.grade-summary .grade-row-label { color: #b45309; }
.grade-row-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #1d4ed8; }
.grade-row-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.grade-row-title { display: flex; flex-direction: column; gap: 4px; }
.grade-controls { display: flex; gap: 12px; align-items: center; flex-wrap: nowrap; }
.grade-input-block { display: grid; gap: 8px; }
.grade-button-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grade-chip { min-width: 48px; padding: 10px 14px; border-radius: 999px; border: 1px solid #cbd5e1; background: #ffffff; color: #334155; font-weight: 700; cursor: pointer; transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease; }
.grade-chip:hover { transform: translateY(-1px); }
.grade-chip.is-selected { color: #ffffff; box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12); }
.grade-chip-negative.is-selected { background: #dc2626; border-color: #b91c1c; }
.grade-chip-positive.is-selected { background: #16a34a; border-color: #15803d; }
.grade-chip-clear { background: #f8fafc; color: #64748b; }
.grade-chip-clear.is-selected { background: #475569; border-color: #334155; }
.passed-switch-wrap { display: flex; align-items: center; }
.passed-switch { position: relative; min-width: 168px; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; background: #dc2626; color: #ffffff; display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.01em; cursor: pointer; transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease; }
.passed-switch:hover { transform: translateY(-1px); }
.passed-switch.is-active { background: #16a34a; justify-content: flex-start; color: #ffffff; border-color: #15803d; }
.passed-switch.is-inactive { background: #dc2626; color: #ffffff; border-color: #b91c1c; }
.passed-switch.is-disabled { background: #e2e8f0; color: #64748b; border-color: #cbd5e1; cursor: not-allowed; box-shadow: none; }
.passed-switch-knob { width: 34px; height: 34px; border-radius: 50%; background: #ffffff; flex: 0 0 34px; box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18); order: 2; }
.passed-switch.is-active .passed-switch-knob { order: 1; }
.passed-switch-text { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; text-transform: uppercase; }
.choice-inline { min-width: auto; white-space: nowrap; }
.choice-card input[type='radio'] { width: auto; margin: 0; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 12px; }
.checkbox-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #dbe3ee; border-radius: 12px; padding: 12px 14px; background: #fff; }
.checkbox-card.is-disabled { background: #f8fafc; color: #94a3b8; }
.checkbox-card input[type='checkbox'] { width: 15px; height: 15px; min-width: 15px; flex: 0 0 15px; margin-top: 2px; cursor: pointer; }
.checkbox-card.is-disabled input[type='checkbox'] { cursor: not-allowed; }
.checkbox-card span { flex: 1; }
.field-hint { font-weight: normal; color: #475569; }
.field-note { margin-top: 6px; margin-bottom: 8px; padding: 10px 12px; border-radius: 10px; background: #f8fafc; color: #334155; line-height: 1.45; }
.teaching-course-card { display: grid; gap: 16px; padding: 18px; border: 1px solid #d7e3f5; border-radius: 14px; background: linear-gradient(180deg, #ffffff, #f8fbff); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
.teaching-course-card + .teaching-course-card { margin-top: 16px; }
.teaching-course-card.is-selected { border-color: #93c5fd; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08); }
.teaching-delegate-label { min-height: 76px; border-color: #c7d2fe; background: linear-gradient(180deg, #ffffff, #f5f7ff); }
.teaching-delegate-label strong { color: #3730a3; }
.teaching-delegate-label small { color: #64748b; }
.teaching-course-header { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: stretch; }
.teaching-course-label { min-height: 86px; height: 100%; border-color: #bfdbfe; background: #eff6ff; }
.teaching-course-label strong { color: #1d4ed8; }
.teaching-course-label small { color: #475569; }
.teaching-course-role { min-height: 86px; height: 100%; justify-content: space-between; padding: 14px; border: 1px solid #dbe3ee; border-radius: 12px; background: #fff; }
.teaching-course-role label { color: #334155; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.teaching-modules-panel { display: grid; gap: 12px; padding: 16px; margin-left: 24px; border-left: 4px solid #bfdbfe; border-radius: 12px; background: #f8fafc; }
.teaching-modules-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #0f172a; }
.teaching-modules-header strong { color: #0f4c81; }
.teaching-modules-header span { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; padding: 6px 10px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 12px; font-weight: 700; }
.teaching-modules-hint { color: #64748b; font-size: 12px; font-weight: 600; }
.teaching-modules-grid { margin-top: 2px; }
.teaching-module-label { border-style: dashed; background: #ffffff; }
.teaching-module-label strong { color: #1f2937; }
.teaching-module-label small { color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; }
.module-skill-groups { display: grid; gap: 16px; }
.module-skill-group { border: 1px solid #dbe3ee; border-radius: 12px; padding: 18px; background: #f8fbff; display: grid; gap: 16px; }
.module-skill-group-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; }
.module-skill-group-title { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin: 6px 0 10px; padding: 10px 12px; border-radius: 10px; background: #e0f2fe; color: #0f4c81; }
.module-skill-group-title span { color: #0369a1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.module-skill-group-chevron { min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 18px; font-weight: 700; }
.module-skill-group-body { display: grid; gap: 16px; }
.module-skill-group-body[hidden] { display: none !important; }
.module-skill-group .checkbox-grid { grid-template-columns: 1fr; }
.module-skill-card { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; align-items: start; }
.module-skill-choice { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.module-skill-weight-wrap { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.module-skill-weight-wrap label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; }
.module-skill-weight-wrap input { width: 78px; }
.module-skill-weight-wrap input[disabled] { background: #e5e7eb; color: #94a3b8; cursor: not-allowed; }
.skill-objects-panel { grid-column: 1 / -1; display: grid; gap: 10px; padding: 14px; border: 1px solid #dbe3ee; border-radius: 10px; background: #ffffff; }
.skill-objects-panel[hidden] { display: none !important; }
.skill-objects-panel-header { display: flex; align-items: center; gap: 10px; }
.skill-objects-toggle { width: 80px; min-width: 80px; display: inline-flex; justify-content: center; align-items: center; border: 0; background: transparent; padding: 0; text-align: center; cursor: pointer; }
.skill-objects-header { display: grid; gap: 4px; }
.skill-objects-header-row { display: flex; align-items: center; gap: 8px; }
.skill-objects-header small { color: #64748b; }
.skill-objects-toggle-label { width: 80px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 8px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: 11px; font-weight: 700; line-height: 1; }
.skill-objects-body { display: grid; gap: 10px; }
.skill-objects-body[hidden] { display: none !important; }
.skill-objects-list { display: grid; gap: 8px; }
.skill-object-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 8px; align-items: center; }
.skill-object-row input[disabled] { background: #e5e7eb; color: #94a3b8; cursor: not-allowed; }
.skill-object-remove { min-width: 34px; padding: 8px 10px; }
.skill-object-alert { margin-bottom: 0; }
.help-icon-button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #93c5fd; background: #dbeafe; color: #1d4ed8; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.help-icon-button:hover { background: #bfdbfe; }
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 999; }
.modal-overlay[hidden] { display: none !important; }
.modal-card { width: min(760px, 100%); max-height: 85vh; overflow: auto; border-radius: 16px; background: #fff; border: 1px solid #dbe3ee; box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18); }
.modal-card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 0; }
.confirm-modal-card { width: min(520px, 100%); }
.confirm-modal-content { padding: 14px 20px 20px; color: #1f2937; line-height: 1.45; }
.confirm-modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 20px 20px; }
.app-loading-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, 0.62); cursor: wait; }
.app-loading-overlay[hidden] { display: none !important; }
.app-loading-card { width: min(420px, 100%); display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 18px; background: #ffffff; border: 1px solid #dbe3ee; box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28); }
.app-loading-card p { margin: 4px 0 0; color: #475569; line-height: 1.45; }
.app-loading-spinner { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 999px; border: 4px solid #dbeafe; border-top-color: #2563eb; animation: app-loading-spin 0.8s linear infinite; }
@keyframes app-loading-spin { to { transform: rotate(360deg); } }
.module-help-modal { padding-bottom: 20px; }
.module-help-content { padding: 0 20px 20px; color: #1e293b; line-height: 1.55; }
.module-help-content p { margin: 0 0 14px; }
.module-help-content b { display: inline-block; margin-bottom: 4px; }
.module-help-content ul { margin: 0 0 14px 20px; padding: 0; }
.module-help-content li { margin-bottom: 6px; }
.module-list { display: flex; flex-direction: column; gap: 12px; }
.module-row { border: 1px solid #dbe3ee; border-radius: 12px; padding: 14px; background: #fff; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.channel-rows { display: grid; gap: 10px; }
.channel-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.channel-row .checkbox-card { margin: 0; align-items: center; padding: 10px 12px; }
.channel-row .checkbox-card span { white-space: nowrap; }
.channel-name-input { width: 100%; }
.channel-name-input.is-saved { background: #f0fdf4; border-color: #86efac; }
.channel-name-input[readonly] { cursor: not-allowed; color: #475569; }
.btn-inline { min-width: 42px; padding: 8px 10px; }
.channel-row-main { display: grid; gap: 6px; }
.channel-name-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: 20px; }
.channel-name-text { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; color: #1f2937; font-weight: 600; flex-wrap: wrap; }
.channel-name-text.is-existing { background: #f0fdf4; border-color: #bbf7d0; }
.channel-name-text.is-proposed { background: #eff6ff; border-color: #bfdbfe; }
.channel-input-wrap { display: grid; gap: 6px; }
.channel-state-badge { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-width: 68px; padding: 4px 8px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 11px; font-weight: 700; line-height: 1; }
.channel-state-badge.is-proposed { background: #dbeafe; color: #1d4ed8; }
.channel-state-badge.is-new { background: #fef3c7; color: #92400e; }
.channel-tenant-id { color: #64748b; font-weight: 600; cursor: help; }
.channel-row-actions { display: flex; gap: 8px; align-items: center; }
.team-context-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) 250px; gap: 14px; margin-bottom: 18px; align-items: stretch; }
.team-context-card { display: grid; gap: 8px; padding: 16px; border: 1px solid #dbe3ee; border-radius: 12px; background: #f8fafc; align-content: start; }
.team-context-card p { margin: 0; }
.team-icon-card { align-content: start; }
.team-icon-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team-icon-selected-file { color: #64748b; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-icon-panel { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: stretch; }
.team-icon-preview { width: 100px; min-height: 100px; height: 100%; display: block; object-fit: cover; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; align-self: stretch; }
.team-icon-actions { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 100px; height: 100%; }
.team-icon-form { display: grid; gap: 8px; align-items: start; margin: 0; }
.team-icon-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.team-icon-file-label { cursor: pointer; }
.team-icon-form .btn { width: 104px; text-align: center; }
.team-channels-card { background: #ffffff; }
.card-header-inline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.add-module-panel[hidden] { display: none !important; }
.module-actions { white-space: nowrap; }
.course-note-list { display: grid; gap: 12px; }
.course-note-item { border: 1px solid #dbe3ee; border-radius: 12px; padding: 12px 14px; background: #f8fafc; }
.course-note-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; color: #64748b; font-size: 12px; }
.bulk-action-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; }
.bulk-action-text { color: #475569; font-weight: 600; }
.attendance-sync-card { padding: 20px; }
.attendance-sync-toolbar { display: grid; gap: 14px; }
.attendance-sync-status { color: #475569; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }
.attendance-sync-actions { display: grid; grid-template-columns: minmax(210px, 0.8fr) minmax(380px, 1.4fr) minmax(210px, 0.8fr); gap: 14px; align-items: stretch; }
.attendance-sync-group { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; padding: 12px; border: 1px solid #dbe3ee; border-radius: 12px; background: #f8fafc; }
.attendance-sync-group-old { background: #eff6ff; border-color: #bfdbfe; }
.attendance-sync-label { color: #334155; font-size: 12px; font-weight: 800; line-height: 1.2; }
.attendance-sync-group-old .attendance-sync-label { color: #1d4ed8; }
.attendance-sync-form { margin: 0; display: flex; min-width: 0; align-items: stretch; }
.attendance-sync-form .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; width: 100%; }
.attendance-sync-form-old { display: grid; grid-template-columns: minmax(260px, 1fr) max-content; gap: 10px; align-items: stretch; }
.attendance-sync-select { min-width: 0; height: 44px; }
.attendance-bulk-grid { grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto; align-items: end; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 8px; min-height: 41px; width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px 14px; background: #fff; white-space: nowrap; }
.checkbox-inline input[type='checkbox'] { width: 16px; height: 16px; margin: 0; flex: 0 0 16px; }
.checkbox-col { width: 46px; text-align: center; }
.checkbox-col input[type='checkbox'] { width: 16px; height: 16px; cursor: pointer; }
.entra-id-short { display: inline-block; max-width: 88px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.settings-order-list { display: grid; gap: 14px; }
.settings-order-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px; border: 1px solid #dbe3ee; border-radius: 12px; background: #fff; }
.settings-order-label { font-weight: 700; color: #1f2937; }
.settings-order-input { display: grid; gap: 6px; width: 140px; }
.privacy-policy-list { display: grid; gap: 16px; }
.privacy-policy-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px; border: 1px solid #dbe3ee; border-radius: 12px; background: #fff; }
.privacy-policy-copy { display: grid; gap: 6px; }
.privacy-policy-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; }
.pagination-summary { color: #6b7280; font-weight: 600; }
.pagination-controls { display: inline-flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.pagination-page-size { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; max-width: max-content !important; margin: 0; color: #1f2937; font-size: 12px; font-weight: 700; flex: 0 0 auto; white-space: nowrap; }
.pagination-page-size label { display: inline-flex; align-items: center; height: 34px; margin: 0; white-space: nowrap; }
.pagination-page-size select,
.pagination .pagination-page-size select { display: inline-block !important; flex: 0 0 82px; width: 82px !important; max-width: 82px !important; height: 34px; min-width: 82px; padding: 6px 24px 6px 10px; border-radius: 9px; font-size: 12px; line-height: 1; }
.pagination-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pagination-current { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; padding: 8px 12px; border-radius: 10px; background: #2563eb; color: #fff; font-weight: 700; }
.pagination-gap { color: #94a3b8; font-weight: 700; padding: 0 2px; }
.danger-card { border-left: 6px solid #dc2626; }
.login-card { margin-top: 60px; }
.login-card .subtitle { margin-bottom: 18px; }
.login-shell { padding-top: 30px; }
.login-brand { display: grid; gap: 14px; margin-bottom: 18px; text-align: center; }
.login-hero-image { display: flex; justify-content: center; align-items: center; }
.login-hero-image img { width: min(100%, 120px); height: auto; display: block; }
.login-logo-strip { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.login-logo-circle { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #ffffff, #e2e8f0); border: 1px solid #dbe3ee; box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08); }
.login-logo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
input[readonly], textarea[readonly], .readonly-gray { background: #e5e7eb !important; color: #4b5563 !important; cursor: not-allowed; }
.invalid-field, input.invalid-field, select.invalid-field, textarea.invalid-field { background: #fee2e2 !important; border-color: #dc2626 !important; }
.field-error { color: #991b1b; font-size: 12px; font-weight: 600; }
.validation-error-card { max-width: 620px; border-top: 5px solid #dc2626; }
.validation-error-content { padding: 12px 20px 22px; color: #1f2937; line-height: 1.45; }
.validation-error-content p { margin: 0 0 12px; }
.validation-error-content ul { margin: 0 0 0 20px; padding: 0; }
.validation-error-content li { margin-bottom: 8px; }
.validation-error-extra { margin-top: 12px !important; color: #991b1b; font-weight: 700; }
.didactic-overview-card { overflow: visible; }
.table-scroll { overflow-x: auto; }
.didactic-overview-card .table-scroll { overflow: visible; }
.didactic-overview-table { min-width: 1180px; table-layout: auto; border-collapse: separate; border-spacing: 0; }
.didactic-overview-table th, .didactic-overview-table td { vertical-align: middle; }
.didactic-overview-table thead th { position: sticky; top: 0; z-index: 20; vertical-align: top; padding-bottom: 10px; background: #eff6ff; box-shadow: 0 1px 0 #dbe3ee; }
.overview-id-col { width: 70px; }
.overview-course-col { width: 390px; }
.overview-code-col { width: 150px; }
.overview-meta-col { width: 150px; }
.overview-partner-col { width: 190px; }
.overview-start-col { width: 92px; white-space: nowrap; }
.overview-course-name { display: grid; gap: 4px; min-width: 280px; }
.overview-course-name small { color: #64748b; font-weight: 600; }
.didactic-overview-table thead th.overview-check-header { min-width: 74px; padding: 10px 6px; text-align: center; vertical-align: top; }
.didactic-overview-table thead th.overview-check-header .overview-check-link { display: flex; align-items: flex-start; justify-content: center; width: 100%; color: #1d4ed8; text-align: center; }
.didactic-overview-table thead th.overview-check-header .overview-check-label { display: block; width: 100%; white-space: normal; line-height: 1.15; padding-bottom: 0; text-align: center; }
.overview-check-cell { text-align: center; }
.overview-status-link { display: inline-flex; text-decoration: none; }
.overview-status-link:hover .overview-status { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12); }
.overview-status { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; font-size: 17px; font-weight: 900; line-height: 1; }
.overview-status-ok { color: #047857; background: #d1fae5; }
.overview-status-ko { color: #b91c1c; background: #fee2e2; }
.overview-status-na { color: #64748b; background: #e2e8f0; }
.overview-status-not-verified { color: #92400e; background: #fef3c7; }
.kron-checkbox-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .area-links { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .kron-checkbox-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .attendance-sync-actions { grid-template-columns: 1fr; } .attendance-sync-form-old { grid-template-columns: 1fr; } }
@media (max-width: 920px) { .area-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .page-header, .partner-bar, .privacy-policy-card { flex-direction: column; align-items: flex-start; } .page-header > div:first-child, .page-header .header-actions { max-width: none; width: 100%; justify-content: flex-start; } .form-grid, .checkbox-grid, .grade-row-content, .teaching-course-header, .team-context-grid, .area-links { grid-template-columns: 1fr; } .module-row, .module-skill-card, .skill-object-row { flex-direction: column; grid-template-columns: 1fr; } .grade-controls { flex-wrap: wrap; } .partner-context-inline { gap: 12px; } .teaching-modules-panel { margin-left: 0; } }
