:root {
    --idetel-blue: #0f4c81;
    --idetel-blue-dark: #0a355c;
    --idetel-gold: #d4a017;
    --idetel-bg: #f4f7fb;
    --idetel-text: #1c2733;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, "Segoe UI", sans-serif;
    background: var(--idetel-bg);
    color: var(--idetel-text);
}

a { color: var(--idetel-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
    background: #fff;
    border-bottom: 3px solid var(--idetel-blue);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header .bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 800;
    color: var(--idetel-blue);
    text-decoration: none;
}

.brand img { height: 42px; }

nav.main-nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }

nav.main-nav a, .user-chip {
    color: var(--idetel-blue-dark);
    font-weight: 600;
    font-size: .95rem;
}

.dropdown { position: relative; }
.dropdown > span { cursor: pointer; font-weight: 600; color: var(--idetel-blue-dark); }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 1.6rem;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(15, 76, 129, .15);
    border-radius: 10px;
    padding: .5rem 0;
    z-index: 30;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: .45rem 1rem; color: var(--idetel-text); }

.user-chip { font-size: .85rem; color: #4b5b6b; }

.page {
    max-width: 1200px;
    margin: 1.5rem auto 3rem;
    padding: 0 1.25rem;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 76, 129, .08);
}

h1, h2, h3 { color: var(--idetel-blue); margin-top: 0; }

.alert {
    padding: .85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.alert-error { background: #fde8e8; color: #9b1c1c; }
.alert-ok { background: #e8f6ee; color: #146c2e; }
.alert-warn { background: #fff4e0; color: #8a5a00; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
input, select, textarea {
    width: 100%;
    padding: .65rem .75rem;
    border: 1px solid #c9d4e0;
    border-radius: 8px;
    font: inherit;
}
.actions { margin-top: 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; }

.btn, button, input[type=submit] {
    background: var(--idetel-blue);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: .7rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
}
.btn.secondary { background: #5b6b7b; }
.btn.danger { background: #b42318; }
.btn.light { background: #d9e3ee; color: var(--idetel-blue-dark); }

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
table.data th, table.data td {
    border-bottom: 1px solid #e4ebf2;
    padding: .55rem .4rem;
    text-align: left;
}
table.data th { background: #eef4fa; color: var(--idetel-blue-dark); }

.hero {
    background: linear-gradient(135deg, var(--idetel-blue), #1d6fb5);
    color: #fff;
    border-radius: 18px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
}
.hero h1 { color: #fff; }
.hero p { max-width: 640px; line-height: 1.5; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.tile {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 8px 20px rgba(15, 76, 129, .08);
}
.tile h3 { margin-bottom: .4rem; }

.login-box { max-width: 460px; margin: 2rem auto; }

footer.site-footer {
    background: var(--idetel-blue-dark);
    color: #d7e4f0;
    padding: 1.5rem;
    text-align: center;
}

@media (max-width: 800px) {
    .site-header .bar { flex-direction: column; align-items: flex-start; }
}
