.configure-exercise {background:#276440 !important;color:white !important;border-color:#276440 !important;}
.configure-exercise:disabled {opacity:.45;}
#configurationScreen {max-width:none;overflow-anchor:none;}
#configurationLoading {position:fixed;right:20px;bottom:20px;z-index:20;margin:0;padding:8px 14px;border:1px solid #b8cebf;border-radius:8px;background:#f5faf6;box-shadow:0 2px 8px #163c2120;pointer-events:none;}
#configurationTabs {flex-wrap:wrap;}
#configurationScreen .catalog-controls {flex-wrap:wrap;}
.layout-size {display:flex;flex-wrap:wrap;gap:24px;}
.unplaced-accounts {min-width:0;}
.unplaced-accounts h2 {margin:0 0 8px;font-size:18px;}
.unplaced-accounts p {margin:0 0 10px;}
.layout-size label {display:grid;gap:6px;}
.layout-spinner {display:flex;align-items:stretch;}
.layout-spinner input {width:65px;text-align:center;font:inherit;appearance:textfield;-moz-appearance:textfield;}
.layout-spinner input::-webkit-inner-spin-button {appearance:none;}
.layout-spinner>span {display:grid;}
.layout-spinner button {padding:2px 8px;}
.account-layout {display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:24px;align-items:start;margin:20px 0;}
.account-workbench {display:flex;flex-direction:column;gap:20px;min-width:0;}
.account-layout-right {min-width:0;}
.configuration-form {display:grid;gap:12px;padding:18px;border:1px solid #c9dacf;border-radius:12px;background:white;}
.configuration-form label {display:grid;gap:5px;}
.configuration-form input,.configuration-form select {min-width:0;width:100%;box-sizing:border-box;padding:8px;font:inherit;font-size:16px;border:1px solid #b5cabd;border-radius:6px;}
.account-tray {display:flex;flex-wrap:wrap;gap:8px;align-content:flex-start;box-sizing:border-box;min-height:64px;padding:8px;border:2px dashed #7ca58b;border-radius:10px;background:#f5faf6;}
.account-grid-scroll {overflow:auto;min-height:458px;padding-top:24px;box-sizing:border-box;}
.account-grid {display:grid;gap:10px;}
.account-cell {box-sizing:border-box;min-height:64px;padding:8px;border:1px solid #a9c2b2;background:#f3f8f4;border-radius:8px;}
.account-chip-wrap {position:relative;width:fit-content;min-width:0;max-width:100%;}
.account-chip {display:flex;flex-wrap:wrap;gap:5px;padding:10px;margin:0;background:#fff;border:1px solid #609170;border-radius:9px;box-shadow:0 2px 5px #163c2120;cursor:grab;touch-action:none;overflow-wrap:anywhere;}
.account-chip-caption {flex-basis:100%;font-weight:600;}
.account-tray .account-chip-wrap {flex:0 1 auto;}
.account-chip-tools {position:absolute;bottom:100%;right:0;z-index:3;display:flex;gap:5px;padding-bottom:4px;opacity:0;pointer-events:none;}
.account-chip-tools button {display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;min-width:18px;min-height:18px;padding:0;cursor:pointer;background:white;}
.account-chip-tools .chip-edit {border:0;color:#365d48;}
.account-chip-tools .chip-delete {border:1px solid #b42332;border-radius:50%;color:#b42332;}
.account-chip-tools button svg {width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
.account-chip-wrap:hover .account-chip-tools,.account-chip-wrap:focus-within .account-chip-tools {opacity:1;pointer-events:auto;}
.account-chip-tools .chip-delete:hover {background:#fff0f0;}
@media(hover:none){.account-chip-tools{opacity:1;pointer-events:auto;}}
.account-chip.is-selected {outline:3px solid #276440;}
.account-cell.drop-target,.account-tray.drop-target {outline:none;box-shadow:inset 0 0 0 3px #55a36d;background:#dcf1e2;}
.tool-choice {display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0;padding:12px;border:1px solid #b8cebf;border-radius:10px;}
.tool-choice label {display:flex;gap:9px;align-items:center;flex:0 1 320px;}
.tool-choice select {flex:1 1 220px;min-width:0;max-width:480px;padding:8px;font:inherit;font-size:16px;border:1px solid #b5cabd;border-radius:6px;}
#configurationError,#configurationGroupError,#configurationDeleteError {color:#a32727;}
@media(max-width:800px){.account-layout{grid-template-columns:1fr;}.account-grid-scroll{max-width:100%;}}

.tool-choice {display:grid;grid-template-columns:minmax(160px,320px) minmax(200px,480px) auto;align-items:center;}
.tool-choice .tool-label {grid-column:1;grid-row:1;}
.tool-account-line {position:relative;display:flex;grid-column:2;min-width:0;}
.tool-account-line select {max-width:none;}
.tool-account-add {grid-column:3;grid-row:1;justify-self:start;}
.tool-account-line .tool-account-delete {right:-9px;}
.tool-account-line:hover .tool-account-delete,.tool-account-line:focus-within .tool-account-delete {opacity:1;}
.tool-account-delete:disabled {visibility:hidden;}
#openingJournalView,.opening-inventory-scroll {overflow:auto;}
#openingJournalForm {padding-bottom:8px;}
#openingJournalError,#openingDataError {color:#a01818;}
#openingJournalStatus {color:#16733b;}
#openingJournalDebitAmount,#openingJournalCreditAmount {text-align:right;}
.opening-inventory-table {margin-bottom:16px;min-width:600px;}
.opening-inventory-table th:first-child,.opening-inventory-table th:nth-child(2) {width:25%;}
.opening-inventory-table th:nth-child(3) {width:70px;}
.opening-inventory-table th:nth-child(4),.opening-inventory-table th:nth-child(5) {width:auto;}
.opening-inventory-table input {text-align:right;}
.opening-inventory-table tr:hover .delete-row,.opening-inventory-table tr:focus-within .delete-row {opacity:1;}
@media(max-width:650px){.tool-choice{grid-template-columns:minmax(0,1fr) auto;}.tool-choice .tool-label{grid-column:1/-1;grid-row:1;}.tool-account-line{grid-column:1;}.tool-account-add{grid-column:2;grid-row:2;}}

#openingJournalView .journal-table {min-width:960px;}
#openingJournalView .journal-table th:nth-child(2),#openingJournalView .journal-table th:nth-child(3) {width:20%;}
#openingJournalView .journal-table th:nth-child(4),#openingJournalView .journal-table th:nth-child(5) {width:15%;}
#openingJournalView .journal-table th:nth-child(6),#openingJournalView .journal-table th:nth-child(7) {width:12%;}
