.ishaoc-hd{max-width:1180px;margin:0 auto;padding:28px 18px;font-family:inherit;color:#263238}
.ishaoc-hd-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}
.ishaoc-hd-kicker{font-size:12px;letter-spacing:.12em;font-weight:700;opacity:.65}
.ishaoc-hd h2{margin:5px 0;font-size:30px}.ishaoc-hd h3{margin-top:0}
.ishaoc-hd p{opacity:.72}.ishaoc-hd-btn{display:inline-block;border:0;border-radius:9px;padding:12px 18px;background:#263238;color:#fff;text-decoration:none;cursor:pointer;font-weight:700}
.ishaoc-hd-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
.ishaoc-hd-stat{display:flex;flex-direction:column;gap:4px;padding:18px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;text-decoration:none;color:inherit}
.ishaoc-hd-stat strong{font-size:27px}.ishaoc-hd-stat span{font-size:13px;opacity:.7}
.ishaoc-hd-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:22px;margin:18px 0;box-shadow:0 2px 10px rgba(0,0,0,.03)}
.ishaoc-hd-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.ishaoc-hd label{display:block;font-weight:700;font-size:13px;margin:0 0 14px}
.ishaoc-hd input,.ishaoc-hd select,.ishaoc-hd textarea{width:100%;box-sizing:border-box;margin-top:7px;border:1px solid #d7dce1;border-radius:8px;padding:11px;background:#fff;font:inherit}
.ishaoc-hd textarea{resize:vertical}.ishaoc-hd-table-wrap{overflow:auto}
.ishaoc-hd-table{width:100%;border-collapse:collapse}.ishaoc-hd-table th,.ishaoc-hd-table td{text-align:left;padding:12px;border-bottom:1px solid #eee;white-space:nowrap}
.ishaoc-hd-badge{display:inline-block;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700}
.status-open{background:#fff0e8;color:#c2410c}.status-in_progress{background:#e8f1ff;color:#1769aa}.status-waiting_user{background:#f1e8ff;color:#7e22ce}.status-waiting_third{background:#fff1d9;color:#c26a00}.status-resolved{background:#ddfbe8;color:#16803b}.status-closed{background:#202020;color:#fff}.status-cancelled{background:#eee;color:#555}
.ishaoc-hd-ticket-title{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.ishaoc-hd-meta{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;opacity:.8;border-top:1px solid #eee;border-bottom:1px solid #eee;padding:12px 0;margin:15px 0}
.ishaoc-hd-description{padding:8px 0 18px}.ishaoc-hd-comment{border-left:3px solid #e5e7eb;padding:10px 14px;margin:12px 0;background:#fafafa;border-radius:0 8px 8px 0}.ishaoc-hd-comment small{margin-left:8px;opacity:.6}
@media(max-width:760px){.ishaoc-hd-header{flex-direction:column;align-items:flex-start}.ishaoc-hd-stats{grid-template-columns:repeat(2,1fr)}.ishaoc-hd-grid{grid-template-columns:1fr}}

.ishaoc-hd select:disabled{background:#f5f6f7;cursor:not-allowed;opacity:.75}

/* Cloudflare Turnstile */
.ishaoc-hd-turnstile {
    margin: 18px 0;
    min-height: 65px;
}

.ishaoc-hd-admin-controls{border:1px solid #e5e7eb;border-radius:10px;padding:16px;margin:16px 0;background:#fafafa}
.ishaoc-hd-admin-controls h4{margin:0 0 14px}
.ishaoc-hd-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.ishaoc-hd-guest-reply{margin-top:18px}

.ishaoc-phone-mask{font-variant-numeric:tabular-nums}

/* v0.4.0 — Gestão de TI */
.ishaoc-hd-admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}
.ishaoc-hd-btn.is-secondary{background:transparent;color:inherit;border:1px solid rgba(0,0,0,.14)}
.ishaoc-hd-btn.is-selected{background:#263238;color:#fff;border-color:#263238}
.ishaoc-hd-stat.is-active{outline:2px solid currentColor;outline-offset:2px}
.ishaoc-hd-filter-grid{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:14px}
.ishaoc-hd-filter-grid label{display:flex;flex-direction:column;gap:7px;font-weight:600}
.ishaoc-hd-filter-actions{display:flex;gap:10px;align-items:center;margin-top:16px}
.ishaoc-hd-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.ishaoc-hd-ticket-row{cursor:pointer;transition:background .15s ease}
.ishaoc-hd-ticket-row:hover{background:rgba(0,0,0,.025)}
.ishaoc-hd-empty{text-align:center;padding:28px}
.ishaoc-hd-admin-actions{display:flex;gap:10px;flex-wrap:wrap}
.ishaoc-hd-priority{font-weight:700}
@media (max-width:900px){
  .ishaoc-hd-filter-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:600px){
  .ishaoc-hd-filter-grid{grid-template-columns:1fr}
  .ishaoc-hd-admin-toolbar,.ishaoc-hd-card-head{align-items:flex-start;flex-direction:column}
  .ishaoc-hd-table{min-width:850px}
}

.ishaoc-hd-assigned-me{display:inline-flex;align-items:center;padding:11px 14px;border-radius:8px;background:#e8f8ee;color:#16803b;font-weight:700}
.ishaoc-hd-assignee-info{margin-top:12px;font-size:13px;opacity:.75}

.ishaoc-hd-inline-form{display:inline-block;margin:0;padding:0}

/* v0.4.1 — controles de atendimento */
.ishaoc-hd-admin-controls .ishaoc-hd-filter-grid{margin-top:8px}
.ishaoc-hd-admin-controls label{margin-bottom:0}
.ishaoc-hd-admin-controls .ishaoc-hd-admin-actions{margin-top:16px}
@media(max-width:900px){.ishaoc-hd-admin-controls .ishaoc-hd-filter-grid{grid-template-columns:1fr!important}}

/* Anexos nas filas de chamados */
.ishaoc-hd-muted { opacity: .55; }
.ishaoc-hd-table td a { white-space: nowrap; }

/* 0.4.4 — resolução obrigatória */
.ishaoc-hd-resolution-box{margin:18px 0 4px;padding:16px 18px;border:1px solid #e2e8eb;border-radius:12px;background:#fafcfd}
.ishaoc-hd-resolution-box label{display:block;font-weight:600}
.ishaoc-hd-resolution-box textarea{width:100%;box-sizing:border-box;margin-top:8px;resize:vertical}
.ishaoc-hd-resolution-box small{display:block;margin-top:6px;color:#6f7b80;font-weight:400}
.ishaoc-hd-required{color:#c0392b}


/* 0.4.5 — fila operacional */
.ishaoc-hd-quick-filters{display:flex;gap:10px;flex-wrap:wrap;margin:-6px 0 16px}
.ishaoc-hd-filter-help{display:block;margin-top:10px;opacity:.65;font-weight:400}
.ishaoc-hd-row-actions{display:flex;gap:6px;align-items:center}
.ishaoc-hd-mini-btn{display:inline-block;padding:7px 10px;border-radius:7px;background:#263238;color:#fff;border:1px solid #263238;text-decoration:none;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.ishaoc-hd-mini-btn.is-secondary{background:#fff;color:#263238;border-color:#d7dce1}
@media(max-width:600px){.ishaoc-hd-row-actions{flex-direction:column;align-items:flex-start}}


/* 0.4.7 — Central operacional / SLA */
.ishaoc-hd-sla{display:inline-block;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.sla-ok{background:#e8f7ee;color:#18723b}
.sla-warning{background:#fff5d9;color:#9a6700}
.sla-overdue{background:#ffe6e2;color:#b42318}
.sla-done{background:#eef0f2;color:#657078}
.ishaoc-hd-quick-filters .is-selected{box-shadow:0 0 0 2px rgba(38,50,56,.12)}
@media(max-width:600px){.ishaoc-hd-table{min-width:980px}}


/* 0.5.1 — Central operacional responsiva */
.ishaoc-hd-alert-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 18px}
.ishaoc-hd-alert{padding:16px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:4px}
.ishaoc-hd-alert strong{font-size:24px}.ishaoc-hd-alert span{font-size:13px;opacity:.7}.ishaoc-hd-alert.danger{border-color:#f3c6c0;background:#fff7f5}
.ishaoc-hd-sla small{display:block;font-size:10px;font-weight:600;margin-top:2px;opacity:.8}
.ishaoc-hd-pagination{display:flex;gap:6px;flex-wrap:wrap;margin-top:18px}
.ishaoc-hd-page{display:inline-flex;min-width:34px;height:34px;align-items:center;justify-content:center;border:1px solid #d7dce1;border-radius:7px;text-decoration:none;color:inherit;font-weight:700}
.ishaoc-hd-page.is-current{background:#263238;color:#fff;border-color:#263238}
.ishaoc-hd-mobile-ticket{display:none}
.ishaoc-hd-mobile-card{border:1px solid #e5e7eb;border-radius:12px;padding:16px;background:#fff}
.ishaoc-hd-mobile-card h4{margin:4px 0 12px;font-size:18px}
.ishaoc-hd-mobile-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;font-size:13px}
.ishaoc-hd-mobile-meta span{background:#f5f6f7;padding:5px 8px;border-radius:7px}
.ishaoc-hd-mobile-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
@media(max-width:600px){
  .ishaoc-hd-alert-grid{grid-template-columns:1fr}
  .ishaoc-hd-table-wrap{overflow:visible}
  .ishaoc-hd-table thead,.ishaoc-hd-table tbody tr.ishaoc-hd-ticket-row{display:none}
  .ishaoc-hd-table,.ishaoc-hd-table tbody,.ishaoc-hd-mobile-ticket,.ishaoc-hd-mobile-ticket td{display:block;width:100%;box-sizing:border-box}
  .ishaoc-hd-mobile-ticket{display:block!important;margin:0 0 10px}
  .ishaoc-hd-mobile-ticket td{padding:0!important;border:0!important;white-space:normal}
  .ishaoc-hd-quick-filters .ishaoc-hd-btn{width:100%;text-align:center;box-sizing:border-box}
}

/* 0.6.0 — gestão gerencial */
.ishaoc-hd-manager-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.ishaoc-hd-manager-metrics>div{padding:14px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa}
.ishaoc-hd-manager-metrics strong{display:block;font-size:25px}.ishaoc-hd-manager-metrics span{font-size:12px;opacity:.7}
.ishaoc-hd-bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;border-top:1px solid #eee}
.ishaoc-hd-bulk-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ishaoc-hd-bulk-form select,.ishaoc-hd-bulk-form input{margin:0;width:auto;min-width:160px}.ishaoc-hd-bulk-form input[name="bulk_resolution"]{min-width:240px}
.ishaoc-hd-wp-dashboard{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;max-width:1200px;margin:18px 0}.ishaoc-hd-wp-dashboard>div{background:#fff;border:1px solid #dcdcde;border-radius:8px;padding:16px}.ishaoc-hd-wp-dashboard strong{font-size:28px;display:block}.ishaoc-hd-wp-dashboard span{color:#646970}
.ishaoc-hd-wp-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:1200px}.ishaoc-hd-wp-columns .postbox{margin:0}.ishaoc-hd-bar-row{display:grid;grid-template-columns:180px 45px 1fr;gap:8px;align-items:center;margin:10px 0}.ishaoc-hd-bar-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ishaoc-hd-bar-row b{text-align:right}.ishaoc-hd-bar-row i{display:block;height:8px;background:#edf0f2;border-radius:99px;overflow:hidden}.ishaoc-hd-bar-row em{display:block;height:100%;background:#263238;border-radius:99px}
.ishaoc-hd-admin-version{font-size:12px;font-weight:600;color:#646970;vertical-align:middle}
@media(max-width:1000px){.ishaoc-hd-wp-dashboard{grid-template-columns:repeat(3,1fr)}.ishaoc-hd-manager-metrics{grid-template-columns:repeat(2,1fr)}.ishaoc-hd-wp-columns{grid-template-columns:1fr}}
@media(max-width:600px){.ishaoc-hd-manager-metrics{grid-template-columns:1fr 1fr}.ishaoc-hd-bulk-form{width:100%;flex-direction:column;align-items:stretch}.ishaoc-hd-bulk-form select,.ishaoc-hd-bulk-form input,.ishaoc-hd-bulk-form button{width:100%;box-sizing:border-box}.ishaoc-hd-wp-dashboard{grid-template-columns:1fr 1fr}.ishaoc-hd-bar-row{grid-template-columns:130px 35px 1fr}}


/* 0.6.1 — mobile real da Central de TI */
.ishaoc-hd-admin-page{max-width:1180px;overflow-x:hidden}
.ishaoc-hd-main-toolbar{margin:0 0 12px}
.ishaoc-hd-main-toolbar .ishaoc-hd-muted{font-size:13px}
@media(max-width:600px){
  .ishaoc-hd-admin-page{width:100%;max-width:100%;box-sizing:border-box;padding-left:12px;padding-right:12px;overflow-x:hidden}
  .ishaoc-hd-admin-page .ishaoc-hd-card{width:100%;box-sizing:border-box}
  .ishaoc-hd-table-wrap{width:100%;max-width:100%;overflow:visible!important}
  .ishaoc-hd-table,
  .ishaoc-hd-table tbody{width:100%!important;min-width:0!important;max-width:100%!important;display:block!important}
  .ishaoc-hd-table thead{display:none!important}
  .ishaoc-hd-table tbody tr.ishaoc-hd-ticket-row{display:none!important}
  .ishaoc-hd-table tbody tr.ishaoc-hd-mobile-ticket{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0 0 12px!important}
  .ishaoc-hd-table tbody tr.ishaoc-hd-mobile-ticket td{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;padding:0!important;border:0!important;white-space:normal!important}
  .ishaoc-hd-mobile-card{width:100%;box-sizing:border-box;overflow:hidden}
  .ishaoc-hd-mobile-meta span{max-width:100%;overflow-wrap:anywhere}
  .ishaoc-hd-mobile-actions{width:100%}
  .ishaoc-hd-mobile-actions .ishaoc-hd-mini-btn,
  .ishaoc-hd-mobile-actions form{max-width:100%}
  .ishaoc-hd-mobile-actions form .ishaoc-hd-mini-btn{width:auto}
}


/* 0.6.3 — acabamento operacional, SLA e mobile */
.ishaoc-hd-sla{line-height:1.15;text-align:center}
.ishaoc-hd-sla small{display:block;margin-top:3px;font-size:10px;font-weight:700;opacity:.82}
.priority-critical{color:#b42318;font-weight:800}
.priority-high{color:#c2410c;font-weight:800}
.priority-normal{color:#475569;font-weight:700}
.priority-low{color:#64748b;font-weight:700}

.ishaoc-hd-mobile-card{position:relative;box-shadow:0 2px 8px rgba(0,0,0,.035);transition:transform .12s ease,box-shadow .12s ease}
.ishaoc-hd-mobile-card:active{transform:scale(.995)}
.ishaoc-hd-mobile-card h4{line-height:1.3}
.ishaoc-hd-mobile-meta span{border:1px solid #eef0f2;background:#f8fafb}
.ishaoc-hd-mobile-actions .ishaoc-hd-mini-btn{min-height:36px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
@media(max-width:600px){
  .ishaoc-hd-card{padding:18px 14px;border-radius:16px}
  .ishaoc-hd-card-head{gap:8px}
  .ishaoc-hd-card-head h3{font-size:21px}
  .ishaoc-hd-mobile-card{padding:15px;border-radius:14px}
  .ishaoc-hd-mobile-meta{gap:6px}
  .ishaoc-hd-mobile-meta span{font-size:12px}
}

/* Relatórios 0.6.3 */
.ishaoc-report-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
.ishaoc-report-kpi{transition:transform .12s ease,box-shadow .12s ease}
.ishaoc-report-kpi:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(0,0,0,.05)}
.ishaoc-report-box{overflow:hidden}
.ishaoc-report-table-wrap{overflow:auto}
.ishaoc-report-table th,.ishaoc-report-table td{vertical-align:middle}
.ishaoc-report-filter-actions .button{min-height:38px;border-radius:9px;padding:8px 14px}
@media(max-width:1150px){.ishaoc-report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.ishaoc-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.ishaoc-report-kpis{grid-template-columns:1fr 1fr}.ishaoc-report-kpi{min-height:68px;padding:12px}.ishaoc-report-kpi strong{font-size:21px}}


/* v0.7.0 — Central de Notificações */
.ishaoc-hd-wp-admin{max-width:1180px}
.ishaoc-notify-hero{margin:22px 0 18px;padding:30px 34px;border-radius:20px;background:linear-gradient(135deg,#123f45,#17636a);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:0 12px 35px rgba(18,63,69,.16)}
.ishaoc-notify-hero span{font-size:11px;letter-spacing:.18em;font-weight:800;opacity:.75}
.ishaoc-notify-hero h1{margin:8px 0 8px;color:#fff;font-size:31px}
.ishaoc-notify-hero p{margin:0;color:rgba(255,255,255,.78);font-size:14px}
.ishaoc-notify-version{background:rgba(255,255,255,.13);padding:12px 15px;border-radius:999px;font-weight:800}
.ishaoc-notify-section{background:#fff;border:1px solid #e4e9eb;border-radius:18px;padding:24px;margin:18px 0;box-shadow:0 5px 18px rgba(0,0,0,.035)}
.ishaoc-notify-section h2{margin:0 0 6px;font-size:20px}
.ishaoc-notify-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.ishaoc-notify-section-head p{margin:0;color:#6b7a80}
.ishaoc-notify-events{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.ishaoc-notify-event{display:flex!important;justify-content:space-between;align-items:center;gap:15px;padding:16px 18px;border:1px solid #e4e9eb;border-radius:13px;background:#fafcfc;cursor:pointer}
.ishaoc-notify-event:hover{border-color:#b9c9cc;background:#f6fafb}
.ishaoc-notify-event span{display:flex;flex-direction:column;gap:4px}
.ishaoc-notify-event small{font-family:monospace;color:#7b8a90}
.ishaoc-notify-event input{width:20px;height:20px;margin:0}
.ishaoc-template-help{padding:13px 15px;border-radius:10px;background:#f1f7f8;color:#52646a;margin-bottom:14px;line-height:2}
.ishaoc-template-help code{display:inline-block;margin:0 4px;padding:2px 7px;border-radius:6px;background:#fff;border:1px solid #dce5e7;color:#17636a}
.ishaoc-template{border:1px solid #e4e9eb;border-radius:12px;margin:10px 0;overflow:hidden}
.ishaoc-template summary{padding:16px 18px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;font-weight:800}
.ishaoc-template summary em{font-style:normal;font:12px monospace;color:#7b8a90}
.ishaoc-template-body{padding:18px;border-top:1px solid #e4e9eb;background:#fafcfc}
.ishaoc-template-body label{display:block;font-weight:700;margin-bottom:15px}
.ishaoc-template-body input,.ishaoc-template-body textarea{width:100%;box-sizing:border-box;margin-top:7px}
.ishaoc-template-body textarea{min-height:170px;font-family:monospace;line-height:1.5}
.ishaoc-notify-log-wrap{overflow:auto}
.ishaoc-notify-log{min-width:900px}
.ishaoc-notify-log td,.ishaoc-notify-log th{vertical-align:middle}
.ishaoc-notify-status{display:inline-block;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800}
.ishaoc-notify-status.is-sent{background:#e5f7eb;color:#16723a}
.ishaoc-notify-status.is-failed{background:#fde9e7;color:#b42318}
.ishaoc-notify-error{display:block;margin-top:4px;color:#b42318}
@media(max-width:760px){
 .ishaoc-notify-hero{padding:24px;align-items:flex-start;flex-direction:column}
 .ishaoc-notify-hero h1{font-size:25px}
 .ishaoc-notify-events{grid-template-columns:1fr}
 .ishaoc-notify-section{padding:18px}
}

/* =========================================================
   ANEXOS DO CHAMADO — v0.7.2
   ========================================================= */
.ishaoc-hd-attachments{
    margin:18px 0;
    padding:18px;
    border:1px solid #e2e8ea;
    border-radius:16px;
    background:#fff;
}
.ishaoc-hd-attachment-list{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin:12px 0 16px;
}
.ishaoc-hd-attachment-item{
    display:flex;
    align-items:center;
    gap:9px;
    padding:11px 13px;
    border:1px solid #e5eaec;
    border-radius:11px;
    background:#f7fafb;
    color:#174c52;
    text-decoration:none;
    font-weight:600;
}
.ishaoc-hd-attachment-item:hover{background:#eef6f7;}
.ishaoc-hd-attachment-form{
    display:flex;
    align-items:flex-end;
    gap:12px;
    flex-wrap:wrap;
    padding-top:12px;
    border-top:1px solid #edf1f2;
}
.ishaoc-hd-attachment-form label{
    flex:1 1 320px;
    margin:0;
}
.ishaoc-hd-attachment-form input[type=file]{
    display:block;
    width:100%;
    margin-top:7px;
}
@media(max-width:700px){
    .ishaoc-hd-attachment-form{display:block;}
    .ishaoc-hd-attachment-form .ishaoc-hd-btn{width:100%;margin-top:10px;}
}
