/* Event Country Autonomous Global Tour Engine V5 — Phase 1 */
#gta-v5-root,
#gta-v5-root * { box-sizing: border-box; }
.gta-v5-root { margin: 18px 0; display: grid; gap: 16px; color: #101828; }
.gta-v5-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 20px; background: linear-gradient(135deg, #fff7ed, #ffffff 58%, #eff6ff); border: 1px solid #fed7aa; border-radius: 6px; box-shadow: 0 8px 22px rgba(15, 23, 42, .06); }
.gta-v5-head h2 { margin: 4px 0 7px; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
.gta-v5-head p { margin: 0; color: #475467; max-width: 860px; line-height: 1.55; }
.gta-v5-state { flex: 0 0 auto; border: 1px solid #d0d5dd; background: #f8fafc; border-radius: 6px; padding: 8px 12px; font-size: 12px; font-weight: 800; }
.gta-v5-state.enabled { color: #067647; border-color: #a6f4c5; background: #ecfdf3; }
.gta-v5-state.paused { color: #92400e; border-color: #fed7aa; background: #fffbeb; }
.gta-v5-state.danger { color: #b42318; border-color: #fecdca; background: #fef3f2; }
.gta-v5-safety { padding: 12px 14px; border: 1px solid #f9dbaf; border-radius: 6px; background: #fffaeb; color: #7a2e0e; font-size: 13px; line-height: 1.45; }
.gta-v5-metrics { display: grid; grid-template-columns: repeat(9, minmax(110px, 1fr)); gap: 10px; }
.gta-v5-metrics > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 8px; align-items: center; min-width: 0; padding: 12px; border: 1px solid #e4e7ec; border-radius: 6px; background: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .04); }
.gta-v5-metrics .material-icons-outlined { grid-row: 1 / span 2; color: #f97316; font-size: 20px; }
.gta-v5-metrics strong { font-size: 19px; line-height: 1; }
.gta-v5-metrics small { color: #667085; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gta-v5-loading { grid-column: 1 / -1; padding: 18px; text-align: center; color: #667085; }
.gta-v5-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gta-v5-grid-main { grid-template-columns: 1.2fr .8fr; }
.gta-v5-panel { min-width: 0; padding: 18px; border: 1px solid #e4e7ec; border-radius: 6px; background: #fff; box-shadow: 0 7px 18px rgba(15, 23, 42, .05); }
.gta-v5-span-panel { grid-column: 1 / -1; }
.gta-v5-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.gta-v5-panel-head h3 { margin: 3px 0 4px; font-size: 17px; }
.gta-v5-panel-head p { margin: 0; color: #667085; font-size: 13px; line-height: 1.45; }
.gta-v5-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gta-v5-form-grid > label { display: grid; gap: 6px; min-width: 0; }
.gta-v5-form-grid > label > span { color: #344054; font-size: 12px; font-weight: 700; }
.gta-v5-form-grid input,
.gta-v5-form-grid select,
.gta-v5-inline-form input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 4px; background: #fff; color: #101828; font: inherit; }
.gta-v5-form-grid input:focus,
.gta-v5-form-grid select:focus,
.gta-v5-inline-form input:focus { border-color: #f97316; outline: 3px solid rgba(249, 115, 22, .12); }
.gta-v5-check { grid-template-columns: auto 1fr !important; align-items: center; align-content: center; min-height: 40px; padding: 8px 10px; border: 1px solid #e4e7ec; border-radius: 4px; background: #f8fafc; }
.gta-v5-check input { width: 17px; min-height: 17px; margin: 0; }
.gta-v5-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 14px; }
.gta-v5-span { grid-column: 1 / -1; }
.gta-v5-inline-form { display: grid; grid-template-columns: 1fr auto auto; gap: 9px; }
.gta-v5-country-result { display: grid; gap: 5px; margin-top: 12px; padding: 12px; border: 1px dashed #d0d5dd; border-radius: 4px; color: #475467; }
.gta-v5-country-result:empty { display: none; }
.gta-v5-country-result strong { color: #101828; }
.gta-v5-list { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.gta-v5-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid #eaecf0; border-radius: 4px; background: #fcfcfd; }
.gta-v5-row > span:first-child { min-width: 0; display: grid; gap: 3px; }
.gta-v5-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.gta-v5-row small { color: #667085; line-height: 1.4; }
.gta-v5-row-actions { display: flex; gap: 7px; align-items: center; flex: 0 0 auto; }
.gta-v5-row-actions button { border: 1px solid #d0d5dd; background: #fff; border-radius: 4px; padding: 6px 9px; cursor: pointer; }
.gta-v5-badge { flex: 0 0 auto; border-radius: 999px; padding: 4px 8px; background: #fffaeb; color: #b54708; border: 1px solid #fedf89; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.gta-v5-badge.success { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.gta-v5-badge.danger { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.gta-v5-empty { display: grid; place-items: center; gap: 6px; min-height: 120px; color: #98a2b3; text-align: center; }
.gta-v5-empty .material-icons-outlined { font-size: 28px; }
.gta-v5-spinner { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: gta-v5-spin .75s linear infinite; }
@keyframes gta-v5-spin { to { transform: rotate(360deg); } }
@media (max-width: 1300px) { .gta-v5-metrics { grid-template-columns: repeat(3, minmax(120px, 1fr)); } }
@media (max-width: 900px) { .gta-v5-grid, .gta-v5-grid-main { grid-template-columns: 1fr; } .gta-v5-form-grid { grid-template-columns: 1fr; } .gta-v5-inline-form { grid-template-columns: 1fr; } .gta-v5-head { flex-direction: column; } .gta-v5-span-panel { grid-column: auto; } .gta-v5-span { grid-column: auto; } }
@media (max-width: 560px) { .gta-v5-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gta-v5-panel { padding: 14px; } .gta-v5-row { align-items: flex-start; flex-direction: column; } }
