/* Wspólne style modułu Prowizje (widok handlowca + panel administratora) */

/* --- karty --- */
.commission-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 18px 20px; margin-bottom: 15px; }
.commission-card--flush { padding: 0; }

/* --- pasek podsumowania (nagłówek z wartościami) --- */
.commission-summary { display: flex; flex-wrap: wrap; align-items: center; }
.commission-summary .cell { flex: 1; min-width: 150px; padding: 0 15px; border-left: 1px solid #eee; }
.commission-summary .cell:first-child { border-left: 0; }
.commission-summary .cell small { color: #999; display: block; margin-bottom: 4px; font-size: 14px; }
.commission-summary .cell .value { font-size: 20px; font-weight: 600; }

/* --- kafelki z ikonami (panel admina) --- */
.commission-tiles { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.commission-tiles .tile { flex: 1; min-width: 190px; background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; }
.commission-tiles .tile .ico { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 44px; }
.commission-tiles .tile .ico .glyphicon { font-size: 18px; }
.commission-tiles .tile small { color: #999; display: block; margin-bottom: 4px; font-size: 14px; }
.commission-tiles .tile .value { font-size: 22px; font-weight: 600; }

/* --- tabela --- */
.commission-table > thead > tr > th { background: #fafafa; color: #666; font-weight: 600; border-bottom: 1px solid #e5e5e5; white-space: nowrap; }
.commission-table > tbody > tr > td { vertical-align: middle; padding-top: 4px; padding-bottom: 4px; }
.commission-table > tfoot > tr > td { font-weight: 600; background: #fafafa; vertical-align: middle; }
.commission-table .num { text-align: right; }
.commission-table td.actions { text-align: center; white-space: nowrap; }
.commission-table tfoot td { font-weight: 600; background: #fafafa; }


/* --- statusy (jeden rozmiar wszędzie) --- */
.commission-table .label { font-size: 12px; font-weight: 600; padding: 6px 12px; display: inline-block; border-radius: 4px; }

/* --- przyciski --- */
.btn-commission { min-width: 130px; padding: 4px 12px; font-size: 13px; border-radius: 4px; text-align: center; background: #963133 !important; background-image: none !important; border: 1px solid #7d2628 !important; color: #fff !important; text-shadow: none; }
.btn-commission:hover, .btn-commission:focus { background: #7d2628 !important; color: #fff !important; }
.btn-commission.disabled { opacity: .45; pointer-events: none; }
.btn-commission .glyphicon { margin-right: 6px; }

.btn-details { padding: 4px 12px; font-size: 13px; border-radius: 4px; background: #fff !important; background-image: none !important; border: 1px solid #ccc !important; color: #555 !important; text-shadow: none; }
.btn-details:hover, .btn-details:focus { background: #f5f5f5 !important; color: #333 !important; border-color: #adadad !important; }
.btn-details .glyphicon { margin-right: 6px; color: #777; }
/* --- kolory kwot --- */
.text-commission { color: #1a9c53; font-weight: 600; }
.text-open { color: #d9822b; font-weight: 600; }

/* --- pasek narzędzi nad tabelą --- */
.commission-toolbar { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; }
.commission-toolbar .muted { color: #999; font-size: 13px; }

/* --- stopka z sumami --- */
.commission-foot { display: flex; justify-content: flex-end; gap: 40px; padding: 12px 20px; border-top: 1px solid #e5e5e5; }

/* --- ramka informacyjna --- */
.commission-note { background: #eaf4fb; border: 1px solid #cfe4f3; border-radius: 6px; padding: 12px 15px; color: #31708f; margin-top: 15px; }

/* --- okno potwierdzenia --- */
.commission-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.45); z-index: 1050; }
.commission-modal .box { background: #fff; border-radius: 6px; width: 460px; max-width: 92%; margin: 12% auto 0; padding: 20px 24px; box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.commission-modal h4 { margin: 0 0 12px; }
.commission-modal .summary { color: #666; margin-bottom: 12px; }
.commission-modal .actions { text-align: right; margin-top: 16px; }
