/* Master-data section — consistent with olive/gold finance surface */
.master-panel{scroll-margin-top:92px;margin-bottom:20px}
.master-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.master-heading h3{margin:0;font-size:1.24rem}
.master-heading p{color:var(--muted,#bbc5b5);font-size:.86rem;line-height:1.8;margin:5px 0 0}
.master-link{border:1px solid #87975d;background:#394a27;color:#fff4d1;border-radius:11px;padding:8px 14px;cursor:pointer;font:inherit}
.master-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.master-tabs button{font:inherit;border:1px solid #7c875d66;background:#1f2c1e;color:#dedfcf;border-radius:10px;padding:7px 12px;cursor:pointer;font-size:.86rem}
.master-tabs button[aria-selected="true"]{background:#a6ae75;color:#111a12;font-weight:800;border-color:#cdd59a}
.master-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:13px 0}
.master-toolbar input{flex:1;min-width:170px;border:1px solid #8e9b7866;border-radius:10px;padding:10px;background:#1c281a;color:#fff; font:inherit}
.master-toolbar button{font:inherit;padding:9px 16px;border:1px solid #aeb77a;background:#43532c;border-radius:10px;color:#fff;cursor:pointer}
.master-toolbar button:disabled{opacity:.5;cursor:not-allowed}
#master-count{font-size:.8rem;color:#c5cfac}
.master-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:9px}
.master-item{border:1px solid #95a17940;border-radius:12px;padding:12px;display:flex;gap:10px;justify-content:space-between;align-items:center;background:rgba(34,48,30,.4)}
.master-item-detail{min-width:0;display:block;flex:1}
.master-item-detail strong{display:block;color:#f5f2d8;line-height:1.6}
.master-item-detail small{display:block;color:#a8b79e;font-size:.75rem;line-height:1.7;word-break:break-word}
.master-tag{display:inline-block;font-size:.68rem;color:#d0d5aa;border-radius:20px;padding:1px 6px;border:1px solid #9aab6d70;margin:4px 0 0 4px}
.master-tag.master-archived{color:#e7ad9c;border-color:#c07d74}
.master-item-actions{display:flex;flex-direction:column;gap:5px;flex-shrink:0}
.master-item-actions button{font:inherit;color:#e3e3d2;border:1px solid #87966f7c;border-radius:7px;background:#35402c;padding:5px 9px;cursor:pointer;font-size:.78rem}
.master-item-actions button:last-child{border-color:#a17a76;color:#efc0b9}
.master-form{border:1px solid #aeb87e77;background:rgba(20,33,20,.75);padding:16px;border-radius:14px;margin:12px 0}
.master-form-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.master-form-head button{font-size:1.4rem;color:#fff;background:none;border:0;cursor:pointer}
.master-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.master-field{display:flex;flex-direction:column;gap:5px;min-width:0;color:#e4e6d3;font-size:.85rem}
.master-field input,.master-field select{font:inherit;width:100%;min-height:42px;border-radius:9px;border:1px solid #82937680;padding:7px 9px;background:#22301e;color:#fff}
.master-field input[readonly],.master-field select:disabled{opacity:.7}
.master-form-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.master-form-actions button{font:inherit;border-radius:9px;border:1px solid #9da87e;padding:9px 16px;cursor:pointer;background:#283a22;color:white}
.master-empty{color:#abb69d;padding:10px}
.master-history{display:flex;gap:10px;flex-wrap:wrap;font-size:.72rem;color:#b1bf9c;margin-top:12px}
#master-notice{margin:10px 0;padding:9px;background:#313d29;border-radius:8px;color:#f5e6bf}
#master-notice.master-error{border:1px solid #c88d77}
@media (max-width:720px){.master-list{grid-template-columns:1fr}.master-form-grid{grid-template-columns:1fr}.master-item{align-items:flex-start}.master-heading h3{font-size:1.1rem}.master-tabs button{font-size:.78rem;padding:6px 9px}.master-toolbar input{width:100%;flex-basis:100%}}
