/* =============================================================================
   eDanoci.mk — Даночна пријава за недвижен имот
   Стилови за визардот. Не ги пипа DevExpress темите — само распоредот околу нив.
   ============================================================================= */

:root {
    --td-ink:     #28283a;
    --td-muted:   #6e7482;
    --td-accent:  #483d8b;
    --td-accent-2:#5b4fc4;
    --td-rule:    #e2e5ec;
    --td-bg:      #f4f5f8;
    --td-ok-bg:   #ecfdec;
    --td-ok-ink:  #1d6b2c;
    --td-err-bg:  #fdecec;
    --td-err-ink: #a02020;
}

body {
    margin: 0;
    background: var(--td-bg);
    color: var(--td-ink);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
}

.td-shell {
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.td-head h1 {
    margin: 0 0 4px;
    font-size: 26px;
    color: var(--td-accent);
}

.td-head p {
    margin: 0 0 20px;
    color: var(--td-muted);
}

.td-wizard {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(20, 24, 40, .08);
    overflow: hidden;
}

.td-h2 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--td-accent);
    margin: 24px 0 10px;
}

.td-h2:first-child { margin-top: 4px; }

/* ---------- ленти со копчиња ---------- */

.td-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 0 4px;
    border-top: 1px solid var(--td-rule);
    margin-top: 24px;
    flex-wrap: wrap;
}

.td-actions-popup { margin-top: 16px; padding-bottom: 0; }

.td-toolbar {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.td-hint {
    color: var(--td-muted);
    font-size: 13px;
}

/* ---------- преглед (чекор 3) ---------- */

.td-review {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2px 16px;
    margin: 0;
}

.td-review dt {
    color: var(--td-muted);
    font-size: 13px;
    padding: 6px 0;
}

.td-review dd {
    margin: 0;
    padding: 6px 0;
    font-weight: 600;
    border-bottom: 1px solid var(--td-rule);
}

.td-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.td-table th {
    background: var(--td-accent);
    color: #fff;
    text-align: left;
    padding: 8px 10px;
    font-weight: 600;
}

.td-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--td-rule);
    vertical-align: top;
}

.td-table tbody tr:nth-child(even) { background: #f8f9fc; }

.td-verify {
    background: #f8f9fc;
    border: 1px solid var(--td-rule);
    border-radius: 8px;
    padding: 4px 18px 18px;
    margin-top: 24px;
}

.td-verify-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.td-confirm { margin: 22px 0 4px; }

/* ---------- пораки ---------- */

.td-msg {
    border-radius: 6px;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 14px;
}

.td-ok  { background: var(--td-ok-bg);  color: var(--td-ok-ink); }
.td-err { background: var(--td-err-bg); color: var(--td-err-ink); }

/* ---------- завршен екран ---------- */

.td-done {
    text-align: center;
    padding: 40px 20px 30px;
}

.td-done-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--td-ok-bg);
    color: var(--td-ok-ink);
    font-size: 34px;
}

.td-done h2 { margin: 0 0 12px; color: var(--td-accent); }

/* ---------- копчиња (само боја; геометријата е од DevExpress темата) ---------- */

.td-btn-primary, .td-btn-primary .dxbButton { font-weight: 600; }
.td-btn-submit,  .td-btn-submit  .dxbButton { font-weight: 700; }

/* секундарни копчиња — „Назад“, „Откажи“, „Испрати код“ */
.td-btn-ghost, .td-btn-ghost .dxbButton {
    font-weight: 500;
    opacity: .9;
}

.td-btn-ghost:hover, .td-btn-ghost .dxbButton:hover { opacity: 1; }

/* ---------- мобилни ---------- */

@media (max-width: 700px) {
    .td-shell { padding: 16px 10px 48px; }
    .td-head h1 { font-size: 21px; }
    .td-review { grid-template-columns: 1fr; gap: 0; }
    .td-review dt { padding-bottom: 0; }
    .td-review dd { padding-top: 2px; }
    .td-actions { justify-content: stretch; }
    .td-actions > * { flex: 1 1 auto; }
}
