
/* SEGaza V4.1 — smart assistant bubble, privacy-first Gemini intent, simplified recruitment. */
.student-overview-stats article small{display:block;margin-top:5px;color:#8290a3;font-size:10px;line-height:1.5}
.dashboard-mini-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 16px}
.dashboard-mini-stats article{background:#fff;border:1px solid #e4eaf1;border-radius:14px;padding:12px 14px;box-shadow:0 5px 18px rgba(21,53,86,.04)}
.dashboard-mini-stats span{display:block;color:#6f7f92;font-size:11px;margin-bottom:5px}.dashboard-mini-stats b{font-size:20px;color:#183f6f}

.segaza-ai-card{margin:0 0 18px;background:linear-gradient(135deg,#f8fbff,#fff);border:1px solid #dfe9f5;border-radius:20px;padding:18px;box-shadow:0 8px 26px rgba(15,62,105,.06)}
.segaza-ai-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.segaza-ai-head h3{margin:2px 0 5px;font-size:20px}.segaza-ai-head p{margin:0;color:#6f7f92;font-size:12px;max-width:680px}.segaza-ai-head small{color:#4775a9}
.ai-readonly-badge{white-space:nowrap;border-radius:999px;background:#eef5ff;color:#255c98;padding:6px 10px;font-size:10px;font-weight:900}
.segaza-ai-input-row{display:flex;gap:9px;margin-top:14px}.segaza-ai-input-row input{flex:1;min-width:0}
.ai-suggestions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.ai-suggestions button{border:1px solid #dce6f1;background:#fff;color:#315b87;border-radius:999px;padding:7px 10px;font-size:11px;cursor:pointer}
.ai-answer{margin-top:12px;padding:13px 15px;border-radius:14px;background:#f1f7fd;color:#183b61;line-height:1.8;font-size:13px}.ai-answer.is-error{background:#fff1f1;color:#9d241d}.ai-answer small{display:block;color:#748499;margin-top:5px}

.recruitment-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:14px 0}.recruitment-stats article{background:#fff;border:1px solid #e4eaf1;border-radius:14px;padding:13px;box-shadow:0 5px 18px rgba(21,53,86,.04)}.recruitment-stats span{display:block;color:#748398;font-size:10px;margin-bottom:5px}.recruitment-stats strong{font-size:21px;color:#153f6d}
.recruitment-table td{vertical-align:middle}.recruitment-name{display:flex;flex-direction:column;gap:3px}.recruitment-name b{font-size:14px}.recruitment-name small{color:#78879a}.recruitment-source{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;background:#f3f7fb;color:#4a627a;font-size:10px;font-weight:800}
.recruitment-status{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;background:#eef3f8;color:#53677d}.recruitment-status.new{background:#eef5ff;color:#245f9e}.recruitment-status.contacted,.recruitment-status.registered{background:#edf8f1;color:#27724c}.recruitment-status.no-answer{background:#fff4dd;color:#9b6a12}.recruitment-status.followup{background:#f4efff;color:#6448a3}.recruitment-status.confirmed{background:#e9f8ef;color:#0b7546}.recruitment-status.closed{background:#f3f4f6;color:#687386}
.recruitment-dialog-box{width:min(820px,94vw)}

.student-status-badge{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:900;line-height:1.2;border:1px solid transparent}
.student-status-badge.finance-paid{background:#ebf8f0;color:#1f724b;border-color:#d3eddd}.student-status-badge.finance-pending{background:#fff4d7;color:#946500;border-color:#f8e2a4}.student-status-badge.finance-due{background:#fff0f0;color:#a62c25;border-color:#f4d4d1}.student-status-badge.portal-enabled{background:#eef5ff;color:#245f9e;border-color:#d9e8f8}.student-status-badge.portal-requested{background:#fff4d7;color:#946500;border-color:#f8e2a4}.student-status-badge.portal-submitted{background:#f4efff;color:#6645a7;border-color:#e4daf8}
.student-name-with-signals{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.student-signals{display:inline-flex;gap:4px;align-items:center}
.academic-status-badge{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900}.academic-status-badge.temp{background:#eef1f4;color:#576878}.academic-status-badge.regular{background:#e9f8ef;color:#177149}.academic-status-badge.withdrawn{background:#fff2c9;color:#8b5d00}
.student-withdrawn-row td{background:#fffaf0!important}.student-withdrawn-row td:first-child{box-shadow:inset -3px 0 0 #e8b34d}
.student-file-btn{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dbe5ef;border-radius:9px;background:#fff;color:#315f91;cursor:pointer;flex:0 0 auto}.student-file-btn:hover{background:#eef6ff}.student-file-btn svg{width:15px;height:15px}
.student-primary-line{display:flex;align-items:flex-start;gap:7px}.student-primary-line .student-name-button{flex:0 1 auto}
.student-action-menu{position:relative;display:inline-block}.student-action-menu summary{list-style:none;cursor:pointer;width:32px;height:32px;border:1px solid #dbe3ec;background:#fff;border-radius:9px;display:grid;place-items:center;font-weight:900;font-size:18px;line-height:1}.student-action-menu summary::-webkit-details-marker{display:none}
.student-action-popover{position:absolute;z-index:30;inset-inline-end:0;top:36px;min-width:168px;padding:6px;background:#fff;border:1px solid #dde5ee;border-radius:12px;box-shadow:0 12px 34px rgba(21,45,72,.16);display:grid;gap:3px}.student-action-popover button{border:0;background:transparent;text-align:start;padding:9px 10px;border-radius:8px;cursor:pointer;color:#243f5c;font:inherit;font-size:12px}.student-action-popover button:hover{background:#f4f7fa}.student-action-popover button.danger{color:#a4231d}.student-action-popover button.status-withdraw{color:#9a6500}
.student-classification-note{display:block;color:#8693a2;font-size:9px;margin-top:4px}

@media(max-width:980px){.dashboard-mini-stats{grid-template-columns:repeat(3,1fr)}.recruitment-stats{grid-template-columns:repeat(4,1fr)}}
@media(max-width:680px){
  .dashboard-mini-stats{grid-template-columns:repeat(2,1fr)}.recruitment-stats{grid-template-columns:repeat(2,1fr)}
  .segaza-ai-card{padding:14px}.segaza-ai-head{display:block}.ai-readonly-badge{display:inline-flex;margin-top:8px}.segaza-ai-input-row{align-items:stretch}.segaza-ai-input-row .btn{padding-inline:14px}
  .student-name-with-signals .student-status-badge:nth-of-type(n+3){display:none}
  .student-file-btn{width:34px;height:34px}
}


/* V4.1 — floating smart assistant */
.smart-assistant-shell{position:fixed;z-index:1200;left:22px;bottom:22px;direction:rtl}
.smart-assistant-bubble{border:0;border-radius:999px;background:#153f6d;color:#fff;min-height:52px;padding:0 16px;display:flex;align-items:center;gap:8px;box-shadow:0 14px 38px rgba(18,55,92,.28);cursor:pointer;font:inherit;font-weight:900}
.smart-assistant-bubble:hover{transform:translateY(-1px)}.smart-assistant-spark{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.14);font-size:17px}.smart-assistant-label{font-size:12px}
.smart-assistant-panel{position:absolute;left:0;bottom:64px;width:min(390px,calc(100vw - 28px));max-height:min(620px,calc(100vh - 110px));overflow:auto;background:#fff;border:1px solid #dfe8f2;border-radius:20px;padding:16px;box-shadow:0 20px 55px rgba(20,48,76,.24)}
.smart-assistant-close{border:0;background:#f2f5f8;color:#4f6174;width:32px;height:32px;border-radius:10px;font-size:21px;cursor:pointer;flex:0 0 auto}.smart-assistant-privacy{display:block;margin-top:10px;color:#8290a0;font-size:9.5px;line-height:1.65}
.recruitment-more-fields{border:1px dashed #dce4ec;border-radius:12px;padding:9px 11px}.recruitment-more-fields summary{cursor:pointer;color:#536b84;font-size:11px;font-weight:800}.recruitment-more-grid{margin-top:10px}
.recruitment-contact-toggle{border:1px solid transparent;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:900;cursor:pointer;white-space:nowrap}.recruitment-contact-toggle.pending{background:#f2f4f6;color:#5c6977;border-color:#e2e6ea}.recruitment-contact-toggle.done{background:#eaf8ef;color:#197048;border-color:#d3eddd}
.academic-status-badge.lead{background:#eef5ff;color:#245f9e}.academic-status-badge.temp{background:#eef1f4;color:#576878}.academic-status-badge.regular{background:#e9f8ef;color:#177149}.academic-status-badge.withdrawn{background:#fff2c9;color:#8b5d00}
@media(max-width:680px){.smart-assistant-shell{left:12px;right:12px;bottom:76px}.smart-assistant-bubble{margin-inline-start:auto;min-width:52px;padding:0 12px}.smart-assistant-label{display:none}.smart-assistant-panel{left:0;right:0;bottom:62px;width:auto;max-height:70vh;border-radius:18px}.smart-assistant-panel .segaza-ai-input-row{display:grid;grid-template-columns:1fr auto}.smart-assistant-panel .ai-suggestions{display:grid;grid-template-columns:1fr 1fr}.smart-assistant-panel .ai-suggestions button{white-space:normal}}
