/* ===========================================================================
   IT Guidelines page — matched to the approved Carisma design.
   =========================================================================== */

.itg-page { display: flex; flex-direction: column; gap: 16px; }

/* -------------------------------- banner --------------------------------- */
.itg-banner {
    background: linear-gradient(120deg, #f7ecef 0%, #faf3ee 55%, #f6f3fb 100%);
    border: 1px solid #f1e6e8; border-radius: 18px; padding: 12px 24px;
}
.itg-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; margin-bottom: 4px; color: #6b5f63; }
.itg-crumb a { color: #6b5f63; text-decoration: none; }
.itg-crumb a:hover { color: var(--primary-color); text-decoration: underline; }
.itg-crumb strong { color: #1c1416; font-weight: 700; }
.itg-crumb__sep { color: #cdbfc3; }
.itg-title { font-size: 1.5rem; font-weight: 800; color: #1c1416; margin: 0 0 2px; }
.itg-sub { color: #6b5f63; font-size: .88rem; margin: 0; }

/* --------------------------------- card ----------------------------------- */
.itg-card {
    background: #fff; border: 1px solid #eef0f3; border-top: 3px solid #e9c7d2; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20, 20, 40, .04); overflow: hidden;
}
.itg-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; }
.itg-card__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.2rem; font-weight: 700; color: #1c1416; }
.itg-accent { width: 4px; height: 20px; border-radius: 3px; background: var(--primary-color); }
.itg-pill { padding: 3px 12px; border-radius: 999px; background: #f6e9ed; color: var(--primary-color); font-size: .8rem; font-weight: 600; white-space: nowrap; }

/* --------------------------------- table ---------------------------------- */
.itg-scroll { overflow-x: auto; }
.itg-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .94rem; color: #3d3236; }
.itg-table th {
    background: #f6ecef; color: #5a2636; text-align: left; white-space: nowrap;
    font-size: .74rem; font-weight: 700; letter-spacing: .06em; padding: 12px 18px; border-bottom: 1px solid #ece6e2;
}
.itg-table td { padding: 10px 18px; border-bottom: 1px solid #f2eeef; vertical-align: middle; }
.itg-table tbody tr:nth-child(even) td { background: #fcf8f9; }
.itg-table tbody tr:hover td { background: #f9eef2; }
.itg-th--no, .itg-no { width: 70px; }
.itg-no { color: #6b5f63; }
.itg-th--r, .itg-td--r { text-align: right; width: 190px; }
.itg-empty { text-align: center; color: #8a8f99; padding: 28px !important; }

.itg-name { display: inline-flex; align-items: center; gap: 14px; }
.itg-name__text { font-weight: 700; color: #1c1416; }
.itg-icon {
    flex: none; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--tone-bg, #f6e9ed); color: var(--tone, #7a1f2b);
}
.itg-icon .material-symbols-rounded { font-size: 20px; }
.itg-icon--blue   { --tone: #1f4f9a; --tone-bg: #e2ecfa; }
.itg-icon--gold   { --tone: #b4730a; --tone-bg: #fdf0d5; }
.itg-icon--maroon { --tone: #7a1f2b; --tone-bg: #f8e3e8; }
.itg-icon--green  { --tone: #0d6a40; --tone-bg: #e3f3ea; }
.itg-icon--purple { --tone: #5b3fa0; --tone-bg: #ece8f8; }
.itg-icon--teal   { --tone: #0f766e; --tone-bg: #dff3f0; }

.itg-date { display: inline-flex; align-items: center; gap: 8px; color: #5b6270; }
.itg-date .material-symbols-rounded { font-size: 16px; color: #8a8f99; }

.itg-view {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; cursor: pointer;
    border: 1px solid var(--primary-color); border-radius: 10px; background: var(--primary-color); color: #fff;
    font: inherit; font-size: .92rem; font-weight: 600; white-space: nowrap;
}
.itg-view .material-symbols-rounded { font-size: 19px; }
.itg-view:hover { filter: brightness(1.1); }

/* --------------------------------- toast ---------------------------------- */
.itg-toast {
    position: fixed; right: 24px; bottom: 24px; z-index: 3500; pointer-events: none;
    background: #1c1416; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: .9rem;
    animation: itg-toast 3s ease forwards;
}
@keyframes itg-toast { 0%, 75% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(8px); } }

.itg-toast--error { background: #b42318; animation-duration: 6s; }
.itg-link { border: 0; background: none; padding: 0; color: var(--primary-color); font: inherit; font-weight: 600; cursor: pointer; }
.itg-link:hover { text-decoration: underline; }
.itg-view:disabled { opacity: .6; cursor: wait; }

/* ---- report viewer ---- */
.itg-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(35, 38, 50, .5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.itg-modal { display: flex; flex-direction: column; width: min(1000px, 100%); height: min(88vh, 900px); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(20, 20, 40, .3); }
.itg-modal__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--primary-color); color: #fff; }
.itg-modal__title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.itg-modal__actions { display: flex; gap: 10px; }
.itg-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; cursor: pointer; text-decoration: none;
    border-radius: 10px; font: inherit; font-size: .9rem; font-weight: 600;
}
.itg-btn .material-symbols-rounded { font-size: 18px; }
.itg-btn--ghost { border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); color: #fff; }
.itg-btn--ghost:hover { background: rgba(255, 255, 255, .22); }
.itg-modal__frame { flex: 1; width: 100%; border: 0; background: #f1eeec; }
