/* Agencia GSK - Estilos */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #F5F5F5; color: #333; }

/* Header */
.header { display: flex; align-items: center; padding: 12px 24px; background: white; border-bottom: 3px solid #FF8C00; }
.header img { height: 40px; margin-right: 16px; }
.header h1 { color: #FF8C00; font-size: 22px; flex: 1; }
.header .user-info { font-size: 13px; color: #666; margin-right: 16px; }
.header .btn-logout { background: #808080; color: white; border: none; border-radius: 6px; padding: 8px 16px; cursor: pointer; font-weight: bold; font-size: 12px; }
.header .btn-logout:hover { background: #666; }

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: white; border-bottom: 1px solid #eee; }
.toolbar .btn-back { background: #808080; color: white; border: none; border-radius: 6px; padding: 8px 16px; cursor: pointer; font-weight: bold; font-size: 13px; text-decoration: none; }
.toolbar .btn-back:hover { background: #666; }
.toolbar h2 { color: #006699; font-size: 18px; flex: 1; }
.toolbar input[type="text"] { border: 1px solid #ccc; border-radius: 6px; padding: 8px 12px; font-size: 13px; width: 250px; }
.toolbar input[type="text"]:focus { outline: none; border-color: #006699; }
.toolbar label { font-size: 13px; color: #555; cursor: pointer; }
.toolbar input[type="checkbox"] { margin-right: 4px; }

/* Content */
.content { padding: 16px 24px; }

/* Tables */
.gsk-table { width: 100%; border-collapse: collapse; font-size: 12px; background: white; border-radius: 8px; overflow: hidden; border: 1px solid #ddd; }
.gsk-table th { background: #f8f9fa; color: #006699; font-weight: bold; font-size: 11px; padding: 8px 6px; border-bottom: 2px solid #006699; text-align: left; position: sticky; top: 0; z-index: 1; }
.gsk-table td { padding: 6px; border-bottom: 1px solid #eee; }
.gsk-table tr { cursor: pointer; transition: background 0.15s; }
.gsk-table tr:hover { background: #e3f2fd !important; }
.gsk-table tr.selected { background: #bbdefb !important; }
.gsk-table tr.pendiente { background: #fff3cd; }
.gsk-table tr.modificada { background: #fff3cd; }
.gsk-table tr.anulada { background: #f8d7da; }
.gsk-table tr.cerrada { background: #d4edda; }
.gsk-table tr.actual { background: #e3f2fd; font-weight: bold; }
.table-container { max-height: 350px; overflow-y: auto; border-radius: 8px; border: 1px solid #ddd; }
.table-footer { color: #808080; font-size: 11px; padding: 4px 0; }

/* Section title */
.section-title { color: #006699; font-size: 16px; font-weight: bold; margin: 12px 0 8px 0; }

/* Buttons */
.btn { border: none; border-radius: 6px; padding: 8px 16px; cursor: pointer; font-weight: bold; font-size: 12px; text-decoration: none; display: inline-block; }
.btn-green { background: #28a745; color: white; }
.btn-green:hover { background: #218838; }
.btn-blue { background: #006699; color: white; }
.btn-blue:hover { background: #005580; }
.btn-red { background: #E2574C; color: white; }
.btn-red:hover { background: #c9302c; }
.btn-orange { background: #FF8C00; color: white; }
.btn-orange:hover { background: #FF7700; }
.btn-gray { background: #808080; color: white; }
.btn-gray:hover { background: #666; }

/* Servicios sidebar */
.servicios-sidebar { min-width: 160px; max-width: 200px; }
.servicios-sidebar h4 { color: #006699; font-size: 13px; margin-bottom: 8px; }
.servicio-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; margin-bottom: 6px; text-decoration: none; color: #333; border: 1px solid #eee; transition: all 0.15s; }
.servicio-item:hover { background: #e3f2fd; border-color: #006699; }
.servicio-item.active { background: #006699; color: white; border-color: #006699; }
.servicio-item.active .servicio-count { color: white; }
.servicio-bar { height: 22px; border-radius: 3px; min-width: 6px; }
.servicio-count { font-weight: bold; font-size: 12px; min-width: 20px; text-align: center; }

/* Detail layout */
.detail-area { display: flex; gap: 12px; }
.detail-main { flex: 1; }

/* Ficha campos */
.ficha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
.ficha-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.field-label { color: #006699; font-size: 10px; margin-bottom: 2px; }
.field-value { background: white; border: 1px solid #e0e0e0; border-radius: 4px; padding: 5px 10px; font-size: 13px; min-height: 28px; margin-bottom: 8px; }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 2px solid #eee; margin-bottom: 12px; }
.tab { padding: 10px 24px; font-size: 12px; font-weight: bold; color: #888; cursor: pointer; border-bottom: 3px solid transparent; text-decoration: none; }
.tab:hover { color: #333; }
.tab.active { color: #006699; border-bottom-color: #006699; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Diff table */
.diff-hist { background: #f8d7da; }
.diff-act { background: #d4edda; }

/* Login */
.login-page { display: flex; justify-content: center; align-items: center; min-height: 80vh; }
.login-box { text-align: center; }
.login-box h1 { color: #FF8C00; font-size: 36px; margin-bottom: 8px; }
.login-box p { color: #808080; font-size: 16px; margin-bottom: 30px; }
.login-box .btn-sso { display: inline-block; background: linear-gradient(135deg, #FF8C00, #FF7700); color: white; padding: 16px 48px; border-radius: 10px; text-decoration: none; font-weight: bold; font-size: 16px; box-shadow: 0 4px 12px rgba(255,140,0,0.3); }
.login-box .btn-sso:hover { background: linear-gradient(135deg, #FF7700, #FF6600); }
.login-box .version { color: #808080; font-size: 11px; margin-top: 40px; }
.login-box .error { color: #dc3545; margin: 12px 0; }

/* Menu */
.menu-page { padding: 40px 24px; }
.menu-btn { display: block; width: 100%; max-width: 600px; padding: 18px 24px; background: white; border: 1px solid #ddd; border-radius: 10px; font-size: 16px; font-weight: bold; color: #333; text-align: left; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.menu-btn:hover { border-color: #006699; background: #f0f7ff; box-shadow: 0 2px 8px rgba(0,102,153,0.1); }

/* Splitter */
.splitter { border-top: 3px solid #FF8C00; margin: 12px 0; }
