* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, Segoe UI, Roboto, sans-serif; color: #222; background: #f5f6f8; }
.app { display: flex; height: 100vh; }

.sidebar {
    width: 240px; background: #1f2937; color: #fff; padding: 20px 0;
    display: flex; flex-direction: column;
}
.sidebar h1 { margin: 0 20px 20px; font-size: 18px; border-bottom: 1px solid #374151; padding-bottom: 12px; }
.sidebar nav a {
    display: block; padding: 12px 20px; color: #d1d5db; text-decoration: none;
    border-left: 3px solid transparent;
}
.sidebar nav a:hover { background: #374151; color: #fff; }
.sidebar nav a.active { background: #111827; color: #fff; border-left-color: #3b82f6; }
.sidebar .nav-icon { vertical-align: -3px; margin-right: 6px; }
.user-logout svg { display: block; }

.sidebar { display: flex; flex-direction: column; }
.sidebar nav { flex: 1; overflow-y: auto; }
.sidebar-user {
    border-top: 1px solid #374151; padding: 14px 16px;
    display: flex; align-items: center; gap: 10px;
}
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #3b82f6; color: #fff; display: flex;
    align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-email { color: #9ca3af; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-logout {
    color: #9ca3af; text-decoration: none; font-size: 18px;
    padding: 4px 8px; border-radius: 4px;
}
.user-logout:hover { background: #374151; color: #ef4444; }

/* Login page */
.login-page {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    min-height: 100vh; margin: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: -apple-system, Segoe UI, Roboto, sans-serif;
}
.login-box {
    background: #fff; padding: 40px; border-radius: 12px;
    width: 100%; max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.login-box h1 { margin: 0 0 8px; font-size: 22px; color: #111827; }
.login-box .muted { margin: 0 0 24px; color: #6b7280; font-size: 14px; }
.login-box label { display: block; margin-bottom: 14px; }
.login-box label span { display: block; font-size: 12px; color: #374151; font-weight: 600; margin-bottom: 4px; }
.login-box input {
    width: 100%; padding: 10px 12px; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: 14px; box-sizing: border-box;
}
.login-box input:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.login-box button {
    width: 100%; margin-top: 10px; padding: 10px;
    font-size: 14px; font-weight: 600;
}
.sidebar .label { display: block; font-weight: 600; }
.sidebar .addr { display: block; font-size: 11px; color: #9ca3af; margin-top: 2px; margin-left: 22px; }

.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
    padding: 16px 24px; background: #fff; border-bottom: 1px solid #e5e7eb;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.topbar-info { flex: 0 0 auto; }
.search { display: flex; gap: 8px; align-items: center; flex: 1; max-width: 500px; }
.search input[type=search] {
    flex: 1; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px; outline: none;
}
.search input[type=search]:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.search button {
    padding: 8px 16px; background: #3b82f6; color: #fff; border: 0;
    border-radius: 6px; cursor: pointer; font-size: 14px;
}
.search button:hover { background: #2563eb; }
.search .clear {
    color: #6b7280; text-decoration: none; font-size: 16px;
    width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.search .clear:hover { background: #f3f4f6; }
.topbar h2 { margin: 0; font-size: 20px; }
.topbar .addr-top { font-size: 13px; color: #6b7280; margin-top: 2px; }

.error { margin: 16px 24px; padding: 12px; background: #fee2e2; color: #991b1b; border-radius: 6px; }
.error pre { white-space: pre-wrap; margin: 6px 0 0; font-size: 12px; }

.content { flex: 1; display: flex; overflow: hidden; }
.list { width: 380px; overflow-y: auto; background: #fff; border-right: 1px solid #e5e7eb; }
.item {
    display: block; padding: 12px 16px; border-bottom: 1px solid #f3f4f6;
    text-decoration: none; color: #222;
}
.item:hover { background: #f9fafb; }
.item.active { background: #eff6ff; }
.item.unread { background: #fefce8; }
.item.unread .subject { font-weight: 700; }
.item .row1 { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.item .from { font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.item .date { color: #6b7280; font-size: 12px; flex-shrink: 0; }
.item .subject { font-size: 14px; margin-bottom: 2px; }
.item .preview { font-size: 12px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .clip { font-size: 12px; }

.viewer { flex: 1; overflow-y: auto; background: #fff; display: flex; flex-direction: column; }
.msg-head { padding: 20px 24px; border-bottom: 1px solid #e5e7eb; }
.msg-head h3 { margin: 0 0 10px; }
.msg-head .meta { font-size: 13px; color: #4b5563; line-height: 1.7; }
.msg-body { flex: 1; padding: 0; }
.msg-body iframe { width: 100%; height: 100%; border: 0; }
.msg-body pre { padding: 20px 24px; white-space: pre-wrap; font-family: inherit; margin: 0; }

.empty { padding: 40px; text-align: center; color: #9ca3af; }

.attachments {
    padding: 12px 24px; background: #f9fafb; border-bottom: 1px solid #e5e7eb;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px;
}
.attachments strong { margin-right: 8px; color: #374151; }
.att {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: #fff; border: 1px solid #d1d5db;
    border-radius: 6px; text-decoration: none; color: #111827;
}
.att:hover { background: #eff6ff; border-color: #3b82f6; }
.att .size { color: #6b7280; font-size: 12px; }

/* Sidebar separator */
.nav-sep { height: 1px; background: #374151; margin: 12px 20px; }

/* Pages "single column" (dossiers, dossier, email) */
.content-single { padding: 20px 24px; overflow-y: auto; flex: 1; background: #f5f6f8; }

/* Filters bar */
.filters { padding: 12px 24px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 4px 12px; border-radius: 999px; background: #f3f4f6; color: #374151;
    text-decoration: none; font-size: 13px;
}
.chip:hover { background: #e5e7eb; }
.chip.active { background: #3b82f6; color: #fff; }

/* Table */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
.table th { background: #f9fafb; color: #6b7280; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.table tr:hover td { background: #fafbfc; }
.table tr.row-link { cursor: pointer; }
.table tr.row-link:hover td { background: #eff6ff; }
.table td.muted { color: #9ca3af; font-size: 12px; }
.table .btn-link { color: #3b82f6; text-decoration: none; font-weight: 500; }
.table .btn-link:hover { text-decoration: underline; }

/* PJ presence indicators */
.pj-cell { display: flex; gap: 4px; }
.pj {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 4px; font-size: 11px; font-weight: 700;
}
.pj.on  { background: #10b981; color: #fff; }
.pj.off { background: #e5e7eb; color: #9ca3af; }

/* Status badges */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
}
.badge.status-pending   { background: #fef3c7; color: #92400e; }
.badge.status-ready     { background: #dbeafe; color: #1e40af; }
.badge.status-sent_odoo { background: #d1fae5; color: #065f46; }
.badge.status-error     { background: #fee2e2; color: #991b1b; }
.badge.status-manual    { background: #e5e7eb; color: #374151; }
.badge-warning          { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge.class-new        { background: #dbeafe; color: #1e40af; }
.badge.class-existing   { background: #d1fae5; color: #065f46; }
.badge.class-exchange   { background: #fef3c7; color: #92400e; }
.badge.class-manual     { background: #e5e7eb; color: #374151; }
.badge.class-unknown    { background: #f3f4f6; color: #6b7280; }

/* Pagination */
.pagination { display: flex; gap: 4px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.pagination a { padding: 6px 12px; background: #fff; border: 1px solid #d1d5db; border-radius: 6px; text-decoration: none; color: #374151; font-size: 13px; }
.pagination a:hover { background: #f3f4f6; }
.pagination a.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }

/* Dossier detail */
.back-link { color: #6b7280; text-decoration: none; margin-right: 10px; font-size: 14px; }
.back-link:hover { color: #3b82f6; }
.devis-tag {
    display: inline-block; margin-left: 10px; padding: 3px 10px;
    background: #3b82f6; color: #fff; border-radius: 4px; font-size: 13px; font-weight: 600;
}
.actions { display: flex; gap: 10px; align-items: center; }
.btn-odoo, .btn-secondary {
    padding: 8px 16px; border-radius: 6px; border: 0; cursor: pointer; font-size: 14px;
}
.btn-odoo { background: #8b5cf6; color: #fff; }
.btn-odoo:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.btn-secondary:hover { background: #f3f4f6; }

.card {
    background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.card h3 { margin: 0 0 16px; font-size: 16px; color: #111827; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-head h3 { margin: 0; }
.card-warning { background: #fffbeb; border-color: #fef3c0; }
.card-warning h3 { color: #92400e; }

/* Spinner dans le bouton */
.btn-primary .btn-spinner,
.btn-odoo .btn-spinner,
.btn-secondary .btn-spinner {
    display: none;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    margin-left: 8px;
    animation: btn-spin 0.7s linear infinite;
    vertical-align: middle;
}
.btn-secondary .btn-spinner {
    border: 2px solid rgba(55,65,81,0.3);
    border-top-color: #374151;
}
.btn-primary.loading .btn-spinner,
.btn-odoo.loading .btn-spinner,
.btn-secondary.loading .btn-spinner { display: inline-block; }
.btn-primary.loading,
.btn-odoo.loading,
.btn-secondary.loading { opacity: 0.85; cursor: wait; }
.btn-primary:disabled,
.btn-odoo:disabled,
.btn-secondary:disabled { cursor: wait; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Tag Odoo dossier number */
.odoo-tag {
    display: inline-block; margin-left: 8px; padding: 3px 10px;
    background: #8b5cf6; color: #fff; border-radius: 4px; font-size: 13px; font-weight: 600;
}
.odoo-tag-sm {
    display: inline-block; padding: 2px 8px;
    background: #8b5cf6; color: #fff; border-radius: 4px; font-size: 12px; font-weight: 600;
    white-space: nowrap;
}

.odoo-resp-meta { font-size: 14px; line-height: 1.8; }
.odoo-resp-meta code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; }
.json-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.json-pair h4 { font-size: 12px; text-transform: uppercase; color: #6b7280; margin: 0 0 6px; }
.json-box {
    background: #1f2937; color: #e5e7eb; padding: 12px; border-radius: 6px;
    font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px;
    max-height: 300px; overflow: auto; white-space: pre-wrap; word-break: break-word;
}
@media (max-width: 800px) { .json-pair { grid-template-columns: 1fr; } }

.attachments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.attachment-slot { padding: 14px; border-radius: 8px; border: 2px dashed #e5e7eb; }
.attachment-slot.present { border-style: solid; border-color: #10b981; background: #f0fdf4; }
.attachment-slot.missing { background: #f9fafb; }
.attachment-slot .slot-label { font-size: 11px; text-transform: uppercase; color: #6b7280; margin-bottom: 6px; font-weight: 600; }
.attachment-slot .missing-label { color: #9ca3af; font-style: italic; font-size: 13px; }
.att-link { color: #111827; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.att-link:hover { color: #3b82f6; }
.att-link .size { color: #6b7280; font-size: 11px; }
.kind-tag { font-size: 10px; padding: 2px 6px; border-radius: 3px; margin-left: 6px; background: #dbeafe; color: #1e40af; }

/* Bloc contact (email + téléphone) */
.contact-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px; margin-bottom: 16px;
    padding: 14px 16px; background: #f9fafb; border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.contact-item { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.contact-label { font-size: 11px; text-transform: uppercase; color: #6b7280; letter-spacing: 0.04em; font-weight: 600; }
.contact-value {
    font-size: 14px; color: #111827; text-decoration: none;
    display: inline-block;     /* limite la zone cliquable au texte */
    max-width: 100%;
}
.contact-value:hover { color: #3b82f6; text-decoration: underline; }
.contact-value.muted { color: #9ca3af; }
.small { font-size: 11px; }

/* Adresses */
.addresses-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.address-block {
    background: #f9fafb; border-radius: 8px; padding: 16px;
    border: 1px solid #e5e7eb;
}
.address-block h4 {
    margin: 0 0 12px; font-size: 13px; color: #6b7280;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.addr-fields { margin: 0; display: grid; grid-template-columns: 100px 1fr; gap: 6px 12px; font-size: 13px; }
.addr-fields dt { color: #6b7280; font-weight: 500; }
.addr-fields dd { margin: 0; color: #111827; word-break: break-word; }
.empty-small { color: #9ca3af; font-size: 13px; font-style: italic; }

/* Edit mode des Informations Dossier */
.card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.info-edit input[type=text], .info-edit input[type=email] {
    padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px; width: 100%; box-sizing: border-box;
}
.info-edit input:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.info-edit .contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.info-edit .addresses-grid { margin-top: 14px; }
.info-edit .addr-edit { display: flex; flex-direction: column; gap: 8px; }
.info-edit .addr-edit label { font-size: 12px; color: #374151; display: flex; flex-direction: column; gap: 4px; }
.info-edit-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5e7eb; }
.source-tag.source-manual { background: #fef3c7; color: #92400e; }

/* Sélection déménageur sur la fiche dossier */
.suggest-banner {
    background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px;
    padding: 14px 16px; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.suggest-banner > div:first-child { flex: 1; line-height: 1.5; }
.demenageur-select-form { margin-bottom: 14px; }
.dem-row { display: flex; gap: 10px; align-items: center; }
.dem-select {
    flex: 1; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px; background: #fff;
}
.dem-select:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.dem-card {
    background: #f9fafb; border-radius: 8px; padding: 14px 16px;
    border: 1px solid #e5e7eb;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.dem-card .dem-name { font-size: 15px; }
.dem-card .dem-name .dept-badge { margin-right: 6px; }

/* Déménageurs */
.dept-badge {
    display: inline-block; padding: 3px 8px;
    background: #1f2937; color: #fff; border-radius: 4px;
    font-size: 12px; font-weight: 700; min-width: 28px; text-align: center;
}
.demenageur-form .form-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px;
}
.demenageur-form .form-field { display: flex; flex-direction: column; gap: 4px; }
.demenageur-form .form-field.span-2 { grid-column: span 2; }
.demenageur-form .form-field.span-3 { grid-column: span 3; }
.demenageur-form input[type=text],
.demenageur-form input[type=email],
.demenageur-form textarea {
    padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px; box-sizing: border-box; font-family: inherit;
}
.demenageur-form input:focus,
.demenageur-form textarea:focus {
    border-color: #3b82f6; outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
@media (max-width: 800px) {
    .demenageur-form .form-grid { grid-template-columns: 1fr; }
    .demenageur-form .form-field.span-2,
    .demenageur-form .form-field.span-3 { grid-column: span 1; }
}

/* Conformité table */
.conformite { width: 100%; border-collapse: collapse; font-size: 14px; }
.conformite th, .conformite td { padding: 10px 14px; text-align: center; border-bottom: 1px solid #f3f4f6; }
.conformite thead th { background: #f9fafb; font-size: 12px; text-transform: uppercase; color: #6b7280; letter-spacing: 0.04em; }
.conformite tbody td:first-child { text-align: left; color: #374151; }
.conformite td.ok   { color: #059669; font-weight: 600; }
.conformite td.warn { color: #b45309; font-weight: 600; }
.conformite td.muted{ color: #9ca3af; }
.source-tag {
    display: inline-block; padding: 1px 6px; margin-left: 6px;
    border-radius: 3px; font-size: 10px; font-weight: 600; vertical-align: middle;
}
.source-ai       { background: #ede9fe; color: #6d28d9; }
.source-filename { background: #dbeafe; color: #1e40af; }
.source-pdf      { background: #d1fae5; color: #065f46; }

.meta-dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 13px; }
.meta-dl dt { color: #6b7280; font-weight: 500; }
.meta-dl dd { margin: 0; color: #111827; word-break: break-word; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item {
    padding: 14px 16px; border-left: 3px solid #e5e7eb; margin-left: 10px;
    margin-bottom: 10px; background: #f9fafb; border-radius: 0 6px 6px 0;
}
.tl-item.role-creation     { border-left-color: #3b82f6; }
.tl-item.role-piece_jointe { border-left-color: #10b981; }
.tl-item.role-echange      { border-left-color: #f59e0b; }
.tl-head { display: flex; gap: 10px; font-size: 12px; color: #6b7280; margin-bottom: 6px; flex-wrap: wrap; }
.role-tag {
    padding: 2px 8px; border-radius: 3px; font-weight: 600; font-size: 11px;
    background: #e5e7eb; color: #374151;
}
.tl-from { font-weight: 600; color: #111827; }
.tl-subject { font-weight: 600; margin-bottom: 4px; }
.tl-preview { font-size: 13px; color: #4b5563; margin-bottom: 6px; }
.tl-link { font-size: 12px; color: #3b82f6; text-decoration: none; cursor: pointer; }
.tl-link:hover { text-decoration: underline; }
.tl-full { margin-top: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.tl-iframe { width: 100%; min-height: 400px; border: 0; display: block; }

/* Sidebar badge */
.nav-badge {
    display: inline-block; margin-left: 6px; padding: 1px 7px;
    background: #ef4444; color: #fff; border-radius: 999px;
    font-size: 11px; font-weight: 700;
}

/* Flash messages */
.flash { padding: 12px 24px; font-size: 14px; }
.flash-ok { background: #d1fae5; color: #065f46; }
.flash-err { background: #fee2e2; color: #991b1b; }

/* Manual queue items */
.manual-item {
    background: #fff; border-radius: 8px; padding: 18px 20px;
    margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    border-left: 4px solid #f59e0b;
}
.mi-header { display: flex; gap: 20px; align-items: flex-start; }
.mi-info { flex: 1; min-width: 0; }
.mi-from { font-size: 14px; margin-bottom: 4px; }
.mi-from .muted { color: #9ca3af; font-weight: normal; font-size: 12px; }
.mi-subject { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: #111827; }
.mi-subject .clip { font-size: 13px; margin-left: 4px; }
.mi-meta { font-size: 12px; margin-bottom: 6px; }
.muted { color: #9ca3af; }
.mi-reason {
    display: inline-block; padding: 3px 10px; background: #fef3c7; color: #92400e;
    border-radius: 4px; font-size: 12px; margin: 6px 0;
}
.mi-preview { font-size: 13px; color: #4b5563; margin-top: 6px; line-height: 1.5; }

.mi-actions { display: flex; flex-direction: column; gap: 8px; min-width: 260px; }
.inline-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline-form input[type=text] {
    flex: 1; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px;
    min-width: 100px;
}
.inline-form input[type=text]:focus { border-color: #3b82f6; outline: none; }
.btn-primary {
    padding: 6px 14px; background: #3b82f6; color: #fff; border: 0;
    border-radius: 6px; cursor: pointer; font-size: 13px; white-space: nowrap;
}
.btn-primary:hover { background: #2563eb; }
.btn-link-danger {
    background: transparent; border: 0; color: #dc2626; cursor: pointer;
    font-size: 12px; text-decoration: underline; padding: 4px 0; text-align: left;
}
.btn-link-danger:hover { color: #991b1b; }
.mi-actions .btn-secondary { text-align: center; text-decoration: none; }
