.sg-page { max-width: 1500px; margin: auto; color: #15342d; font-size: .79rem; }
.sg-breadcrumb { display: flex; gap: 10px; align-items: center; margin: 3px 0 28px; color: #7b8984; font-size: .7rem; }
.sg-breadcrumb a { color: inherit; text-decoration: none; }
.sg-breadcrumb strong { color: #087b63; }
.sg-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.sg-heading p, .sg-modal header p { margin: 0 0 14px; color: #087b63; font-size: .64rem; font-weight: 900; letter-spacing: .14em; }
.sg-heading h1 { margin: 0 0 10px; font-size: clamp(1.65rem,3vw,2.2rem); font-weight: 500; letter-spacing: -.045em; }
.sg-heading > div > span { color: #697c75; font-size: .77rem; }
.sg-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.sg-page button, .sg-outline { min-height: 39px; padding: 9px 14px; color: #087b63; background: #fff; border: 1px solid #d7e2de; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.sg-page button:hover, .sg-outline:hover { background: #edf7f3; }
.sg-page button:disabled { opacity: .55; cursor: wait; }
.sg-page .sg-primary, .sg-modal .sg-primary { color: #fff; background: #07875e; border-color: #07875e; }
.sg-page .sg-primary:hover, .sg-modal .sg-primary:hover { background: #066f50; }
.sg-alert, .sg-success { margin: 14px 0; padding: 13px 16px; border-radius: 9px; line-height: 1.5; }
.sg-alert { color: #983c2e; background: #fff1ef; border: 1px solid #f0d4ce; }
.sg-success { color: #246544; background: #eaf8ef; border: 1px solid #cce7d5; }
.sg-progress-card { min-height: 83px; padding: 17px 20px; display: grid; grid-template-columns: auto 175px 1fr auto; align-items: center; gap: 18px; background: #fff; border: 1px solid #d9e3df; border-radius: 15px; }
.sg-metric-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #09956e; background: #eaf8f2; border-radius: 12px; font-size: 1.35rem; }
.sg-score { display: flex; flex-direction: column; gap: 5px; }
.sg-score strong { font-size: 1.34rem; }
.sg-score small, .sg-stats small { color: #6b7d76; font-size: .69rem; }
.sg-progress { display: flex; flex-direction: column; gap: 8px; }
.sg-progress small, .sg-row-progress small { color: #89958f; font-size: .58rem; }
.sg-progress i, .sg-row-progress i { height: 4px; overflow: hidden; display: block; background: #e6eeeb; border-radius: 99px; }
.sg-progress b, .sg-row-progress b { height: 100%; display: block; background: #15987a; border-radius: inherit; }
.sg-stats { display: flex; align-items: center; gap: 15px; }
.sg-stats strong { color: #07876a; font-size: .7rem; }
.sg-section { margin-top: 31px; }
.sg-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 12px; }
.sg-section-heading h2 { margin: 0 0 7px; font-size: 1.05rem; font-weight: 500; }
.sg-section-heading p { margin: 0; color: #6d7f78; font-size: .69rem; }
.sg-toggle { display: flex; align-items: center; gap: 7px; color: #647770; font-size: .68rem; white-space: nowrap; }
.sg-toggle input, .sg-check input, .sg-startup input { accent-color: #087b63; }
.sg-list-head { padding: 0 14px 9px; display: grid; grid-template-columns: 34% 36% 19% 11%; color: #788981; font-size: .59rem; font-weight: 800; letter-spacing: .05em; }
.sg-component-list, .sg-title-list { display: grid; gap: 8px; }
.sg-component-row { position: relative; background: #fff; border: 1px solid #d9e3df; border-radius: 12px; }
.sg-component-row > a { min-height: 61px; padding: 12px 64px 12px 14px; display: grid; grid-template-columns: 28px minmax(210px,1.2fr) minmax(220px,1.5fr) minmax(160px,.8fr) 88px 12px; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.sg-component-row > a:hover { background: #f8fbfa; border-radius: inherit; }
.sg-number { width: 28px; height: 28px; display: grid; place-items: center; color: #07875e; background: #f0f6f3; border-radius: 8px; font-size: .62rem; font-weight: 900; }
.sg-component-row strong, .sg-title-card header strong { font-size: .73rem; }
.sg-description { color: #697b74; font-size: .68rem; }
.sg-row-progress { display: flex; flex-direction: column; gap: 6px; }
.sg-row-progress small { display: flex; justify-content: space-between; }
.sg-row-progress em { color: #07875e; font-style: normal; }
.sg-status { justify-self: start; padding: 7px 9px; color: #9a6b23; background: #fff4df; border-radius: 999px; font-size: .58rem; }
.sg-status-cumple, .sg-status-vigente { color: #167052; background: #e9f7ef; }
.sg-status-parcial { color: #90671e; background: #fff3d8; }
.sg-status-vencido { color: #a04635; background: #fff0ec; }
.sg-chevron { font-size: 1.35rem; }
.sg-row-actions { position: absolute; top: 50%; right: 31px; display: none; gap: 5px; transform: translateY(-50%); }
.sg-component-row:hover .sg-row-actions { display: flex; }
.sg-row-actions button { min-height: 31px; padding: 5px 8px; font-size: .61rem; }
.sg-component-row:hover .sg-chevron { opacity: 0; }
.is-disabled { opacity: .65; }
.sg-empty { padding: 38px 20px; color: #71817b; text-align: center; background: #fff; border: 1px dashed #d6e2dd; border-radius: 13px; }
.sg-folder-note { margin-top: 13px; padding: 15px 17px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: #eef8f5; border: 1px solid #d7e9e2; border-radius: 12px; }
.sg-folder-note span, .sg-folder-note small { color: #667a72; font-size: .67rem; }
.sg-title-card { padding: 15px; background: #fff; border: 1px solid #d9e3df; border-radius: 14px; }
.sg-title-card > header { padding: 2px 0 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid #e9efec; }
.sg-title-card header > span:nth-child(2) { display: flex; flex-direction: column; gap: 5px; }
.sg-title-card header small { color: #778780; font-size: .64rem; }
.sg-document-grid { margin: 18px 0; display: grid; grid-template-columns: 1.4fr repeat(4, minmax(130px,1fr)); gap: 16px; }
.sg-document-grid div { min-width: 0; }
.sg-document-grid dt { margin-bottom: 7px; color: #71827b; font-size: .58rem; font-weight: 800; }
.sg-document-grid dd { margin: 0; padding: 10px 11px; min-height: 40px; overflow-wrap: anywhere; color: #3b554b; background: #fafcfb; border: 1px solid #e0e8e4; border-radius: 7px; font-size: .68rem; }
.sg-document-grid dd small { display: block; margin-top: 4px; color: #819089; }
.sg-document-grid .sg-wide { grid-column: 2 / -1; }
.sg-title-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.sg-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.sg-card-actions button { min-height: 34px; padding: 7px 10px; font-size: .63rem; }
.sg-startup { color: #65776f; font-size: .65rem; }
.sg-pending-copy { margin: 18px 0; padding: 18px; color: #7a6a4d; background: #fffaf0; border: 1px dashed #eadbbd; border-radius: 9px; }
.sg-review-pending { margin: 14px 0; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #775c25; background: #fff8e9; border: 1px solid #ecd9ad; border-radius: 9px; }
.sg-review-pending span { display: flex; flex-direction: column; gap: 4px; }
.sg-review-pending small { color: #887451; font-size: .64rem; }
.sg-history { margin-top: 15px; padding: 15px; background: #f7faf8; border-radius: 9px; }
.sg-history h3 { margin: 0 0 10px; font-size: .76rem; }
.sg-history > div { padding: 8px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #e2ebe6; }
.sg-history span { display: flex; flex-direction: column; gap: 4px; }
.sg-history em { max-width: 50%; color: #9a4637; font-size: .63rem; font-style: normal; }
.sg-history-actions { flex-direction: row !important; }
.sg-backdrop { position: fixed; inset: 0; z-index: 1200; padding: 24px; display: grid; place-items: center; background: #142d2566; backdrop-filter: blur(3px); }
.sg-modal { width: min(100%,680px); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px; background: #fff; border-radius: 16px; box-shadow: 0 24px 80px #10251e33; }
.sg-modal-wide { width: min(100%,1000px); }
.sg-modal > header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.sg-modal h2 { margin: 0; color: #18372f; font-size: 1.18rem; }
.sg-modal header button { padding: 0 8px; color: #718079; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }
.sg-form, .sg-revision-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.sg-form label, .sg-revision-form label { display: flex; flex-direction: column; gap: 7px; color: #63756d; font-size: .61rem; font-weight: 800; }
.sg-form label:nth-child(1), .sg-form label:nth-child(2), .sg-check, .sg-file, .sg-wide { grid-column: 1 / -1; }
.sg-form input, .sg-form textarea, .sg-revision-form input, .sg-revision-form textarea { width: 100%; min-height: 43px; padding: 10px 11px; color: #29463b; background: #fff; border: 1px solid #d9e4df; border-radius: 8px; font: inherit; font-weight: 400; }
.sg-form textarea, .sg-revision-form textarea { min-height: 76px; resize: vertical; }
.sg-form .sg-check { flex-direction: row; align-items: center; padding: 11px; background: #f6faf8; border-radius: 8px; }
.sg-form .sg-check input { width: auto; min-height: 0; }
.sg-file { padding: 14px; background: #f5faf7; border: 1px dashed #cfe0d8; border-radius: 9px; }
.sg-file input { padding: 7px; background: #fff; }
.sg-file span { color: #73847c; font-weight: 400; }
.sg-modal .validation-message { color: #aa3f30; font-size: .64rem; font-weight: 400; }
.sg-modal footer { margin-top: 23px; display: flex; justify-content: flex-end; gap: 10px; }
.sg-modal footer button { min-height: 40px; padding: 9px 15px; border: 1px solid #d8e3de; border-radius: 8px; background: #fff; color: #39564a; font: inherit; font-weight: 700; cursor: pointer; }
.sg-assignment-modal > header small { color: #71817a; }
.sg-assignment-toolbar { display: grid; grid-template-columns: minmax(190px,.7fr) minmax(240px,1fr) auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.sg-assignment-toolbar label, .sg-revoke-box label { display: grid; gap: 7px; color: #526a60; font-size: .62rem; font-weight: 800; letter-spacing: .06em; }
.sg-assignment-toolbar input, .sg-assignment-toolbar select, .sg-revoke-box textarea { width: 100%; padding: 10px 11px; border: 1px solid #cfddd7; border-radius: 8px; background: #fff; color: #17382f; font: inherit; letter-spacing: normal; }
.sg-assignment-summary { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #f2f8f5; border-radius: 9px; color: #587168; }
.sg-assignment-list { max-height: 45dvh; overflow-y: auto; margin-top: 10px; border: 1px solid #e0e9e5; border-radius: 10px; }
.sg-assignment-worker { display: grid; grid-template-columns: auto minmax(180px,1fr) minmax(150px,.6fr) auto; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid #e9efec; }
.sg-assignment-worker:last-child { border-bottom: 0; }
.sg-assignment-worker > span { display: grid; gap: 4px; }
.sg-assignment-worker small { color: #73857d; font-size: .64rem; }
.sg-assignment-worker em { color: #a06b25; font-style: normal; }
.sg-assignment-state { justify-items: start; }
.sg-assignment-history { padding: 8px 12px 10px 43px; color: #71817a; background: #fafcfb; border-bottom: 1px solid #e9efec; font-size: .64rem; }
.sg-assignment-history p { margin: 7px 0; }
.sg-revoke-box { margin-top: 14px; padding: 14px; background: #fff5f2; border: 1px solid #f0d7d0; border-radius: 10px; }
.sg-revoke-box span { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.sg-review-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(260px,.8fr); gap: 18px; }
.sg-review-layout iframe { width: 100%; min-height: 560px; border: 1px solid #dce6e1; border-radius: 9px; background: #eef2f0; }
.sg-review-metadata { margin: 0; display: grid; gap: 10px; }
.sg-review-metadata div { padding: 10px; background: #f8fbf9; border: 1px solid #e0e8e4; border-radius: 8px; }
.sg-review-metadata dt { margin-bottom: 5px; color: #71827b; font-size: .58rem; font-weight: 800; }
.sg-review-metadata dd { margin: 0; overflow-wrap: anywhere; color: #365247; font-size: .68rem; }
.sg-reject-reason { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; color: #874739; font-size: .61rem; font-weight: 800; }
.sg-reject-reason textarea { min-height: 95px; padding: 10px; border: 1px solid #dfc3bd; border-radius: 8px; resize: vertical; font: inherit; }
.sg-preview-backdrop { padding: 12px; }
.sg-preview { width: min(1100px,100%); height: calc(100dvh - 24px); display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: #fff; border-radius: 14px; box-shadow: 0 24px 80px #10251e55; }
.sg-preview header { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.sg-preview header button { padding: 0 8px; color: #62736c; background: transparent; border: 0; font-size: 1.6rem; cursor: pointer; }
.sg-preview iframe { width: 100%; height: 100%; border: 0; background: #eef2f0; }
.quick-item[href] { color: inherit; text-decoration: none; cursor: pointer; }
.quick-item[href]:hover { background: #f2f8f5; }

@media (max-width: 1050px) {
    .sg-component-row > a { grid-template-columns: 28px 1.2fr 1.2fr .8fr 80px 10px; }
    .sg-document-grid { grid-template-columns: repeat(3,1fr); }
    .sg-document-grid .sg-wide { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .sg-heading, .sg-section-heading { align-items: flex-start; flex-direction: column; }
    .sg-heading-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
    .sg-progress-card { grid-template-columns: auto 1fr; }
    .sg-progress { grid-column: 1 / -1; }
    .sg-stats { grid-column: 1 / -1; }
    .sg-list-head { display: none; }
    .sg-component-row > a { padding-right: 14px; grid-template-columns: auto 1fr auto; }
    .sg-description, .sg-row-progress { grid-column: 2 / -1; }
    .sg-component-row .sg-row-actions { position: static; padding: 0 12px 12px; display: flex; transform: none; }
    .sg-component-row:hover .sg-chevron { opacity: 1; }
    .sg-folder-note { grid-template-columns: 1fr; gap: 7px; }
    .sg-document-grid { grid-template-columns: 1fr 1fr; }
    .sg-title-card > footer { align-items: flex-start; flex-direction: column; }
    .sg-card-actions { justify-content: flex-start; }
    .sg-assignment-toolbar { grid-template-columns: 1fr; }
    .sg-assignment-worker { grid-template-columns: auto 1fr; }
    .sg-assignment-worker .sg-assignment-state, .sg-assignment-worker > button { grid-column: 2; }
    .sg-form, .sg-revision-form { grid-template-columns: 1fr; }
    .sg-form label, .sg-revision-form label, .sg-file, .sg-wide { grid-column: 1; }
    .sg-review-layout { grid-template-columns: 1fr; }
    .sg-review-layout iframe { min-height: 430px; }
}
@media (max-width: 480px) {
    .sg-document-grid { grid-template-columns: 1fr; }
    .sg-document-grid .sg-wide { grid-column: 1; }
    .sg-backdrop { padding: 8px; }
    .sg-modal { max-height: calc(100dvh - 16px); padding: 20px; }
}
